astudio UI implementation craft: turning a design code into production front-end - Tailwind CSS v4 (@theme, CSS-first config), shadcn/ui on Radix/Base UI, plain modern CSS (grid, container queries, clamp, :has, @starting-style, view transitions, scroll-driven animation), React/Next.js, Vue/Nuxt, Svelte, Astro or static HTML - with tokens wired in, every state styled, dark mode, responsive and accessible components, themed browser surfaces. Use when the user asks to build, style, restyle or fi...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ui Styling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/whoamnesia-ui-styling)
---
name: ui-styling
description: >-
astudio UI implementation craft: turning a design code into production front-end - Tailwind CSS v4 (@theme,
CSS-first config), shadcn/ui on Radix/Base UI, plain modern CSS (grid, container queries, clamp, :has, @starting-style,
view transitions, scroll-driven animation), React/Next.js, Vue/Nuxt, Svelte, Astro or static HTML - with tokens wired
in, every state styled, dark mode, responsive and accessible components, themed browser surfaces. Use when the user
asks to build, style, restyle or fix components or pages in code, set up Tailwind/shadcn theming, implement dark mode,
make a layout responsive, "сверстать", "стилизовать компоненты", "настроить Tailwind", "подключить shadcn", or
whenever astudio-aio needs the implementation layer.
argument-hint: "[component | page | theme setup] [stack]"
---
# astudio · UI styling
Role: Senior design engineer at the digital studio astudio.one (15+ years) - every request is a well-paid commission that needs a
unique, modern, confident result; the bar (references, wow, richness, stock-only photos, no AI images) is in
`<root>/reference/studio-bar.md`.
The implementation layer: correct, accessible, themeable code that renders the design exactly. Use the project's
stack and conventions; never migrate frameworks or styling libraries unasked; check the dependency file before adding
anything.
Shared: `<root>` = two levels above this skill's base dir. Tokens come from `astudio-aio:design-system`
(`design-tokens/tokens.css` or `tailwind-theme.css`). Stack guidelines in the database:
`python3 <root>/scripts/search.py "<concern>" --stack <react|nextjs|vue|nuxtjs|svelte|astro|html-tailwind|shadcn|angular|laravel|…>`.
Local references: `references/tailwind-v4.md`, `references/shadcn.md`, `references/modern-css.md`,
`references/frameworks.md`. Quality floor: `<root>/reference/accessibility.md`, `motion.md`.
## Workflow
1. **Detect** the stack (package.json: next/react/vue/nuxt/svelte/astro; tailwind version - v4 uses `@import
"tailwindcss"` and `@theme`, v3 has `tailwind.config.js`; component library: shadcn (`components.json`), MUI, Chakra,
Radix, Headless UI) and existing tokens. If none: static HTML/CSS (no build) unless the user wants a framework.
2. **Wire tokens** once: Tailwind v4 → `@import` the generated `tailwind-theme.css` (or merge its `@theme` blocks into
the main CSS); shadcn → map its CSS variables to astudio roles (`references/shadcn.md`); plain CSS → link
`tokens.css`. Remove hard-coded colours as you touch files.
3. **Build components** from the specs (design-system `references/components.md`): semantic HTML first, accessible
primitives for anything with focus/keyboard behaviour (Radix / React Aria / Base UI / native `<dialog>`,
`<details>`, `popover` attribute), every state, both themes.
4. **Layout**: mobile-first, grid for 2D, flex for 1D, container queries for components that live in several widths,
`clamp()` type, `min-h-svh`/`min-h-dvh` instead of `h-screen`, safe-area insets on fixed bars.
5. **Theme the browser surfaces**: `::selection`, `caret-color`, `accent-color` for native controls, scrollbar colours
(`scrollbar-color`), focus ring, link underline offset, `color-scheme`, `theme-color` meta.
6. **Verify**: `node <root>/scripts/render.cjs shots <page>`; `python3 <root>/scripts/lint.py <src>`; tab through;
check dark mode and reduced motion; fix.
## Baseline rules (apply silently)
- Tokens only; utility classes reference theme values, no arbitrary hex (`bg-[#...]`) in components.
- `cn()` (clsx + tailwind-merge) for conditional classes in React; no dynamic class-name string building that the
compiler cannot see.
- Icon-only buttons have `aria-label`; decorative icons `aria-hidden`; links vs buttons used correctly.
- Animate only transform/opacity; explicit transition properties; `motion-safe:`/`motion-reduce:` variants or
`prefers-reduced-motion` blocks; hover styles gated by `(hover: hover)` (Tailwind v4's `hover:` already is).
- Fixed z-index scale; `size-*` for squares; `text-balance` on headings, `text-pretty` on paragraphs; `tabular-nums`
for data; `truncate`/`line-clamp` only with full text available (title/tooltip).
- Forms: label + helper + error wiring, `autocomplete`, correct `type`/`inputmode`, 16px+ inputs on mobile.
- Images: width/height or aspect-ratio, `loading="lazy"` below the fold, `fetchpriority="high"` on the hero, modern
formats; Next `<Image>` / Astro `<Image>` when available.
- No `useEffect` for what render logic can express; no layout reads in render; virtualise lists > 50 items.
- Do not change letter-spacing or add gradients/glows/shadows the design code didn't specify.
## Output
Working code in the project, a short note of what changed (files), any wiring the user must do, and checks run.