@auto-engineer/react-gen 1.134.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/skills/design/SKILL.md +302 -0
- package/dist/skills/design/data/cip/deliverables.csv +51 -0
- package/dist/skills/design/data/cip/industries.csv +21 -0
- package/dist/skills/design/data/cip/mockup-contexts.csv +21 -0
- package/dist/skills/design/data/cip/styles.csv +21 -0
- package/dist/skills/design/data/icon/styles.csv +16 -0
- package/dist/skills/design/data/logo/colors.csv +56 -0
- package/dist/skills/design/data/logo/industries.csv +56 -0
- package/dist/skills/design/data/logo/styles.csv +56 -0
- package/dist/skills/design/references/banner-sizes-and-styles.md +118 -0
- package/dist/skills/design/references/cip-deliverable-guide.md +95 -0
- package/dist/skills/design/references/cip-design.md +121 -0
- package/dist/skills/design/references/cip-prompt-engineering.md +84 -0
- package/dist/skills/design/references/cip-style-guide.md +68 -0
- package/dist/skills/design/references/design-routing.md +207 -0
- package/dist/skills/design/references/icon-design.md +122 -0
- package/dist/skills/design/references/logo-color-psychology.md +101 -0
- package/dist/skills/design/references/logo-design.md +92 -0
- package/dist/skills/design/references/logo-prompt-engineering.md +158 -0
- package/dist/skills/design/references/logo-style-guide.md +109 -0
- package/dist/skills/design/references/slides-copywriting-formulas.md +84 -0
- package/dist/skills/design/references/slides-create.md +4 -0
- package/dist/skills/design/references/slides-html-template.md +295 -0
- package/dist/skills/design/references/slides-layout-patterns.md +137 -0
- package/dist/skills/design/references/slides-strategies.md +94 -0
- package/dist/skills/design/references/slides.md +42 -0
- package/dist/skills/design/references/social-photos-design.md +329 -0
- package/dist/skills/design/scripts/cip/core.py +215 -0
- package/dist/skills/design/scripts/cip/generate.py +484 -0
- package/dist/skills/design/scripts/cip/render-html.py +424 -0
- package/dist/skills/design/scripts/cip/search.py +127 -0
- package/dist/skills/design/scripts/icon/generate.py +487 -0
- package/dist/skills/design/scripts/logo/core.py +175 -0
- package/dist/skills/design/scripts/logo/generate.py +362 -0
- package/dist/skills/design/scripts/logo/search.py +114 -0
- package/dist/skills/design-system/SKILL.md +244 -0
- package/dist/skills/design-system/data/slide-backgrounds.csv +11 -0
- package/dist/skills/design-system/data/slide-charts.csv +26 -0
- package/dist/skills/design-system/data/slide-color-logic.csv +14 -0
- package/dist/skills/design-system/data/slide-copy.csv +26 -0
- package/dist/skills/design-system/data/slide-layout-logic.csv +16 -0
- package/dist/skills/design-system/data/slide-layouts.csv +26 -0
- package/dist/skills/design-system/data/slide-strategies.csv +16 -0
- package/dist/skills/design-system/data/slide-typography.csv +15 -0
- package/dist/skills/design-system/references/component-specs.md +236 -0
- package/dist/skills/design-system/references/component-tokens.md +214 -0
- package/dist/skills/design-system/references/primitive-tokens.md +203 -0
- package/dist/skills/design-system/references/semantic-tokens.md +215 -0
- package/dist/skills/design-system/references/states-and-variants.md +241 -0
- package/dist/skills/design-system/references/tailwind-integration.md +251 -0
- package/dist/skills/design-system/references/token-architecture.md +224 -0
- package/dist/skills/design-system/scripts/embed-tokens.cjs +97 -0
- package/dist/skills/design-system/scripts/fetch-background.py +317 -0
- package/dist/skills/design-system/scripts/generate-slide.py +753 -0
- package/dist/skills/design-system/scripts/generate-tokens.cjs +213 -0
- package/dist/skills/design-system/scripts/html-token-validator.py +327 -0
- package/dist/skills/design-system/scripts/search-slides.py +218 -0
- package/dist/skills/design-system/scripts/slide-token-validator.py +35 -0
- package/dist/skills/design-system/scripts/slide_search_core.py +453 -0
- package/dist/skills/design-system/scripts/validate-tokens.cjs +251 -0
- package/dist/skills/design-system/templates/design-tokens-starter.json +143 -0
- package/dist/skills/design-taste-frontend/SKILL.md +79 -0
- package/dist/skills/emil-design-engineering/SKILL.md +108 -0
- package/dist/skills/emil-design-engineering/animations.md +266 -0
- package/dist/skills/emil-design-engineering/component-design.md +382 -0
- package/dist/skills/emil-design-engineering/forms-controls.md +261 -0
- package/dist/skills/emil-design-engineering/marketing.md +160 -0
- package/dist/skills/emil-design-engineering/performance.md +222 -0
- package/dist/skills/emil-design-engineering/touch-accessibility.md +236 -0
- package/dist/skills/emil-design-engineering/ui-polish.md +303 -0
- package/dist/skills/frontend-design/SKILL.md +42 -0
- package/dist/skills/full-output-enforcement/SKILL.md +32 -0
- package/dist/skills/high-end-visual-design/SKILL.md +98 -0
- package/dist/skills/react-doctor/AGENTS.md +15 -0
- package/dist/skills/react-doctor/SKILL.md +19 -0
- package/dist/skills/redesign-existing-projects/SKILL.md +178 -0
- package/dist/skills/ui-styling/LICENSE.txt +202 -0
- package/dist/skills/ui-styling/SKILL.md +324 -0
- package/dist/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/dist/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/dist/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/dist/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/dist/skills/ui-styling/references/canvas-design-system.md +320 -0
- package/dist/skills/ui-styling/references/shadcn-accessibility.md +471 -0
- package/dist/skills/ui-styling/references/shadcn-components.md +424 -0
- package/dist/skills/ui-styling/references/shadcn-theming.md +373 -0
- package/dist/skills/ui-styling/references/tailwind-customization.md +483 -0
- package/dist/skills/ui-styling/references/tailwind-responsive.md +382 -0
- package/dist/skills/ui-styling/references/tailwind-utilities.md +455 -0
- package/dist/skills/ui-styling/scripts/.coverage +0 -0
- package/dist/skills/ui-styling/scripts/requirements.txt +17 -0
- package/dist/skills/ui-styling/scripts/shadcn_add.py +292 -0
- package/dist/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
- package/dist/skills/ui-styling/scripts/tests/coverage-ui.json +1392 -0
- package/dist/skills/ui-styling/scripts/tests/requirements.txt +3 -0
- package/dist/skills/ui-styling/scripts/tests/test_shadcn_add.py +266 -0
- package/dist/skills/ui-styling/scripts/tests/test_tailwind_config_gen.py +336 -0
- package/dist/skills/ui-ux-pro-max/SKILL.md +659 -0
- package/dist/skills/ui-ux-pro-max/data/_sync_all.py +414 -0
- package/dist/skills/ui-ux-pro-max/data/app-interface.csv +31 -0
- package/dist/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/dist/skills/ui-ux-pro-max/data/colors.csv +162 -0
- package/dist/skills/ui-ux-pro-max/data/design.csv +1776 -0
- package/dist/skills/ui-ux-pro-max/data/draft.csv +1779 -0
- package/dist/skills/ui-ux-pro-max/data/google-fonts.csv +1924 -0
- package/dist/skills/ui-ux-pro-max/data/icons.csv +106 -0
- package/dist/skills/ui-ux-pro-max/data/landing.csv +35 -0
- package/dist/skills/ui-ux-pro-max/data/products.csv +162 -0
- package/dist/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/dist/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/dist/skills/ui-ux-pro-max/data/styles.csv +85 -0
- package/dist/skills/ui-ux-pro-max/data/typography.csv +74 -0
- package/dist/skills/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
- package/dist/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/dist/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-314.pyc +0 -0
- package/dist/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-314.pyc +0 -0
- package/dist/skills/ui-ux-pro-max/scripts/core.py +247 -0
- package/dist/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/dist/skills/ui-ux-pro-max/scripts/search.py +114 -0
- package/dist/skills/vercel-react-best-practices/AGENTS.md +2934 -0
- package/dist/skills/vercel-react-best-practices/README.md +123 -0
- package/dist/skills/vercel-react-best-practices/SKILL.md +136 -0
- package/dist/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/dist/skills/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
- package/dist/skills/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
- package/dist/skills/vercel-react-best-practices/rules/async-api-routes.md +38 -0
- package/dist/skills/vercel-react-best-practices/rules/async-defer-await.md +80 -0
- package/dist/skills/vercel-react-best-practices/rules/async-dependencies.md +51 -0
- package/dist/skills/vercel-react-best-practices/rules/async-parallel.md +28 -0
- package/dist/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/dist/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/dist/skills/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
- package/dist/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/dist/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/dist/skills/vercel-react-best-practices/rules/bundle-preload.md +50 -0
- package/dist/skills/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
- package/dist/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/dist/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/dist/skills/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
- package/dist/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
- package/dist/skills/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
- package/dist/skills/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
- package/dist/skills/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
- package/dist/skills/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
- package/dist/skills/vercel-react-best-practices/rules/js-early-exit.md +50 -0
- package/dist/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/dist/skills/vercel-react-best-practices/rules/js-index-maps.md +37 -0
- package/dist/skills/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
- package/dist/skills/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
- package/dist/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/dist/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/dist/skills/vercel-react-best-practices/rules/rendering-activity.md +26 -0
- package/dist/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/dist/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/dist/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/dist/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/dist/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/dist/skills/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
- package/dist/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/dist/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-memo.md +44 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
- package/dist/skills/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
- package/dist/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/dist/skills/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
- package/dist/skills/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
- package/dist/skills/vercel-react-best-practices/rules/server-cache-react.md +76 -0
- package/dist/skills/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
- package/dist/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/dist/skills/vercel-react-best-practices/rules/server-serialization.md +38 -0
- package/dist/skills/web-animation-design/PRACTICAL-TIPS.md +304 -0
- package/dist/skills/web-animation-design/SKILL.md +336 -0
- package/dist/skills/web-design-guidelines/SKILL.md +39 -0
- package/dist/src/agents/create-constants-agent.d.ts +6 -0
- package/dist/src/agents/create-constants-agent.d.ts.map +1 -0
- package/dist/src/agents/create-constants-agent.js +42 -0
- package/dist/src/agents/create-constants-agent.js.map +1 -0
- package/dist/src/agents/create-landing-page-agent.d.ts +4 -0
- package/dist/src/agents/create-landing-page-agent.d.ts.map +1 -0
- package/dist/src/agents/create-landing-page-agent.js +62 -0
- package/dist/src/agents/create-landing-page-agent.js.map +1 -0
- package/dist/src/agents/create-narrative-agent.d.ts +4 -0
- package/dist/src/agents/create-narrative-agent.d.ts.map +1 -0
- package/dist/src/agents/create-narrative-agent.js +36 -0
- package/dist/src/agents/create-narrative-agent.js.map +1 -0
- package/dist/src/agents/create-pipeline.d.ts +9 -0
- package/dist/src/agents/create-pipeline.d.ts.map +1 -0
- package/dist/src/agents/create-pipeline.js +28 -0
- package/dist/src/agents/create-pipeline.js.map +1 -0
- package/dist/src/agents/create-router-agent.d.ts +4 -0
- package/dist/src/agents/create-router-agent.d.ts.map +1 -0
- package/dist/src/agents/create-router-agent.js +46 -0
- package/dist/src/agents/create-router-agent.js.map +1 -0
- package/dist/src/agents/create-theme-agent.d.ts +4 -0
- package/dist/src/agents/create-theme-agent.d.ts.map +1 -0
- package/dist/src/agents/create-theme-agent.js +105 -0
- package/dist/src/agents/create-theme-agent.js.map +1 -0
- package/dist/src/agents/create-validation-agent.d.ts +4 -0
- package/dist/src/agents/create-validation-agent.d.ts.map +1 -0
- package/dist/src/agents/create-validation-agent.js +36 -0
- package/dist/src/agents/create-validation-agent.js.map +1 -0
- package/dist/src/agents/scaffold-agent.d.ts +5 -0
- package/dist/src/agents/scaffold-agent.d.ts.map +1 -0
- package/dist/src/agents/scaffold-agent.js +11 -0
- package/dist/src/agents/scaffold-agent.js.map +1 -0
- package/dist/src/commands/generate-react-app.d.ts +27 -0
- package/dist/src/commands/generate-react-app.d.ts.map +1 -0
- package/dist/src/commands/generate-react-app.js +92 -0
- package/dist/src/commands/generate-react-app.js.map +1 -0
- package/dist/src/config.d.ts +3 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/config.js +15 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/prompts/build-narrative-context.d.ts +3 -0
- package/dist/src/prompts/build-narrative-context.d.ts.map +1 -0
- package/dist/src/prompts/build-narrative-context.js +103 -0
- package/dist/src/prompts/build-narrative-context.js.map +1 -0
- package/dist/src/prompts/landing-page-system.d.ts +2 -0
- package/dist/src/prompts/landing-page-system.d.ts.map +1 -0
- package/dist/src/prompts/landing-page-system.js +63 -0
- package/dist/src/prompts/landing-page-system.js.map +1 -0
- package/dist/src/prompts/narrative-system.d.ts +2 -0
- package/dist/src/prompts/narrative-system.d.ts.map +1 -0
- package/dist/src/prompts/narrative-system.js +52 -0
- package/dist/src/prompts/narrative-system.js.map +1 -0
- package/dist/src/prompts/router-system.d.ts +2 -0
- package/dist/src/prompts/router-system.d.ts.map +1 -0
- package/dist/src/prompts/router-system.js +35 -0
- package/dist/src/prompts/router-system.js.map +1 -0
- package/dist/src/prompts/theme-system.d.ts +2 -0
- package/dist/src/prompts/theme-system.d.ts.map +1 -0
- package/dist/src/prompts/theme-system.js +126 -0
- package/dist/src/prompts/theme-system.js.map +1 -0
- package/dist/src/prompts/validation-system.d.ts +2 -0
- package/dist/src/prompts/validation-system.d.ts.map +1 -0
- package/dist/src/prompts/validation-system.js +28 -0
- package/dist/src/prompts/validation-system.js.map +1 -0
- package/dist/src/tools/check-imports.d.ts +6 -0
- package/dist/src/tools/check-imports.d.ts.map +1 -0
- package/dist/src/tools/check-imports.js +129 -0
- package/dist/src/tools/check-imports.js.map +1 -0
- package/dist/src/tools/exit-loop.d.ts +6 -0
- package/dist/src/tools/exit-loop.d.ts.map +1 -0
- package/dist/src/tools/exit-loop.js +12 -0
- package/dist/src/tools/exit-loop.js.map +1 -0
- package/dist/src/tools/list-files.d.ts +4 -0
- package/dist/src/tools/list-files.d.ts.map +1 -0
- package/dist/src/tools/list-files.js +36 -0
- package/dist/src/tools/list-files.js.map +1 -0
- package/dist/src/tools/read-file.d.ts +10 -0
- package/dist/src/tools/read-file.d.ts.map +1 -0
- package/dist/src/tools/read-file.js +21 -0
- package/dist/src/tools/read-file.js.map +1 -0
- package/dist/src/tools/run-eslint.d.ts +6 -0
- package/dist/src/tools/run-eslint.d.ts.map +1 -0
- package/dist/src/tools/run-eslint.js +27 -0
- package/dist/src/tools/run-eslint.js.map +1 -0
- package/dist/src/tools/run-tsc.d.ts +6 -0
- package/dist/src/tools/run-tsc.d.ts.map +1 -0
- package/dist/src/tools/run-tsc.js +27 -0
- package/dist/src/tools/run-tsc.js.map +1 -0
- package/dist/src/tools/write-file.d.ts +15 -0
- package/dist/src/tools/write-file.d.ts.map +1 -0
- package/dist/src/tools/write-file.js +44 -0
- package/dist/src/tools/write-file.js.map +1 -0
- package/dist/src/types.d.ts +330 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +102 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils/create-skill-tool.d.ts +2 -0
- package/dist/src/utils/create-skill-tool.d.ts.map +1 -0
- package/dist/src/utils/create-skill-tool.js +13 -0
- package/dist/src/utils/create-skill-tool.js.map +1 -0
- package/dist/src/utils/parse-model.d.ts +3 -0
- package/dist/src/utils/parse-model.d.ts.map +1 -0
- package/dist/src/utils/parse-model.js +7 -0
- package/dist/src/utils/parse-model.js.map +1 -0
- package/dist/src/utils/slugify.d.ts +2 -0
- package/dist/src/utils/slugify.d.ts.map +1 -0
- package/dist/src/utils/slugify.js +7 -0
- package/dist/src/utils/slugify.js.map +1 -0
- package/dist/starter/.env.example +1 -0
- package/dist/starter/README.md +73 -0
- package/dist/starter/components.json +21 -0
- package/dist/starter/eslint.config.js +23 -0
- package/dist/starter/index.html +13 -0
- package/dist/starter/package-lock.json +7590 -0
- package/dist/starter/package.json +57 -0
- package/dist/starter/pnpm-lock.yaml +4479 -0
- package/dist/starter/public/favicon.svg +1 -0
- package/dist/starter/public/icons.svg +24 -0
- package/dist/starter/src/App.tsx +7 -0
- package/dist/starter/src/assets/hero.png +0 -0
- package/dist/starter/src/assets/vite.svg +1 -0
- package/dist/starter/src/components/error-boundary.tsx +38 -0
- package/dist/starter/src/components/not-found.tsx +16 -0
- package/dist/starter/src/components/ui/accordion.tsx +51 -0
- package/dist/starter/src/components/ui/alert-dialog.tsx +162 -0
- package/dist/starter/src/components/ui/alert.tsx +49 -0
- package/dist/starter/src/components/ui/aspect-ratio.tsx +9 -0
- package/dist/starter/src/components/ui/avatar.tsx +87 -0
- package/dist/starter/src/components/ui/badge.tsx +40 -0
- package/dist/starter/src/components/ui/breadcrumb.tsx +92 -0
- package/dist/starter/src/components/ui/button-group.tsx +74 -0
- package/dist/starter/src/components/ui/button.tsx +62 -0
- package/dist/starter/src/components/ui/calendar.tsx +158 -0
- package/dist/starter/src/components/ui/card.tsx +56 -0
- package/dist/starter/src/components/ui/carousel.tsx +215 -0
- package/dist/starter/src/components/ui/chart.tsx +296 -0
- package/dist/starter/src/components/ui/checkbox.tsx +29 -0
- package/dist/starter/src/components/ui/collapsible.tsx +15 -0
- package/dist/starter/src/components/ui/combobox.tsx +266 -0
- package/dist/starter/src/components/ui/command.tsx +136 -0
- package/dist/starter/src/components/ui/context-menu.tsx +211 -0
- package/dist/starter/src/components/ui/dialog.tsx +135 -0
- package/dist/starter/src/components/ui/direction.tsx +18 -0
- package/dist/starter/src/components/ui/drawer.tsx +106 -0
- package/dist/starter/src/components/ui/dropdown-menu.tsx +219 -0
- package/dist/starter/src/components/ui/empty.tsx +85 -0
- package/dist/starter/src/components/ui/field.tsx +225 -0
- package/dist/starter/src/components/ui/form.tsx +135 -0
- package/dist/starter/src/components/ui/hover-card.tsx +36 -0
- package/dist/starter/src/components/ui/input-group.tsx +146 -0
- package/dist/starter/src/components/ui/input-otp.tsx +68 -0
- package/dist/starter/src/components/ui/input.tsx +21 -0
- package/dist/starter/src/components/ui/item.tsx +157 -0
- package/dist/starter/src/components/ui/kbd.tsx +22 -0
- package/dist/starter/src/components/ui/label.tsx +19 -0
- package/dist/starter/src/components/ui/menubar.tsx +236 -0
- package/dist/starter/src/components/ui/native-select.tsx +44 -0
- package/dist/starter/src/components/ui/navigation-menu.tsx +142 -0
- package/dist/starter/src/components/ui/pagination.tsx +98 -0
- package/dist/starter/src/components/ui/popover.tsx +52 -0
- package/dist/starter/src/components/ui/progress.tsx +24 -0
- package/dist/starter/src/components/ui/radio-group.tsx +31 -0
- package/dist/starter/src/components/ui/resizable.tsx +47 -0
- package/dist/starter/src/components/ui/scroll-area.tsx +46 -0
- package/dist/starter/src/components/ui/select.tsx +162 -0
- package/dist/starter/src/components/ui/separator.tsx +26 -0
- package/dist/starter/src/components/ui/sheet.tsx +107 -0
- package/dist/starter/src/components/ui/sidebar.tsx +674 -0
- package/dist/starter/src/components/ui/skeleton.tsx +7 -0
- package/dist/starter/src/components/ui/slider.tsx +54 -0
- package/dist/starter/src/components/ui/sonner.tsx +31 -0
- package/dist/starter/src/components/ui/spinner.tsx +9 -0
- package/dist/starter/src/components/ui/switch.tsx +33 -0
- package/dist/starter/src/components/ui/table.tsx +75 -0
- package/dist/starter/src/components/ui/tabs.tsx +69 -0
- package/dist/starter/src/components/ui/textarea.tsx +18 -0
- package/dist/starter/src/components/ui/toggle-group.tsx +79 -0
- package/dist/starter/src/components/ui/toggle.tsx +41 -0
- package/dist/starter/src/components/ui/tooltip.tsx +42 -0
- package/dist/starter/src/hooks/use-mobile.ts +19 -0
- package/dist/starter/src/index.css +93 -0
- package/dist/starter/src/lib/graphql-client.ts +5 -0
- package/dist/starter/src/lib/providers.tsx +23 -0
- package/dist/starter/src/lib/utils.ts +6 -0
- package/dist/starter/src/main.tsx +16 -0
- package/dist/starter/tsconfig.app.json +32 -0
- package/dist/starter/tsconfig.json +4 -0
- package/dist/starter/tsconfig.node.json +26 -0
- package/dist/starter/vite.config.ts +16 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +47 -0
- package/skills/design/SKILL.md +302 -0
- package/skills/design/data/cip/deliverables.csv +51 -0
- package/skills/design/data/cip/industries.csv +21 -0
- package/skills/design/data/cip/mockup-contexts.csv +21 -0
- package/skills/design/data/cip/styles.csv +21 -0
- package/skills/design/data/icon/styles.csv +16 -0
- package/skills/design/data/logo/colors.csv +56 -0
- package/skills/design/data/logo/industries.csv +56 -0
- package/skills/design/data/logo/styles.csv +56 -0
- package/skills/design/references/banner-sizes-and-styles.md +118 -0
- package/skills/design/references/cip-deliverable-guide.md +95 -0
- package/skills/design/references/cip-design.md +121 -0
- package/skills/design/references/cip-prompt-engineering.md +84 -0
- package/skills/design/references/cip-style-guide.md +68 -0
- package/skills/design/references/design-routing.md +207 -0
- package/skills/design/references/icon-design.md +122 -0
- package/skills/design/references/logo-color-psychology.md +101 -0
- package/skills/design/references/logo-design.md +92 -0
- package/skills/design/references/logo-prompt-engineering.md +158 -0
- package/skills/design/references/logo-style-guide.md +109 -0
- package/skills/design/references/slides-copywriting-formulas.md +84 -0
- package/skills/design/references/slides-create.md +4 -0
- package/skills/design/references/slides-html-template.md +295 -0
- package/skills/design/references/slides-layout-patterns.md +137 -0
- package/skills/design/references/slides-strategies.md +94 -0
- package/skills/design/references/slides.md +42 -0
- package/skills/design/references/social-photos-design.md +329 -0
- package/skills/design/scripts/cip/core.py +215 -0
- package/skills/design/scripts/cip/generate.py +484 -0
- package/skills/design/scripts/cip/render-html.py +424 -0
- package/skills/design/scripts/cip/search.py +127 -0
- package/skills/design/scripts/icon/generate.py +487 -0
- package/skills/design/scripts/logo/core.py +175 -0
- package/skills/design/scripts/logo/generate.py +362 -0
- package/skills/design/scripts/logo/search.py +114 -0
- package/skills/design-system/SKILL.md +244 -0
- package/skills/design-system/data/slide-backgrounds.csv +11 -0
- package/skills/design-system/data/slide-charts.csv +26 -0
- package/skills/design-system/data/slide-color-logic.csv +14 -0
- package/skills/design-system/data/slide-copy.csv +26 -0
- package/skills/design-system/data/slide-layout-logic.csv +16 -0
- package/skills/design-system/data/slide-layouts.csv +26 -0
- package/skills/design-system/data/slide-strategies.csv +16 -0
- package/skills/design-system/data/slide-typography.csv +15 -0
- package/skills/design-system/references/component-specs.md +236 -0
- package/skills/design-system/references/component-tokens.md +214 -0
- package/skills/design-system/references/primitive-tokens.md +203 -0
- package/skills/design-system/references/semantic-tokens.md +215 -0
- package/skills/design-system/references/states-and-variants.md +241 -0
- package/skills/design-system/references/tailwind-integration.md +251 -0
- package/skills/design-system/references/token-architecture.md +224 -0
- package/skills/design-system/scripts/embed-tokens.cjs +97 -0
- package/skills/design-system/scripts/fetch-background.py +317 -0
- package/skills/design-system/scripts/generate-slide.py +753 -0
- package/skills/design-system/scripts/generate-tokens.cjs +213 -0
- package/skills/design-system/scripts/html-token-validator.py +327 -0
- package/skills/design-system/scripts/search-slides.py +218 -0
- package/skills/design-system/scripts/slide-token-validator.py +35 -0
- package/skills/design-system/scripts/slide_search_core.py +453 -0
- package/skills/design-system/scripts/validate-tokens.cjs +251 -0
- package/skills/design-system/templates/design-tokens-starter.json +143 -0
- package/skills/design-taste-frontend/SKILL.md +79 -0
- package/skills/emil-design-engineering/SKILL.md +108 -0
- package/skills/emil-design-engineering/animations.md +266 -0
- package/skills/emil-design-engineering/component-design.md +382 -0
- package/skills/emil-design-engineering/forms-controls.md +261 -0
- package/skills/emil-design-engineering/marketing.md +160 -0
- package/skills/emil-design-engineering/performance.md +222 -0
- package/skills/emil-design-engineering/touch-accessibility.md +236 -0
- package/skills/emil-design-engineering/ui-polish.md +303 -0
- package/skills/frontend-design/SKILL.md +42 -0
- package/skills/full-output-enforcement/SKILL.md +32 -0
- package/skills/high-end-visual-design/SKILL.md +98 -0
- package/skills/react-doctor/AGENTS.md +15 -0
- package/skills/react-doctor/SKILL.md +19 -0
- package/skills/redesign-existing-projects/SKILL.md +178 -0
- package/skills/ui-styling/LICENSE.txt +202 -0
- package/skills/ui-styling/SKILL.md +324 -0
- package/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/skills/ui-styling/references/canvas-design-system.md +320 -0
- package/skills/ui-styling/references/shadcn-accessibility.md +471 -0
- package/skills/ui-styling/references/shadcn-components.md +424 -0
- package/skills/ui-styling/references/shadcn-theming.md +373 -0
- package/skills/ui-styling/references/tailwind-customization.md +483 -0
- package/skills/ui-styling/references/tailwind-responsive.md +382 -0
- package/skills/ui-styling/references/tailwind-utilities.md +455 -0
- package/skills/ui-styling/scripts/.coverage +0 -0
- package/skills/ui-styling/scripts/requirements.txt +17 -0
- package/skills/ui-styling/scripts/shadcn_add.py +292 -0
- package/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
- package/skills/ui-styling/scripts/tests/coverage-ui.json +1392 -0
- package/skills/ui-styling/scripts/tests/requirements.txt +3 -0
- package/skills/ui-styling/scripts/tests/test_shadcn_add.py +266 -0
- package/skills/ui-styling/scripts/tests/test_tailwind_config_gen.py +336 -0
- package/skills/ui-ux-pro-max/SKILL.md +659 -0
- package/skills/ui-ux-pro-max/data/_sync_all.py +414 -0
- package/skills/ui-ux-pro-max/data/app-interface.csv +31 -0
- package/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/skills/ui-ux-pro-max/data/colors.csv +162 -0
- package/skills/ui-ux-pro-max/data/design.csv +1776 -0
- package/skills/ui-ux-pro-max/data/draft.csv +1779 -0
- package/skills/ui-ux-pro-max/data/google-fonts.csv +1924 -0
- package/skills/ui-ux-pro-max/data/icons.csv +106 -0
- package/skills/ui-ux-pro-max/data/landing.csv +35 -0
- package/skills/ui-ux-pro-max/data/products.csv +162 -0
- package/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/skills/ui-ux-pro-max/data/styles.csv +85 -0
- package/skills/ui-ux-pro-max/data/typography.csv +74 -0
- package/skills/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
- package/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-314.pyc +0 -0
- package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-314.pyc +0 -0
- package/skills/ui-ux-pro-max/scripts/core.py +247 -0
- package/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/skills/ui-ux-pro-max/scripts/search.py +114 -0
- package/skills/vercel-react-best-practices/AGENTS.md +2934 -0
- package/skills/vercel-react-best-practices/README.md +123 -0
- package/skills/vercel-react-best-practices/SKILL.md +136 -0
- package/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/skills/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
- package/skills/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
- package/skills/vercel-react-best-practices/rules/async-api-routes.md +38 -0
- package/skills/vercel-react-best-practices/rules/async-defer-await.md +80 -0
- package/skills/vercel-react-best-practices/rules/async-dependencies.md +51 -0
- package/skills/vercel-react-best-practices/rules/async-parallel.md +28 -0
- package/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/skills/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
- package/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/skills/vercel-react-best-practices/rules/bundle-preload.md +50 -0
- package/skills/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
- package/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/skills/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
- package/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
- package/skills/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
- package/skills/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
- package/skills/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
- package/skills/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
- package/skills/vercel-react-best-practices/rules/js-early-exit.md +50 -0
- package/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/skills/vercel-react-best-practices/rules/js-index-maps.md +37 -0
- package/skills/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
- package/skills/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
- package/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/skills/vercel-react-best-practices/rules/rendering-activity.md +26 -0
- package/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/skills/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
- package/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
- package/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/skills/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
- package/skills/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
- package/skills/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
- package/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
- package/skills/vercel-react-best-practices/rules/rerender-memo.md +44 -0
- package/skills/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
- package/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
- package/skills/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
- package/skills/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
- package/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/skills/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
- package/skills/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
- package/skills/vercel-react-best-practices/rules/server-cache-react.md +76 -0
- package/skills/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
- package/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/skills/vercel-react-best-practices/rules/server-serialization.md +38 -0
- package/skills/web-animation-design/PRACTICAL-TIPS.md +304 -0
- package/skills/web-animation-design/SKILL.md +336 -0
- package/skills/web-design-guidelines/SKILL.md +39 -0
- package/starter/.env.example +1 -0
- package/starter/README.md +73 -0
- package/starter/components.json +21 -0
- package/starter/eslint.config.js +23 -0
- package/starter/index.html +13 -0
- package/starter/package-lock.json +7590 -0
- package/starter/package.json +57 -0
- package/starter/pnpm-lock.yaml +4479 -0
- package/starter/public/favicon.svg +1 -0
- package/starter/public/icons.svg +24 -0
- package/starter/src/App.tsx +7 -0
- package/starter/src/assets/hero.png +0 -0
- package/starter/src/assets/vite.svg +1 -0
- package/starter/src/components/error-boundary.tsx +38 -0
- package/starter/src/components/not-found.tsx +16 -0
- package/starter/src/components/ui/accordion.tsx +51 -0
- package/starter/src/components/ui/alert-dialog.tsx +162 -0
- package/starter/src/components/ui/alert.tsx +49 -0
- package/starter/src/components/ui/aspect-ratio.tsx +9 -0
- package/starter/src/components/ui/avatar.tsx +87 -0
- package/starter/src/components/ui/badge.tsx +40 -0
- package/starter/src/components/ui/breadcrumb.tsx +92 -0
- package/starter/src/components/ui/button-group.tsx +74 -0
- package/starter/src/components/ui/button.tsx +62 -0
- package/starter/src/components/ui/calendar.tsx +158 -0
- package/starter/src/components/ui/card.tsx +56 -0
- package/starter/src/components/ui/carousel.tsx +215 -0
- package/starter/src/components/ui/chart.tsx +296 -0
- package/starter/src/components/ui/checkbox.tsx +29 -0
- package/starter/src/components/ui/collapsible.tsx +15 -0
- package/starter/src/components/ui/combobox.tsx +266 -0
- package/starter/src/components/ui/command.tsx +136 -0
- package/starter/src/components/ui/context-menu.tsx +211 -0
- package/starter/src/components/ui/dialog.tsx +135 -0
- package/starter/src/components/ui/direction.tsx +18 -0
- package/starter/src/components/ui/drawer.tsx +106 -0
- package/starter/src/components/ui/dropdown-menu.tsx +219 -0
- package/starter/src/components/ui/empty.tsx +85 -0
- package/starter/src/components/ui/field.tsx +225 -0
- package/starter/src/components/ui/form.tsx +135 -0
- package/starter/src/components/ui/hover-card.tsx +36 -0
- package/starter/src/components/ui/input-group.tsx +146 -0
- package/starter/src/components/ui/input-otp.tsx +68 -0
- package/starter/src/components/ui/input.tsx +21 -0
- package/starter/src/components/ui/item.tsx +157 -0
- package/starter/src/components/ui/kbd.tsx +22 -0
- package/starter/src/components/ui/label.tsx +19 -0
- package/starter/src/components/ui/menubar.tsx +236 -0
- package/starter/src/components/ui/native-select.tsx +44 -0
- package/starter/src/components/ui/navigation-menu.tsx +142 -0
- package/starter/src/components/ui/pagination.tsx +98 -0
- package/starter/src/components/ui/popover.tsx +52 -0
- package/starter/src/components/ui/progress.tsx +24 -0
- package/starter/src/components/ui/radio-group.tsx +31 -0
- package/starter/src/components/ui/resizable.tsx +47 -0
- package/starter/src/components/ui/scroll-area.tsx +46 -0
- package/starter/src/components/ui/select.tsx +162 -0
- package/starter/src/components/ui/separator.tsx +26 -0
- package/starter/src/components/ui/sheet.tsx +107 -0
- package/starter/src/components/ui/sidebar.tsx +674 -0
- package/starter/src/components/ui/skeleton.tsx +7 -0
- package/starter/src/components/ui/slider.tsx +54 -0
- package/starter/src/components/ui/sonner.tsx +31 -0
- package/starter/src/components/ui/spinner.tsx +9 -0
- package/starter/src/components/ui/switch.tsx +33 -0
- package/starter/src/components/ui/table.tsx +75 -0
- package/starter/src/components/ui/tabs.tsx +69 -0
- package/starter/src/components/ui/textarea.tsx +18 -0
- package/starter/src/components/ui/toggle-group.tsx +79 -0
- package/starter/src/components/ui/toggle.tsx +41 -0
- package/starter/src/components/ui/tooltip.tsx +42 -0
- package/starter/src/hooks/use-mobile.ts +19 -0
- package/starter/src/index.css +93 -0
- package/starter/src/lib/graphql-client.ts +5 -0
- package/starter/src/lib/providers.tsx +23 -0
- package/starter/src/lib/utils.ts +6 -0
- package/starter/src/main.tsx +16 -0
- package/starter/tsconfig.app.json +32 -0
- package/starter/tsconfig.json +4 -0
- package/starter/tsconfig.node.json +26 -0
- package/starter/vite.config.ts +16 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://design-tokens.org/schema.json",
|
|
3
|
+
"primitive": {
|
|
4
|
+
"color": {
|
|
5
|
+
"gray": {
|
|
6
|
+
"50": { "$value": "#F9FAFB", "$type": "color" },
|
|
7
|
+
"100": { "$value": "#F3F4F6", "$type": "color" },
|
|
8
|
+
"200": { "$value": "#E5E7EB", "$type": "color" },
|
|
9
|
+
"300": { "$value": "#D1D5DB", "$type": "color" },
|
|
10
|
+
"400": { "$value": "#9CA3AF", "$type": "color" },
|
|
11
|
+
"500": { "$value": "#6B7280", "$type": "color" },
|
|
12
|
+
"600": { "$value": "#4B5563", "$type": "color" },
|
|
13
|
+
"700": { "$value": "#374151", "$type": "color" },
|
|
14
|
+
"800": { "$value": "#1F2937", "$type": "color" },
|
|
15
|
+
"900": { "$value": "#111827", "$type": "color" },
|
|
16
|
+
"950": { "$value": "#030712", "$type": "color" }
|
|
17
|
+
},
|
|
18
|
+
"blue": {
|
|
19
|
+
"50": { "$value": "#EFF6FF", "$type": "color" },
|
|
20
|
+
"500": { "$value": "#3B82F6", "$type": "color" },
|
|
21
|
+
"600": { "$value": "#2563EB", "$type": "color" },
|
|
22
|
+
"700": { "$value": "#1D4ED8", "$type": "color" },
|
|
23
|
+
"800": { "$value": "#1E40AF", "$type": "color" }
|
|
24
|
+
},
|
|
25
|
+
"red": {
|
|
26
|
+
"500": { "$value": "#EF4444", "$type": "color" },
|
|
27
|
+
"600": { "$value": "#DC2626", "$type": "color" },
|
|
28
|
+
"700": { "$value": "#B91C1C", "$type": "color" }
|
|
29
|
+
},
|
|
30
|
+
"green": {
|
|
31
|
+
"500": { "$value": "#22C55E", "$type": "color" },
|
|
32
|
+
"600": { "$value": "#16A34A", "$type": "color" }
|
|
33
|
+
},
|
|
34
|
+
"yellow": {
|
|
35
|
+
"500": { "$value": "#EAB308", "$type": "color" }
|
|
36
|
+
},
|
|
37
|
+
"white": { "$value": "#FFFFFF", "$type": "color" }
|
|
38
|
+
},
|
|
39
|
+
"spacing": {
|
|
40
|
+
"0": { "$value": "0", "$type": "dimension" },
|
|
41
|
+
"1": { "$value": "0.25rem", "$type": "dimension" },
|
|
42
|
+
"2": { "$value": "0.5rem", "$type": "dimension" },
|
|
43
|
+
"3": { "$value": "0.75rem", "$type": "dimension" },
|
|
44
|
+
"4": { "$value": "1rem", "$type": "dimension" },
|
|
45
|
+
"5": { "$value": "1.25rem", "$type": "dimension" },
|
|
46
|
+
"6": { "$value": "1.5rem", "$type": "dimension" },
|
|
47
|
+
"8": { "$value": "2rem", "$type": "dimension" },
|
|
48
|
+
"10": { "$value": "2.5rem", "$type": "dimension" },
|
|
49
|
+
"12": { "$value": "3rem", "$type": "dimension" },
|
|
50
|
+
"16": { "$value": "4rem", "$type": "dimension" }
|
|
51
|
+
},
|
|
52
|
+
"fontSize": {
|
|
53
|
+
"xs": { "$value": "0.75rem", "$type": "dimension" },
|
|
54
|
+
"sm": { "$value": "0.875rem", "$type": "dimension" },
|
|
55
|
+
"base": { "$value": "1rem", "$type": "dimension" },
|
|
56
|
+
"lg": { "$value": "1.125rem", "$type": "dimension" },
|
|
57
|
+
"xl": { "$value": "1.25rem", "$type": "dimension" },
|
|
58
|
+
"2xl": { "$value": "1.5rem", "$type": "dimension" },
|
|
59
|
+
"3xl": { "$value": "1.875rem", "$type": "dimension" },
|
|
60
|
+
"4xl": { "$value": "2.25rem", "$type": "dimension" }
|
|
61
|
+
},
|
|
62
|
+
"radius": {
|
|
63
|
+
"none": { "$value": "0", "$type": "dimension" },
|
|
64
|
+
"sm": { "$value": "0.125rem", "$type": "dimension" },
|
|
65
|
+
"default": { "$value": "0.25rem", "$type": "dimension" },
|
|
66
|
+
"md": { "$value": "0.375rem", "$type": "dimension" },
|
|
67
|
+
"lg": { "$value": "0.5rem", "$type": "dimension" },
|
|
68
|
+
"xl": { "$value": "0.75rem", "$type": "dimension" },
|
|
69
|
+
"full": { "$value": "9999px", "$type": "dimension" }
|
|
70
|
+
},
|
|
71
|
+
"shadow": {
|
|
72
|
+
"none": { "$value": "none", "$type": "shadow" },
|
|
73
|
+
"sm": { "$value": "0 1px 2px 0 rgb(0 0 0 / 0.05)", "$type": "shadow" },
|
|
74
|
+
"default": { "$value": "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)", "$type": "shadow" },
|
|
75
|
+
"md": { "$value": "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)", "$type": "shadow" },
|
|
76
|
+
"lg": { "$value": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)", "$type": "shadow" }
|
|
77
|
+
},
|
|
78
|
+
"duration": {
|
|
79
|
+
"fast": { "$value": "150ms", "$type": "duration" },
|
|
80
|
+
"normal": { "$value": "200ms", "$type": "duration" },
|
|
81
|
+
"slow": { "$value": "300ms", "$type": "duration" }
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"semantic": {
|
|
85
|
+
"color": {
|
|
86
|
+
"background": { "$value": "{primitive.color.gray.50}", "$type": "color" },
|
|
87
|
+
"foreground": { "$value": "{primitive.color.gray.900}", "$type": "color" },
|
|
88
|
+
"primary": { "$value": "{primitive.color.blue.600}", "$type": "color" },
|
|
89
|
+
"primary-hover": { "$value": "{primitive.color.blue.700}", "$type": "color" },
|
|
90
|
+
"primary-foreground": { "$value": "{primitive.color.white}", "$type": "color" },
|
|
91
|
+
"secondary": { "$value": "{primitive.color.gray.100}", "$type": "color" },
|
|
92
|
+
"secondary-foreground": { "$value": "{primitive.color.gray.900}", "$type": "color" },
|
|
93
|
+
"muted": { "$value": "{primitive.color.gray.100}", "$type": "color" },
|
|
94
|
+
"muted-foreground": { "$value": "{primitive.color.gray.500}", "$type": "color" },
|
|
95
|
+
"destructive": { "$value": "{primitive.color.red.600}", "$type": "color" },
|
|
96
|
+
"destructive-foreground": { "$value": "{primitive.color.white}", "$type": "color" },
|
|
97
|
+
"border": { "$value": "{primitive.color.gray.200}", "$type": "color" },
|
|
98
|
+
"ring": { "$value": "{primitive.color.blue.500}", "$type": "color" }
|
|
99
|
+
},
|
|
100
|
+
"spacing": {
|
|
101
|
+
"component": { "$value": "{primitive.spacing.4}", "$type": "dimension" },
|
|
102
|
+
"section": { "$value": "{primitive.spacing.12}", "$type": "dimension" }
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"component": {
|
|
106
|
+
"button": {
|
|
107
|
+
"bg": { "$value": "{semantic.color.primary}", "$type": "color" },
|
|
108
|
+
"fg": { "$value": "{semantic.color.primary-foreground}", "$type": "color" },
|
|
109
|
+
"hover-bg": { "$value": "{semantic.color.primary-hover}", "$type": "color" },
|
|
110
|
+
"padding-x": { "$value": "{primitive.spacing.4}", "$type": "dimension" },
|
|
111
|
+
"padding-y": { "$value": "{primitive.spacing.2}", "$type": "dimension" },
|
|
112
|
+
"radius": { "$value": "{primitive.radius.md}", "$type": "dimension" },
|
|
113
|
+
"font-size": { "$value": "{primitive.fontSize.sm}", "$type": "dimension" }
|
|
114
|
+
},
|
|
115
|
+
"input": {
|
|
116
|
+
"bg": { "$value": "{semantic.color.background}", "$type": "color" },
|
|
117
|
+
"border": { "$value": "{semantic.color.border}", "$type": "color" },
|
|
118
|
+
"focus-ring": { "$value": "{semantic.color.ring}", "$type": "color" },
|
|
119
|
+
"padding-x": { "$value": "{primitive.spacing.3}", "$type": "dimension" },
|
|
120
|
+
"padding-y": { "$value": "{primitive.spacing.2}", "$type": "dimension" },
|
|
121
|
+
"radius": { "$value": "{primitive.radius.md}", "$type": "dimension" }
|
|
122
|
+
},
|
|
123
|
+
"card": {
|
|
124
|
+
"bg": { "$value": "{primitive.color.white}", "$type": "color" },
|
|
125
|
+
"border": { "$value": "{semantic.color.border}", "$type": "color" },
|
|
126
|
+
"shadow": { "$value": "{primitive.shadow.default}", "$type": "shadow" },
|
|
127
|
+
"padding": { "$value": "{primitive.spacing.6}", "$type": "dimension" },
|
|
128
|
+
"radius": { "$value": "{primitive.radius.lg}", "$type": "dimension" }
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"dark": {
|
|
132
|
+
"semantic": {
|
|
133
|
+
"color": {
|
|
134
|
+
"background": { "$value": "{primitive.color.gray.950}", "$type": "color" },
|
|
135
|
+
"foreground": { "$value": "{primitive.color.gray.50}", "$type": "color" },
|
|
136
|
+
"secondary": { "$value": "{primitive.color.gray.800}", "$type": "color" },
|
|
137
|
+
"muted": { "$value": "{primitive.color.gray.800}", "$type": "color" },
|
|
138
|
+
"muted-foreground": { "$value": "{primitive.color.gray.400}", "$type": "color" },
|
|
139
|
+
"border": { "$value": "{primitive.color.gray.800}", "$type": "color" }
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design-taste-frontend
|
|
3
|
+
description: Senior UI/UX Engineer. Architect digital interfaces overriding default LLM biases. Enforces metric-based rules, strict component architecture, CSS hardware acceleration, and balanced design engineering.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# High-Agency Frontend Skill
|
|
7
|
+
|
|
8
|
+
## 1. ACTIVE BASELINE CONFIGURATION
|
|
9
|
+
* DESIGN_VARIANCE: 8 (1=Perfect Symmetry, 10=Artsy Chaos)
|
|
10
|
+
* VISUAL_DENSITY: 4 (1=Art Gallery/Airy, 10=Pilot Cockpit/Packed Data)
|
|
11
|
+
|
|
12
|
+
**AI Instruction:** The standard baseline for all generations is strictly set to these values (8, 4). Do not ask the user to edit this file. Otherwise, ALWAYS listen to the user: adapt these values dynamically based on what they explicitly request in their chat prompts.
|
|
13
|
+
|
|
14
|
+
## 2. DEFAULT ARCHITECTURE & CONVENTIONS
|
|
15
|
+
* **Framework & Interactivity:** React or Next.js.
|
|
16
|
+
* **Styling Policy:** Use Tailwind CSS (v3/v4) for 90% of styling.
|
|
17
|
+
* **ANTI-EMOJI POLICY [CRITICAL]:** NEVER use emojis in code, markup, text content, or alt text. Replace symbols with high-quality icons (lucide-react) or clean SVG primitives. Emojis are BANNED.
|
|
18
|
+
* **Responsiveness & Spacing:**
|
|
19
|
+
* Contain page layouts using `max-w-7xl mx-auto`.
|
|
20
|
+
* **Viewport Stability [CRITICAL]:** NEVER use `h-screen` for full-height Hero sections. ALWAYS use `min-h-[100dvh]`.
|
|
21
|
+
* **Grid over Flex-Math:** NEVER use complex flexbox percentage math. ALWAYS use CSS Grid.
|
|
22
|
+
|
|
23
|
+
## 3. DESIGN ENGINEERING DIRECTIVES (Bias Correction)
|
|
24
|
+
|
|
25
|
+
**Rule 1: Deterministic Typography**
|
|
26
|
+
* **Display/Headlines:** Default to `text-4xl md:text-6xl tracking-tighter leading-none`.
|
|
27
|
+
* **ANTI-SLOP:** Discourage `Inter` for "Premium" vibes. Use `Outfit`, `Geist`, or `Satoshi`.
|
|
28
|
+
* **Body/Paragraphs:** Default to `text-base text-gray-600 leading-relaxed max-w-[65ch]`.
|
|
29
|
+
|
|
30
|
+
**Rule 2: Color Calibration**
|
|
31
|
+
* Max 1 Accent Color. Saturation < 80%.
|
|
32
|
+
* **THE LILA BAN:** No purple button glows, no neon gradients. Use neutral bases (Zinc/Slate) with singular accents.
|
|
33
|
+
|
|
34
|
+
**Rule 3: Layout Diversification**
|
|
35
|
+
* **ANTI-CENTER BIAS:** Force "Split Screen" (50/50), "Left Aligned/Right Aligned", or "Asymmetric White-space" structures.
|
|
36
|
+
|
|
37
|
+
**Rule 4: Materiality & Shadows**
|
|
38
|
+
* Use cards ONLY when elevation communicates hierarchy. When a shadow is used, tint it to the background hue.
|
|
39
|
+
|
|
40
|
+
**Rule 5: Interactive UI States**
|
|
41
|
+
* **Loading:** Skeletal loaders matching layout sizes.
|
|
42
|
+
* **Empty States:** Beautifully composed empty states indicating how to populate data.
|
|
43
|
+
* **Error States:** Clear, inline error reporting.
|
|
44
|
+
* **Tactile Feedback:** On `:active`, use `-translate-y-[1px]` or `scale-[0.98]`.
|
|
45
|
+
|
|
46
|
+
**Rule 6: Data & Form Patterns**
|
|
47
|
+
* Label MUST sit above input. Use a standard `gap-2` for input blocks.
|
|
48
|
+
|
|
49
|
+
## 4. PERFORMANCE GUARDRAILS
|
|
50
|
+
* **Z-Index Restraint:** Use z-indexes strictly for systemic layer contexts (Navbars, Modals, Overlays).
|
|
51
|
+
|
|
52
|
+
## 6. AI TELLS (Forbidden Patterns)
|
|
53
|
+
|
|
54
|
+
### Visual & CSS
|
|
55
|
+
* **NO Neon/Outer Glows.** Use inner borders or subtle tinted shadows.
|
|
56
|
+
* **NO Pure Black.** Use Off-Black, Zinc-950, or Charcoal.
|
|
57
|
+
* **NO Oversaturated Accents.** Desaturate to blend with neutrals.
|
|
58
|
+
|
|
59
|
+
### Typography
|
|
60
|
+
* **NO Inter Font.** Use `Outfit`, `Geist`, or `Satoshi`.
|
|
61
|
+
* **NO Oversized H1s.** Control hierarchy with weight and color, not massive scale.
|
|
62
|
+
|
|
63
|
+
### Layout & Spacing
|
|
64
|
+
* **NO 3-Column Card Layouts.** Use 2-column Zig-Zag, asymmetric grid, or horizontal scroll.
|
|
65
|
+
|
|
66
|
+
### Content & Data
|
|
67
|
+
* **NO Generic Names.** No "John Doe" or "Jane Smith". Use creative, realistic names.
|
|
68
|
+
* **NO Fake Numbers.** Avoid `99.99%` or `50%`. Use organic data (`47.2%`, `+1 (312) 847-1928`).
|
|
69
|
+
* **NO Filler Words.** No "Elevate", "Seamless", "Unleash", or "Next-Gen".
|
|
70
|
+
|
|
71
|
+
### External Resources
|
|
72
|
+
* **NO Broken Unsplash Links.** Use `https://picsum.photos/seed/RANDOM_STRING/800/600`.
|
|
73
|
+
* **shadcn/ui Customization:** NEVER use shadcn/ui in its generic default state. Customize radii, colors, shadows.
|
|
74
|
+
|
|
75
|
+
## 7. PRE-FLIGHT CHECK
|
|
76
|
+
- [ ] Is mobile layout collapse (`w-full`, `px-4`, `max-w-7xl mx-auto`) guaranteed?
|
|
77
|
+
- [ ] Do full-height sections use `min-h-[100dvh]` instead of `h-screen`?
|
|
78
|
+
- [ ] Are empty, loading, and error states provided?
|
|
79
|
+
- [ ] Are cards omitted in favor of spacing where possible?
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: emil-design-engineering
|
|
3
|
+
description: "Design engineering principles and patterns for building polished, accessible web interfaces. Use this skill when building UI components, reviewing frontend code, implementing forms, handling touch interactions, optimizing performance, or creating marketing pages. Triggers on: design engineering, UI polish, input fields, form validation, button states, touch devices, mobile UX, accessibility, a11y, keyboard navigation, aria labels, font rendering, typography, layout shift, z-index, animations, transitions, easing, hover effects, tap targets, iOS Safari, prefers-reduced-motion, marketing pages, landing pages, dark mode, theme switching, scrollbars, gradients, shadows, virtualization, preloading."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Emil's Design Engineering Principles
|
|
7
|
+
|
|
8
|
+
A comprehensive guide for building polished, accessible web interfaces based on Emil Kowalski's design engineering practices.
|
|
9
|
+
|
|
10
|
+
## Quick Reference
|
|
11
|
+
|
|
12
|
+
| Category | When to Use |
|
|
13
|
+
| ----------------------------------------------- | ---------------------------------------------------- |
|
|
14
|
+
| [Animations](animations.md) | Enter/exit transitions, easing, springs, performance |
|
|
15
|
+
| [UI Polish](ui-polish.md) | Typography, visual design, layout, colors |
|
|
16
|
+
| [Forms & Controls](forms-controls.md) | Inputs, buttons, form submission |
|
|
17
|
+
| [Touch & Accessibility](touch-accessibility.md) | Mobile, touch devices, keyboard nav, a11y |
|
|
18
|
+
| [Component Design](component-design.md) | Compound components, composition, props API |
|
|
19
|
+
| [Marketing](marketing.md) | Landing pages, blogs, docs sites |
|
|
20
|
+
| [Performance](performance.md) | Virtualization, preloading, optimization |
|
|
21
|
+
|
|
22
|
+
## Core Principles
|
|
23
|
+
|
|
24
|
+
### 1. No Layout Shift
|
|
25
|
+
|
|
26
|
+
Dynamic elements should cause no layout shift. Use hardcoded dimensions, `font-variant-numeric: tabular-nums` for changing numbers, and avoid font weight changes on hover/selected states.
|
|
27
|
+
|
|
28
|
+
### 2. Touch-First, Hover-Enhanced
|
|
29
|
+
|
|
30
|
+
Design for touch first, then add hover enhancements. Disable hover effects on touch devices. Ensure 44px minimum tap targets. Never rely on hover for core functionality.
|
|
31
|
+
|
|
32
|
+
### 3. Keyboard Navigation
|
|
33
|
+
|
|
34
|
+
Tabbing should work consistently. Only allow tabbing through visible elements. Ensure keyboard navigation scrolls elements into view with `scrollIntoView()`.
|
|
35
|
+
|
|
36
|
+
### 4. Accessibility by Default
|
|
37
|
+
|
|
38
|
+
Every animation needs `prefers-reduced-motion` support. Every icon button needs an aria label. Every interactive element needs proper focus states.
|
|
39
|
+
|
|
40
|
+
### 5. Speed Over Delight
|
|
41
|
+
|
|
42
|
+
Product UI should be fast and purposeful. Skip animations for frequently-used interactions. Marketing pages can be more elaborate.
|
|
43
|
+
|
|
44
|
+
## Decision Flowcharts
|
|
45
|
+
|
|
46
|
+
### Should I Animate This?
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
Will users see this 100+ times daily?
|
|
50
|
+
├── Yes → Don't animate
|
|
51
|
+
└── No
|
|
52
|
+
├── Is this user-initiated?
|
|
53
|
+
│ └── Yes → Animate with ease-out (150-250ms)
|
|
54
|
+
└── Is this a page transition?
|
|
55
|
+
└── Yes → Animate (300-400ms max)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### What Easing Should I Use?
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
Is the element entering or exiting?
|
|
62
|
+
├── Yes → ease-out
|
|
63
|
+
└── No
|
|
64
|
+
├── Is it moving on screen?
|
|
65
|
+
│ └── Yes → ease-in-out
|
|
66
|
+
└── Is it a hover/color change?
|
|
67
|
+
├── Yes → ease
|
|
68
|
+
└── Default → ease-out
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Common Mistakes
|
|
72
|
+
|
|
73
|
+
| Mistake | Fix |
|
|
74
|
+
| --------------------------- | ------------------------------------------- |
|
|
75
|
+
| `transition: all` | Specify exact properties |
|
|
76
|
+
| Hover effects on touch | Use `@media (hover: hover)` |
|
|
77
|
+
| Font weight change on hover | Use consistent weights |
|
|
78
|
+
| Animating `height`/`width` | Use `transform` and `opacity` only |
|
|
79
|
+
| No reduced motion support | Add `prefers-reduced-motion` query |
|
|
80
|
+
| z-index: 9999 | Use fixed scale or `isolation: isolate` |
|
|
81
|
+
| Custom page scrollbars | Only customize scrollbars in small elements |
|
|
82
|
+
|
|
83
|
+
## Review Checklist
|
|
84
|
+
|
|
85
|
+
When reviewing UI code, check:
|
|
86
|
+
|
|
87
|
+
- [ ] No layout shift on dynamic content
|
|
88
|
+
- [ ] Animations have reduced motion support
|
|
89
|
+
- [ ] Touch targets are 44px minimum
|
|
90
|
+
- [ ] Hover effects disabled on touch devices
|
|
91
|
+
- [ ] Keyboard navigation works properly
|
|
92
|
+
- [ ] Icon buttons have aria labels
|
|
93
|
+
- [ ] Forms submit with Enter/Cmd+Enter
|
|
94
|
+
- [ ] Inputs are 16px+ to prevent iOS zoom
|
|
95
|
+
- [ ] No `transition: all`
|
|
96
|
+
- [ ] z-index uses fixed scale
|
|
97
|
+
|
|
98
|
+
## Reference Files
|
|
99
|
+
|
|
100
|
+
For detailed guidance on specific topics:
|
|
101
|
+
|
|
102
|
+
- [animations.md](animations.md) - Easing, timing, springs, performance
|
|
103
|
+
- [ui-polish.md](ui-polish.md) - Typography, shadows, gradients, scrollbars
|
|
104
|
+
- [forms-controls.md](forms-controls.md) - Inputs, buttons, form patterns
|
|
105
|
+
- [touch-accessibility.md](touch-accessibility.md) - Touch devices, keyboard nav, a11y
|
|
106
|
+
- [component-design.md](component-design.md) - Compound components, composition, props API
|
|
107
|
+
- [marketing.md](marketing.md) - Landing pages, blogs, docs
|
|
108
|
+
- [performance.md](performance.md) - Virtualization, preloading, optimization
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
# Animations
|
|
2
|
+
|
|
3
|
+
Based on Emil Kowalski's "Animations on the Web" course.
|
|
4
|
+
|
|
5
|
+
## Quick Decision
|
|
6
|
+
|
|
7
|
+
1. **Is this element entering or exiting?** → Use `ease-out`
|
|
8
|
+
2. **Is an on-screen element moving?** → Use `ease-in-out`
|
|
9
|
+
3. **Is this a hover/color transition?** → Use `ease`
|
|
10
|
+
4. **Will users see this 100+ times daily?** → Don't animate it
|
|
11
|
+
|
|
12
|
+
## The Easing Blueprint
|
|
13
|
+
|
|
14
|
+
### ease-out (Most Common)
|
|
15
|
+
|
|
16
|
+
Use for **user-initiated interactions**: dropdowns, modals, tooltips, any element entering or exiting the screen.
|
|
17
|
+
|
|
18
|
+
```css
|
|
19
|
+
/* Sorted weak to strong */
|
|
20
|
+
--ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
21
|
+
--ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
22
|
+
--ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
|
|
23
|
+
--ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
|
|
24
|
+
--ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
|
|
25
|
+
--ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Why it works: Acceleration at the start creates an instant, responsive feeling. The element "jumps" toward its destination then settles in.
|
|
29
|
+
|
|
30
|
+
### ease-in-out (For Movement)
|
|
31
|
+
|
|
32
|
+
Use when **elements already on screen need to move or morph**. Mimics natural motion like a car accelerating then braking.
|
|
33
|
+
|
|
34
|
+
```css
|
|
35
|
+
/* Sorted weak to strong */
|
|
36
|
+
--ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
|
|
37
|
+
--ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
38
|
+
--ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
|
|
39
|
+
--ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
|
|
40
|
+
--ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
|
|
41
|
+
--ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### ease (For Hover Effects)
|
|
45
|
+
|
|
46
|
+
Use for **hover states and color transitions**. The asymmetrical curve (faster start, slower end) feels elegant for gentle animations.
|
|
47
|
+
|
|
48
|
+
```css
|
|
49
|
+
transition: background-color 150ms ease;
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### linear (Avoid in UI)
|
|
53
|
+
|
|
54
|
+
Only use for:
|
|
55
|
+
- Constant-speed animations (marquees, tickers)
|
|
56
|
+
- Time visualization (hold-to-delete progress indicators)
|
|
57
|
+
|
|
58
|
+
Linear feels robotic and unnatural for interactive elements.
|
|
59
|
+
|
|
60
|
+
### ease-in (Almost Never)
|
|
61
|
+
|
|
62
|
+
**Avoid for UI animations.** Makes interfaces feel sluggish because the slow start delays visual feedback.
|
|
63
|
+
|
|
64
|
+
## Paired Elements Rule
|
|
65
|
+
|
|
66
|
+
Elements that animate together must use the same easing and duration. Modal + overlay, tooltip + arrow, drawer + backdrop—if they move as a unit, they should feel like a unit.
|
|
67
|
+
|
|
68
|
+
```css
|
|
69
|
+
/* Both use the same timing */
|
|
70
|
+
.modal { transition: transform 200ms ease-out; }
|
|
71
|
+
.overlay { transition: opacity 200ms ease-out; }
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Duration Guidelines
|
|
75
|
+
|
|
76
|
+
| Element Type | Duration |
|
|
77
|
+
| --- | --- |
|
|
78
|
+
| Micro-interactions | 100-150ms |
|
|
79
|
+
| Standard UI (tooltips, dropdowns) | 150-250ms |
|
|
80
|
+
| Modals, drawers | 200-300ms |
|
|
81
|
+
| Page transitions | 300-400ms |
|
|
82
|
+
|
|
83
|
+
**Rules:**
|
|
84
|
+
- UI animations should stay under 300ms
|
|
85
|
+
- Larger elements animate slower than smaller ones
|
|
86
|
+
- Exit animations can be faster than entrances
|
|
87
|
+
- Longer travel distance = longer duration
|
|
88
|
+
|
|
89
|
+
## The Frequency Principle
|
|
90
|
+
|
|
91
|
+
Determine how often users will see the animation:
|
|
92
|
+
|
|
93
|
+
- **100+ times/day** → No animation (or drastically reduced)
|
|
94
|
+
- **Occasional use** → Standard animation
|
|
95
|
+
- **Rare/first-time** → Can be special
|
|
96
|
+
|
|
97
|
+
**Example:** Raycast never animates its menu toggle because users open it hundreds of times daily.
|
|
98
|
+
|
|
99
|
+
## When to Animate
|
|
100
|
+
|
|
101
|
+
**Do animate:**
|
|
102
|
+
- Enter/exit transitions for spatial consistency
|
|
103
|
+
- State changes that benefit from visual continuity
|
|
104
|
+
- Responses to user actions (feedback)
|
|
105
|
+
- Rarely-used interactions where delight adds value
|
|
106
|
+
|
|
107
|
+
**Don't animate:**
|
|
108
|
+
- Keyboard-initiated actions
|
|
109
|
+
- Hover effects on frequently-used elements
|
|
110
|
+
- Anything users interact with 100+ times daily
|
|
111
|
+
- When speed matters more than smoothness
|
|
112
|
+
|
|
113
|
+
**Marketing vs. Product:**
|
|
114
|
+
- Marketing: More elaborate, longer durations allowed
|
|
115
|
+
- Product: Fast, purposeful, never frivolous
|
|
116
|
+
|
|
117
|
+
## Spring Animations
|
|
118
|
+
|
|
119
|
+
Springs feel more natural because they don't have fixed durations—they simulate real physics.
|
|
120
|
+
|
|
121
|
+
### When to Use Springs
|
|
122
|
+
|
|
123
|
+
- Drag interactions with momentum
|
|
124
|
+
- Elements that should feel "alive" (Dynamic Island)
|
|
125
|
+
- Gestures that can be interrupted mid-animation
|
|
126
|
+
- Organic, playful interfaces
|
|
127
|
+
|
|
128
|
+
### Configuration
|
|
129
|
+
|
|
130
|
+
**Apple's approach (recommended):**
|
|
131
|
+
|
|
132
|
+
```js
|
|
133
|
+
// Duration + bounce (easier to understand)
|
|
134
|
+
{ type: "spring", duration: 0.5, bounce: 0.2 }
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**Traditional physics:**
|
|
138
|
+
|
|
139
|
+
```js
|
|
140
|
+
// Mass, stiffness, damping (more complex)
|
|
141
|
+
{ type: "spring", mass: 1, stiffness: 100, damping: 10 }
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Bounce Guidelines
|
|
145
|
+
|
|
146
|
+
- **Avoid bounce** in most UI contexts
|
|
147
|
+
- **Use bounce** for drag-to-dismiss, playful interactions
|
|
148
|
+
- Keep bounce subtle (0.1-0.3) when used
|
|
149
|
+
|
|
150
|
+
### Interruptibility
|
|
151
|
+
|
|
152
|
+
Springs maintain velocity when interrupted—CSS animations restart from zero. This makes springs ideal for gestures users might change mid-motion.
|
|
153
|
+
|
|
154
|
+
## Performance
|
|
155
|
+
|
|
156
|
+
### The Golden Rule
|
|
157
|
+
|
|
158
|
+
Only animate `transform` and `opacity`. These skip layout and paint stages, running entirely on the GPU.
|
|
159
|
+
|
|
160
|
+
**Avoid animating:**
|
|
161
|
+
- `padding`, `margin`, `height`, `width` (trigger layout)
|
|
162
|
+
- `blur` filters above 20px (expensive, especially Safari)
|
|
163
|
+
- CSS variables in deep component trees
|
|
164
|
+
|
|
165
|
+
### Optimization Techniques
|
|
166
|
+
|
|
167
|
+
```css
|
|
168
|
+
/* Force GPU acceleration */
|
|
169
|
+
.animated-element {
|
|
170
|
+
will-change: transform;
|
|
171
|
+
}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**React-specific:**
|
|
175
|
+
- Animate outside React's render cycle when possible
|
|
176
|
+
- Use refs to update styles directly instead of state
|
|
177
|
+
- Re-renders on every frame = dropped frames
|
|
178
|
+
|
|
179
|
+
**Framer Motion:**
|
|
180
|
+
|
|
181
|
+
```jsx
|
|
182
|
+
// Hardware accelerated (transform as string)
|
|
183
|
+
<motion.div animate={{ transform: "translateX(100px)" }} />
|
|
184
|
+
|
|
185
|
+
// NOT hardware accelerated (more readable)
|
|
186
|
+
<motion.div animate={{ x: 100 }} />
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### CSS vs. JavaScript
|
|
190
|
+
|
|
191
|
+
- CSS animations run off main thread (smoother under load)
|
|
192
|
+
- JS animations (Framer Motion, React Spring) use `requestAnimationFrame`
|
|
193
|
+
- CSS better for simple, predetermined animations
|
|
194
|
+
- JS better for dynamic, interruptible animations
|
|
195
|
+
|
|
196
|
+
## Accessibility
|
|
197
|
+
|
|
198
|
+
### prefers-reduced-motion
|
|
199
|
+
|
|
200
|
+
Whenever you add an animation, also add a media query to disable it:
|
|
201
|
+
|
|
202
|
+
```css
|
|
203
|
+
.modal {
|
|
204
|
+
animation: fadeIn 200ms ease-out;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@media (prefers-reduced-motion: reduce) {
|
|
208
|
+
.modal {
|
|
209
|
+
animation: none;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Reduced Motion Guidelines
|
|
215
|
+
|
|
216
|
+
- Every animated element needs its own `prefers-reduced-motion` media query
|
|
217
|
+
- Set `animation: none` or `transition: none` (no `!important`)
|
|
218
|
+
- No exceptions for opacity or color—disable all animations
|
|
219
|
+
- Show play buttons instead of autoplay videos
|
|
220
|
+
|
|
221
|
+
### Framer Motion Implementation
|
|
222
|
+
|
|
223
|
+
```jsx
|
|
224
|
+
import { useReducedMotion } from "framer-motion";
|
|
225
|
+
|
|
226
|
+
function Component() {
|
|
227
|
+
const shouldReduceMotion = useReducedMotion();
|
|
228
|
+
|
|
229
|
+
return (
|
|
230
|
+
<motion.div
|
|
231
|
+
initial={shouldReduceMotion ? false : { opacity: 0, y: 20 }}
|
|
232
|
+
animate={{ opacity: 1, y: 0 }}
|
|
233
|
+
/>
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## Practical Tips
|
|
239
|
+
|
|
240
|
+
| Scenario | Solution |
|
|
241
|
+
| --- | --- |
|
|
242
|
+
| Make buttons feel responsive | Add `transform: scale(0.97)` on `:active` |
|
|
243
|
+
| Element appears from nowhere | Start from `scale(0.95)`, not `scale(0)` |
|
|
244
|
+
| Shaky/jittery animations | Add `will-change: transform` |
|
|
245
|
+
| Hover causes flicker | Animate child element, not parent |
|
|
246
|
+
| Popover scales from wrong point | Set `transform-origin` to trigger location |
|
|
247
|
+
| Sequential tooltips feel slow | Skip delay/animation after first tooltip |
|
|
248
|
+
| Small buttons hard to tap | Use 44px minimum hit area (pseudo-element) |
|
|
249
|
+
| Something still feels off | Add subtle blur (under 20px) to mask it |
|
|
250
|
+
| Hover triggers on mobile | Use `@media (hover: hover) and (pointer: fine)` |
|
|
251
|
+
|
|
252
|
+
## Theme Transitions
|
|
253
|
+
|
|
254
|
+
**Important:** Switching themes should not trigger transitions and animations on elements. Disable transitions during theme changes to prevent flash of animated content.
|
|
255
|
+
|
|
256
|
+
## AnimatePresence
|
|
257
|
+
|
|
258
|
+
Use `popLayout` mode on AnimatePresence when an element has an exit animation and is in a group of elements.
|
|
259
|
+
|
|
260
|
+
## Drag Gestures
|
|
261
|
+
|
|
262
|
+
When implementing drag-to-dismiss or similar gestures, ensure velocity-based swiping works. Usually velocity (`swipeAmount / timeTaken`) higher than `0.10` should be sufficient to trigger the action.
|
|
263
|
+
|
|
264
|
+
## Looping Animations
|
|
265
|
+
|
|
266
|
+
Pause looping animations when off-screen to save resources.
|