Ui system

From OutThisLife/brooklyn-skills · View interactive version

Ui system is an AI agent skill from the GitHub repository OutThisLife/brooklyn-skills. Reuse existing UI primitives, CSS vars, and DESIGN.md patterns instead of inventing new buttons, colors, borders, shadows, or helpers — including when implementing a Figma file, mock, or screenshot. Use for Desktop/web/TUI UI work, redesigns, or when the user mentions shared primitives, tw4, Figma,

How to use this skill

Skill file

UI System

Reuse what the app already has. Don't invent a parallel UI kit.

Do

  1. Read DESIGN.md / area docs for the surface you're in.
  2. Find the existing component/helper (button, input, dialog, progress,

relative-time, dropdown, back row, …). Copy how Settings / Projects / etc.

already do it.

  1. Prefer a variant on an existing primitive over a new component.

When asked to reuse an animated count, use the existing implementation in

place (export a private component if needed); do not create or relocate it

into a new primitive file as part of the visual iteration.

  1. Colors/spacing/type from existing CSS vars / tokens (including the

app's Tailwind v4 setup). No one-off hex/shadow stacks.

  1. Match the app's look: if the app doesn't use borders/shadows/sparkles,

neither does your feature.

  1. Hover paints instantly; only the exit eases. Put the transition on the

resting state and drop it while hovered (`transition-colors duration-100

hover:transition-none, or transition: none on :hover`), including

sibling-dimming groups. Only a named exception fades both ways (e.g. the

catalog arc border). Audit every hover you add or touch; verify computed

transition-property while hovered (transition-none leaves duration).

Extending an existing interaction

Shared anchored composers

Correcting an established design

Matching a brand reference ("make it like X")

Settings subpage navigation

Shared theme preferences

Shared brand badges

Typography direction

Don't

doesn't already use — match the neighboring surface exactly

Working from a design

Figma file, mock, or screenshot: match it — spacing, contrast, placement —

before inventing anything.

  1. Pull the design context (Figma MCP if available, else the screenshot/mock).
  2. Map it to existing primitives and tokens before building anything new.
  3. Layout and structure first, then content.
  4. Match spacing, padding, contrast, and states exactly. Check the details —

no white-on-white, no doubled padding, correct CTA contrast.

  1. Optimize exported assets (SVGO for SVGs).
  2. Don't approximate spacing or colors the design specifies, and don't add

chrome neither the design nor the app has.

If you can't find the primitive, search harder or ask — don't quietly make one.

While still iterating on look, follow ui-only (no tsc/lint/commit yet). Once

they like it, confirm against the design with visual-verify.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.