[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CRZEZFNV2ECEMAMXAB714X":3,"skill-same:01M7CRZEZFNV2ECEMAMXAB714X":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7CRZEZFNV2ECEMAMXAB714X","vite-tailwind-radix",null,"Use when styling any web UI - style with Tailwind utility classes and design tokens, avoid custom CSS, and build on the existing Radix\u002Fshadcn primitives instead of hand-rolling","makifbaysal\u002Ftasktrooper","makifbaysal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25031940?v=4","01M7CRG3ZCSYZSSEVDMW3DEYC8","Mehmet Akif Baysal","01M7CRG401FJ8YAXH5ER730XYV",122,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Ffrontend-developer\u002Fskills\u002Fvite-tailwind-radix\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: vite-tailwind-radix\ncategory: frontend\ndescription: Use when styling any web UI - style with Tailwind utility classes and design tokens, avoid custom CSS, and build on the existing Radix\u002Fshadcn primitives instead of hand-rolling\ntech_stack: React\nsource: shadcn-ui\u002Fui (MIT), adapted\n---\n# Tailwind, Radix, No Custom CSS\n\n## Overview\n\nStyling is Tailwind-first with a shared token system, on top of Radix\u002Fshadcn primitives. Custom CSS and hand-rolled interactive widgets are what this skill exists to prevent — they fragment the design and re-introduce accessibility bugs the primitives already solved.\n\n**Core principle:** Avoid custom CSS. Style with Tailwind utilities and the design tokens; reach for the existing shadcn primitive before building an interactive widget, and its built-in variant before a custom class.\n\n## Rules\n\n- **Tailwind v4 by default.** New Vite projects use `@tailwindcss\u002Fvite` and `@import \"tailwindcss\"`, with tokens defined in `@theme`\u002F`:root` in the main CSS file. A repo already on Tailwind v3 keeps `tailwind.config` — check `package.json` and follow what the repo already uses, don't migrate it mid-task.\n- **Tailwind utilities, not custom CSS.** No new `.css` files, no `\u003Cstyle>` blocks, no bespoke class names. Compose utilities; use `cn()` for conditional variants. An inline `style={{}}` object is allowed ONLY for a genuinely dynamic, computed value (a measured width, a transform) — tag it `\u002F\u002F ui-guard-allow: \u003Creason>` if the project runs ui-guard.\n- **Built-in variants before custom styles.** `\u003CButton variant=\"outline\">`, `size=\"sm\"` — not `className=\"border border-input bg-transparent hover:bg-accent\"`.\n- **Semantic tokens, not raw values.** `bg-primary`, `text-muted-foreground`, `border-border` — never `bg-blue-500`, `text-gray-600`, or a hex code. No arbitrary pixel values (`w-[327px]`) — use the scale.\n- **`className` is for layout, not restyling.** `w-full`, `max-w-md`, `self-end`, `col-span-2` are fine (spacing between siblings comes from the parent's `gap`, not margins on the child); overriding a component's own colour or typography through `className` is not — change the variant or the token instead.\n- **`gap-*` over `space-x-*`\u002F`space-y-*`.** `flex flex-col gap-4`, not `space-y-4`.\n- **`size-*` for square elements.** `size-10`, not `w-10 h-10`.\n- **No manual `dark:` colour overrides** — the semantic tokens already carry both themes.\n- **No manual z-index on overlay primitives.** `Dialog`, `Sheet`, `Drawer`, `Popover`, `DropdownMenu`, `Tooltip` manage their own stacking; never add `z-50`\u002F`z-[999]` to them. The fixed z-scale — `z-10` raised content, `z-20` sticky header, `z-30` dropdown\u002Fpopover, `z-40` overlay, `z-50` modal\u002Ftoast — is for your own layered content, never arbitrary `z-[…]`.\n- **Build on the primitives.** Dialog, Dropdown, Tooltip, Popover, Tabs, etc. come from the Radix primitives wrapped in `components\u002Fui` — never hand-roll one that exists (you'll lose focus trapping, keyboard nav, and ARIA). `Dialog`\u002F`Sheet`\u002F`Drawer` always render a `Title` (visually hidden with `sr-only` if the design doesn't show one).\n- **Forms use the Field pattern.** `Field`\u002F`FieldGroup` (or the project's own `FormField` molecule) — not a raw `div` with `space-y-*`. Validation state is `data-invalid` on the `Field`, `aria-invalid` on the control.\n- **Use the component for the job, not a styled div.** `Empty` for empty states, `Skeleton` for loading (no custom `animate-pulse` div), `AlertDialog` for destructive confirmation, `Spinner` composed into `Button` for a pending submit.\n- **Match neighbors.** Before styling a new screen, look at an adjacent one and reuse its patterns and token classes.\n- **`npm run build` must stay green** — a TypeScript error or failed build is a broken task, not a warning.\n\n## Where things live\n\n- shadcn\u002FRadix primitives are the atom-level vendor layer, generated into `components\u002Fui` — see `component-composition` for the rest of the atomic levels and the import-direction rule.\n- A repo with no tokens or folder structure yet: see `web-design-system-foundation` to set up `@theme`, `cn()`, and the base atoms before building the first screen.\n\n## When an inline style \u002F arbitrary value IS ok\n\n| Situation | Verdict |\n|-----------|---------|\n| Static padding\u002Fcolor\u002Fsize | Tailwind token class |\n| Conditional variant | `cn()` with utility classes |\n| Value computed at runtime (measured px, dynamic transform) | inline `style={{}}` — the only valid case, tag `ui-guard-allow:` if ui-guard runs |\n| A one-off pixel that \"isn't in the scale\" | No — use the nearest scale token; extend the scale via tokens if truly needed |\n| `grid-cols-[repeat(auto-fit,minmax(...))]`, `max-w-[..ch]`, `aspect-[..]` | Allowed arbitrary values (ui-guard's allow-list) |\n\n## Worked Example\n\n```tsx\n\u002F\u002F ❌ custom CSS + magic values + hand-rolled dropdown\n\u003Cdiv className=\"my-custom-menu\" style={{ padding: \"13px\", background: \"#f5f5f5\" }}>\n  {\u002F* hand-built menu: no keyboard nav, no ARIA *\u002F}\n\u003C\u002Fdiv>\n\n\u002F\u002F ✅ tokens + primitive + built-in variant\n\u003CDropdownMenu>                          {\u002F* Radix primitive from components\u002Fui *\u002F}\n  \u003CDropdownMenuTrigger asChild>\u003CButton variant=\"ghost\">Actions\u003C\u002FButton>\u003C\u002FDropdownMenuTrigger>\n  \u003CDropdownMenuContent className=\"p-3\">\n    \u003CDropdownMenuGroup>\n      \u003CDropdownMenuItem onSelect={onExport}>Export\u003C\u002FDropdownMenuItem>\n    \u003C\u002FDropdownMenuGroup>\n  \u003C\u002FDropdownMenuContent>\n\u003C\u002FDropdownMenu>\n```\n\nThe primitive brings focus management, escape-to-close, and ARIA for free; the token classes and `DropdownMenuGroup` keep it visually and structurally identical to every other menu.\n\n## Common Mistakes\n\n- A new `.css` file or `\u003Cstyle>` block instead of utilities.\n- Arbitrary values (`w-[327px]`, `text-[#3a3a3a]`) or raw palette classes instead of scale tokens.\n- Hand-rolling a dialog\u002Fdropdown\u002Ftooltip\u002Fempty-state\u002Fskeleton that already exists in `components\u002Fui`.\n- `space-x-*`\u002F`space-y-*` instead of `gap-*`; a manual `z-50` on an overlay primitive.\n- `style={{}}` for static styling that a class would cover.\n\n## Red Flags\n\n- Any new custom CSS class or stylesheet in the diff.\n- An interactive widget built from raw `div`s with `onClick` instead of a primitive.\n- Magic pixel\u002Fcolor values or a manual `dark:` override scattered across the component.\n","# Tailwind, Radix, No Custom CSS\n\n## Overview\n\nStyling is Tailwind-first with a shared token system, on top of Radix\u002Fshadcn primitives. Custom CSS and hand-rolled interactive widgets are what this skill exists to prevent — they fragment the design and re-introduce accessibility bugs the primitives already solved.\n\n**Core principle:** Avoid custom CSS. Style with Tailwind utilities and the design tokens; reach for the existing shadcn primitive before building an interactive widget, and its built-in variant before a custom class.\n\n## Rules\n\n- **Tailwind v4 by default.** New Vite projects use `@tailwindcss\u002Fvite` and `@import \"tailwindcss\"`, with tokens defined in `@theme`\u002F`:root` in the main CSS file. A repo already on Tailwind v3 keeps `tailwind.config` — check `package.json` and follow what the repo already uses, don't migrate it mid-task.\n- **Tailwind utilities, not custom CSS.** No new `.css` files, no `\u003Cstyle>` blocks, no bespoke class names. Compose utilities; use `cn()` for conditional variants. An inline `style={{}}` object is allowed ONLY for a genuinely dynamic, computed value (a measured width, a transform) — tag it `\u002F\u002F ui-guard-allow: \u003Creason>` if the project runs ui-guard.\n- **Built-in variants before custom styles.** `\u003CButton variant=\"outline\">`, `size=\"sm\"` — not `className=\"border border-input bg-transparent hover:bg-accent\"`.\n- **Semantic tokens, not raw values.** `bg-primary`, `text-muted-foreground`, `border-border` — never `bg-blue-500`, `text-gray-600`, or a hex code. No arbitrary pixel values (`w-[327px]`) — use the scale.\n- **`className` is for layout, not restyling.** `w-full`, `max-w-md`, `self-end`, `col-span-2` are fine (spacing between siblings comes from the parent's `gap`, not margins on the child); overriding a component's own colour or typography through `className` is not — change the variant or the token instead.\n- **`gap-*` over `space-x-*`\u002F`space-y-*`.** `flex flex-col gap-4`, not `space-y-4`.\n- **`size-*` for square elements.** `size-10`, not `w-10 h-10`.\n- **No manual `dark:` colour overrides** — the semantic tokens already carry both themes.\n- **No manual z-index on overlay primitives.** `Dialog`, `Sheet`, `Drawer`, `Popover`, `DropdownMenu`, `Tooltip` manage their own stacking; never add `z-50`\u002F`z-[999]` to them. The fixed z-scale — `z-10` raised content, `z-20` sticky header, `z-30` dropdown\u002Fpopover, `z-40` overlay, `z-50` modal\u002Ftoast — is for your own layered content, never arbitrary `z-[…]`.\n- **Build on the primitives.** Dialog, Dropdown, Tooltip, Popover, Tabs, etc. come from the Radix primitives wrapped in `components\u002Fui` — never hand-roll one that exists (you'll lose focus trapping, keyboard nav, and ARIA). `Dialog`\u002F`Sheet`\u002F`Drawer` always render a `Title` (visually hidden with `sr-only` if the design doesn't show one).\n- **Forms use the Field pattern.** `Field`\u002F`FieldGroup` (or the project's own `FormField` molecule) — not a raw `div` with `space-y-*`. Validation state is `data-invalid` on the `Field`, `aria-invalid` on the control.\n- **Use the component for the job, not a styled div.** `Empty` for empty states, `Skeleton` for loading (no custom `animate-pulse` div), `AlertDialog` for destructive confirmation, `Spinner` composed into `Button` for a pending submit.\n- **Match neighbors.** Before styling a new screen, look at an adjacent one and reuse its patterns and token classes.\n- **`npm run build` must stay green** — a TypeScript error or failed build is a broken task, not a warning.\n\n## Where things live\n\n- shadcn\u002FRadix primitives are the atom-level vendor layer, generated into `components\u002Fui` — see `component-composition` for the rest of the atomic levels and the import-direction rule.\n- A repo with no tokens or folder structure yet: see `web-design-system-foundation` to set up `@theme`, `cn()`, and the base atoms before building the first screen.\n\n## When an inline style \u002F arbitrary value IS ok\n\n| Situation | Verdict |\n|-----------|---------|\n| Static padding\u002Fcolor\u002Fsize | Tailwind token class |\n| Conditional variant | `cn()` with utility classes |\n| Value computed at runtime (measured px, dynamic transform) | inline `style={{}}` — the only valid case, tag `ui-guard-allow:` if ui-guard runs |\n| A one-off pixel that \"isn't in the scale\" | No — use the nearest scale token; extend the scale via tokens if truly needed |\n| `grid-cols-[repeat(auto-fit,minmax(...))]`, `max-w-[..ch]`, `aspect-[..]` | Allowed arbitrary values (ui-guard's allow-list) |\n\n## Worked Example\n\n```tsx\n\u002F\u002F ❌ custom CSS + magic values + hand-rolled dropdown\n\u003Cdiv className=\"my-custom-menu\" style={{ padding: \"13px\", background: \"#f5f5f5\" }}>\n  {\u002F* hand-built menu: no keyboard nav, no ARIA *\u002F}\n\u003C\u002Fdiv>\n\n\u002F\u002F ✅ tokens + primitive + built-in variant\n\u003CDropdownMenu>                          {\u002F* Radix primitive from components\u002Fui *\u002F}\n  \u003CDropdownMenuTrigger asChild>\u003CButton variant=\"ghost\">Actions\u003C\u002FButton>\u003C\u002FDropdownMenuTrigger>\n  \u003CDropdownMenuContent className=\"p-3\">\n    \u003CDropdownMenuGroup>\n      \u003CDropdownMenuItem onSelect={onExport}>Export\u003C\u002FDropdownMenuItem>\n    \u003C\u002FDropdownMenuGroup>\n  \u003C\u002FDropdownMenuContent>\n\u003C\u002FDropdownMenu>\n```\n\nThe primitive brings focus management, escape-to-close, and ARIA for free; the token classes and `DropdownMenuGroup` keep it visually and structurally identical to every other menu.\n\n## Common Mistakes\n\n- A new `.css` file or `\u003Cstyle>` block instead of utilities.\n- Arbitrary values (`w-[327px]`, `text-[#3a3a3a]`) or raw palette classes instead of scale tokens.\n- Hand-rolling a dialog\u002Fdropdown\u002Ftooltip\u002Fempty-state\u002Fskeleton that already exists in `components\u002Fui`.\n- `space-x-*`\u002F`space-y-*` instead of `gap-*`; a manual `z-50` on an overlay primitive.\n- `style={{}}` for static styling that a class would cover.\n\n## Red Flags\n\n- Any new custom CSS class or stylesheet in the diff.\n- An interactive widget built from raw `div`s with `onClick` instead of a primitive.\n- Magic pixel\u002Fcolor values or a manual `dark:` override scattered across the component.\n",{"name":5,"source":24,"category":25,"tech_stack":26,"description":7},"shadcn-ui\u002Fui (MIT), adapted","frontend","React","main","910394a0b6db9fc8c9a8f36328ec421d3ebd8b38","catalog\u002Fagents\u002Ffrontend-developer\u002Fskills\u002Fvite-tailwind-radix",18,"https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper","https:\u002F\u002Ftasktrooper.ai","https:\u002F\u002Fgithub.com\u002Fmakifbaysal","Senior Software Developer","2026-11-15 04:50:29",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add makifbaysal\u002Ftasktrooper --skill vite-tailwind-radix",{"tool":42,"command":43},"bunx","bunx skills add makifbaysal\u002Ftasktrooper --skill vite-tailwind-radix",{"tool":45,"command":46},"pnpm","pnpm dlx skills add makifbaysal\u002Ftasktrooper --skill vite-tailwind-radix","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Ffrontend-developer\u002Fskills\u002Fvite-tailwind-radix\u002FSKILL.md",true,[],[51,57,64,71,78,85],{"skillNo":52,"name":53,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7CSVEPQW6J6TD6CS2T5FPNZ","visual-craft","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fvisual-craft\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7CSVAQG91ETHQ0HBNZDG5FR","ux-copy","Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fux-copy\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7CSV6H0J38659NDXHJQ8396","screen-mockup-html","Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fscreen-mockup-html\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7CSV3JFRF3BM3XK52M7YEYR","performance-awareness","How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fperformance-awareness\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7CSTZDH00YRF5SCT7BRT9QD","design-variants","Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-variants\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7CSTV6P3SM3PAE28DB0RF77","design-system-authoring","Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-system-authoring\u002FSKILL.md",[],[]]