diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml deleted file mode 100644 index 45974a93..00000000 --- a/.github/workflows/autofix.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: autofix.ci # needed to securely identify the workflow - -on: - pull_request: - push: - branches: [ "main" ] - -permissions: - contents: read - -jobs: - autofix: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: npm i -g --force corepack && corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: "pnpm" - - run: pnpm install && pnpm dev:prepare - - run: pnpm run lint:fix - - uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f06e2e79..8494c163 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,27 +27,3 @@ jobs: - run: pnpm build # - run: pnpm test:types - run: pnpm dev:build - examples: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/checkout@v4 - with: - ref: docs-examples - path: docs-examples - sparse-checkout: | - examples - - run: npm i -g --force corepack && corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: "pnpm" - - uses: pnpm/action-setup@v4 - - run: pnpm install && pnpm dev:prepare - - run: pnpm link --global - - run: echo " - \"docs-examples/examples/*\"" >> pnpm-workspace.yaml - - run: echo " - \"!docs-examples/examples/nuxt-layers\"" >> pnpm-workspace.yaml - - run: echo " - \"!docs-examples/examples/nuxtui\"" >> pnpm-workspace.yaml - # - run: pnpm --filter './examples/**' link @nuxtjs/tailwindcss - - run: pnpm install --no-frozen-lockfile - - run: pnpm --filter "./docs-examples/examples/**" build diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml deleted file mode 100644 index 32b1345b..00000000 --- a/.github/workflows/nightly.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: nightly release - -on: - workflow_run: - workflows: [ci] - types: [completed] - branches: [main] - -jobs: - nightly: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} - permissions: - id-token: write - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - run: npm i -g --force corepack && corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: "https://registry.npmjs.org/" - cache: "pnpm" - - - run: pnpm install && pnpm dev:prepare && pnpm build - - run: pnpm changelogen --bump --canary --publish --publishTag nightly --from $(git log -n 1 --pretty=format:%H -- CHANGELOG.md) - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - NPM_CONFIG_PROVENANCE: true diff --git a/.github/workflows/nuxt2.yml b/.github/workflows/nuxt2.yml deleted file mode 100644 index bd29a3be..00000000 --- a/.github/workflows/nuxt2.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: nuxt2 compat - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: npm i -g --force corepack && corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: "pnpm" - - run: pnpm install && pnpm dev:prepare - - run: cd nuxt2-playground && pnpm i --ignore-workspace && pnpm build diff --git a/.github/workflows/sink.yml b/.github/workflows/sink.yml deleted file mode 100644 index 8cff3419..00000000 --- a/.github/workflows/sink.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: kitchen sink - -on: - pull_request: - branches: - - main - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/checkout@v4 - with: - repository: "nuxt/nuxt.com" - path: test/fixtures/nuxt.com - - run: npm i -g --force corepack && corepack enable - - run: | - sed -i '1s/^/import { resolve } from "pathe"\n/' test/fixtures/nuxt.com/nuxt.config.ts - sed -i -e 's|export default defineNuxtConfig({|export default defineNuxtConfig({\n alias: { "@nuxtjs/tailwindcss": resolve(__dirname, "../../../src/module") },|' test/fixtures/nuxt.com/nuxt.config.ts - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: "pnpm" - - run: pnpm install && pnpm dev:prepare - - run: | - cd test/fixtures/nuxt.com && pnpm install --ignore-workspace - - run: pnpm test sink - env: - NUXT_UI_PRO_LICENSE: ${{secrets.NUXT_UI_PRO_LICENSE}} diff --git a/docs/.nuxtrc b/docs/.nuxtrc deleted file mode 100644 index 109361b8..00000000 --- a/docs/.nuxtrc +++ /dev/null @@ -1 +0,0 @@ -imports.autoImport=true diff --git a/docs/app/app.config.ts b/docs/app/app.config.ts index fa8a7e97..a7ef4ec0 100644 --- a/docs/app/app.config.ts +++ b/docs/app/app.config.ts @@ -1,90 +1,69 @@ -import { version as pkgVersion } from '../../package.json' - export default defineAppConfig({ ui: { - primary: 'sky', - gray: 'slate', + colors: { + primary: 'green', + neutral: 'slate' + } + }, + uiPro: { footer: { - bottom: { - left: 'text-sm text-gray-500 dark:text-gray-400', - wrapper: 'border-t border-gray-200 dark:border-gray-800', - }, - }, - content: { - prose: { - code: { - icon: { - 'nuxt.config': 'vscode-icons:file-type-nuxt', - }, - }, - }, - }, + slots: { + root: 'border-t border-default', + left: 'text-sm text-muted' + } + } + }, + seo: { + siteName: '@nuxtjs/tailwindcss' }, header: { - pkgVersion, + title: '', + to: '/', logo: { - light: { - src: '', - }, - dark: { - src: '', - }, + alt: '', + light: '', + dark: '' }, search: true, colorMode: true, links: [{ 'icon': 'i-simple-icons-github', - 'to': 'https://github.com/nuxt-modules/tailwindcss', + 'to': 'https://github.com/nuxt-ui-pro/docs', 'target': '_blank', - 'aria-label': 'Docs template on GitHub', - }], + 'aria-label': 'GitHub' + }] }, footer: { - pkgVersion, + credits: `Copyright © ${new Date().getFullYear()}`, colorMode: false, links: [{ 'icon': 'i-simple-icons-nuxtdotjs', 'to': 'https://nuxt.com', 'target': '_blank', - 'aria-label': 'Nuxt Website', - }, { - 'icon': 'i-simple-icons-discord', - 'to': 'https://chat.nuxt.dev/', - 'target': '_blank', - 'aria-label': 'Nuxt Discord', - }, { - 'icon': 'i-simple-icons-x', - 'to': 'https://twitter.nuxt.dev/', - 'target': '_blank', - 'aria-label': 'Nuxt on X', + 'aria-label': 'Nuxt Website' }, { 'icon': 'i-simple-icons-github', 'to': 'https://github.com/nuxt-modules/tailwindcss', 'target': '_blank', - 'aria-label': 'GitHub Repository', - }], + 'aria-label': '@nuxtjs/tailwindcss on GitHub' + }] }, toc: { title: 'Table of Contents', bottom: { title: 'Community', - edit: 'https://github.com/nuxt-modules/tailwindcss/edit/main/docs/content', + edit: 'https://github.com/nuxt-modules/tailwindcss/edit/main/content', links: [{ - icon: 'i-heroicons-star', + icon: 'i-lucide-star', label: 'Star on GitHub', to: 'https://github.com/nuxt-modules/tailwindcss', - target: '_blank', + target: '_blank' }, { icon: 'i-simple-icons-nuxtdotjs', - label: 'Nuxt documentation', - to: 'https://nuxt.com/docs', - target: '_blank', - }, { - icon: 'i-simple-icons-tailwindcss', - label: 'Tailwind CSS', - to: 'https://tailwindcss.com', - target: '_blank', - }], - }, - }, + label: 'Explore Nuxt UI', + to: 'https://ui.nuxt.com', + target: '_blank' + }] + } + } }) diff --git a/docs/app/app.vue b/docs/app/app.vue index c96d1404..be865190 100644 --- a/docs/app/app.vue +++ b/docs/app/app.vue @@ -1,35 +1,38 @@ diff --git a/docs/app/assets/css/main.css b/docs/app/assets/css/main.css new file mode 100644 index 00000000..aa86081a --- /dev/null +++ b/docs/app/assets/css/main.css @@ -0,0 +1,20 @@ +@import "tailwindcss"; +@import "@nuxt/ui-pro"; + +@source "../../../content/**/*"; + +@theme static { + --font-sans: 'Public Sans', sans-serif; + + --color-green-50: #EFFDF5; + --color-green-100: #D9FBE8; + --color-green-200: #B3F5D1; + --color-green-300: #75EDAE; + --color-green-400: #00DC82; + --color-green-500: #00C16A; + --color-green-600: #00A155; + --color-green-700: #007F45; + --color-green-800: #016538; + --color-green-900: #0A5331; + --color-green-950: #052E16; +} diff --git a/docs/app/components/AdsUIPro.vue b/docs/app/components/AdsUIPro.vue deleted file mode 100644 index 34e0e2ea..00000000 --- a/docs/app/components/AdsUIPro.vue +++ /dev/null @@ -1,495 +0,0 @@ - diff --git a/docs/app/components/AppFooter.vue b/docs/app/components/AppFooter.vue index fc0157e9..b8859719 100644 --- a/docs/app/components/AppFooter.vue +++ b/docs/app/components/AppFooter.vue @@ -5,13 +5,7 @@ const { footer } = useAppConfig() diff --git a/docs/app/components/AppHeader.vue b/docs/app/components/AppHeader.vue index dd5d4e46..68dcb2b5 100644 --- a/docs/app/components/AppHeader.vue +++ b/docs/app/components/AppHeader.vue @@ -1,40 +1,53 @@