@luci-dev/skills 0.0.0-stage → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/benchmark.d.ts +48 -0
- package/dist/benchmark.d.ts.map +1 -0
- package/dist/benchmark.js +84 -0
- package/dist/benchmark.js.map +1 -0
- package/dist/discovery.d.ts +105 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +271 -0
- package/dist/discovery.js.map +1 -0
- package/dist/drafts.d.ts +20 -0
- package/dist/drafts.d.ts.map +1 -0
- package/dist/drafts.js +57 -0
- package/dist/drafts.js.map +1 -0
- package/dist/github.d.ts +49 -0
- package/dist/github.d.ts.map +1 -0
- package/dist/github.js +93 -0
- package/dist/github.js.map +1 -0
- package/dist/import.d.ts +80 -0
- package/dist/import.d.ts.map +1 -0
- package/dist/import.js +286 -0
- package/dist/import.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/licenses.d.ts +30 -0
- package/dist/licenses.d.ts.map +1 -0
- package/dist/licenses.js +116 -0
- package/dist/licenses.js.map +1 -0
- package/dist/linter.d.ts +35 -0
- package/dist/linter.d.ts.map +1 -0
- package/dist/linter.js +262 -0
- package/dist/linter.js.map +1 -0
- package/dist/lss.d.ts +74 -0
- package/dist/lss.d.ts.map +1 -0
- package/dist/lss.js +273 -0
- package/dist/lss.js.map +1 -0
- package/dist/orchestrator.d.ts +164 -0
- package/dist/orchestrator.d.ts.map +1 -0
- package/dist/orchestrator.js +370 -0
- package/dist/orchestrator.js.map +1 -0
- package/dist/packs.d.ts +50 -0
- package/dist/packs.d.ts.map +1 -0
- package/dist/packs.js +166 -0
- package/dist/packs.js.map +1 -0
- package/dist/preferences.d.ts +18 -0
- package/dist/preferences.d.ts.map +1 -0
- package/dist/preferences.js +57 -0
- package/dist/preferences.js.map +1 -0
- package/dist/project.d.ts +45 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +183 -0
- package/dist/project.js.map +1 -0
- package/dist/rankability.d.ts +51 -0
- package/dist/rankability.d.ts.map +1 -0
- package/dist/rankability.js +217 -0
- package/dist/rankability.js.map +1 -0
- package/dist/registry.d.ts +82 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +300 -0
- package/dist/registry.js.map +1 -0
- package/dist/trust.d.ts +13 -0
- package/dist/trust.d.ts.map +1 -0
- package/dist/trust.js +41 -0
- package/dist/trust.js.map +1 -0
- package/dist/types.d.ts +44 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/library/3d/threejs/LICENSE.txt +21 -0
- package/library/3d/threejs/NOTICE.md +7 -0
- package/library/3d/threejs/SKILL.md +102 -0
- package/library/3d/threejs/luci.json +39 -0
- package/library/accessibility/accessibility-baseline/SKILL.md +51 -0
- package/library/accessibility/accessibility-baseline/luci.json +33 -0
- package/library/accessibility/fixing-accessibility/NOTICE.md +6 -0
- package/library/accessibility/fixing-accessibility/SKILL.md +141 -0
- package/library/accessibility/fixing-accessibility/luci.json +36 -0
- package/library/animation-motion/animation-systems/LICENSE.txt +21 -0
- package/library/animation-motion/animation-systems/NOTICE.md +7 -0
- package/library/animation-motion/animation-systems/SKILL.md +192 -0
- package/library/animation-motion/animation-systems/luci.json +32 -0
- package/library/animation-motion/animejs/SKILL.md +64 -0
- package/library/animation-motion/animejs/luci.json +12 -0
- package/library/animation-motion/motion-dev/SKILL.md +69 -0
- package/library/animation-motion/motion-dev/luci.json +13 -0
- package/library/animation-motion/react-view-transitions/AGENTS.md +1380 -0
- package/library/animation-motion/react-view-transitions/NOTICE.md +6 -0
- package/library/animation-motion/react-view-transitions/README.md +44 -0
- package/library/animation-motion/react-view-transitions/SKILL.md +334 -0
- package/library/animation-motion/react-view-transitions/luci.json +40 -0
- package/library/animation-motion/react-view-transitions/metadata.json +12 -0
- package/library/animation-motion/react-view-transitions/references/css-recipes.md +312 -0
- package/library/animation-motion/react-view-transitions/references/implementation.md +170 -0
- package/library/animation-motion/react-view-transitions/references/nextjs.md +233 -0
- package/library/animation-motion/react-view-transitions/references/patterns.md +274 -0
- package/library/animation-motion/react-view-transitions/references/troubleshooting.md +47 -0
- package/library/code-quality/code-review/NOTICE.md +6 -0
- package/library/code-quality/code-review/SKILL.md +94 -0
- package/library/code-quality/code-review/agents/openai.yaml +3 -0
- package/library/code-quality/code-review/luci.json +33 -0
- package/library/components/company-logos/LICENSE.txt +21 -0
- package/library/components/company-logos/NOTICE.md +7 -0
- package/library/components/company-logos/SKILL.md +27 -0
- package/library/components/company-logos/luci.json +38 -0
- package/library/components/container-lines/LICENSE.txt +21 -0
- package/library/components/container-lines/NOTICE.md +7 -0
- package/library/components/container-lines/SKILL.md +124 -0
- package/library/components/container-lines/luci.json +48 -0
- package/library/design-systems/build-design-system/NOTICE.md +6 -0
- package/library/design-systems/build-design-system/SKILL.md +78 -0
- package/library/design-systems/build-design-system/luci.json +29 -0
- package/library/design-systems/build-design-system/references/components.md +46 -0
- package/library/design-systems/build-design-system/references/glossary.md +77 -0
- package/library/design-systems/build-design-system/references/taste.md +37 -0
- package/library/design-systems/build-design-system/references/tokens.md +59 -0
- package/library/design-systems/build-design-system/references/traps.md +128 -0
- package/library/design-systems/build-design-system/scripts/capture-guard.mjs +470 -0
- package/library/design-systems/build-design-system/scripts/capture.mjs +355 -0
- package/library/design-systems/build-design-system/scripts/check-system.mjs +1883 -0
- package/library/design-systems/build-design-system/scripts/find-chromium.mjs +137 -0
- package/library/design-systems/build-design-system/scripts/oklch.mjs +221 -0
- package/library/design-systems/build-design-system/scripts/pixdiff.mjs +186 -0
- package/library/design-systems/component-docs/NOTICE.md +6 -0
- package/library/design-systems/component-docs/SKILL.md +50 -0
- package/library/design-systems/component-docs/luci.json +30 -0
- package/library/design-systems/component-docs/references/doc-format.md +85 -0
- package/library/design-systems/create-design-md/NOTICE.md +6 -0
- package/library/design-systems/create-design-md/SKILL.md +259 -0
- package/library/design-systems/create-design-md/luci.json +38 -0
- package/library/design-systems/design-system-boss/NOTICE.md +6 -0
- package/library/design-systems/design-system-boss/SKILL.md +58 -0
- package/library/design-systems/design-system-boss/luci.json +29 -0
- package/library/design-systems/design-system-boss/playbooks/build.md +10 -0
- package/library/design-systems/design-system-boss/playbooks/component.md +9 -0
- package/library/design-systems/design-system-boss/playbooks/migrate.md +11 -0
- package/library/design-systems/design-system-boss/playbooks/review.md +9 -0
- package/library/design-systems/migrate-design-system/NOTICE.md +6 -0
- package/library/design-systems/migrate-design-system/SKILL.md +62 -0
- package/library/design-systems/migrate-design-system/luci.json +33 -0
- package/library/design-systems/migrate-design-system/references/correct.md +37 -0
- package/library/design-systems/migrate-design-system/references/lessons.md +69 -0
- package/library/design-systems/migrate-design-system/references/parity.md +44 -0
- package/library/design-systems/migrate-design-system/references/running-many-agents.md +52 -0
- package/library/design-systems/migrate-design-system/scripts/bodies-check.mjs +215 -0
- package/library/design-systems/migrate-design-system/scripts/land.mjs +433 -0
- package/library/design-systems/migrate-design-system/scripts/legacy.mjs +283 -0
- package/library/design-systems/migrate-design-system/scripts/parity.mjs +173 -0
- package/library/design-systems/token-mapping/NOTICE.md +6 -0
- package/library/design-systems/token-mapping/SKILL.md +46 -0
- package/library/design-systems/token-mapping/luci.json +25 -0
- package/library/design-systems/token-mapping/references/mapping-rules.md +54 -0
- package/library/design-systems/ui-review/NOTICE.md +6 -0
- package/library/design-systems/ui-review/SKILL.md +53 -0
- package/library/design-systems/ui-review/luci.json +29 -0
- package/library/design-systems/ui-review/references/criteria.md +49 -0
- package/library/frontend/composition-patterns/AGENTS.md +946 -0
- package/library/frontend/composition-patterns/NOTICE.md +6 -0
- package/library/frontend/composition-patterns/README.md +60 -0
- package/library/frontend/composition-patterns/SKILL.md +86 -0
- package/library/frontend/composition-patterns/luci.json +33 -0
- package/library/frontend/composition-patterns/metadata.json +11 -0
- package/library/frontend/composition-patterns/rules/_sections.md +29 -0
- package/library/frontend/composition-patterns/rules/_template.md +24 -0
- package/library/frontend/composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
- package/library/frontend/composition-patterns/rules/architecture-compound-components.md +112 -0
- package/library/frontend/composition-patterns/rules/patterns-children-over-render-props.md +87 -0
- package/library/frontend/composition-patterns/rules/patterns-explicit-variants.md +100 -0
- package/library/frontend/composition-patterns/rules/react19-no-forwardref.md +42 -0
- package/library/frontend/composition-patterns/rules/state-context-interface.md +191 -0
- package/library/frontend/composition-patterns/rules/state-decouple-implementation.md +113 -0
- package/library/frontend/composition-patterns/rules/state-lift-state.md +125 -0
- package/library/frontend/design-mobile-apps/NOTICE.md +6 -0
- package/library/frontend/design-mobile-apps/SKILL.md +121 -0
- package/library/frontend/design-mobile-apps/designing.md +56 -0
- package/library/frontend/design-mobile-apps/endpoints.md +362 -0
- package/library/frontend/design-mobile-apps/implementing.md +213 -0
- package/library/frontend/design-mobile-apps/luci.json +31 -0
- package/library/frontend/design-mobile-apps/styling/nativewind.md +57 -0
- package/library/frontend/design-mobile-apps/styling/stylesheet.md +28 -0
- package/library/frontend/design-mobile-apps/styling/uniwind.md +38 -0
- package/library/frontend/frontend-design/LICENSE.txt +202 -0
- package/library/frontend/frontend-design/NOTICE.md +6 -0
- package/library/frontend/frontend-design/SKILL.md +81 -0
- package/library/frontend/frontend-design/luci.json +43 -0
- package/library/frontend/react-native-skills/AGENTS.md +2897 -0
- package/library/frontend/react-native-skills/NOTICE.md +6 -0
- package/library/frontend/react-native-skills/README.md +165 -0
- package/library/frontend/react-native-skills/SKILL.md +119 -0
- package/library/frontend/react-native-skills/luci.json +33 -0
- package/library/frontend/react-native-skills/metadata.json +16 -0
- package/library/frontend/react-native-skills/rules/_sections.md +86 -0
- package/library/frontend/react-native-skills/rules/_template.md +28 -0
- package/library/frontend/react-native-skills/rules/animation-derived-value.md +53 -0
- package/library/frontend/react-native-skills/rules/animation-gesture-detector-press.md +95 -0
- package/library/frontend/react-native-skills/rules/animation-gpu-properties.md +65 -0
- package/library/frontend/react-native-skills/rules/design-system-compound-components.md +66 -0
- package/library/frontend/react-native-skills/rules/fonts-config-plugin.md +71 -0
- package/library/frontend/react-native-skills/rules/imports-design-system-folder.md +68 -0
- package/library/frontend/react-native-skills/rules/js-hoist-intl.md +61 -0
- package/library/frontend/react-native-skills/rules/list-performance-callbacks.md +44 -0
- package/library/frontend/react-native-skills/rules/list-performance-function-references.md +132 -0
- package/library/frontend/react-native-skills/rules/list-performance-images.md +53 -0
- package/library/frontend/react-native-skills/rules/list-performance-inline-objects.md +97 -0
- package/library/frontend/react-native-skills/rules/list-performance-item-expensive.md +94 -0
- package/library/frontend/react-native-skills/rules/list-performance-item-memo.md +82 -0
- package/library/frontend/react-native-skills/rules/list-performance-item-types.md +104 -0
- package/library/frontend/react-native-skills/rules/list-performance-virtualize.md +67 -0
- package/library/frontend/react-native-skills/rules/monorepo-native-deps-in-app.md +46 -0
- package/library/frontend/react-native-skills/rules/monorepo-single-dependency-versions.md +63 -0
- package/library/frontend/react-native-skills/rules/navigation-native-navigators.md +188 -0
- package/library/frontend/react-native-skills/rules/react-compiler-destructure-functions.md +50 -0
- package/library/frontend/react-native-skills/rules/react-compiler-reanimated-shared-values.md +48 -0
- package/library/frontend/react-native-skills/rules/react-state-dispatcher.md +91 -0
- package/library/frontend/react-native-skills/rules/react-state-fallback.md +56 -0
- package/library/frontend/react-native-skills/rules/react-state-minimize.md +65 -0
- package/library/frontend/react-native-skills/rules/rendering-no-falsy-and.md +74 -0
- package/library/frontend/react-native-skills/rules/rendering-text-in-text-component.md +36 -0
- package/library/frontend/react-native-skills/rules/scroll-position-no-state.md +82 -0
- package/library/frontend/react-native-skills/rules/state-ground-truth.md +80 -0
- package/library/frontend/react-native-skills/rules/ui-expo-image.md +66 -0
- package/library/frontend/react-native-skills/rules/ui-image-gallery.md +104 -0
- package/library/frontend/react-native-skills/rules/ui-measure-views.md +78 -0
- package/library/frontend/react-native-skills/rules/ui-menus.md +174 -0
- package/library/frontend/react-native-skills/rules/ui-native-modals.md +77 -0
- package/library/frontend/react-native-skills/rules/ui-pressable.md +61 -0
- package/library/frontend/react-native-skills/rules/ui-safe-area-scroll.md +65 -0
- package/library/frontend/react-native-skills/rules/ui-scrollview-content-inset.md +45 -0
- package/library/frontend/react-native-skills/rules/ui-styling.md +87 -0
- package/library/frontend/tailwindcss/LICENSE.txt +21 -0
- package/library/frontend/tailwindcss/NOTICE.md +7 -0
- package/library/frontend/tailwindcss/SKILL.md +83 -0
- package/library/frontend/tailwindcss/luci.json +39 -0
- package/library/frontend-frameworks/react-best-practices/NOTICE.md +6 -0
- package/library/frontend-frameworks/react-best-practices/SKILL.md +151 -0
- package/library/frontend-frameworks/react-best-practices/luci.json +39 -0
- package/library/general/algorithmic-art/LICENSE.txt +202 -0
- package/library/general/algorithmic-art/NOTICE.md +6 -0
- package/library/general/algorithmic-art/SKILL.md +409 -0
- package/library/general/algorithmic-art/luci.json +27 -0
- package/library/general/algorithmic-art/templates/generator_template.js +223 -0
- package/library/general/algorithmic-art/templates/viewer.html +599 -0
- package/library/general/canvas-design/LICENSE.txt +202 -0
- package/library/general/canvas-design/NOTICE.md +6 -0
- package/library/general/canvas-design/SKILL.md +134 -0
- package/library/general/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/library/general/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/library/general/canvas-design/luci.json +29 -0
- package/library/index.json +2507 -0
- package/library/interaction/animation-on-scroll/LICENSE.txt +21 -0
- package/library/interaction/animation-on-scroll/NOTICE.md +7 -0
- package/library/interaction/animation-on-scroll/SKILL.md +115 -0
- package/library/interaction/animation-on-scroll/luci.json +38 -0
- package/library/micro-interactions/masked-reveal/LICENSE.txt +21 -0
- package/library/micro-interactions/masked-reveal/NOTICE.md +7 -0
- package/library/micro-interactions/masked-reveal/SKILL.md +187 -0
- package/library/micro-interactions/masked-reveal/luci.json +63 -0
- package/library/micro-interactions/micro-interaction/NOTICE.md +6 -0
- package/library/micro-interactions/micro-interaction/SKILL.md +177 -0
- package/library/micro-interactions/micro-interaction/luci.json +52 -0
- package/library/micro-interactions/micro-interaction/references/css-recipes.md +142 -0
- package/library/micro-interactions/micro-interaction/references/framer-motion-recipes.md +187 -0
- package/library/micro-interactions/micro-interaction/scripts/README.md +42 -0
- package/library/micro-interactions/micro-interaction/scripts/contact-sheet.sh +17 -0
- package/library/micro-interactions/micro-interaction/scripts/seek-shot.sh +21 -0
- package/library/performance/fixing-motion-performance/NOTICE.md +6 -0
- package/library/performance/fixing-motion-performance/SKILL.md +156 -0
- package/library/performance/fixing-motion-performance/luci.json +30 -0
- package/library/seo/fixing-metadata/NOTICE.md +6 -0
- package/library/seo/fixing-metadata/SKILL.md +111 -0
- package/library/seo/fixing-metadata/luci.json +36 -0
- package/library/shadcn-ui/migrate-radix-to-base/NOTICE.md +6 -0
- package/library/shadcn-ui/migrate-radix-to-base/SKILL.md +178 -0
- package/library/shadcn-ui/migrate-radix-to-base/class-mapping.md +62 -0
- package/library/shadcn-ui/migrate-radix-to-base/consumer-props.md +58 -0
- package/library/shadcn-ui/migrate-radix-to-base/disclosure.md +353 -0
- package/library/shadcn-ui/migrate-radix-to-base/display-misc.md +410 -0
- package/library/shadcn-ui/migrate-radix-to-base/form-controls.md +390 -0
- package/library/shadcn-ui/migrate-radix-to-base/luci.json +33 -0
- package/library/shadcn-ui/migrate-radix-to-base/menus.md +409 -0
- package/library/shadcn-ui/migrate-radix-to-base/overlays.md +459 -0
- package/library/shadcn-ui/migrate-radix-to-base/universal-patterns.md +286 -0
- package/library/shadcn-ui/migrate-radix-to-base/wrapper-shapes.md +110 -0
- package/library/shadcn-ui/shadcn/NOTICE.md +6 -0
- package/library/shadcn-ui/shadcn/SKILL.md +187 -0
- package/library/shadcn-ui/shadcn/agents/openai.yml +5 -0
- package/library/shadcn-ui/shadcn/assets/shadcn-small.png +0 -0
- package/library/shadcn-ui/shadcn/assets/shadcn.png +0 -0
- package/library/shadcn-ui/shadcn/assets/showcase/color-pair.tsx +126 -0
- package/library/shadcn-ui/shadcn/assets/showcase/preview-states.css +14 -0
- package/library/shadcn-ui/shadcn/assets/showcase/state-matrix.tsx +72 -0
- package/library/shadcn-ui/shadcn/cli.md +290 -0
- package/library/shadcn-ui/shadcn/customization.md +211 -0
- package/library/shadcn-ui/shadcn/design-system-page.md +268 -0
- package/library/shadcn-ui/shadcn/design-system.md +386 -0
- package/library/shadcn-ui/shadcn/evals/evals.json +126 -0
- package/library/shadcn-ui/shadcn/luci.json +34 -0
- package/library/shadcn-ui/shadcn/mcp.md +105 -0
- package/library/shadcn-ui/shadcn/references/updating-components.md +91 -0
- package/library/shadcn-ui/shadcn/references/workflow.md +31 -0
- package/library/shadcn-ui/shadcn/registry.md +277 -0
- package/library/shadcn-ui/shadcn/rules/base-vs-radix.md +306 -0
- package/library/shadcn-ui/shadcn/rules/chat.md +507 -0
- package/library/shadcn-ui/shadcn/rules/composition.md +213 -0
- package/library/shadcn-ui/shadcn/rules/forms.md +192 -0
- package/library/shadcn-ui/shadcn/rules/icons.md +101 -0
- package/library/shadcn-ui/shadcn/rules/styling.md +185 -0
- package/library/shadcn-ui/shadcn/scripts/showcase-coverage.mjs +53 -0
- package/library/systems/baseline-ui/NOTICE.md +6 -0
- package/library/systems/baseline-ui/SKILL.md +90 -0
- package/library/systems/baseline-ui/luci.json +35 -0
- package/library/testing/tdd/NOTICE.md +6 -0
- package/library/testing/tdd/SKILL.md +43 -0
- package/library/testing/tdd/agents/openai.yaml +3 -0
- package/library/testing/tdd/luci.json +29 -0
- package/library/testing/tdd/mocking.md +59 -0
- package/library/testing/tdd/tests.md +77 -0
- package/library/testing/webapp-testing/LICENSE.txt +202 -0
- package/library/testing/webapp-testing/NOTICE.md +6 -0
- package/library/testing/webapp-testing/SKILL.md +100 -0
- package/library/testing/webapp-testing/examples/console_logging.py +35 -0
- package/library/testing/webapp-testing/examples/element_discovery.py +40 -0
- package/library/testing/webapp-testing/examples/static_html_automation.py +33 -0
- package/library/testing/webapp-testing/luci.json +33 -0
- package/library/testing/webapp-testing/scripts/with_server.py +106 -0
- package/library/ui-ux/improve-ui/NOTICE.md +6 -0
- package/library/ui-ux/improve-ui/SKILL.md +127 -0
- package/library/ui-ux/improve-ui/agents/openai.yaml +13 -0
- package/library/ui-ux/improve-ui/luci.json +47 -0
- package/library/ui-ux/improve-ui/references/plan-template.md +55 -0
- package/library/ui-ux/landing-page/LICENSE.txt +21 -0
- package/library/ui-ux/landing-page/NOTICE.md +7 -0
- package/library/ui-ux/landing-page/SKILL.md +213 -0
- package/library/ui-ux/landing-page/luci.json +47 -0
- package/library/ui-ux/pricing-page/LICENSE.txt +21 -0
- package/library/ui-ux/pricing-page/NOTICE.md +7 -0
- package/library/ui-ux/pricing-page/SKILL.md +217 -0
- package/library/ui-ux/pricing-page/luci.json +47 -0
- package/library/ui-ux/prototype/LOGIC.md +67 -0
- package/library/ui-ux/prototype/NOTICE.md +6 -0
- package/library/ui-ux/prototype/SKILL.md +31 -0
- package/library/ui-ux/prototype/UI.md +112 -0
- package/library/ui-ux/prototype/agents/openai.yaml +3 -0
- package/library/ui-ux/prototype/luci.json +33 -0
- package/library/ui-ux/theme-factory/LICENSE.txt +202 -0
- package/library/ui-ux/theme-factory/NOTICE.md +6 -0
- package/library/ui-ux/theme-factory/SKILL.md +62 -0
- package/library/ui-ux/theme-factory/luci.json +35 -0
- package/library/ui-ux/theme-factory/themes/arctic-frost.md +19 -0
- package/library/ui-ux/theme-factory/themes/botanical-garden.md +19 -0
- package/library/ui-ux/theme-factory/themes/desert-rose.md +19 -0
- package/library/ui-ux/theme-factory/themes/forest-canopy.md +19 -0
- package/library/ui-ux/theme-factory/themes/golden-hour.md +19 -0
- package/library/ui-ux/theme-factory/themes/midnight-galaxy.md +19 -0
- package/library/ui-ux/theme-factory/themes/modern-minimalist.md +19 -0
- package/library/ui-ux/theme-factory/themes/ocean-depths.md +19 -0
- package/library/ui-ux/theme-factory/themes/sunset-boulevard.md +19 -0
- package/library/ui-ux/theme-factory/themes/tech-innovation.md +19 -0
- package/package.json +21 -3
- package/packs/design-system-build.json +10 -0
- package/packs/design-system.json +16 -0
- package/packs/marketing.json +11 -0
- package/packs/motion.json +12 -0
- package/packs/ui.json +13 -0
- package/README.md +0 -3
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
# Design Systems from DESIGN.md
|
|
2
|
+
|
|
3
|
+
Build a new app from a preset, install every component, restyle it from a `DESIGN.md`, then render a design system page.
|
|
4
|
+
|
|
5
|
+
Trigger phrases: "build me a design system using <preset>", "apply this DESIGN.md", "create a showcase / design system page", "make shadcn look like <brand>".
|
|
6
|
+
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- Inputs to confirm
|
|
10
|
+
- Step 1: Scaffold
|
|
11
|
+
- Step 2: Install everything
|
|
12
|
+
- Step 3: Read the DESIGN.md
|
|
13
|
+
- Step 4: Map tokens to the theme
|
|
14
|
+
- Step 5: Map component recipes to variants
|
|
15
|
+
- Step 6: Build the design system page ([design-system-page.md](./design-system-page.md))
|
|
16
|
+
- Step 7: Verify
|
|
17
|
+
- Report back
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Inputs to Confirm
|
|
22
|
+
|
|
23
|
+
| Input | Default | Notes |
|
|
24
|
+
| --------- | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
25
|
+
| Preset | Optional | Code (`b0`), style name (`luma`) or URL. Pass it through. Never decode it by hand. Without one, pick a style (see Step 1). |
|
|
26
|
+
| DESIGN.md | Required | A path, URL or pasted content. Copy it into the new app root as `DESIGN.md`. |
|
|
27
|
+
| Template | `vite` | Use `next` when the user says Next.js, App Router or SSR. |
|
|
28
|
+
| App name | Derived from the brand in DESIGN.md | Kebab-case. |
|
|
29
|
+
| Base | `base` | Pass `--base` when no preset code is given. Use `radix` only when the user asks. `info --json` after init decides `render` vs `asChild`. |
|
|
30
|
+
|
|
31
|
+
If the DESIGN.md path can't be read (macOS privacy blocks `~/Downloads` and `~/Desktop` for some hosts), ask the user to copy it into the working directory. Don't guess its contents.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Step 1: Scaffold
|
|
36
|
+
|
|
37
|
+
With a preset code from the user:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npx shadcn@latest init --preset <code> --template vite --name <app> --no-monorepo -y
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Without one, pick the style whose geometry is closest to the DESIGN.md and pass it with `--base`:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npx shadcn@latest init --base base --preset <style> --template vite --name <app> --no-monorepo -y
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Then:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
cd <app>
|
|
53
|
+
npx shadcn@latest info --json
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
`init` with neither `--preset` nor `--base` stops at an interactive library prompt, even with `-y`. Always pass one of them, plus `--no-monorepo`.
|
|
57
|
+
|
|
58
|
+
### Picking a style
|
|
59
|
+
|
|
60
|
+
The theme gets replaced by the DESIGN.md anyway. The style decides geometry the CSS variables can't reach: control padding, density, how rounded and how raised the components are. Read the DESIGN.md's radius scale, control heights, shadows and layout density, then pick:
|
|
61
|
+
|
|
62
|
+
| Style | Character | Pick when the DESIGN.md has |
|
|
63
|
+
| ------ | ----------------------------------------------------- | ---------------------------------------------------------------------- |
|
|
64
|
+
| `vega` | The classic shadcn/ui look. | Neutral, conventional SaaS geometry; nothing extreme. |
|
|
65
|
+
| `nova` | Reduced padding and margins for compact layouts. | 32–36px controls, 6–8px radius, hairlines over shadows. |
|
|
66
|
+
| `maia` | Soft and rounded, with generous spacing. | 40px+ controls, 12px+ card radius, generous padding, editorial pacing. |
|
|
67
|
+
| `lyra` | Boxy and sharp. | 0–4px radius, hard edges, mono or technical type. |
|
|
68
|
+
| `mira` | Compact. | Dense data UIs, 28–32px controls, tight tables. |
|
|
69
|
+
| `luma` | Rounded geometry, soft elevation, breathable layouts. | Pill buttons, soft layered shadows, glassy or macOS-like surfaces. |
|
|
70
|
+
| `rhea` | Luma, but more compact. | Luma's softness with product-UI density. |
|
|
71
|
+
| `sera` | Editorial and typographic. | Serif display type, editorial pacing, magazine-like hierarchy. |
|
|
72
|
+
|
|
73
|
+
State the choice and the reason in one line ("Picked maia: 40px controls, 12–16px cards, generous padding"). If the user names a style, use it. Read `base`, `style`, `iconLibrary`, `tailwindCssFile` and `aliases` from `info` before writing any code.
|
|
74
|
+
|
|
75
|
+
## Step 2: Install Everything
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npx shadcn@latest add --all -y
|
|
79
|
+
ls <resolvedPaths.ui>/*.tsx | wc -l
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Count the component files on disk. Never quote a component count from memory.
|
|
83
|
+
|
|
84
|
+
Then wire up the providers in the app root:
|
|
85
|
+
|
|
86
|
+
- Wrap the app in `TooltipProvider`.
|
|
87
|
+
- Base UI: wrap the app in `Toaster` from the `toast` component and call `toast.add({ title, description, type })`. Radix: render `<Toaster />` from `sonner`.
|
|
88
|
+
|
|
89
|
+
Then typecheck the app sources. In Vite apps, the root `tsc --noEmit` checks nothing because the root tsconfig only has project references:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npx tsc -p tsconfig.app.json --noEmit # Vite.
|
|
93
|
+
npx tsc --noEmit # Next.js.
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Fix generated files that fail strict checks (for example, an unused `React` import) before moving on, or `vite build` will fail.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Step 3: Read the DESIGN.md
|
|
101
|
+
|
|
102
|
+
DESIGN.md files usually carry YAML frontmatter (`colors`, `typography`, `rounded`, `spacing`, `components`) and prose sections (Overview, Colors, Typography, Layout, Elevation, Shapes, Components, Do's and Don'ts, Responsive, Known Gaps). Some only have prose with `{colors.x}` references. Handle both.
|
|
103
|
+
|
|
104
|
+
Long files exceed one read. Grep the headings first, then read frontmatter, **Do's and Don'ts**, **Iteration Guide** and **Known Gaps** in full. Those sections hold the rules that override defaults.
|
|
105
|
+
|
|
106
|
+
Extract into a working table before editing anything:
|
|
107
|
+
|
|
108
|
+
| Extract | Look for |
|
|
109
|
+
| --------------------- | --------------------------------------------------------------------- |
|
|
110
|
+
| Canvas and ink | `canvas`, `surface`, `ink`, "page floor", "body text" |
|
|
111
|
+
| Action color + states | `primary`, `-hover`, `-active`, `-pressed`, `-disabled`, `on-primary` |
|
|
112
|
+
| Secondary actions | `button-secondary` fill, text and border |
|
|
113
|
+
| Surfaces | card fills, soft bands, dark product surfaces |
|
|
114
|
+
| Lines | `hairline`, border alpha, "1px solid" |
|
|
115
|
+
| Focus | outline vs ring, color, width, offset, alpha |
|
|
116
|
+
| Type families | display, body, mono, and the documented **substitutes** |
|
|
117
|
+
| Type scale | size, weight, line height, tracking per token |
|
|
118
|
+
| Radius scale | every value and what it applies to |
|
|
119
|
+
| Elevation | each shadow tier, verbatim |
|
|
120
|
+
| Control heights | button, input, ghost, icon-button heights and padding |
|
|
121
|
+
| Hard rules | every "Don't" and "never" |
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Step 4: Map Tokens to the Theme
|
|
126
|
+
|
|
127
|
+
Edit only `tailwindCssFile`. Keep hex values when the DESIGN.md gives hex. Don't convert them to OKLCH.
|
|
128
|
+
|
|
129
|
+
### Role mapping
|
|
130
|
+
|
|
131
|
+
| DESIGN.md role | shadcn variable |
|
|
132
|
+
| -------------------------------------------- | ----------------------------------------------------------- |
|
|
133
|
+
| canvas / surface / page floor | `--background` |
|
|
134
|
+
| ink / headline text | `--foreground`, `--card-foreground`, `--popover-foreground` |
|
|
135
|
+
| primary CTA fill / on-primary | `--primary` / `--primary-foreground` |
|
|
136
|
+
| primary hover, pressed or active fill | new `--primary-active` (or `--primary-pressed`) |
|
|
137
|
+
| secondary button fill / text | `--secondary` / `--secondary-foreground` |
|
|
138
|
+
| soft band, alternating section | `--muted` |
|
|
139
|
+
| secondary or descriptive text | `--muted-foreground` |
|
|
140
|
+
| ghost hover wash, active tab, menu highlight | `--accent` / `--accent-foreground` |
|
|
141
|
+
| card / feature card fill | `--card` |
|
|
142
|
+
| floating layer (menus, dialogs) | `--popover` (usually the canvas) |
|
|
143
|
+
| hairline / structural border | `--border`, `--input` |
|
|
144
|
+
| focus color | `--ring` |
|
|
145
|
+
| error / validation | `--destructive` |
|
|
146
|
+
| illustration accents | `--chart-1` … `--chart-5`, plus named tokens |
|
|
147
|
+
| sidebar or nav rail surface | `--sidebar-*` |
|
|
148
|
+
|
|
149
|
+
Every token without a shadcn slot gets a variable in `:root` (and `.dark` when it changes) and a registration in `@theme inline`:
|
|
150
|
+
|
|
151
|
+
```css
|
|
152
|
+
:root {
|
|
153
|
+
--primary-active: #a9583e;
|
|
154
|
+
--surface-card: #efe9de;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@theme inline {
|
|
158
|
+
--color-primary-active: var(--primary-active);
|
|
159
|
+
--color-surface-card: var(--surface-card);
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Radius
|
|
164
|
+
|
|
165
|
+
A DESIGN.md radius scale rarely fits the `--radius` multipliers. Pin each step in `@theme inline` instead. These are the classes base-nova components use:
|
|
166
|
+
|
|
167
|
+
| Class | Used by |
|
|
168
|
+
| ------------- | ----------------------------------------------- |
|
|
169
|
+
| `rounded-sm` | Small accents |
|
|
170
|
+
| `rounded-md` | Menu, select and command items |
|
|
171
|
+
| `rounded-lg` | Buttons, inputs, selects, tabs, popovers, menus |
|
|
172
|
+
| `rounded-xl` | Cards, dialogs, command |
|
|
173
|
+
| `rounded-2xl` | Toasts, large containers |
|
|
174
|
+
| `rounded-4xl` | Badges (pill) |
|
|
175
|
+
|
|
176
|
+
```css
|
|
177
|
+
@theme inline {
|
|
178
|
+
/* DESIGN.md step → Tailwind class used by that component. */
|
|
179
|
+
--radius-sm: 4px; /* xs: accents. */
|
|
180
|
+
--radius-md: 6px; /* sm: menu items. */
|
|
181
|
+
--radius-lg: 8px; /* md: buttons, inputs. */
|
|
182
|
+
--radius-xl: 12px; /* lg: cards, dialogs. */
|
|
183
|
+
--radius-2xl: 16px; /* xl: toasts, hero containers. */
|
|
184
|
+
--radius-3xl: 16px;
|
|
185
|
+
--radius-4xl: 9999px; /* pill: badges. */
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Replace the existing `--radius-*` lines in `@theme inline` rather than adding a second block. Confirm the classes for the installed style:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
grep -ohE "rounded-(\[[^ \"]+\]|[a-z0-9]+)" <ui>/*.tsx | sort | uniq -c
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
`rounded-[min(var(--radius-md),Npx)]` caps small buttons and select triggers. Edit the cap when the DESIGN.md wants rounder small controls.
|
|
196
|
+
|
|
197
|
+
### Elevation
|
|
198
|
+
|
|
199
|
+
Override Tailwind's shadow scale in `@theme`, not `@theme inline`. Copy multi-layer shadows verbatim. Set `--shadow-xs` to `0 0 #0000` when the system is hairline-only, because inputs and outline buttons use it.
|
|
200
|
+
|
|
201
|
+
```css
|
|
202
|
+
@theme {
|
|
203
|
+
--shadow-xs: 0 0 #0000;
|
|
204
|
+
--shadow-sm: 0 1px 3px rgb(20 20 19 / 0.08);
|
|
205
|
+
--shadow-lg: 0 1px 3px rgb(20 20 19 / 0.08), 0 8px 24px rgb(20 20 19 / 0.06);
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### Fonts
|
|
210
|
+
|
|
211
|
+
Brand fonts are usually licensed. Use the substitutes the DESIGN.md names, installed from Fontsource with the project's package manager, and import every face you reference at the top of the CSS file:
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
npm install @fontsource-variable/inter @fontsource-variable/cormorant-garamond @fontsource-variable/jetbrains-mono
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
```css
|
|
218
|
+
@import "@fontsource-variable/inter";
|
|
219
|
+
@import "@fontsource-variable/cormorant-garamond";
|
|
220
|
+
@import "@fontsource-variable/jetbrains-mono";
|
|
221
|
+
|
|
222
|
+
@theme inline {
|
|
223
|
+
--font-sans: "Inter Variable", -apple-system, system-ui, sans-serif;
|
|
224
|
+
--font-serif: "Cormorant Garamond Variable", Garamond, serif;
|
|
225
|
+
--font-mono: "JetBrains Mono Variable", ui-monospace, monospace;
|
|
226
|
+
--font-heading: var(--font-sans);
|
|
227
|
+
}
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
`--font-heading` styles small component titles (`CardTitle`, `DialogTitle`, `SheetTitle`). Point it at the display face only when that face reads well at 16px. Otherwise keep it on the sans and use display tokens for page headings.
|
|
231
|
+
|
|
232
|
+
### Type scale
|
|
233
|
+
|
|
234
|
+
Turn every typography token into a `type-*` utility. Don't use `--text-*` theme keys for this, because `cn()` treats unknown `text-*` classes as colors and drops whichever comes first when one sits next to `text-muted-foreground`.
|
|
235
|
+
|
|
236
|
+
```css
|
|
237
|
+
@utility type-display-lg {
|
|
238
|
+
font-family: var(--font-serif);
|
|
239
|
+
font-size: clamp(34px, 3vw + 16px, 48px);
|
|
240
|
+
font-weight: 500;
|
|
241
|
+
line-height: 1.1;
|
|
242
|
+
letter-spacing: -0.021em;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@utility type-caption-upper {
|
|
246
|
+
font-size: 12px;
|
|
247
|
+
font-weight: 500;
|
|
248
|
+
letter-spacing: 1.5px;
|
|
249
|
+
text-transform: uppercase;
|
|
250
|
+
}
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
- Clamp display sizes so mobile works. Convert pixel tracking to `em` (`-1px / 48px = -0.021em`) so the ratio holds as the size shrinks.
|
|
254
|
+
- Respect the rules on tracking (none below a size) and weight (display never bold).
|
|
255
|
+
|
|
256
|
+
### Dark mode
|
|
257
|
+
|
|
258
|
+
- **DESIGN.md defines dark surfaces** (product mockups, footers): put them in `.dark`. Because shadcn's `@custom-variant dark (&:is(.dark *))` scopes to descendants, `className="dark"` on any section renders every component inside it with dark tokens. Use it for dark bands, featured pricing cards and footers.
|
|
259
|
+
- **DESIGN.md is light-only**: derive `.dark` from the brand's known dark surfaces and tell the user it's derived.
|
|
260
|
+
|
|
261
|
+
### Focus
|
|
262
|
+
|
|
263
|
+
Match the documented focus treatment:
|
|
264
|
+
|
|
265
|
+
- **Ring with alpha** (for example "3px coral at 15%"): replace `ring-ring/50` with the documented alpha on field components (`input`, `textarea`, `input-group`, `select`, `native-select`, `combobox`, `input-otp`).
|
|
266
|
+
- **Solid outline with offset**: add an unlayered rule so it beats `outline-none`, and cancel the ring shadow:
|
|
267
|
+
|
|
268
|
+
```css
|
|
269
|
+
:is(
|
|
270
|
+
button,
|
|
271
|
+
a[href],
|
|
272
|
+
[role="button"],
|
|
273
|
+
[role="tab"],
|
|
274
|
+
[role="checkbox"],
|
|
275
|
+
[role="radio"],
|
|
276
|
+
[role="switch"],
|
|
277
|
+
[role="slider"]
|
|
278
|
+
):focus-visible {
|
|
279
|
+
outline: 2px solid var(--ring);
|
|
280
|
+
outline-offset: 2px;
|
|
281
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
282
|
+
}
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
This covers actions only. Field controls keep their ring. When the DESIGN.md applies the outline to fields too, add `input, textarea, select, [role="combobox"]` to the selector.
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## Step 5: Map Component Recipes to Variants
|
|
290
|
+
|
|
291
|
+
Restyle by editing the `cva` variants in the installed component source. Keep existing variant names so usage stays standard. Add a variant only when the DESIGN.md defines a distinct recipe.
|
|
292
|
+
|
|
293
|
+
| DESIGN.md recipe | shadcn target |
|
|
294
|
+
| ------------------------------------ | -------------------------------------------- |
|
|
295
|
+
| `button-primary` | `Button` `default` |
|
|
296
|
+
| `button-secondary` (tinted fill) | `Button` `secondary` |
|
|
297
|
+
| `button-secondary` (canvas + border) | `Button` `outline` |
|
|
298
|
+
| `button-ghost`, nav links | `Button` `ghost` |
|
|
299
|
+
| text link | `Button` `link` |
|
|
300
|
+
| circular icon button | `Button` `icon*` sizes + `rounded-full` |
|
|
301
|
+
| `badge-pill`, `badge-<accent>` | `Badge` `secondary`, `default`, new variants |
|
|
302
|
+
| `card`, `feature-card` | `Card` (fill, ring, `--card-spacing`) |
|
|
303
|
+
| `text-input`, `-focused` | `Input`, `InputGroup`, `Select`, `Textarea` |
|
|
304
|
+
| `category-tab`, filter row | `Tabs` `default` list + trigger |
|
|
305
|
+
|
|
306
|
+
**Control heights move together.** When the button height changes, change the field controls to match, or forms misalign. In base-nova the 32px default lives in:
|
|
307
|
+
|
|
308
|
+
| File | Class |
|
|
309
|
+
| ------------------- | -------------------------------- |
|
|
310
|
+
| `button.tsx` | `h-8`, `size-8` (icon) |
|
|
311
|
+
| `input.tsx` | `h-8` |
|
|
312
|
+
| `input-group.tsx` | `h-8` |
|
|
313
|
+
| `select.tsx` | `data-[size=default]:h-8` |
|
|
314
|
+
| `native-select.tsx` | `h-8` |
|
|
315
|
+
| `combobox.tsx` | `min-h-8` (chips) |
|
|
316
|
+
| `toggle.tsx` | `h-8 min-w-8` |
|
|
317
|
+
| `input-otp.tsx` | `size-8` (slot) |
|
|
318
|
+
| `tabs.tsx` | `group-data-horizontal/tabs:h-8` |
|
|
319
|
+
| `menubar.tsx` | `h-8` |
|
|
320
|
+
| `command.tsx` | `h-8!` (input group) |
|
|
321
|
+
|
|
322
|
+
Re-grep before editing (`grep -n "\bh-8\b\|size-8\b" <ui>/*.tsx`); other styles use different values.
|
|
323
|
+
|
|
324
|
+
**States.** Follow the documented states exactly. If the DESIGN.md says "darken on press only", use `active:` instead of `hover:`. Keep hover on ghost buttons and menu items even when the spec omits it, and tell the user you did.
|
|
325
|
+
|
|
326
|
+
**Hard rules.** Turn each "Don't" into a check before you finish, for example: no radius outside the scale, no accent color on buttons, no bold display type.
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
## Step 6: Build the Design System Page
|
|
331
|
+
|
|
332
|
+
Follow [design-system-page.md](./design-system-page.md). It sets the section outline, how to present each foundation, the component tiers and block anatomy, pinned state matrices, edge cases, do/don't pairs, and recipes.
|
|
333
|
+
|
|
334
|
+
In short:
|
|
335
|
+
|
|
336
|
+
1. Foundations first: color roles as contrast-checked pairs, palette, type specimen table, spacing, radius and elevation ladders.
|
|
337
|
+
2. Components by tier: primitives get a variant × state matrix, size ladder and icon row. Composed components get a typical example, additions and edge cases. Overlays get real triggers.
|
|
338
|
+
3. Then rendered do/don't pairs for the DESIGN.md's rules, the DESIGN.md's named recipes rebuilt from components, and one example screen.
|
|
339
|
+
|
|
340
|
+
Copy the helpers from `assets/showcase/` (`preview-states.css`, `state-matrix.tsx`, `color-pair.tsx`). Put sections in `src/showcase/<section>.tsx` (Vite) or `app/design-system/` (Next.js). Write copy in the brand's voice.
|
|
341
|
+
|
|
342
|
+
### Known traps
|
|
343
|
+
|
|
344
|
+
| Component | Trap | Fix |
|
|
345
|
+
| ------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
|
346
|
+
| `Command` inline | cmdk scrolls its first item into view on mount, which jumps the page to it. | Control it: `value={value} onValueChange={setValue}` with initial `"none"`. |
|
|
347
|
+
| `Sidebar` | Default sidebar is `fixed` and escapes the preview frame. | `<SidebarProvider className="min-h-0">` + `<Sidebar collapsible="none">`. |
|
|
348
|
+
| `MessageFooter` | Placed beside `MessageContent`, it becomes a squeezed flex column. | Put it inside `MessageContent`. |
|
|
349
|
+
| `Select` (base) | `SelectValue` shows the raw value. | Pass `items` to `Select`. |
|
|
350
|
+
| `Resizable` | react-resizable-panels v4 dropped `direction` and numeric sizes. | `orientation="horizontal"`, `defaultSize="40%"`. |
|
|
351
|
+
| `DirectionProvider` | Provider alone doesn't flip layout. | Also set `dir="rtl"` on the wrapper. |
|
|
352
|
+
| `NavigationMenu` | The content is clipped by the example frame. | Leave bottom padding in that frame. |
|
|
353
|
+
| Header nav links | `Button` renders a `<button>`. | Base: `nativeButton={false} render={<a href="#…" />}`. Radix: `asChild`. |
|
|
354
|
+
|
|
355
|
+
### Coverage check
|
|
356
|
+
|
|
357
|
+
```bash
|
|
358
|
+
node <skill-dir>/scripts/showcase-coverage.mjs src/components/ui src # Vite.
|
|
359
|
+
node <skill-dir>/scripts/showcase-coverage.mjs components/ui app # Next.js.
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
It lists every component file that no showcase file imports. Fix the list until it's empty. `add --all` installs both `toast` and `sonner` in Base UI projects; show `sonner` in Feedback next to `toast` so the list can reach zero.
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
## Step 7: Verify
|
|
367
|
+
|
|
368
|
+
Start the dev server and check it in a browser:
|
|
369
|
+
|
|
370
|
+
1. App typecheck passes (see Step 2).
|
|
371
|
+
2. No console errors.
|
|
372
|
+
3. Loads at `scrollY === 0`. Anything else means a component is stealing scroll on mount.
|
|
373
|
+
4. No horizontal overflow at 375px and 1280px: `document.documentElement.scrollWidth <= innerWidth`.
|
|
374
|
+
5. Screenshot the hero, Foundations, one form section and one dark band. Compare against the DESIGN.md: canvas color, CTA color, display font, radius, focus ring.
|
|
375
|
+
6. Toggle dark mode once.
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
## Report Back
|
|
380
|
+
|
|
381
|
+
- App path, dev URL, component count from disk.
|
|
382
|
+
- The style picked (when no preset was given) and why.
|
|
383
|
+
- What maps where: colors, fonts (and substitutes), radius, shadows, focus.
|
|
384
|
+
- Contrast pairs under 4.5:1, including ones the DESIGN.md itself specifies.
|
|
385
|
+
- Every component file you edited and why.
|
|
386
|
+
- Every deliberate deviation from the DESIGN.md (derived dark mode, kept hover, substituted fonts).
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "shadcn",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 1,
|
|
6
|
+
"prompt": "I'm building a Next.js app with shadcn/ui (base-nova preset, lucide icons). Create a settings form component with fields for: full name, email address, and notification preferences (email, SMS, push notifications as toggle options). Add validation states for required fields.",
|
|
7
|
+
"expected_output": "A React component using FieldGroup, Field, ToggleGroup, data-invalid/aria-invalid validation, gap-* spacing, and semantic colors.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Uses FieldGroup and Field components for form layout instead of raw div with space-y",
|
|
11
|
+
"Uses Switch for independent on/off notification toggles (not looping Button with manual active state)",
|
|
12
|
+
"Uses data-invalid on Field and aria-invalid on the input control for validation states",
|
|
13
|
+
"Uses gap-* (e.g. gap-4, gap-6) instead of space-y-* or space-x-* for spacing",
|
|
14
|
+
"Uses semantic color tokens (e.g. bg-background, text-muted-foreground, text-destructive) instead of raw colors like bg-red-500",
|
|
15
|
+
"No manual dark: color overrides"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": 2,
|
|
20
|
+
"prompt": "Create a dialog component for editing a user profile. It should have the user's avatar at the top, input fields for name and bio, and Save/Cancel buttons with appropriate icons. Using shadcn/ui with radix-nova preset and tabler icons.",
|
|
21
|
+
"expected_output": "A React component with DialogTitle, Avatar+AvatarFallback, data-icon on icon buttons, no icon sizing classes, tabler icon imports.",
|
|
22
|
+
"files": [],
|
|
23
|
+
"expectations": [
|
|
24
|
+
"Includes DialogTitle for accessibility (visible or with sr-only class)",
|
|
25
|
+
"Avatar component includes AvatarFallback",
|
|
26
|
+
"Icons on buttons use the data-icon attribute (data-icon=\"inline-start\" or data-icon=\"inline-end\")",
|
|
27
|
+
"No sizing classes on icons inside components (no size-4, w-4, h-4, etc.)",
|
|
28
|
+
"Uses tabler icons (@tabler/icons-react) instead of lucide-react",
|
|
29
|
+
"Uses asChild for custom triggers (radix preset)"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": 3,
|
|
34
|
+
"prompt": "Create a dashboard component that shows 4 stat cards in a grid. Each card has a title, large number, percentage change badge, and a loading skeleton state. Using shadcn/ui with base-nova preset and lucide icons.",
|
|
35
|
+
"expected_output": "A React component with full Card composition, Skeleton for loading, Badge for changes, semantic colors, gap-* spacing.",
|
|
36
|
+
"files": [],
|
|
37
|
+
"expectations": [
|
|
38
|
+
"Uses full Card composition with CardHeader, CardTitle, CardContent (not dumping everything into CardContent)",
|
|
39
|
+
"Uses Skeleton component for loading placeholders instead of custom animate-pulse divs",
|
|
40
|
+
"Uses Badge component for percentage change instead of custom styled spans",
|
|
41
|
+
"Uses semantic color tokens instead of raw color values like bg-green-500 or text-red-600",
|
|
42
|
+
"Uses gap-* instead of space-y-* or space-x-* for spacing",
|
|
43
|
+
"Uses size-* when width and height are equal instead of separate w-* h-*"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": 4,
|
|
48
|
+
"prompt": "I'm building a Next.js app with shadcn/ui (base-nova preset, lucide icons). Build a chat conversation view: a scrollable thread of messages from two different people, each with an avatar, sender name, timestamp, and message bubble. A couple of messages include an image attachment and a PDF file attachment, and there's a 'Today' divider separating the days.",
|
|
49
|
+
"expected_output": "A React component composing MessageScroller, Message, Bubble, Attachment, and Marker from the registry instead of hand-rolled bubble/divider/attachment markup.",
|
|
50
|
+
"files": [],
|
|
51
|
+
"expectations": [
|
|
52
|
+
"Uses MessageScroller (MessageScrollerProvider, MessageScrollerViewport, MessageScrollerContent, MessageScrollerItem) for the scrollable thread instead of a raw overflow-y-auto div or ScrollArea",
|
|
53
|
+
"Wraps each row in MessageScrollerItem inside MessageScrollerContent",
|
|
54
|
+
"Uses Message with MessageAvatar/MessageContent/MessageHeader for row layout instead of custom flex divs",
|
|
55
|
+
"Uses Bubble + BubbleContent for the message surface instead of a styled div with bg-muted/bg-primary",
|
|
56
|
+
"Uses Attachment (AttachmentMedia, AttachmentContent, AttachmentTitle, AttachmentDescription) for the file and image attachments instead of Item or a custom card",
|
|
57
|
+
"Uses Marker (variant=\"separator\") for the 'Today' divider instead of Separator plus a centered label",
|
|
58
|
+
"Uses semantic color tokens and gap-* spacing; no raw colors like bg-emerald-500 and no space-y-*",
|
|
59
|
+
"Includes \"use client\" when the component uses state or event handlers (isRSC)"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": 5,
|
|
64
|
+
"prompt": "Using shadcn/ui (base-nova preset, lucide icons), build a streaming AI chat UI. The assistant's reply streams in while it generates, the view auto-scrolls to follow the latest content but stops following if the user scrolls up to read earlier messages, a 'jump to latest' button appears when the user has scrolled away from the bottom, and a subtle 'thinking…' shimmer shows while the model is generating.",
|
|
65
|
+
"expected_output": "A React component that delegates scroll/anchor behavior to MessageScroller and uses MessageScrollerButton for jump-to-latest and the shimmer utility for the thinking indicator — no hand-rolled scroll logic or custom shimmer keyframes.",
|
|
66
|
+
"files": [],
|
|
67
|
+
"expectations": [
|
|
68
|
+
"Uses MessageScroller with MessageScrollerProvider (autoScroll) and scrollAnchor on message items for the stick-to-bottom/follow behavior instead of a custom useStickToBottom hook or ResizeObserver/scrollTop wiring",
|
|
69
|
+
"Uses MessageScrollerButton for the jump-to-latest control instead of a hand-built conditional button driven by manual scroll-position state",
|
|
70
|
+
"Uses the shimmer utility class for the 'thinking…' indicator instead of a custom @keyframes or bg-clip-text gradient animation",
|
|
71
|
+
"Wraps each message row in MessageScrollerItem inside MessageScrollerContent",
|
|
72
|
+
"Uses Message + Bubble + BubbleContent for the conversation rows instead of hand-rolled bubble divs",
|
|
73
|
+
"Uses semantic color tokens and gap-* spacing; includes \"use client\" (isRSC)"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": 6,
|
|
78
|
+
"prompt": "Build me a design system using preset b0. Use the DESIGN.md in this folder (a productivity-app spec: white canvas, #0075DE primary, 8px buttons, 12px cards, multi-layer soft shadows, 2px blue focus outline with 2px offset).",
|
|
79
|
+
"expected_output": "A new Vite app created with init --preset b0 --template vite, every component installed, a design system page that renders all of them, and the DESIGN.md tokens mapped onto the shadcn theme.",
|
|
80
|
+
"files": [],
|
|
81
|
+
"expectations": [
|
|
82
|
+
"Creates the app with init --preset b0 --template vite --name <app> and passes the preset code through without decoding it",
|
|
83
|
+
"Installs every component with add --all and reports the component count from disk",
|
|
84
|
+
"Reads the DESIGN.md Do's and Don'ts and Known Gaps before editing the theme",
|
|
85
|
+
"Maps DESIGN.md colors onto shadcn variables in the existing tailwindCssFile and registers extra tokens in @theme inline instead of creating a new CSS file",
|
|
86
|
+
"Pins the radius scale in @theme inline and overrides the shadow scale with the documented multi-layer shadows",
|
|
87
|
+
"Implements the 2px outline focus with an offset instead of keeping the default ring",
|
|
88
|
+
"Changes field control heights together with the button height",
|
|
89
|
+
"Renders every installed component on the design system page and runs the coverage check",
|
|
90
|
+
"Verifies in a browser: typecheck, no console errors, page loads at the top, no horizontal overflow",
|
|
91
|
+
"Shows color roles as surface/foreground pairs with measured contrast ratios",
|
|
92
|
+
"Shows a variant × state matrix for Button with hover, focus, active and disabled pinned via data-preview",
|
|
93
|
+
"Renders do/don't pairs for rules from the DESIGN.md"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": 7,
|
|
98
|
+
"prompt": "Create a Next.js design system app called editorial from preset b0 and apply this DESIGN.md: cream canvas #faf9f5, coral primary #cc785c that darkens only on press, licensed serif display (substitute Cormorant Garamond), Inter body, dark #181715 product surfaces, 40px buttons and inputs.",
|
|
99
|
+
"expected_output": "A Next.js app with all components, serif display type utilities, coral primary with an active-only darker state, dark bands scoped with the dark class, and a showcase page covering every component.",
|
|
100
|
+
"files": [],
|
|
101
|
+
"expectations": [
|
|
102
|
+
"Uses --template next with --preset b0 and --name editorial",
|
|
103
|
+
"Installs the documented font substitutes from Fontsource instead of linking licensed fonts",
|
|
104
|
+
"Defines type-* utilities for the display scale with serif family, weight 400-500 and negative tracking, instead of --text-* theme keys",
|
|
105
|
+
"Uses active: rather than hover: for the primary darker state, per the DESIGN.md",
|
|
106
|
+
"Raises button and input heights to 40px across button, input, input-group, select and related controls",
|
|
107
|
+
"Uses className=\"dark\" on sections or cards to render dark product surfaces with the same components",
|
|
108
|
+
"Avoids the cmdk mount scroll jump on the inline Command example",
|
|
109
|
+
"Reports deliberate deviations from the DESIGN.md (font substitutes, kept hover, derived values)"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": 8,
|
|
114
|
+
"prompt": "Create a new design system using shadcn and the following DESIGN.md. <DESIGN.md: editorial cream canvas, coral primary, 40px controls, 12px cards, 16px hero container, pill badges, shadows rare, generous 32px card padding>",
|
|
115
|
+
"expected_output": "A new app scaffolded without a preset code by picking a style that matches the DESIGN.md geometry, then themed, with a full design system page.",
|
|
116
|
+
"files": [],
|
|
117
|
+
"expectations": [
|
|
118
|
+
"Does not ask for or invent a preset code; passes --base base --preset <style> so init doesn't stop at an interactive prompt",
|
|
119
|
+
"Picks a style matching the DESIGN.md geometry (e.g. maia for generous spacing and 12px+ cards, or sera for editorial serif type) and states the reason in one line",
|
|
120
|
+
"Passes --no-monorepo and --template vite (or next when asked)",
|
|
121
|
+
"Installs all components and builds the design system page per design-system-page.md",
|
|
122
|
+
"Reports contrast pairs below 4.5:1, including the DESIGN.md's own primary/on-primary pair if it fails"
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lss": 1,
|
|
3
|
+
"lastVerified": "2026-11-09",
|
|
4
|
+
"extraFrontmatter": {
|
|
5
|
+
"user-invocable": "user-invocable: false"
|
|
6
|
+
},
|
|
7
|
+
"source": {
|
|
8
|
+
"repo": "shadcn-ui/ui",
|
|
9
|
+
"path": "skills/shadcn/SKILL.md",
|
|
10
|
+
"licenseVerified": true,
|
|
11
|
+
"licenseStatus": "open",
|
|
12
|
+
"licenseEvidence": "repository license",
|
|
13
|
+
"licenseUrl": "https://github.com/shadcn-ui/ui/blob/main/LICENSE.md",
|
|
14
|
+
"licenseCheckedAt": "2026-11-09"
|
|
15
|
+
},
|
|
16
|
+
"permissions": [
|
|
17
|
+
"shell"
|
|
18
|
+
],
|
|
19
|
+
"summary": "Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples.",
|
|
20
|
+
"whenToUse": [
|
|
21
|
+
"Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn/ui."
|
|
22
|
+
],
|
|
23
|
+
"domains": [
|
|
24
|
+
"web",
|
|
25
|
+
"design",
|
|
26
|
+
"writing",
|
|
27
|
+
"business"
|
|
28
|
+
],
|
|
29
|
+
"derived": [
|
|
30
|
+
"domains",
|
|
31
|
+
"summary",
|
|
32
|
+
"whenToUse"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# shadcn MCP Server
|
|
2
|
+
|
|
3
|
+
The CLI includes an MCP server that lets AI assistants search, browse, view, and install items from registries.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Setup
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
shadcn mcp # start the MCP server (stdio)
|
|
11
|
+
shadcn mcp init # write config for your editor
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Editor config files:
|
|
15
|
+
|
|
16
|
+
| Editor | Config file |
|
|
17
|
+
| ----------- | ------------------------------- |
|
|
18
|
+
| Claude Code | `.mcp.json` |
|
|
19
|
+
| Cursor | `.cursor/mcp.json` |
|
|
20
|
+
| VS Code | `.vscode/mcp.json` |
|
|
21
|
+
| OpenCode | `opencode.json` |
|
|
22
|
+
| Codex | `~/.codex/config.toml` (manual) |
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Tools
|
|
27
|
+
|
|
28
|
+
> **Tip:** MCP tools handle registry operations (search, view, install). For project configuration (aliases, framework, Tailwind version), use `npx shadcn@latest info` — there is no MCP equivalent.
|
|
29
|
+
|
|
30
|
+
### `shadcn:get_project_registries`
|
|
31
|
+
|
|
32
|
+
Returns registry names from `components.json`. Errors if no `components.json` exists.
|
|
33
|
+
|
|
34
|
+
**Input:** none
|
|
35
|
+
|
|
36
|
+
### `shadcn:list_items_in_registries`
|
|
37
|
+
|
|
38
|
+
Lists all items from one or more registries. Registries can be configured
|
|
39
|
+
namespaces such as `@acme`, public GitHub sources such as `owner/repo`, or
|
|
40
|
+
registry catalog URLs. Omit `registries` to list from every registry configured
|
|
41
|
+
in `components.json`.
|
|
42
|
+
|
|
43
|
+
**Input:** `registries` (string[], optional — omit for all configured), `types` (string[], optional — e.g. `["ui", "block"]`), `limit` (number, optional, defaults to 100), `offset` (number, optional)
|
|
44
|
+
|
|
45
|
+
### `shadcn:search_items_in_registries`
|
|
46
|
+
|
|
47
|
+
Fuzzy search across registries. Registries can be configured namespaces, public
|
|
48
|
+
GitHub sources, or registry catalog URLs. Omit `registries` to search every
|
|
49
|
+
registry configured in `components.json` — e.g. "find me a hero" across all
|
|
50
|
+
configured registries.
|
|
51
|
+
|
|
52
|
+
**Input:** `registries` (string[], optional — omit for all configured), `query` (string), `types` (string[], optional — e.g. `["ui", "block"]`), `limit` (number, optional, defaults to 100), `offset` (number, optional)
|
|
53
|
+
|
|
54
|
+
### `shadcn:view_items_in_registries`
|
|
55
|
+
|
|
56
|
+
View item details including full file contents.
|
|
57
|
+
|
|
58
|
+
**Input:** `items` (string[]) — e.g.
|
|
59
|
+
`["@shadcn/button", "@shadcn/card", "owner/repo/item"]`
|
|
60
|
+
|
|
61
|
+
### `shadcn:get_item_examples_from_registries`
|
|
62
|
+
|
|
63
|
+
Find usage examples and demos with source code. Omit `registries` to search
|
|
64
|
+
every registry configured in `components.json`.
|
|
65
|
+
|
|
66
|
+
**Input:** `registries` (string[], optional — omit for all configured), `query` (string) — e.g. `"accordion-demo"`, `"button example"`
|
|
67
|
+
|
|
68
|
+
### `shadcn:get_add_command_for_items`
|
|
69
|
+
|
|
70
|
+
Returns the CLI install command.
|
|
71
|
+
|
|
72
|
+
**Input:** `items` (string[]) — e.g. `["@shadcn/button"]`
|
|
73
|
+
|
|
74
|
+
### `shadcn:get_audit_checklist`
|
|
75
|
+
|
|
76
|
+
Returns a checklist for verifying components (imports, deps, lint, TypeScript).
|
|
77
|
+
|
|
78
|
+
**Input:** none
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Configuring Registries
|
|
83
|
+
|
|
84
|
+
Namespaced and authenticated registries are set in `components.json`. The
|
|
85
|
+
`@shadcn` registry is always built-in. Public GitHub registries can also be used
|
|
86
|
+
directly as `owner/repo` registry sources when the repository has a root
|
|
87
|
+
`registry.json`; they do not need `components.json` configuration.
|
|
88
|
+
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"registries": {
|
|
92
|
+
"@acme": "https://acme.com/r/{name}.json",
|
|
93
|
+
"@private": {
|
|
94
|
+
"url": "https://private.com/r/{name}.json",
|
|
95
|
+
"headers": { "Authorization": "Bearer ${MY_TOKEN}" }
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
- Names must start with `@`.
|
|
102
|
+
- URLs must contain `{name}`.
|
|
103
|
+
- `${VAR}` references are resolved from environment variables.
|
|
104
|
+
|
|
105
|
+
Community registry index: `https://ui.shadcn.com/r/registries.json`
|