Skills
The design system, written for the agents that build with it. A skill is the instructions an agent loads on demand; these are the ones that keep its colour, layout and prototypes the way this site describes them.
How it works
Each skill is a folder in the repository with a SKILL.md: a description an agent always sees, and a body it reads only when the description matches the task. Claude Code finds them in .claude/skills. This page reads the same files, so what you read here is word for word what the agent is told.
cute-design-system
Cüte's colour system and the brand site that documents it. Load before choosing a colour class, adding or changing a token or a palette step, touching dark mode or a `scheme-light` island, or building a page in apps/brand (guidelines, Tokens, component previews).
cute-design-grid
How to lay out content on Cüte's a17-tailwind-plugins design grid. Use when refactoring layouts, adding pages, fixing centered/constrained content, working with PageLayout, or seeing classes like grid-layout, grid-col-span-N, container, breakout. Captures pitfalls around max-w-* defaults, [&>*] selectors, wrapper divs that break grids, and consumers of PageLayout sizes.
cute-prototypes
Cüte's design playground at /prototypes — the folder structure, the PrototypeDefinition registry, and how to add a new prototype with one page or a multi-step flow. Load before adding, editing, deleting or comparing a prototype, or when asked for "design variants", "directions", "variations", "a flow prototype", or anything under apps/web/app/[locale]/(site)/(distraction-free)/prototypes.
cute-design-system
.claude/skills/cute-design-system/SKILL.mdCüte design system
One palette
packages/ui-web/styles/colors.css is Cüte's only palette: eleven steps per family (50 nearly white to 950 nearly black, oklch), the brand anchors (--color-brand-*), the deck's fields (--color-deck-*), and four roles (--color-brand-primary, -soft, -muted, -deep). globals.css maps the semantic tokens onto the roles and steps, once for :root and once for .dark. Every value lives in those two files.
Four places copy the palette as hex because they cannot read CSS variables: packages/email/tailwind.config.ts, packages/ui-mobile/tokens.ts, packages/seo/og/templates/instagram/slides.tsx, and the milestone sweep's shader palette (green-300 to green-700) in apps/web/app/[locale]/_components/glimm-sweep.tsx. A step changed in colors.css changes there in the same commit. The logo's dot green (#188d33) is an asset, not the primary.
Name the token
Components name what a colour does: bg-primary, text-muted-foreground, border-border, and the status quartets (bg-success under text-success-foreground; bg-success-soft under text-success-accent; the same for warning, info, destructive). The token carries both modes, so dark: colour overrides are a smell.
A ramp step (bg-green-700) is right only for colour that is categorical rather than semantic: file-type marks, chart series, the rating star, and specimens that show the palette itself.
Pairs are graded
Every pair read together is listed in packages/ui-web/lib/color-tokens.ts with its floor (4.5:1 text, 3:1 a control's edge), and lib/color-tokens.test.ts resolves each one from the CSS in both modes and grades it against WCAG, measured in sRGB the way a checker reads the screen. A new token that is read against another gets its row there. When a pair goes red, move the step to the darkest of its hue and chroma that clears the floor; the floor stays. Green means:
Modes and light islands
The web app ships light only; admin follows the system; the brand site is dark by default. A .scheme-light element is a light island: it redeclares the :root tokens and stops dark: at its edge, so the product inside reads exactly as it ships. It repaints only what sets its own colour, so the island carries bg-background text-foreground. A .dark element is the reverse island.
The brand site
apps/brand shows the product on light islands over its dark page: MediaPanel (components/guideline-page.tsx), ShowcaseCard, and the registry preview frame. A guideline page is built from guideline-page.tsx, after the eBay Playbook's anatomy: PageHeader, OnThisPage, PageSections, MediaPanel, DoDont, ResourceCard, PrevNext. Page text takes the semantic inks; fixed steps belong inside a specimen's own surface.
The colour pages paint steps through var(--color-…) in inline styles, which Tailwind cannot see, so apps/brand/styles/styles.css safelists every family and step with @source inline; a family added to the palette is added there. The Tokens page draws TOKEN_GROUPS and grades each pair live with ContrastChip, from the same list the test reads.
cute-design-grid
.claude/skills/cute-design-grid/SKILL.mdCüte design grid
The project uses on top of Tailwind v4. Grid behavior is driven by packages/ui-web/frontend.config.json (canonical source) wired through packages/ui-web/tailwind.config.js. The Setup plugin emits responsive :root CSS variables (--grid-columns, --inner-gutter, --outer-gutter, --breakpoint, --env) per breakpoint.
Breakpoints + design columns:
The container is fluid (auto) up to 3xl, then locks at 1792px with gutters inside, as IKEA's 112rem content container does.
Plugins enabled
Setup, Container, Spacing, GridGap, GridLayout, DevTools — see packages/ui-web/tailwind.config.js. Layout (the w-cols-N plugin) is not enabled — don't reach for it without first asking.
Core utilities
Container (a17 Container plugin)
.container— main centered region with outer gutters; usesmainColWidthsfromfrontend.config.json. Disable Tailwind's core container withcorePlugins.container: false(already done)..breakout— breaks out of a.containerto make an element 100vw wide.container-reset/.breakout-reset— undo- A
@utility container { max-width: 100% }override is intentionally kept inglobals.cssso the v4 default.containerwidth tokens don't fight the a17 selector.
GridLayout
.grid-layout—display: gridwithgrid-template-columns: repeat(var(--grid-columns), 1fr)andgap: var(--inner-gutter). The grid auto-adapts to the design column count at each breakpoint..grid-col-span-N— child spans N columns. With responsive variants:grid-col-span-4 lg:grid-col-span-8etc..grid-col-start-N/.grid-col-end-N— explicit column placement.
Spacing tokens
Responsive spacing from frontend.config.json spacing.groups:
These already shift per breakpoint via CSS variables. Do NOT write gap-space-1 lg:gap-space-2 — that bypasses the responsive curve and gives 16px → 40px (skipping past 32px). Pick one token; it adapts.
PageLayout sizes
packages/ui-web/components/layout/page-layout.tsx:
max-w-* is fine for "centered reading width" pages. It's not on the design grid, but reading comfort isn't a grid concern. Don't switch sm/md to grid-layout globally — it breaks all consumers (HelpProsePage etc.) that don't apply col-span on children.
PageLayout accepts className — passes through to the outer wrapper. Use it to add pb-36 or similar without needing extra wrapper divs.
When to use which
You want centered, reading-width content (forms, legal, articles): → <PageLayout size="sm"> or size="md". Children render naturally inside max-w-*.
You want a piece of content placed precisely on the design grid: → <PageLayout size="grid"> AND apply grid-col-span-N lg:grid-col-span-M lg:grid-col-start-K directly to each top-level child.
You want a multi-column section inside a marketing page: → Wrap in <div className="grid-layout"> and put grid-col-span-N md:grid-col-span-M lg:grid-col-span-K on each card/column. Don't use grid grid-cols-3 gap-6 — that's not on the design grid.
Pitfalls — read before "fixing" a layout
1. className must reach the actual grid child
CSS Grid only places direct children of the display: grid element. If a component's className is forwarded to a deeply nested element instead of its outermost wrapping div, your grid-col-span-* classes don't take effect.
Pattern: any component used as a grid child must apply className to its outermost rendered element. Verify by reading the component source before debugging "why isn't lg:grid-col-span-X applying."
Examples in this project:
PageTitle— fixed to applyclassNameto outer<div>(was on<h1>).ListingForm— acceptsclassName, applies to the<form>(which is the grid child).
2. Don't insert wrapper divs between grid-layout and its intended children
If PageLayout size="grid" renders <div class="grid-layout"><div class="pb-36">{children}</div></div>, the pb-36 div is the only grid child. All children inside it are grandchildren — col-span on them does nothing.
Fix: push the extra class onto PageLayout via className, not via a wrapper:
3. Don't use [&>*] selectors to bake col-span into PageLayout
Tempting:
This is rejected. Consumers should declare grid placement explicitly on their children — that's the readable pattern. Use size="grid" and let consumers apply col-spans.
4. Don't replace max-w-2xl / max-w-4xl with grid-layout globally
Reading-width content (forms, legal text, help articles) doesn't need grid alignment. max-w-2xl (672px) and max-w-4xl (896px) are correct tools for "comfortable line length." Switching the existing size="sm"/size="md" consumers (8 callsites: item-form, onboarding, checkout, order success, orders detail, pricing, help layout, legal layout) to grid-layout breaks them — they don't apply col-span on children.
If a specific page wants grid placement, switch that one to size="grid" and update its children. Leave the rest on max-w.
5. --container-*: initial reset breaks max-w-Nxl
In v4, max-w-2xl, max-w-md, etc. resolve via --container-* tokens. The codebase uses ~200 of these. Do NOT reset --container-* in @theme. The Setup plugin's container math reads from mainColWidths (a separate theme key), not --container-*. No conflict to resolve.
6. --breakpoint-*: initial reset IS required
Tailwind v4 ships default --breakpoint-* tokens that get merged into theme.screens and confuse the a17 Setup plugin (it iterates theme('screens') which gains a synthetic 7th object-shaped entry → @media (width >= [object Object])). The reset is in globals.css:
theme.screens from @config "../tailwind.config.js" provides the project's breakpoints, so nothing is lost.
7. Order in globals.css matters (shadcn convention)
:root { --background: oklch(...) } → .dark { --background: oklch(...) } → @theme inline { --color-background: var(--background) }. Raw vars first, then dark overrides, then Tailwind tokens that consume them.
8. gap-gutter and grid-layout's gap
GridGap plugin emits .gap-gutter (gap: var(--inner-gutter)). The theme.extend.spacing.gutter token also produces gap-gutter (because Tailwind auto-generates utilities from spacing tokens). Both ship; this is the canonical a17 v4 setup. Don't remove GridGap thinking it's redundant — keep it, it's documented.
grid-layout already includes gap: var(--inner-gutter). Don't add gap-gutter redundantly. To override (e.g., to gap-6 for a 24px card gap) just append gap-6.
9. DevTools indicator
packages/ui-web/components/debug/tailwind-indicator.tsx renders the a17 DevTools markup (.dev-tools + .dev-tools-toggle + .dev-tools-grid). Shows breakpoint + env at bottom-left in non-production. Cmd/Ctrl+G toggles the column grid overlay (uses react-hotkeys-hook). Useful for verifying col-span placement visually.
Workflow when refactoring a layout to use the grid
- Read the consuming code first. Identify what's currently constraining width (
max-w-*,flex-1, custom CSS) and what would translate cleanly to grid columns. - Trace
classNameforwarding. For each component you want to make a grid child, verify itsclassNamelands on the outer DOM element. Fix the component if not. - Pick the right PageLayout size. If it's reading-width content, leave on
sm/md. If it needs grid placement, switch the layout tosize="grid"and update that page's children. - Apply col-span explicitly on each direct child of
grid-layout. Don't wrap in extra divs. - Verify in browser with the column grid overlay (Cmd+G). The col-span should match where you want content to land at xs / md / lg.
- Check consumers of any shared component you changed. If you fixed
classNameforwarding on a component used in many places, see if any callers were relying on the old (broken) behavior.
Code references
packages/ui-web/frontend.config.json— design tokens (canonical)packages/ui-web/tailwind.config.js— plugin wiringpackages/ui-web/styles/globals.css—@config,--breakpoint-*: initial,@theme inline, theme orderpackages/ui-web/components/layout/page-layout.tsx—PageLayoutandsizeClassespackages/ui-web/components/ui/page-title.tsx—classNamelands on outer divpackages/ui-web/components/debug/tailwind-indicator.tsx— DevTools indicator + Cmd+G hotkeyapps/web/app/[locale]/(site)/(distraction-free)/(item-form)/items/new/page.tsx— reference forsize="grid"+ explicit col-spanpackages/ui-web/components/layout/footer-layout.tsx— example ofgrid-layoutwithgrid-col-span-3 xl:grid-col-span-2packages/ui-web/blocks/contact-1/index.tsx— example ofgrid-layoutfor a 3-card section
cute-prototypes
.claude/skills/cute-prototypes/SKILL.mdCüte prototypes
The playground lives at /prototypes and is admin-only in every environment (layout.tsx gates on session.user.role !== "admin" and calls notFound()). Its job: put several variants of the same page side by side, switchable with number keys, so a design question gets answered by looking rather than arguing. Nothing here touches the live product.
The word is variant, in code, comments, the dock and replies: never "direction" or "variation".
Root: apps/web/app/[locale]/(site)/(distraction-free)/prototypes/
The two shapes
PrototypeVariant is a union — a variant is either a single page or a flow, never both:
- Single page (
preview) — comparing looks for one screen. Wallet, footer, my-profile. The dock shows one row;←/→walk the variants. - Flow (
steps) — a journey across screens. Community marketplace. The dock grows a second row of steps;←/→walk the steps and the number keys still jump variants.
stepsOf(variant) normalises both: a single page is a flow of one. Use it instead of branching on steps.
One prototype can mix both — a variants array may hold single-page variants next to flow variants.
Dock behaviour (free, don't rebuild it)
The dock lives in packages/ui-web/components/dock/, one small part per file (Dock, DockBar, DockBreadcrumb, DockLists, DockLegend, DockReplay, DockStep, DockHide, DockDrawer, DockKeys, …) reading one DockContext (state, actions, meta; state.variants and state.variant). PrototypeView is the provider and composes the parts. Every prototype gets: a breadcrumb back to the index, 1–9 to pick a variant, ←/→ (and the bar's ‹ ›, at every size) to walk, [/] to jump prototypes, r to replay (it remounts the preview, so entry animations re-run), h to hide the dock, and ?v= / ?s= in the URL so a variant is linkable. Picking a variant keeps the page of the same name when it has one.
Archive is how a long prototype stays walkable: an archived variant keeps its number and its ?v= link, but the drawer and the dock's row fold it under "Archived · N" and ←/→ walk past it. Ignacio archives from the drawer (Variants › Edit, a box per variant, All / None), from the switch on the dock's tray ("Archive this variant", DockArchiveTray), or with a on the one he is looking at. Each change saves at once to _components/prototype-archive.json (variant names per slug) through prototype-archive.action.ts, which only a local dev server runs, the phone reaching it through the tunnel; commit the JSON with the work. A renamed variant leaves the archive, since names are its keys.
The dock's palette is its own tokens in dock.css: change a token there, never a class on one part. layout: "footer" pins the dock to the top and lets the preview fill the page — use it when the thing being judged sits at the bottom of the viewport.
Adding a prototype
_prototypes/<slug>/with one folder per variant. Single page →<variant>/index.tsxexporting a PascalCase component. Flow →<variant>/screen-<name>.tsxper step.- Anything two variants share goes in
<slug>/shared/(parts.tsxfor components,data.tsfor fixtures,preview.tsxfor a wrapper or a single parameterised layout driven by alayoutprop). - One prototype per live route. Find the prototype whose
routealready names the page (the index shows it under each title, and its search matches routes). A new variant of that page joins it; never a second prototype for the same route. Its first variant is a "Live today" baseline of what the route ships now. _prototypes/<slug>/prototype.tsxexports aconst <camelSlug>: PrototypeDefinitionwithslug,section,route(the live page it would replace,"/orders/bought · /orders/sold", ornullwhen nothing ships there yet),title,summary,variants._components/wireframes/<slug>.tsx— a small SVG (viewBox="0 0 320 224",aria-hidden, a<title>, greys#e4e4e7/#8f8f98) sketching the page. Register it inprototype-wireframe.tsx.- Add the import and the entry to
registry.tsx, in the position you want it on the index.
section must be one of prototypeSections: Admin, Community, Listings, Account, Help, Site. There is no notice: the playground is admin-only and fake by rule, so nobody needs telling.
Rules
- Fake everything. No queries, no server actions, no
@repo/db, no Supabase. Fixtures are localconstarrays; interactions areuseStateand arole="status"line saying it stayed in the preview. - No i18n. Prototype copy is English literals, not
getTranslations. These screens are disposable; a dictionary key is not. - Variants differ in layout and UX, not skin. What a prototype tests is where things sit, what shows without scrolling, how many steps a flow takes, inline versus sheet versus dialog, how a state changes the page's structure and next action. The skin is Cüte's. A small deviation from a component (a button, a chip) is fine when it serves the question, but it stays Cüte everywhere else: Cüte's fonts (never a serif, never a new family), Cüte's colour tokens, at most one extra accent. One to three deviations per variant, each named in a
Tests: …comment on the variant's root. Never a reskin and never another brand's style (Airbnb, IKEA, Uber, DoorDash). Never "fix" a variant by swapping its deviation for the live product's component (its buttons, its green,ButtonFavoriteHeart). Build on@repo/ui-webprimitives for behaviour and accessibility, restyled where the deviation needs it. Tabler icons,cn(), and theLinkfrom@repo/internationalization/navigation. What a review may correct is content and behaviour: domain facts, states, copy, accessibility, fake data. Only a baseline variant ("Vinted baseline", "Live today") copies an existing look, because it is the comparison. - Sentence case in every label, as everywhere else.
"use client"on the variant, not onprototype.tsx— the definition is a server module holding JSX elements, and the registry is imported by a server page.- Accessibility still applies. Ultracite lints these files: labelled controls,
aria-pressedon toggles,type="button",aria-hiddenon decorative icons,min-h-11touch targets. - Nothing outside
prototypes/may import from_prototypes/. The traffic runs one way; when a variant wins, it is rebuilt inpackages/features/<slice>/, not imported. - Delete a prototype once its question is answered — remove the folder, its wireframe, both registry entries and its line in
prototype-archive.json. No "keep it around" folders. Prototypes the team still compares stay; the rest go. A variant that loses is archived, not deleted, while its prototype is still open; when Ignacio asks to clear the archive, delete the archived variants' code and empty their list. - A prototype is its page in isolation.
routeChromegives every/prototypes/<slug>no site header and no tab bar at any size (the index browses), so a variant starts at the window's top: sticky offsets start attop-0, heights aresvh/dvhwhole.--header-height,--header-height-compactand--spacing-below-headerstill subtract a header that is not there, so a stage never reads them. Where the live route draws its own bar (MobilePageBar,PageBar), the variant mounts that real bar unless the bar is its deviation. - The live layout, never a copy of it. Everything a variant is not testing is the live component fed fixtures: the page's layout (
SidebarLayout,PageLayout), its bars, its rows (Item,SubjectRow),ListingCard,UserName,OrderStepBar. A live part that fetches or calls an action gets a preview seam in its own package rather than a hand-drawn twin: the chat's isChatPreviewProvider(the realChatMessages, bubbles, order card andChatInputon local state) underChatThreadPanel, and Thread header's stage (_prototypes/thread-header/shared/thread.tsx) is the reference. Live links inside it go through a click catcher (PreviewLinks) so they open the preview's panels instead of leaving it.
Cases: one state across every variant
When every variant must be judged in the same states (an item for sale, sold, your own), declare cases: { label, options: [{ id, name }] } on the definition and read the pick with usePrototypeCase() (_components/prototype-case.ts), usually in the frame. The dock shows it as a "Preview as" select in its bar, C cycles it, ?c= keeps it across variants, and a new case remounts the frame. A case is a state, never a variant or a page, and never a switcher drawn on the page. Listing detail is the reference.
Adding a variant to an existing prototype
New folder under _prototypes/<slug>/, new entry in the variants array. Pull what it shares with its siblings into shared/ rather than copying it; when three variants differ only in arrangement, one shared/preview.tsx taking a layout prop beats three near-identical files (see groups/shared/preview.tsx). Keep the variant names short — they are dock buttons.