Expo Design Systems skill

Build and maintain a design system inside an Expo app - a reusable theme of design tokens (color, spacing, typography, radius, shadow, motion), reusable component structure with variant/size/state prop conventions, and rules for when to extract a repeated view into a shared component.

by expo·MIT license·★ 2,657 Stars on the repo·GitHub ↗

Use now

Files of Expo Design Systems

expo/main1 file shown
SKILL.md
Show the full text377 lines

Expo Design Systems

Make every screen in an app draw from one visual source of truth: a token theme and a small set of reusable components. This skill defines where tokens live, what they cover, how reusable components are shaped, and when a repeated view earns promotion into the system.

Sibling skills own the layers around this one:

  • expo-native-ui - platform styling rules (HIG, semantic colors, controls, shadows syntax). Follow it for what values look native; follow this skill for where values live and how they're reused.
  • expo-project-structure - folder skeleton for new apps.

For Tailwind projects, keep tokens in global.css as CSS variables and follow the styling library's own setup guidance. The scales and naming in this skill still apply; only the storage format changes.

References

Consult these resources as needed:

references/
  audit.md        Audit an existing app for design-system drift: grep checks,
                  scoring rubric, incremental adoption plan, and templates for
                  documenting or extending components
  native-slop.md  The 20 named anti-pattern tells of AI-generated apps (The Web
                  Modal, Everything's a Card, ...) with grep checks for the greppable ones

Adopt Before You Build

In an app that already has screens, the first move is detection, not construction. Before writing any token file:

  1. Look for a declared system. Check package.json for a styling library - NativeWind/Tailwind, Tamagui, Restyle, Unistyles, styled-components. Then look for a token file: theme.ts, src/theme/, constants/theme.ts, or constants/Colors.ts (the create-expo-app default).
  2. If one exists, it is the source of truth. Extend it in its own idiom - its names, its scale, its storage format. Audit drift against that system, not against the examples below.
  3. If only de facto values exist - the same greys and paddings repeated across screens, no theme file - there is no system yet. Those values are the input to the scales, not the authority: derive tokens from the most frequent ones, snapped to the 4-point grid (references/audit.md §5).
  4. Never introduce a second system beside an existing one. A fresh src/theme/ next to a Tamagui config is design-system drift, not adoption.

Only when nothing exists do the defaults below apply as written.

The Theme

In an app without an existing system, all design tokens live under src/theme/. In a project without a src/ folder (the default create-expo-app template has app/, components/, and constants/ at the root), use the equivalent top-level location - typically theme/ or the existing constants/ - and keep the same file layout. Start small and split by token class as it grows:

src/theme/
  colors.ts       # see expo-native-ui "Colors" for the palette pattern
  spacing.ts
  typography.ts
  radius.ts
  shadows.ts
  motion.ts
  index.ts        # re-exports everything: import { spacing, type } from "@/theme"

A brand-new app can begin with a single src/theme.ts holding all of the objects below, then promote it to the folder form once any one class needs its own file (same promotion rule as components). Either way there is exactly one theme entry point - never two competing token files.

Rules that make a theme worth having:

  • Every repeated visual value is a token. A literal that appears twice belongs in the theme.
  • Components import tokens; screens import components. A screen file that imports spacing for layout padding is fine; a screen file redefining a button color is drift.
  • Never hardcode hex colors, font sizes, or spacing multiples outside src/theme/. One-off values that are genuinely local (an icon's 17px optical nudge) may stay inline - with a comment saying why.
Colors

Build the palette from platform semantic colors: Color from expo-router wrapped in Platform.select, centralized in theme/colors.ts. Semantic colors resolve on-device and adapt to light/dark automatically - prefer them for backgrounds, labels, and separators. (expo-native-ui "Colors" covers the full palette and rationale; the minimal version is:)

// theme/colors.ts
import { Platform } from "react-native";
import { Color } from "expo-router";

export const colors = {
  label: Platform.select({
    ios: Color.ios.label,
    android: Color.android.dynamic.onSurface,
    default: "#000000",
  })!,
  secondaryLabel: Platform.select({
    ios: Color.ios.secondaryLabel,
    android: Color.android.dynamic.onSurfaceVariant,
    default: "#3c3c43",
  })!,
  separator: Platform.select({
    ios: Color.ios.separator,
    android: Color.android.dynamic.outlineVariant,
    default: "#c6c6c8",
  })!,
  systemBackground: Platform.select({
    ios: Color.ios.systemBackground,
    android: Color.android.dynamic.surface,
    default: "#ffffff",
  })!,
  systemBlue: Platform.select({
    ios: Color.ios.systemBlue,
    android: Color.android.dynamic.primary,
    default: "#007aff",
  })!,
  // Deliberately fixed: text on a tinted (accent) surface stays white in both modes.
  onTint: "#ffffff",
};

Add brand colors as explicit light/dark pairs only when the brand requires values the platform doesn't provide:

// theme/colors.ts (brand additions)
import { useColorScheme } from "react-native";

const brandPalette = {
  light: { accent: "#5B21B6", accentContrast: "#FFFFFF" },
  dark: { accent: "#A78BFA", accentContrast: "#1E1B4B" },
} as const;

export function useBrandColors() {
  const scheme = useColorScheme();
  return brandPalette[scheme === "dark" ? "dark" : "light"];
}

Keep the brand set tiny (accent, accentContrast, maybe a tint per feature). Everything else stays semantic.

Static-safe vs hook-only. The two patterns above have different reach - keep the boundary explicit:

  • Semantic/platform colors (colors above) are static-safe: they resolve on-device, so plain token files like theme/typography.ts can import them at module scope.
  • Brand light/dark pairs are hook-only: useBrandColors() reads the color scheme at render time, so brand colors can only be applied inside components. A static token file cannot call the hook.
  • Never mix the two in one file. If a static style (a type ramp step, a variants object) needs the brand accent, either apply the brand color in the component at render time, or wrap the pair in a static dynamic color (DynamicColorIOS on iOS) so it becomes static-safe.
Spacing

One scale, based on a 4-point grid. Name steps by size, not by use:

// theme/spacing.ts
export const spacing = {
  xs: 4,
  sm: 8,
  md: 16,
  lg: 24,
  xl: 32,
  xxl: 48,
} as const;
  • Use gap with spacing tokens for layout rhythm (expo-native-ui prefers gap over margin).
  • Screen edge padding is spacing.md unless the design says otherwise - pick one and keep it.
  • If a layout needs a value between steps, use the nearest step. The grid is the point.
  • If the same in-between multiple of 4 keeps recurring (12 and 20 are common), add it to the scale as a named step instead of scattering literals. The audit whitelist must then include it too.
Typography

Define named text styles, not raw font sizes. Mirror the platform ramp (Apple text styles) so sizes feel native:

// theme/typography.ts
import { TextStyle } from "react-native";
import { colors } from "./colors";

export const type = {
  largeTitle: { fontSize: 34, fontWeight: "700", color: colors.label },
  title: { fontSize: 22, fontWeight: "600", color: colors.label },
  headline: { fontSize: 17, fontWeight: "600", color: colors.label },
  body: { fontSize: 17, fontWeight: "400", color: colors.label },
  subhead: { fontSize: 15, fontWeight: "400", color: colors.secondaryLabel },
  caption: { fontSize: 12, fontWeight: "400", color: colors.secondaryLabel },
} as const satisfies Record<string, TextStyle>;

If the project bundles static font files (one file per weight, loaded with expo-font or the config plugin), set weight via fontFamily names instead and omit fontWeight - otherwise iOS synthesizes the weight or falls back to the system font:

headline: { fontSize: 17, fontFamily: "SFProRounded-Semibold", color: colors.label },

Expose them through one component so screens never touch fontSize:

// components/themed-text.tsx
import { Text, TextProps } from "react-native";
import { type } from "@/theme";

export function ThemedText({
  variant = "body",
  style,
  ...props
}: TextProps & { variant?: keyof typeof type }) {
  return <Text style={[type[variant], style]} {...props} />;
}

Screen titles still come from the navigation stack header (expo-native-ui rule), so largeTitle is mostly for non-stack contexts.

Dynamic Type. Text scales with the user's system text-size setting (allowFontScaling is on by default). Use padding or minHeight around text so rows can grow, and check large accessibility text sizes. Let labels wrap or reflow before considering a per-element maxFontSizeMultiplier for constrained chrome; dense rows alone are not a reason to cap readable text. Never disable scaling app-wide with allowFontScaling={false}.

Radius
// theme/radius.ts
export const radius = {
  sm: 8,
  md: 12,
  lg: 16,
  full: 9999, // capsules
} as const;

Pair every non-capsule radius with borderCurve: "continuous" (per expo-native-ui).

Shadows

Shadows are boxShadow strings (never legacy shadow/elevation props - see expo-native-ui). Two or three elevation levels are enough:

// theme/shadows.ts
export const shadows = {
  card: "0 1px 2px rgba(0, 0, 0, 0.05)",
  raised: "0 4px 12px rgba(0, 0, 0, 0.10)",
  overlay: "0 8px 24px rgba(0, 0, 0, 0.18)",
} as const;
Motion

Durations and shared spring/easing configs, so animations across the app feel related:

// theme/motion.ts
export const motion = {
  fast: 150, // state feedback: press, toggle
  base: 250, // element transitions: enter/exit
  slow: 400, // large surfaces: sheets, screens
} as const;

Reanimated caveat: don't pass Color/PlatformColor token values into Reanimated styles - use static colors there (see expo-native-ui).

Reusable Components

The theme controls values; components control structure. Shared primitives live in src/components/ (see expo-project-structure).

The component contract

Every design-system primitive defines, explicitly:

  • Variants - visual intent: primary, secondary, ghost, destructive. Add a variant only when a real screen needs it.
  • Sizes - sm, md, lg. Default md. Sizes map to spacing/typography tokens, never to fresh numbers.
  • States - default, pressed (not hover - this is touch), disabled, loading. Handle pressed with a Pressable style function; never leave a tappable element without pressed feedback.
  • Style override - accept a style prop and merge it last, so callers can adjust layout (margins, flex) without forking the component. Callers may override layout, not identity - a caller changing a button's colors is a signal the variant set is missing something.
  • Accessibility - custom interactive primitives expose their role and disabled/busy/selected state as applicable. Text children can supply the label; icon-only controls and buttons that replace text with a spinner need an explicit label that remains available while loading. Verify labels on native controls too.
// components/button.tsx
import { Pressable, ActivityIndicator, ViewStyle, StyleProp } from "react-native";
import { colors, spacing, radius } from "@/theme";
import { ThemedText } from "./themed-text";

const variants = {
  primary: { backgroundColor: colors.systemBlue, color: colors.onTint },
  secondary: { backgroundColor: colors.separator, color: colors.label },
} as const;

const sizes = {
  sm: { paddingVertical: spacing.xs, paddingHorizontal: spacing.sm },
  md: { paddingVertical: spacing.sm, paddingHorizontal: spacing.md },
} as const;

export function Button({
  variant = "primary",
  size = "md",
  title,
  loading,
  disabled,
  style,
  onPress,
}: {
  variant?: keyof typeof variants;
  size?: keyof typeof sizes;
  title: string;
  loading?: boolean;
  disabled?: boolean;
  style?: StyleProp<ViewStyle>;
  onPress?: () => void;
}) {
  return (
    <Pressable
      accessibilityRole="button"
      accessibilityLabel={title}
      accessibilityState={{ disabled: !!(disabled || loading), busy: !!loading }}
      disabled={disabled || loading}
      onPress={onPress}
      style={({ pressed }) => [
        {
          backgroundColor: variants[variant].backgroundColor,
          borderRadius: radius.md,
          borderCurve: "continuous",
          alignItems: "center",
          opacity: disabled ? 0.4 : pressed ? 0.7 : 1,
          ...sizes[size],
        },
        style, // caller overrides merge last
      ]}
    >
      {loading ? (
        <ActivityIndicator color={variants[variant].color as string} />
      ) : (
        <ThemedText variant="headline" style={{ color: variants[variant].color }}>
          {title}
        </ThemedText>
      )}
    </Pressable>
  );
}
Composition over configuration

When a component's props start describing content (leftIcon, subtitle, footerText, badgeCount), stop adding props and accept children instead. A Card that renders children with token padding outlives any Card with twelve content props. Reserve props for the contract above: variant, size, state, style.

When to extract - and when not to

Promote a view into src/components/ when all of these hold:

  1. It appears (or is about to appear) in two or more screens. Until then it stays colocated in screens/<name>/ (see expo-project-structure).
  2. It has a nameable role ("Card", "EmptyState", "Badge") - not "the thing on the profile screen".
  3. Its API is smaller than its implementation. If the props would just re-expose every internal style, it isn't a reusable component yet - it's a screen fragment.

Promotion path: inline JSX → component in screens/<name>/ → src/components/. Move one step at a time, when the trigger fires - never speculatively. Wrong abstractions cost more than duplication; a second copy of a view is cheaper than a primitive with a bad API.

Do not wrap platform components that already carry the design language (Switch, DateTimePicker, stack headers, @expo/ui views) just to route them through the system. Native styling is the design system for those.

Where Decisions Live

Decision Lives in Example
A visual value used anywhere twice src/theme/ brand accent, spacing step
Structure + variants of a reused element src/components/ Button, Card, EmptyState
One screen's private composition screens/<name>/ profile header layout
One-off local adjustment inline, with a comment optical nudge on an icon
Screen titles, top-level chrome navigation stack options header title, large title

Self-Critique Pass

After building or changing a screen, screenshot it and check it against these principles (from Expo's design-principles guide). Each one maps to a system fix, not a local tweak:

  • Hierarchy / contrast - is the most important element obviously first? Fix with type ramp steps, not ad-hoc font sizes.
  • Proximity / white space - do related items sit closer than unrelated ones? Fix with gap + spacing tokens.
  • Repetition / unity - do all corners, shadows, and accents match? If not, a value escaped the theme - move it in.
  • Alignment - do edges share axes? Fix with consistent screen edge padding.

Recheck the rendered result after fixing a value; moving it into the theme does not itself fix the layout. If the same defect recurs across screens, fix the shared token or component. Also run the primary-task and content checks in expo-native-ui's Behavior section; screenshots alone cannot verify interaction.

Named Failures: Native Slop

Use these names to recognize common mistakes when building and reviewing:

  • The Web Modal - a custom centered dialog used for composing or picking. Prefer a native sheet (formSheet, @expo/ui BottomSheet) or menu; native confirmation alerts remain appropriate for consequential actions.
  • Everything's a Card - every row and section in its own white rounded shadowed box. Use grouped lists; group with background and hairlines, not borders.
  • Emoji Iconography - 🔥 ⚙️ ✨ as tab or button icons. SF Symbols on iOS, Material icons on Android.
  • The Purple-Gradient Hero - a decorative gradient intro pushing the task below the fold. Lead task screens with useful content; retain a hero when it serves the requested experience.
  • The Spinner Blink - a full-screen spinner between every state, or "No items yet" flashing during the first load. Every screen has four states (see expo-data-fetching).

Treat visual tells as review prompts, not blanket bans on cards, fonts, or branding. Fix the observable problem and respect the user's brief and existing design system. The full list of 20 and candidate grep checks are in ./references/native-slop.md; use them to explain the problem and replacement when reviewing a screen.

Auditing an Existing App

To measure drift in an app that already has screens - hardcoded hex values, arbitrary spacing, inconsistent component APIs - follow ./references/audit.md. It contains grep-based checks, a scoring rubric, an incremental adoption order for fixing a drifted app, and templates for documenting existing components and proposing new ones.

Submitting Feedback

If you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:

npx --yes submit-expo-feedback@latest --category skills --subject "expo-design-system" "<actionable feedback>"

Only submit when you have something specific and actionable to report. Include as much relevant context as possible. If an AI agent repeatedly failed or the user had to take over an Expo task, load the expo-skill-feedback skill and follow its eval-candidate flow instead of reusing the command above.

1---
2name: expo-design-system
3description: Build and maintain a design system inside an Expo app - a reusable theme of design tokens (color, spacing, typography, radius, shadow, motion), reusable component structure with variant/size/state prop conventions, and rules for when to extract a repeated view into a shared component. Use when creating or organizing theme files and design tokens (theme.ts / theme/), extending an existing theme or styling library (NativeWind, Tamagui, Restyle, Unistyles) in its own idiom, standardizing styles so screens (including AI-generated ones) look consistent and polished, fixing an app that looks AI-generated or generic instead of native (the named native-slop tells), building an in-app component library, or auditing an app for design-system drift (hardcoded colors, spacing, fonts). For platform styling specifics (semantic colors, HIG rules, native controls) use expo-native-ui; for folder layout of a new app use expo-project-structure.
4version: 1.0.0
5license: MIT
6---
7 
8# Expo Design Systems
9 
10Make every screen in an app draw from one visual source of truth: a token theme and a small set of reusable components. This skill defines where tokens live, what they cover, how reusable components are shaped, and when a repeated view earns promotion into the system.
11 
12Sibling skills own the layers around this one:
13 
14- `expo-native-ui` - platform styling rules (HIG, semantic colors, controls, shadows syntax). Follow it for **what values look native**; follow this skill for **where values live and how they're reused**.
15- `expo-project-structure` - folder skeleton for new apps.
16 
17For Tailwind projects, keep tokens in `global.css` as CSS variables and follow the styling library's own setup guidance. The scales and naming in this skill still apply; only the storage format changes.
18 
19## References
20 
21Consult these resources as needed:
22 
23```
24references/
25 audit.md Audit an existing app for design-system drift: grep checks,
26 scoring rubric, incremental adoption plan, and templates for
27 documenting or extending components
28 native-slop.md The 20 named anti-pattern tells of AI-generated apps (The Web
29 Modal, Everything's a Card, ...) with grep checks for the greppable ones
30```
31 
32## Adopt Before You Build
33 
34In an app that already has screens, the first move is detection, not construction. Before writing any token file:
35 
361. **Look for a declared system.** Check `package.json` for a styling library - NativeWind/Tailwind, Tamagui, Restyle, Unistyles, styled-components. Then look for a token file: `theme.ts`, `src/theme/`, `constants/theme.ts`, or `constants/Colors.ts` (the create-expo-app default).
372. **If one exists, it is the source of truth.** Extend it in its own idiom - its names, its scale, its storage format. Audit drift against that system, not against the examples below.
383. **If only de facto values exist** - the same greys and paddings repeated across screens, no theme file - there is no system yet. Those values are the input to the scales, not the authority: derive tokens from the most frequent ones, snapped to the 4-point grid (`references/audit.md` §5).
394. **Never introduce a second system beside an existing one.** A fresh `src/theme/` next to a Tamagui config is design-system drift, not adoption.
40 
41Only when nothing exists do the defaults below apply as written.
42 
43## The Theme
44 
45In an app without an existing system, all design tokens live under `src/theme/`. In a project without a `src/` folder (the default `create-expo-app` template has `app/`, `components/`, and `constants/` at the root), use the equivalent top-level location - typically `theme/` or the existing `constants/` - and keep the same file layout. Start small and split by token class as it grows:
46 
47```
48src/theme/
49 colors.ts # see expo-native-ui "Colors" for the palette pattern
50 spacing.ts
51 typography.ts
52 radius.ts
53 shadows.ts
54 motion.ts
55 index.ts # re-exports everything: import { spacing, type } from "@/theme"
56```
57 
58A brand-new app can begin with a single `src/theme.ts` holding all of the objects below, then promote it to the folder form once any one class needs its own file (same promotion rule as components). Either way there is exactly **one** theme entry point - never two competing token files.
59 
60Rules that make a theme worth having:
61 
62- **Every repeated visual value is a token.** A literal that appears twice belongs in the theme.
63- **Components import tokens; screens import components.** A screen file that imports `spacing` for layout padding is fine; a screen file redefining a button color is drift.
64- **Never hardcode** hex colors, font sizes, or spacing multiples outside `src/theme/`. One-off values that are genuinely local (an icon's 17px optical nudge) may stay inline - with a comment saying why.
65 
66### Colors
67 
68Build the palette from platform semantic colors: `Color` from `expo-router` wrapped in `Platform.select`, centralized in `theme/colors.ts`. Semantic colors resolve on-device and adapt to light/dark automatically - prefer them for backgrounds, labels, and separators. (`expo-native-ui` "Colors" covers the full palette and rationale; the minimal version is:)
69 
70```tsx
71// theme/colors.ts
72import { Platform } from "react-native";
73import { Color } from "expo-router";
74 
75export const colors = {
76 label: Platform.select({
77 ios: Color.ios.label,
78 android: Color.android.dynamic.onSurface,
79 default: "#000000",
80 })!,
81 secondaryLabel: Platform.select({
82 ios: Color.ios.secondaryLabel,
83 android: Color.android.dynamic.onSurfaceVariant,
84 default: "#3c3c43",
85 })!,
86 separator: Platform.select({
87 ios: Color.ios.separator,
88 android: Color.android.dynamic.outlineVariant,
89 default: "#c6c6c8",
90 })!,
91 systemBackground: Platform.select({
92 ios: Color.ios.systemBackground,
93 android: Color.android.dynamic.surface,
94 default: "#ffffff",
95 })!,
96 systemBlue: Platform.select({
97 ios: Color.ios.systemBlue,
98 android: Color.android.dynamic.primary,
99 default: "#007aff",
100 })!,
101 // Deliberately fixed: text on a tinted (accent) surface stays white in both modes.
102 onTint: "#ffffff",
103};
104```
105 
106Add brand colors as explicit light/dark pairs only when the brand requires values the platform doesn't provide:
107 
108```tsx
109// theme/colors.ts (brand additions)
110import { useColorScheme } from "react-native";
111 
112const brandPalette = {
113 light: { accent: "#5B21B6", accentContrast: "#FFFFFF" },
114 dark: { accent: "#A78BFA", accentContrast: "#1E1B4B" },
115} as const;
116 
117export function useBrandColors() {
118 const scheme = useColorScheme();
119 return brandPalette[scheme === "dark" ? "dark" : "light"];
120}
121```
122 
123Keep the brand set tiny (accent, accentContrast, maybe a tint per feature). Everything else stays semantic.
124 
125**Static-safe vs hook-only.** The two patterns above have different reach - keep the boundary explicit:
126 
127- Semantic/platform colors (`colors` above) are **static-safe**: they resolve on-device, so plain token files like `theme/typography.ts` can import them at module scope.
128- Brand light/dark pairs are **hook-only**: `useBrandColors()` reads the color scheme at render time, so brand colors can only be applied inside components. A static token file cannot call the hook.
129- Never mix the two in one file. If a static style (a `type` ramp step, a `variants` object) needs the brand accent, either apply the brand color in the component at render time, or wrap the pair in a static dynamic color (`DynamicColorIOS` on iOS) so it becomes static-safe.
130 
131### Spacing
132 
133One scale, based on a 4-point grid. Name steps by size, not by use:
134 
135```tsx
136// theme/spacing.ts
137export const spacing = {
138 xs: 4,
139 sm: 8,
140 md: 16,
141 lg: 24,
142 xl: 32,
143 xxl: 48,
144} as const;
145```
146 
147- Use `gap` with spacing tokens for layout rhythm (`expo-native-ui` prefers gap over margin).
148- Screen edge padding is `spacing.md` unless the design says otherwise - pick one and keep it.
149- If a layout needs a value between steps, use the nearest step. The grid is the point.
150- If the same in-between multiple of 4 keeps recurring (12 and 20 are common), add it to the scale as a named step instead of scattering literals. The audit whitelist must then include it too.
151 
152### Typography
153 
154Define named text styles, not raw font sizes. Mirror the platform ramp (Apple text styles) so sizes feel native:
155 
156```tsx
157// theme/typography.ts
158import { TextStyle } from "react-native";
159import { colors } from "./colors";
160 
161export const type = {
162 largeTitle: { fontSize: 34, fontWeight: "700", color: colors.label },
163 title: { fontSize: 22, fontWeight: "600", color: colors.label },
164 headline: { fontSize: 17, fontWeight: "600", color: colors.label },
165 body: { fontSize: 17, fontWeight: "400", color: colors.label },
166 subhead: { fontSize: 15, fontWeight: "400", color: colors.secondaryLabel },
167 caption: { fontSize: 12, fontWeight: "400", color: colors.secondaryLabel },
168} as const satisfies Record<string, TextStyle>;
169```
170 
171If the project bundles static font files (one file per weight, loaded with `expo-font` or the config plugin), set weight via `fontFamily` names instead and omit `fontWeight` - otherwise iOS synthesizes the weight or falls back to the system font:
172 
173```tsx
174headline: { fontSize: 17, fontFamily: "SFProRounded-Semibold", color: colors.label },
175```
176 
177Expose them through one component so screens never touch `fontSize`:
178 
179```tsx
180// components/themed-text.tsx
181import { Text, TextProps } from "react-native";
182import { type } from "@/theme";
183 
184export function ThemedText({
185 variant = "body",
186 style,
187 ...props
188}: TextProps & { variant?: keyof typeof type }) {
189 return <Text style={[type[variant], style]} {...props} />;
190}
191```
192 
193Screen titles still come from the navigation stack header (`expo-native-ui` rule), so `largeTitle` is mostly for non-stack contexts.
194 
195**Dynamic Type.** Text scales with the user's system text-size setting (`allowFontScaling` is on by default). Use padding or `minHeight` around text so rows can grow, and check large accessibility text sizes. Let labels wrap or reflow before considering a per-element `maxFontSizeMultiplier` for constrained chrome; dense rows alone are not a reason to cap readable text. Never disable scaling app-wide with `allowFontScaling={false}`.
196 
197### Radius
198 
199```tsx
200// theme/radius.ts
201export const radius = {
202 sm: 8,
203 md: 12,
204 lg: 16,
205 full: 9999, // capsules
206} as const;
207```
208 
209Pair every non-capsule radius with `borderCurve: "continuous"` (per `expo-native-ui`).
210 
211### Shadows
212 
213Shadows are `boxShadow` strings (never legacy shadow/elevation props - see `expo-native-ui`). Two or three elevation levels are enough:
214 
215```tsx
216// theme/shadows.ts
217export const shadows = {
218 card: "0 1px 2px rgba(0, 0, 0, 0.05)",
219 raised: "0 4px 12px rgba(0, 0, 0, 0.10)",
220 overlay: "0 8px 24px rgba(0, 0, 0, 0.18)",
221} as const;
222```
223 
224### Motion
225 
226Durations and shared spring/easing configs, so animations across the app feel related:
227 
228```tsx
229// theme/motion.ts
230export const motion = {
231 fast: 150, // state feedback: press, toggle
232 base: 250, // element transitions: enter/exit
233 slow: 400, // large surfaces: sheets, screens
234} as const;
235```
236 
237Reanimated caveat: don't pass `Color`/`PlatformColor` token values into Reanimated styles - use static colors there (see `expo-native-ui`).
238 
239## Reusable Components
240 
241The theme controls values; components control structure. Shared primitives live in `src/components/` (see `expo-project-structure`).
242 
243### The component contract
244 
245Every design-system primitive defines, explicitly:
246 
247- **Variants** - visual intent: `primary`, `secondary`, `ghost`, `destructive`. Add a variant only when a real screen needs it.
248- **Sizes** - `sm`, `md`, `lg`. Default `md`. Sizes map to spacing/typography tokens, never to fresh numbers.
249- **States** - default, **pressed** (not hover - this is touch), disabled, loading. Handle pressed with a `Pressable` style function; never leave a tappable element without pressed feedback.
250- **Style override** - accept a `style` prop and merge it **last**, so callers can adjust layout (margins, flex) without forking the component. Callers may override layout, not identity - a caller changing a button's colors is a signal the variant set is missing something.
251- **Accessibility** - custom interactive primitives expose their role and disabled/busy/selected state as applicable. Text children can supply the label; icon-only controls and buttons that replace text with a spinner need an explicit label that remains available while loading. Verify labels on native controls too.
252 
253```tsx
254// components/button.tsx
255import { Pressable, ActivityIndicator, ViewStyle, StyleProp } from "react-native";
256import { colors, spacing, radius } from "@/theme";
257import { ThemedText } from "./themed-text";
258 
259const variants = {
260 primary: { backgroundColor: colors.systemBlue, color: colors.onTint },
261 secondary: { backgroundColor: colors.separator, color: colors.label },
262} as const;
263 
264const sizes = {
265 sm: { paddingVertical: spacing.xs, paddingHorizontal: spacing.sm },
266 md: { paddingVertical: spacing.sm, paddingHorizontal: spacing.md },
267} as const;
268 
269export function Button({
270 variant = "primary",
271 size = "md",
272 title,
273 loading,
274 disabled,
275 style,
276 onPress,
277}: {
278 variant?: keyof typeof variants;
279 size?: keyof typeof sizes;
280 title: string;
281 loading?: boolean;
282 disabled?: boolean;
283 style?: StyleProp<ViewStyle>;
284 onPress?: () => void;
285}) {
286 return (
287 <Pressable
288 accessibilityRole="button"
289 accessibilityLabel={title}
290 accessibilityState={{ disabled: !!(disabled || loading), busy: !!loading }}
291 disabled={disabled || loading}
292 onPress={onPress}
293 style={({ pressed }) => [
294 {
295 backgroundColor: variants[variant].backgroundColor,
296 borderRadius: radius.md,
297 borderCurve: "continuous",
298 alignItems: "center",
299 opacity: disabled ? 0.4 : pressed ? 0.7 : 1,
300 ...sizes[size],
301 },
302 style, // caller overrides merge last
303 ]}
304 >
305 {loading ? (
306 <ActivityIndicator color={variants[variant].color as string} />
307 ) : (
308 <ThemedText variant="headline" style={{ color: variants[variant].color }}>
309 {title}
310 </ThemedText>
311 )}
312 </Pressable>
313 );
314}
315```
316 
317### Composition over configuration
318 
319When a component's props start describing *content* (`leftIcon`, `subtitle`, `footerText`, `badgeCount`), stop adding props and accept `children` instead. A `Card` that renders `children` with token padding outlives any `Card` with twelve content props. Reserve props for the contract above: variant, size, state, style.
320 
321### When to extract - and when not to
322 
323Promote a view into `src/components/` when **all** of these hold:
324 
3251. It appears (or is about to appear) in **two or more screens**. Until then it stays colocated in `screens/<name>/` (see `expo-project-structure`).
3262. It has a **nameable role** ("Card", "EmptyState", "Badge") - not "the thing on the profile screen".
3273. Its API is **smaller than its implementation**. If the props would just re-expose every internal style, it isn't a reusable component yet - it's a screen fragment.
328 
329Promotion path: inline JSX → component in `screens/<name>/` → `src/components/`. Move one step at a time, when the trigger fires - never speculatively. Wrong abstractions cost more than duplication; a second copy of a view is cheaper than a primitive with a bad API.
330 
331Do **not** wrap platform components that already carry the design language (`Switch`, `DateTimePicker`, stack headers, `@expo/ui` views) just to route them through the system. Native styling *is* the design system for those.
332 
333## Where Decisions Live
334 
335| Decision | Lives in | Example |
336|---|---|---|
337| A visual value used anywhere twice | `src/theme/` | brand accent, spacing step |
338| Structure + variants of a reused element | `src/components/` | Button, Card, EmptyState |
339| One screen's private composition | `screens/<name>/` | profile header layout |
340| One-off local adjustment | inline, with a comment | optical nudge on an icon |
341| Screen titles, top-level chrome | navigation stack options | header title, large title |
342 
343## Self-Critique Pass
344 
345After building or changing a screen, screenshot it and check it against these principles (from [Expo's design-principles guide](https://expo.dev/blog/how-to-apply-professional-design-principles-in-ai-app-development)). Each one maps to a system fix, not a local tweak:
346 
347- **Hierarchy / contrast** - is the most important element obviously first? Fix with `type` ramp steps, not ad-hoc font sizes.
348- **Proximity / white space** - do related items sit closer than unrelated ones? Fix with `gap` + spacing tokens.
349- **Repetition / unity** - do all corners, shadows, and accents match? If not, a value escaped the theme - move it in.
350- **Alignment** - do edges share axes? Fix with consistent screen edge padding.
351 
352Recheck the rendered result after fixing a value; moving it into the theme does not itself fix the layout. If the same defect recurs across screens, fix the shared token or component. Also run the primary-task and content checks in `expo-native-ui`'s Behavior section; screenshots alone cannot verify interaction.
353 
354## Named Failures: Native Slop
355 
356Use these names to recognize common mistakes when building and reviewing:
357 
358- **The Web Modal** - a custom centered dialog used for composing or picking. Prefer a native sheet (`formSheet`, `@expo/ui` BottomSheet) or menu; native confirmation alerts remain appropriate for consequential actions.
359- **Everything's a Card** - every row and section in its own white rounded shadowed box. Use grouped lists; group with background and hairlines, not borders.
360- **Emoji Iconography** - 🔥 ⚙️ ✨ as tab or button icons. SF Symbols on iOS, Material icons on Android.
361- **The Purple-Gradient Hero** - a decorative gradient intro pushing the task below the fold. Lead task screens with useful content; retain a hero when it serves the requested experience.
362- **The Spinner Blink** - a full-screen spinner between every state, or "No items yet" flashing during the first load. Every screen has four states (see `expo-data-fetching`).
363 
364Treat visual tells as review prompts, not blanket bans on cards, fonts, or branding. Fix the observable problem and respect the user's brief and existing design system. The full list of 20 and candidate grep checks are in `./references/native-slop.md`; use them to explain the problem and replacement when reviewing a screen.
365 
366## Auditing an Existing App
367 
368To measure drift in an app that already has screens - hardcoded hex values, arbitrary spacing, inconsistent component APIs - follow `./references/audit.md`. It contains grep-based checks, a scoring rubric, an incremental adoption order for fixing a drifted app, and templates for documenting existing components and proposing new ones.
369 
370## Submitting Feedback
371If you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:
372```bash
373npx --yes submit-expo-feedback@latest --category skills --subject "expo-design-system" "<actionable feedback>"
374```
375Only submit when you have something specific and actionable to report. Include as much relevant context as possible.
376If an AI agent repeatedly failed or the user had to take over an Expo task, load the expo-skill-feedback skill and follow its eval-candidate flow instead of reusing the command above.
377 

Discussion

Alternatives

`expo-overview` — router & shared rules for Expo / EASEntry point and router for every Expo or EAS task. Load this skill first — before writing code and before choosing another expo-* / eas-* skill — when the request, PRD, or spec mentions Expo, EAS, Expo Go, or an expo-* package, or the project has an `expo` dependency in `package.json`. Within that gate it also covers app specs and designs to implement (tabs, stacks, maps, lists, navigation, building from a screenshot), and phrasings like 'implement a mobile app', 'make my app look native', 'add navigation', 'fetch some data', 'upgrade my SDK', 'add Expo to my existing native app', 'ship to the App Store', or 'I'm new to Expo, where do I start'. A fully specified request (SDK pinned, libraries named, layout given) still routes through here — the shared setup rules still apply. Do NOT load it when neither signal is present: a bare React Native project with no `expo` dependency is not Expo work. Detects the real goal, routes to the right expo-* / eas-* skill, and owns the shared setup rules.Coding · MITAdd an App Clip to an Expo AppAdd an iOS App Clip target to an Expo app. Use when the user mentions App Clip, AASA, apple-app-site-association, appclips, smart app banner, or wants to ship a lightweight iOS Clip invoked from a URL alongside their parent app.Coding · MITApp Store DeploymentBuild and submit iOS and Android apps with EAS to TestFlight, the App Store, or Google Play. Supports Expo and other React Native projects, plus existing native apps. Use for eas.json setup, release pipelines, signing, app versions and build numbers, store submissions, and listing metadata. For Expo websites and API routes, use eas-hosting; for adding React Native screens to a native app, use expo-brownfield.Coding · MITDesigning with SleekUse when the user wants to design a mobile app or UI screens, when they mention their Sleek (sleek.design) projects, or when implementing Sleek designs in code (HTML, React Native, SwiftUI).Coding · MIT