replica-design
What it does
This skill sets up the visual system for a new app, including colors, type, spacing, and components with their states. It is for designers and developers who want a consistent, accessible interface built on open icon sets and fonts.
When to use it
- ✓When you need a design system with color roles, type sizes, and spacing for a new app.
- ✓When you want each component, such as buttons and forms, defined with its states.
- ✓When you need to check that text colors meet accessibility contrast levels.
Skill link
https://github.com/Jakeschincariol/replica-skill/blob/main/replica-design/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you set up a design system for my app with color roles, type sizes and components, and check the text contrast?”
5 new skills a week. 1 minute to read.
How it works
The agent measures the patterns in the reference screenshots and turns them into design tokens for colors, type, spacing, and radius. It writes component specs and runs a contrast check on every text pair.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
replica-design
Reads replica/recon.md and the screenshots in replica/screens/. Writes
replica/design/tokens.json (template in this folder), tokens.css, the
Tailwind mapping, and replica/design/components.md.
python3 contrast.py replica/design/tokens.json # every text pair, WCAG ratio
The rules
What you rebuild is the system: the roles, the scale, the patterns, the way a form or a modal behaves. Those are not ownable, and users expect them. What you never take:
- Logos, icons, illustrations, photos, sounds. Use an open icon set (Lucide, Phosphor, Heroicons, Tabler, all MIT or similar) and make or commission your own illustrations. Do not trace theirs.
- Licensed fonts. If the original uses a paid or proprietary font, pick an open one with the same job: Inter, Geist, IBM Plex, Manrope, Source Serif.
- Their copy. Every label and empty state gets written fresh.
- Their brand colour. Record it as a role (
accent), use a neutral placeholder now, and replica-brand gives you your own. The signature colour plus the signature layout is trade dress, and it changes before launch.
Step 1: measure, do not guess
From the screenshots (zoom in, use a colour picker on the user's machine):
- Colour roles, not colours: bg, surface, border, border-input, text, text-muted, accent, on-accent, danger, success, warning. Count how many greys the app really uses. Usually 5 to 7.
- Type scale: sizes, line heights, weights. Snap to a scale (12, 14, 16, 20, 28, 40 is common). Note the font category, not the font file.
- Spacing: measure gaps between elements. It is almost always a 4 or 8 base. Write the scale.
- Radius, shadow, motion: two or three of each.
- Layout: max content width, grid, breakpoints, sidebar width, header height.
Step 2: write the tokens
Fill tokens.json. Keep the role names. replica-brand only changes values.
Generate tokens.css as custom properties and map them into Tailwind's theme
so components use bg-surface text-muted, never raw hex.
Add a pairs list for every text and background combination the app uses,
then:
python3 contrast.py replica/design/tokens.json
AA is the floor: 4.5:1 for body text, 3:1 for large text and for input borders and focus rings. It exits 1 on a failure. Fix it in the tokens, not per component.
Step 3: component specs
For every component in the recon list, one block in components.md:
Button
variants primary, secondary, ghost, danger
sizes sm 32px, md 40px, lg 48px
states default, hover, active, focus-visible (2px ring, accent), disabled, loading
tokens bg accent, text on-accent, radius md, font sm/600
a11y real <button>, visible focus, loading keeps the label for screen readers
used on S02, S07, S09
Every state the recon saw, plus the ones it should have: focus, disabled, loading, error, empty. Keyboard and screen reader behaviour is part of the spec.
Step 4: build the primitives
Build the components in code once, in isolation (a /design route or
Storybook), before any screen. Use an accessible base if the stack has one
(Radix, shadcn/ui, React Aria). Screenshot the page. That is the design system
check.
Output
tokens.json, tokens.css, the Tailwind config, components.md, the
primitives built, and a contrast report with zero AA failures. Next:
/replica-build.
FAQ
Does it copy logos or fonts?
No. The skill says to use open icon sets and open fonts, and to make your own illustrations.
What does the contrast checker do?
It is a script that calculates the WCAG contrast ratio for each text color pair in the design tokens.
Is the brand color kept?
No. The skill records the original brand color as a role and uses a neutral placeholder until your own brand is set.
Details
Original description by the author
Rebuilds an app's design system for a clone: colour roles, type scale, spacing, radius, shadows and every component with its states, as design tokens plus component specs, with original assets instead of the target's logos, icons, illustrations or licensed fonts. Includes a WCAG contrast checker. Use when the user says "match the design", "rebuild the design system", "get the colours and fonts", "make it look like X", "design tokens for my clone", or after /replica-architect.
Popularity
- GitHub stars
- 7.1k
- Ranking position
- #13580
- License
- MIT
- Updated
- 10/3/2026
Comments
- …
More skills from this repository
replica-architect
7.1kHelps your agent plan the stack, database and API for a new app based on a feature map, and order the build from a thin working slice first.
replica-backend
7.1kHelps your agent build the server side of an app with login, database rules, Stripe payments, email and background jobs using official APIs.
replica-brand
7.1kHelps your agent name and rebrand your app so it stands apart, with name checks to run, a new palette, a logo brief and a sweep for leftover names.
replica-build
7.1kHelps your agent build a new app screen by screen from a feature map, starting with a shell, then a core flow, all written fresh.
Similar skills
canvas
394kLets your agent show a hosted visual widget on a connected Mac panel, then hide the panel or move it to another page.
control-ui
394kHelps your agent organize and troubleshoot the OpenClaw Control UI, including sessions, dashboards, and connected Gateways.
diagram-maker
394kHelps your agent create clear diagrams as SVG, HTML, or editable Excalidraw files for processes, system architecture, and whiteboard sketches.