Skip to content
Skill

Design system structure

Sets up a React Native design system with tokens, contrast-checked dark mode and text

Design system structure is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
JavaScript, TypeScript
Platforms
Claude Code, Codex, Cursor
GitHub stars
16
Last commit
License
MIT
Listing updated

Similar skills

About Design system structure

This skill gives an Expo app a single source of visual values: a two-tier token file that feeds a typed theme, with light and dark palettes generated and checked pair by pair for readable contrast. It supplies a makeStyles pattern, an AppText component with type roles that snaps line heights to the device pixel grid, and a shared press surface whose look is chosen through a token.

The workflow copies theme and UI templates into the app, has the agent write the palette with a generator that refuses to produce output while any contrast pair fails, and wires the theme provider and navigation theme so dark mode follows the phone on iOS and Android. Motion durations and springs are kept in tokens, and shadows go through helper functions instead of platform keys.

Two checker scripts, run from the repo root with Node, verify that the theme matches the token file and that no raw colours, sizes, radii or durations appear in app code. The skill expects a project using Expo with TypeScript and Jest, and by default uses the system font; bundled fonts are an opt-in step that needs the design to name them.

When your agent uses it

Structures a design system: two-tier tokens, contrast-proven light/dark palettes, the theme provider, makeStyles, text roles, fonts. Use when touching colours, dark mode, fonts or theme files. Not for components (ui-component-library).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 89 files (632 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the react-native plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills

Or copy only this skill to ~/.claude/skills/design-system-structure:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/design-system-structure &&
cp -R "$tmp/skills/design-system-structure" ~/.claude/skills/design-system-structure &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/design-system-structure inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/design-system-structure to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/design-system-structure &&
cp -R "$tmp/skills/design-system-structure" ~/.agents/skills/design-system-structure &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/design-system-structure inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/design-system-structure to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/design-system-structure &&
cp -R "$tmp/skills/design-system-structure" ~/.cursor/skills/design-system-structure &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/design-system-structure inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/design-system-structure

Or copy the folder to ~/.gemini/skills/design-system-structure yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/design-system-structure:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/design-system-structure &&
cp -R "$tmp/skills/design-system-structure" ~/.copilot/skills/design-system-structure &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/design-system-structure inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git

Then copy ReactNative-Skills/skills/design-system-structure into your agent's skills folder as design-system-structure. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Two-tier design tokens
A token file holds primitive values and semantic roles, and theme modules are generated from it and compared value by value.
Contrast-checked palettes
Light and dark palettes are generated only when every declared colour pair meets its contrast threshold.
Dark mode wiring
Covers the theme provider, navigation theme mapping, system UI background and the automatic interface style setting.
Text roles on pixel grid
An AppText component with type roles snaps line heights to whole device pixels and guards tall scripts from clipping.
Press surface and motion tokens
A shared pressable component and motion tokens with complete spring configs keep interaction and animation consistent.
Automated design checks
Two Node checker scripts flag raw colours, sizes, radii, durations and theme drift in the app code.

Good for

  • Set up a token-based theme for an Expo app
  • Add dark mode that follows the phone setting
  • Check that colour pairs meet contrast requirements
  • Replace hard-coded colours and font sizes with theme roles
  • Wire a press feedback component with consistent styling
  • Audit an app for raw style values that bypass the theme

Design system structure FAQ

Does Design system structure work with styling libraries like NativeWind or Tamagui?

If the project already uses another styling system and has no src/theme folder, the checkers report not applicable and the skill says to extend that system instead of adding a second one.

Does Design system structure require bundled fonts?

No. The templates use the system font by default. Bundling a font is an opt-in step that is only needed when the design names one.

What does the palette generator do?

It writes the palette file only when every contrast pair passes its threshold, and it reads pairs from a contract file or from default pairs when none exists.

Which clients does Design system structure support?

It follows the shared agent skills format, so it applies to every listed client unless tied to specific ones, and the content does not restrict it further.

How do I install Design system structure in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/design-system-structure to use it in all your projects, or to .claude/skills/design-system-structure in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

Does Design system structure run scripts?

Yes. It runs JavaScript and TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Design system structure?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Design system structure?

The closest alternatives to Design system structure are Expo design system, Expo design system, Design system, Design kit and Setting up charcoal CSS variables.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from zakariaf/ReactNative-Skills

  1. Turns canvas taps, swipes and drags into typed intents hit-tested on the drawn layout

    • Open source
    • 16 GitHub stars
    • Developer tools
  2. Adds a gated debug menu, debug deep link and simulated clock and offline mode to React

    • Open source
    • 16 GitHub stars
    • Developer tools
  3. Checks React Native code for accessibility labels, touch targets, text scaling

    • Open source
    • 16 GitHub stars
    • Developer tools
  4. Sells a one-time Premium unlock through the App Store and Google Play

    • Open source
    • 16 GitHub stars
    • Finance and payments
  5. Walks an Expo app through an SDK, Xcode or Android toolchain upgrade in one commit

    • Open source
    • 16 GitHub stars
    • Developer tools
  6. Builds React Native forms with one valibot schema, catalog-key errors and keyboard-aware

    • Open source
    • 16 GitHub stars
    • Developer tools