panelo-design
Skill49 starsChanged 7 days agoMITView on GitHub
Panelo's design-engineering spec and verify loop for blocks in components/panelo (free and pro). Use whenever building, restyling or reviewing a Panelo block, a control inside one, or its motion, before calling the work done. Sets the exact type, radius, border, shadow, motion and contrast values Panelo uses, how to style UI SDK parts, and the screenshot-and-measure check every block must pass.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .cursor/rules/panelo.mdcCursor rule
- emil-design-engSkill
- review-animationsSkill
- shadcnSkill
- ui-sdkSkill
- web-design-guidelinesSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Every transition gets motion-reduce:transition-none unless it only changes color or opacity.
- Distinctive: line 76
Look at every crop at 3x. Check alignment, insets, weight, optical centring, and that light and dark both read.
- Very specific: line 79
Run web-design-guidelines on the block's files and review-animations if it has motion.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Panelo design engineering
Panelo is judged on taste, so "it renders" is not done. Done is: on-spec values, every control measured, light/dark/RTL/keyboard checked, and a review pass. This file is the house style; the other skills are references it draws on:
ui-sdk: composing parts, agent-ready, state attributes, testing.shadcn: registry and CLI work.emil-design-eng,review-animations: motion decisions and review.web-design-guidelines: the final a11y/UX audit.
Two codebases, two token sets
| Code | Lives in | Styling |
| Site (docs, landing, account) | components/application, app | AGENTS.md: Panelo semantic tokens and composite type utilities |
| Blocks (what users install) | components/panelo/** | shadcn tokens (bg-card, text-muted-foreground, border-border/70), cn from @/components/panelo/lib/utils, UI SDK parts. They land in a stock shadcn project, so no site-only tokens or utilities |
House values (taken from the shipped blocks; match them)
- Type. Body/control 14px (
text-sm leading-5); descriptions 13.5px; dense rows 13 / 12.5px; meta 12 / 11px withleading-4. Labelsfont-medium, headingsfont-semiboldwithtracking-[-0.01em](large display-0.02em). Every number that changes or lines up:tabular-nums. - Radius. Controls
rounded-lg; cards and picture tilesrounded-xl; preview framesrounded-[18px]; pills, avatars, dotsrounded-full. Nested corners: inner radius = outer radius − padding. - Lines. Hairlines and dividers
border-border/70; card edgesring-1 ring-border/70. Never a raw palette border. - Depth. Raised controls (outline buttons, inputs, selects)
shadow-xs; popupsshadow-lg; nothing in between on static surfaces. - Icons. lucide-react,
size-4default,size-3.5in dense rows, decorative onesaria-hidden. - Spacing. Tailwind scale; settings-style rows
py-5, a 317px label column,gap-4between picture cards.
Motion
- Animate only what tells the user something (state, origin, feedback). Never animate keyboard-driven actions or 100-times-a-day surfaces.
- Name the properties:
transition-[translate,opacity],transition-colors. Notransition-allin new code. - Easing: enter/exit and UI responses
ease-outorease-[cubic-bezier(0.23,1,0.32,1)]; on-screen movementease-[cubic-bezier(0.77,0,0.175,1)]; a small overshootease-[cubic-bezier(0.34,1.36,0.64,1)]only for toggles and knobs. Neverease-in. - Durations: press 100-160ms, hovers and toggles 150-250ms, popovers ≤ 200ms, sheets/drawers ≤ 500ms. Exit faster than enter.
- Pressables get
active:scale-[0.97](0.95 for small round targets). Popups scale fromorigin-(--transform-origin)and styledata-starting-style/data-ending-style, never fromscale(0). - Every transition gets
motion-reduce:transition-noneunless it only changes color or opacity. - Tailwind v4's
hover:is already gated to hover-capable pointers; don't add hover effects through JS.
Controls
- Build controls from UI SDK parts so agents can operate them (Radio/RadioGroup, Switch, Select, Menu…). A native element only where UI SDK has no part.
- Don't squeeze a stock control. If a design needs a different size than
components/panelo/ui/*, compose a block-local control from the UI SDK primitive (seeBrandSwitchinblocks/settings/one).[&>span]:size-*overrides break the geometry: that's how a switch ended up with a 5px inset on one side and 2px on the others. - Geometry is symmetric: a thumb, badge or icon sits the same distance from every edge it's inset from, in every state (off, on, pressed).
- State must read on its own at 3:1: a fill, a full ring or a weight change, not a faint tint. Checked cards:
ring-2in the accent withring-offset-2 ring-offset-background. - A label that swaps (Save → Saved) keeps its width: stack both in one grid cell (
grid *:col-start-1 *:row-start-1) and fade between them. Announce async results in arole="status"region. - Free blob URLs you create (
URL.revokeObjectURL) once nothing can show them.
Color
- Text 4.5:1, control edges / focus / state fills 3:1, in light and dark.
- A user-chosen color (brand, tag) picks its own text: white or near-black by WCAG luminance, threshold ≈ 0.18 (see
ink()inblocks/settings/one). - Literal colors only in decorative art that depicts a fixed theme (theme thumbnails, logos); everything else rides tokens so dark mode is automatic.
Direction
- Logical properties only (
ms/me,ps/pe,start/end,text-start). - Motion that travels sideways flips with a
--dirvariable:[&:dir(rtl)]:[--dir:-1]on the root,translate-x-[calc(var(--dir,1)*16px)]on the mover. This site's Lightning CSS lowers:dir()to:lang(), so RTL needslang(e.g.ar) anddir="rtl"set together, whichAGENTS.mdrequires anyway.
Shell and filing
- Pro app screens ship inside an app shell with a sidebar; free blocks, profile/login pages and the sidebars themselves don't (see
.claude/CLAUDE.md). - File each block under the category it is, in
components/application/docs/components-index.ts, and register its preview inpanelo-previews.ts.
Verify loop (required before "done")
With the dev server on :3000:
python -I .claude/skills/panelo-design/scripts/verify.py <slug> # e.g. settings-1It writes light, dark and RTL screenshots plus 3x crops of every switch, radio, checkbox, button, input and select into $TMPDIR/panelo-verify/<slug>/, and prints a failure for any part (thumb, indicator, badge) that sits outside its control or is inset unevenly. Then:
- Look at every crop at 3x. Check alignment, insets, weight, optical centring, and that light and dark both read.
- Tab through the block: every control reachable, focus visible, Escape closes popups.
- Click every control once and confirm state, Cancel/undo, and that nothing jumps.
- Run
web-design-guidelineson the block's files andreview-animationsif it has motion. Fix or justify each finding. npx tsc --noEmit -p ., thennode --experimental-strip-types scripts/build-registry.mtsand confirm the item's JSON lists only the files and packages it needs.- Base UI edition (every block ships on UI SDK and on Base UI, from the same source; see
components/panelo/base):npx tsc --noEmit -p tsconfig.base-edition.json, startPANELO_EDITION=base npx next dev -p 3001, thenpython -I .claude/skills/panelo-design/scripts/parity.py <slug>and look at any block that differs or logs errors. A UI SDK part a block newly imports needs its adapter incomponents/panelo/base, or the build drops the block from the Base UI edition and fails untilSDK_ONLYincomponents-index.tssays so.
Report what was measured, not adjectives.
Gold standards
Compare new work against settings-1 (controls, brand tinting, verify-loop fixes) and dashboard-pages-13 (dense data, popover → sheet on phones via presentation="auto").
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

