# Design system structure

> Design system structure is an open-source agent skill for developer tools. Sets up a React Native design system with tokens, contrast-checked dark mode and text. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/design-system-structure
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** design-system-structure
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/design-system-structure)
- [No network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/design-system-structure)
- [Includes binary files](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/design-system-structure)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/design-system-structure)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Expo design system](https://ai-powered.com/skills/expo-design-system-scaledockhq): Expo design system is an open-source agent skill for developer tools.
- [Expo design system](https://ai-powered.com/skills/expo-design-system): Expo design system is an open-source agent skill for design and media.
- [Design system](https://ai-powered.com/skills/design-system-daveebbelaar): Design system is an open-source agent skill for design and media.
- [Design kit](https://ai-powered.com/skills/design-kit): Design kit is an open-source agent skill for design and media.
- [Setting up charcoal CSS variables](https://ai-powered.com/skills/setting-up-charcoal-css-variables): Setting up charcoal CSS variables is an open-source agent skill for developer tools.
- [Expo native UI](https://ai-powered.com/skills/expo-native-ui): Expo native UI is an open-source agent skill for developer tools.
- [Expo native UI](https://ai-powered.com/skills/expo-native-ui-scaledockhq): Expo native UI is an open-source agent skill for developer tools.
- [Accessibility as code](https://ai-powered.com/skills/accessibility-as-code): Accessibility as code is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/design-system-structure
