[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A715H24WJCT7P07ZV19YYE":3,"skill-same:01M7A715H24WJCT7P07ZV19YYE":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7A715H24WJCT7P07ZV19YYE","expo-design-system",null,"Framework (OSS). 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\u002Fsize\u002Fstate 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 \u002F theme\u002F), 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, 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.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"MIT","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fexpo-design-system\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Framework (OSS). 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\u002Fsize\u002Fstate 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 \u002F theme\u002F), 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, 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.\"\nlicense: \"MIT\"\n---\n# Expo Design Systems\n\nMake 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.\n\nSibling skills own the layers around this one:\n\n- `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**.\n- `expo-project-structure` - folder skeleton for new apps.\n\nFor 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.\n\n## References\n\nConsult these resources as needed:\n\n```\nreferences\u002F\n  audit.md      Audit an existing app for design-system drift: grep checks,\n                scoring rubric, incremental adoption plan, and templates for\n                documenting or extending components\n```\n\n## Adopt Before You Build\n\nIn an app that already has screens, the first move is detection, not construction. Before writing any token file:\n\n1. **Look for a declared system.** Check `package.json` for a styling library - NativeWind\u002FTailwind, Tamagui, Restyle, Unistyles, styled-components. Then look for a token file: `theme.ts`, `src\u002Ftheme\u002F`, `constants\u002Ftheme.ts`, or `constants\u002FColors.ts` (the create-expo-app default).\n2. **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.\n3. **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\u002Faudit.md` §5).\n4. **Never introduce a second system beside an existing one.** A fresh `src\u002Ftheme\u002F` next to a Tamagui config is design-system drift, not adoption.\n\nOnly when nothing exists do the defaults below apply as written.\n\n## The Theme\n\nIn an app without an existing system, all design tokens live under `src\u002Ftheme\u002F`. In a project without a `src\u002F` folder (the default `create-expo-app` template has `app\u002F`, `components\u002F`, and `constants\u002F` at the root), use the equivalent top-level location - typically `theme\u002F` or the existing `constants\u002F` - and keep the same file layout. Start small and split by token class as it grows:\n\n```\nsrc\u002Ftheme\u002F\n  colors.ts       # see expo-native-ui \"Colors\" for the palette pattern\n  spacing.ts\n  typography.ts\n  radius.ts\n  shadows.ts\n  motion.ts\n  index.ts        # re-exports everything: import { spacing, type } from \"@\u002Ftheme\"\n```\n\nA brand-new app can begin with a single `src\u002Ftheme.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.\n\nRules that make a theme worth having:\n\n- **Every repeated visual value is a token.** A literal that appears twice belongs in the theme.\n- **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.\n- **Never hardcode** hex colors, font sizes, or spacing multiples outside `src\u002Ftheme\u002F`. One-off values that are genuinely local (an icon's 17px optical nudge) may stay inline - with a comment saying why.\n\n### Colors\n\nBuild the palette from platform semantic colors: `Color` from `expo-router` wrapped in `Platform.select`, centralized in `theme\u002Fcolors.ts`. Semantic colors resolve on-device and adapt to light\u002Fdark automatically - prefer them for backgrounds, labels, and separators. (`expo-native-ui` \"Colors\" covers the full palette and rationale; the minimal version is:)\n\n```tsx\n\u002F\u002F theme\u002Fcolors.ts\nimport { Platform } from \"react-native\";\nimport { Color } from \"expo-router\";\n\nexport const colors = {\n  label: Platform.select({\n    ios: Color.ios.label,\n    android: Color.android.dynamic.onSurface,\n    default: \"#000000\",\n  })!,\n  secondaryLabel: Platform.select({\n    ios: Color.ios.secondaryLabel,\n    android: Color.android.dynamic.onSurfaceVariant,\n    default: \"#3c3c43\",\n  })!,\n  separator: Platform.select({\n    ios: Color.ios.separator,\n    android: Color.android.dynamic.outlineVariant,\n    default: \"#c6c6c8\",\n  })!,\n  systemBackground: Platform.select({\n    ios: Color.ios.systemBackground,\n    android: Color.android.dynamic.surface,\n    default: \"#ffffff\",\n  })!,\n  systemBlue: Platform.select({\n    ios: Color.ios.systemBlue,\n    android: Color.android.dynamic.primary,\n    default: \"#007aff\",\n  })!,\n  \u002F\u002F Deliberately fixed: text on a tinted (accent) surface stays white in both modes.\n  onTint: \"#ffffff\",\n};\n```\n\nAdd brand colors as explicit light\u002Fdark pairs only when the brand requires values the platform doesn't provide:\n\n```tsx\n\u002F\u002F theme\u002Fcolors.ts (brand additions)\nimport { useColorScheme } from \"react-native\";\n\nconst brandPalette = {\n  light: { accent: \"#5B21B6\", accentContrast: \"#FFFFFF\" },\n  dark: { accent: \"#A78BFA\", accentContrast: \"#1E1B4B\" },\n} as const;\n\nexport function useBrandColors() {\n  const scheme = useColorScheme();\n  return brandPalette[scheme === \"dark\" ? \"dark\" : \"light\"];\n}\n```\n\nKeep the brand set tiny (accent, accentContrast, maybe a tint per feature). Everything else stays semantic.\n\n**Static-safe vs hook-only.** The two patterns above have different reach - keep the boundary explicit:\n\n- Semantic\u002Fplatform colors (`colors` above) are **static-safe**: they resolve on-device, so plain token files like `theme\u002Ftypography.ts` can import them at module scope.\n- Brand light\u002Fdark 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.\n- 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.\n\n### Spacing\n\nOne scale, based on a 4-point grid. Name steps by size, not by use:\n\n```tsx\n\u002F\u002F theme\u002Fspacing.ts\nexport const spacing = {\n  xs: 4,\n  sm: 8,\n  md: 16,\n  lg: 24,\n  xl: 32,\n  xxl: 48,\n} as const;\n```\n\n- Use `gap` with spacing tokens for layout rhythm (`expo-native-ui` prefers gap over margin).\n- Screen edge padding is `spacing.md` unless the design says otherwise - pick one and keep it.\n- If a layout needs a value between steps, use the nearest step. The grid is the point.\n- 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.\n\n### Typography\n\nDefine named text styles, not raw font sizes. Mirror the platform ramp (Apple text styles) so sizes feel native:\n\n```tsx\n\u002F\u002F theme\u002Ftypography.ts\nimport { TextStyle } from \"react-native\";\nimport { colors } from \".\u002Fcolors\";\n\nexport const type = {\n  largeTitle: { fontSize: 34, fontWeight: \"700\", color: colors.label },\n  title: { fontSize: 22, fontWeight: \"600\", color: colors.label },\n  headline: { fontSize: 17, fontWeight: \"600\", color: colors.label },\n  body: { fontSize: 17, fontWeight: \"400\", color: colors.label },\n  subhead: { fontSize: 15, fontWeight: \"400\", color: colors.secondaryLabel },\n  caption: { fontSize: 12, fontWeight: \"400\", color: colors.secondaryLabel },\n} as const satisfies Record\u003Cstring, TextStyle>;\n```\n\nIf 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:\n\n```tsx\nheadline: { fontSize: 17, fontFamily: \"SFProRounded-Semibold\", color: colors.label },\n```\n\nExpose them through one component so screens never touch `fontSize`:\n\n```tsx\n\u002F\u002F components\u002Fthemed-text.tsx\nimport { Text, TextProps } from \"react-native\";\nimport { type } from \"@\u002Ftheme\";\n\nexport function ThemedText({\n  variant = \"body\",\n  style,\n  ...props\n}: TextProps & { variant?: keyof typeof type }) {\n  return \u003CText style={[type[variant], style]} {...props} \u002F>;\n}\n```\n\nScreen titles still come from the navigation stack header (`expo-native-ui` rule), so `largeTitle` is mostly for non-stack contexts.\n\n### Radius\n\n```tsx\n\u002F\u002F theme\u002Fradius.ts\nexport const radius = {\n  sm: 8,\n  md: 12,\n  lg: 16,\n  full: 9999, \u002F\u002F capsules\n} as const;\n```\n\nPair every non-capsule radius with `borderCurve: \"continuous\"` (per `expo-native-ui`).\n\n### Shadows\n\nShadows are `boxShadow` strings (never legacy shadow\u002Felevation props - see `expo-native-ui`). Two or three elevation levels are enough:\n\n```tsx\n\u002F\u002F theme\u002Fshadows.ts\nexport const shadows = {\n  card: \"0 1px 2px rgba(0, 0, 0, 0.05)\",\n  raised: \"0 4px 12px rgba(0, 0, 0, 0.10)\",\n  overlay: \"0 8px 24px rgba(0, 0, 0, 0.18)\",\n} as const;\n```\n\n### Motion\n\nDurations and shared spring\u002Feasing configs, so animations across the app feel related:\n\n```tsx\n\u002F\u002F theme\u002Fmotion.ts\nexport const motion = {\n  fast: 150, \u002F\u002F state feedback: press, toggle\n  base: 250, \u002F\u002F element transitions: enter\u002Fexit\n  slow: 400, \u002F\u002F large surfaces: sheets, screens\n} as const;\n```\n\nReanimated caveat: don't pass `Color`\u002F`PlatformColor` token values into Reanimated styles - use static colors there (see `expo-native-ui`).\n\n## Reusable Components\n\nThe theme controls values; components control structure. Shared primitives live in `src\u002Fcomponents\u002F` (see `expo-project-structure`).\n\n### The component contract\n\nEvery design-system primitive defines, explicitly:\n\n- **Variants** - visual intent: `primary`, `secondary`, `ghost`, `destructive`. Add a variant only when a real screen needs it.\n- **Sizes** - `sm`, `md`, `lg`. Default `md`. Sizes map to spacing\u002Ftypography tokens, never to fresh numbers.\n- **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.\n- **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.\n\n```tsx\n\u002F\u002F components\u002Fbutton.tsx\nimport { Pressable, ActivityIndicator, ViewStyle, StyleProp } from \"react-native\";\nimport { colors, spacing, radius } from \"@\u002Ftheme\";\nimport { ThemedText } from \".\u002Fthemed-text\";\n\nconst variants = {\n  primary: { backgroundColor: colors.systemBlue, color: colors.onTint },\n  secondary: { backgroundColor: colors.separator, color: colors.label },\n} as const;\n\nconst sizes = {\n  sm: { paddingVertical: spacing.xs, paddingHorizontal: spacing.sm },\n  md: { paddingVertical: spacing.sm, paddingHorizontal: spacing.md },\n} as const;\n\nexport function Button({\n  variant = \"primary\",\n  size = \"md\",\n  title,\n  loading,\n  disabled,\n  style,\n  onPress,\n}: {\n  variant?: keyof typeof variants;\n  size?: keyof typeof sizes;\n  title: string;\n  loading?: boolean;\n  disabled?: boolean;\n  style?: StyleProp\u003CViewStyle>;\n  onPress?: () => void;\n}) {\n  return (\n    \u003CPressable\n      accessibilityRole=\"button\"\n      disabled={disabled || loading}\n      onPress={onPress}\n      style={({ pressed }) => [\n        {\n          backgroundColor: variants[variant].backgroundColor,\n          borderRadius: radius.md,\n          borderCurve: \"continuous\",\n          alignItems: \"center\",\n          opacity: disabled ? 0.4 : pressed ? 0.7 : 1,\n          ...sizes[size],\n        },\n        style, \u002F\u002F caller overrides merge last\n      ]}\n    >\n      {loading ? (\n        \u003CActivityIndicator color={variants[variant].color as string} \u002F>\n      ) : (\n        \u003CThemedText variant=\"headline\" style={{ color: variants[variant].color }}>\n          {title}\n        \u003C\u002FThemedText>\n      )}\n    \u003C\u002FPressable>\n  );\n}\n```\n\n### Composition over configuration\n\nWhen 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.\n\n### When to extract - and when not to\n\nPromote a view into `src\u002Fcomponents\u002F` when **all** of these hold:\n\n1. It appears (or is about to appear) in **two or more screens**. Until then it stays colocated in `screens\u002F\u003Cname>\u002F` (see `expo-project-structure`).\n2. It has a **nameable role** (\"Card\", \"EmptyState\", \"Badge\") - not \"the thing on the profile screen\".\n3. 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.\n\nPromotion path: inline JSX → component in `screens\u002F\u003Cname>\u002F` → `src\u002Fcomponents\u002F`. 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.\n\nDo **not** wrap platform components that already carry the design language (`Switch`, `DateTimePicker`, stack headers, `@expo\u002Fui` views) just to route them through the system. Native styling *is* the design system for those.\n\n## Where Decisions Live\n\n| Decision | Lives in | Example |\n|---|---|---|\n| A visual value used anywhere twice | `src\u002Ftheme\u002F` | brand accent, spacing step |\n| Structure + variants of a reused element | `src\u002Fcomponents\u002F` | Button, Card, EmptyState |\n| One screen's private composition | `screens\u002F\u003Cname>\u002F` | profile header layout |\n| One-off local adjustment | inline, with a comment | optical nudge on an icon |\n| Screen titles, top-level chrome | navigation stack options | header title, large title |\n\n## Self-Critique Pass\n\nAfter building or changing a screen, screenshot it and check it against these principles (from [Expo's design-principles guide](https:\u002F\u002Fexpo.dev\u002Fblog\u002Fhow-to-apply-professional-design-principles-in-ai-app-development)). Each one maps to a system fix, not a local tweak:\n\n- **Hierarchy \u002F contrast** - is the most important element obviously first? Fix with `type` ramp steps, not ad-hoc font sizes.\n- **Proximity \u002F white space** - do related items sit closer than unrelated ones? Fix with `gap` + spacing tokens.\n- **Repetition \u002F unity** - do all corners, shadows, and accents match? If not, a value escaped the theme - move it in.\n- **Alignment** - do edges share axes? Fix with consistent screen edge padding.\n\nThe pass is complete only when all four checks pass, or every failing value has moved into the theme or a component. If a screen fails the same check twice, the fix belongs in the theme or a component - not in the screen.\n\n## Auditing an Existing App\n\nTo measure drift in an app that already has screens - hardcoded hex values, arbitrary spacing, inconsistent component APIs - follow `.\u002Freferences\u002Faudit.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.\n\n## Submitting Feedback\nIf you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:\n```bash\nnpx --yes submit-expo-feedback@latest --category skills --subject \"expo-design-system\" \"\u003Cactionable feedback>\"\n```\nOnly submit when you have something specific and actionable to report. Include as much relevant context as possible.\nIf 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.\n","# Expo Design Systems\n\nMake 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.\n\nSibling skills own the layers around this one:\n\n- `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**.\n- `expo-project-structure` - folder skeleton for new apps.\n\nFor 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.\n\n## References\n\nConsult these resources as needed:\n\n```\nreferences\u002F\n  audit.md      Audit an existing app for design-system drift: grep checks,\n                scoring rubric, incremental adoption plan, and templates for\n                documenting or extending components\n```\n\n## Adopt Before You Build\n\nIn an app that already has screens, the first move is detection, not construction. Before writing any token file:\n\n1. **Look for a declared system.** Check `package.json` for a styling library - NativeWind\u002FTailwind, Tamagui, Restyle, Unistyles, styled-components. Then look for a token file: `theme.ts`, `src\u002Ftheme\u002F`, `constants\u002Ftheme.ts`, or `constants\u002FColors.ts` (the create-expo-app default).\n2. **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.\n3. **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\u002Faudit.md` §5).\n4. **Never introduce a second system beside an existing one.** A fresh `src\u002Ftheme\u002F` next to a Tamagui config is design-system drift, not adoption.\n\nOnly when nothing exists do the defaults below apply as written.\n\n## The Theme\n\nIn an app without an existing system, all design tokens live under `src\u002Ftheme\u002F`. In a project without a `src\u002F` folder (the default `create-expo-app` template has `app\u002F`, `components\u002F`, and `constants\u002F` at the root), use the equivalent top-level location - typically `theme\u002F` or the existing `constants\u002F` - and keep the same file layout. Start small and split by token class as it grows:\n\n```\nsrc\u002Ftheme\u002F\n  colors.ts       # see expo-native-ui \"Colors\" for the palette pattern\n  spacing.ts\n  typography.ts\n  radius.ts\n  shadows.ts\n  motion.ts\n  index.ts        # re-exports everything: import { spacing, type } from \"@\u002Ftheme\"\n```\n\nA brand-new app can begin with a single `src\u002Ftheme.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.\n\nRules that make a theme worth having:\n\n- **Every repeated visual value is a token.** A literal that appears twice belongs in the theme.\n- **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.\n- **Never hardcode** hex colors, font sizes, or spacing multiples outside `src\u002Ftheme\u002F`. One-off values that are genuinely local (an icon's 17px optical nudge) may stay inline - with a comment saying why.\n\n### Colors\n\nBuild the palette from platform semantic colors: `Color` from `expo-router` wrapped in `Platform.select`, centralized in `theme\u002Fcolors.ts`. Semantic colors resolve on-device and adapt to light\u002Fdark automatically - prefer them for backgrounds, labels, and separators. (`expo-native-ui` \"Colors\" covers the full palette and rationale; the minimal version is:)\n\n```tsx\n\u002F\u002F theme\u002Fcolors.ts\nimport { Platform } from \"react-native\";\nimport { Color } from \"expo-router\";\n\nexport const colors = {\n  label: Platform.select({\n    ios: Color.ios.label,\n    android: Color.android.dynamic.onSurface,\n    default: \"#000000\",\n  })!,\n  secondaryLabel: Platform.select({\n    ios: Color.ios.secondaryLabel,\n    android: Color.android.dynamic.onSurfaceVariant,\n    default: \"#3c3c43\",\n  })!,\n  separator: Platform.select({\n    ios: Color.ios.separator,\n    android: Color.android.dynamic.outlineVariant,\n    default: \"#c6c6c8\",\n  })!,\n  systemBackground: Platform.select({\n    ios: Color.ios.systemBackground,\n    android: Color.android.dynamic.surface,\n    default: \"#ffffff\",\n  })!,\n  systemBlue: Platform.select({\n    ios: Color.ios.systemBlue,\n    android: Color.android.dynamic.primary,\n    default: \"#007aff\",\n  })!,\n  \u002F\u002F Deliberately fixed: text on a tinted (accent) surface stays white in both modes.\n  onTint: \"#ffffff\",\n};\n```\n\nAdd brand colors as explicit light\u002Fdark pairs only when the brand requires values the platform doesn't provide:\n\n```tsx\n\u002F\u002F theme\u002Fcolors.ts (brand additions)\nimport { useColorScheme } from \"react-native\";\n\nconst brandPalette = {\n  light: { accent: \"#5B21B6\", accentContrast: \"#FFFFFF\" },\n  dark: { accent: \"#A78BFA\", accentContrast: \"#1E1B4B\" },\n} as const;\n\nexport function useBrandColors() {\n  const scheme = useColorScheme();\n  return brandPalette[scheme === \"dark\" ? \"dark\" : \"light\"];\n}\n```\n\nKeep the brand set tiny (accent, accentContrast, maybe a tint per feature). Everything else stays semantic.\n\n**Static-safe vs hook-only.** The two patterns above have different reach - keep the boundary explicit:\n\n- Semantic\u002Fplatform colors (`colors` above) are **static-safe**: they resolve on-device, so plain token files like `theme\u002Ftypography.ts` can import them at module scope.\n- Brand light\u002Fdark 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.\n- 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.\n\n### Spacing\n\nOne scale, based on a 4-point grid. Name steps by size, not by use:\n\n```tsx\n\u002F\u002F theme\u002Fspacing.ts\nexport const spacing = {\n  xs: 4,\n  sm: 8,\n  md: 16,\n  lg: 24,\n  xl: 32,\n  xxl: 48,\n} as const;\n```\n\n- Use `gap` with spacing tokens for layout rhythm (`expo-native-ui` prefers gap over margin).\n- Screen edge padding is `spacing.md` unless the design says otherwise - pick one and keep it.\n- If a layout needs a value between steps, use the nearest step. The grid is the point.\n- 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.\n\n### Typography\n\nDefine named text styles, not raw font sizes. Mirror the platform ramp (Apple text styles) so sizes feel native:\n\n```tsx\n\u002F\u002F theme\u002Ftypography.ts\nimport { TextStyle } from \"react-native\";\nimport { colors } from \".\u002Fcolors\";\n\nexport const type = {\n  largeTitle: { fontSize: 34, fontWeight: \"700\", color: colors.label },\n  title: { fontSize: 22, fontWeight: \"600\", color: colors.label },\n  headline: { fontSize: 17, fontWeight: \"600\", color: colors.label },\n  body: { fontSize: 17, fontWeight: \"400\", color: colors.label },\n  subhead: { fontSize: 15, fontWeight: \"400\", color: colors.secondaryLabel },\n  caption: { fontSize: 12, fontWeight: \"400\", color: colors.secondaryLabel },\n} as const satisfies Record\u003Cstring, TextStyle>;\n```\n\nIf 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:\n\n```tsx\nheadline: { fontSize: 17, fontFamily: \"SFProRounded-Semibold\", color: colors.label },\n```\n\nExpose them through one component so screens never touch `fontSize`:\n\n```tsx\n\u002F\u002F components\u002Fthemed-text.tsx\nimport { Text, TextProps } from \"react-native\";\nimport { type } from \"@\u002Ftheme\";\n\nexport function ThemedText({\n  variant = \"body\",\n  style,\n  ...props\n}: TextProps & { variant?: keyof typeof type }) {\n  return \u003CText style={[type[variant], style]} {...props} \u002F>;\n}\n```\n\nScreen titles still come from the navigation stack header (`expo-native-ui` rule), so `largeTitle` is mostly for non-stack contexts.\n\n### Radius\n\n```tsx\n\u002F\u002F theme\u002Fradius.ts\nexport const radius = {\n  sm: 8,\n  md: 12,\n  lg: 16,\n  full: 9999, \u002F\u002F capsules\n} as const;\n```\n\nPair every non-capsule radius with `borderCurve: \"continuous\"` (per `expo-native-ui`).\n\n### Shadows\n\nShadows are `boxShadow` strings (never legacy shadow\u002Felevation props - see `expo-native-ui`). Two or three elevation levels are enough:\n\n```tsx\n\u002F\u002F theme\u002Fshadows.ts\nexport const shadows = {\n  card: \"0 1px 2px rgba(0, 0, 0, 0.05)\",\n  raised: \"0 4px 12px rgba(0, 0, 0, 0.10)\",\n  overlay: \"0 8px 24px rgba(0, 0, 0, 0.18)\",\n} as const;\n```\n\n### Motion\n\nDurations and shared spring\u002Feasing configs, so animations across the app feel related:\n\n```tsx\n\u002F\u002F theme\u002Fmotion.ts\nexport const motion = {\n  fast: 150, \u002F\u002F state feedback: press, toggle\n  base: 250, \u002F\u002F element transitions: enter\u002Fexit\n  slow: 400, \u002F\u002F large surfaces: sheets, screens\n} as const;\n```\n\nReanimated caveat: don't pass `Color`\u002F`PlatformColor` token values into Reanimated styles - use static colors there (see `expo-native-ui`).\n\n## Reusable Components\n\nThe theme controls values; components control structure. Shared primitives live in `src\u002Fcomponents\u002F` (see `expo-project-structure`).\n\n### The component contract\n\nEvery design-system primitive defines, explicitly:\n\n- **Variants** - visual intent: `primary`, `secondary`, `ghost`, `destructive`. Add a variant only when a real screen needs it.\n- **Sizes** - `sm`, `md`, `lg`. Default `md`. Sizes map to spacing\u002Ftypography tokens, never to fresh numbers.\n- **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.\n- **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.\n\n```tsx\n\u002F\u002F components\u002Fbutton.tsx\nimport { Pressable, ActivityIndicator, ViewStyle, StyleProp } from \"react-native\";\nimport { colors, spacing, radius } from \"@\u002Ftheme\";\nimport { ThemedText } from \".\u002Fthemed-text\";\n\nconst variants = {\n  primary: { backgroundColor: colors.systemBlue, color: colors.onTint },\n  secondary: { backgroundColor: colors.separator, color: colors.label },\n} as const;\n\nconst sizes = {\n  sm: { paddingVertical: spacing.xs, paddingHorizontal: spacing.sm },\n  md: { paddingVertical: spacing.sm, paddingHorizontal: spacing.md },\n} as const;\n\nexport function Button({\n  variant = \"primary\",\n  size = \"md\",\n  title,\n  loading,\n  disabled,\n  style,\n  onPress,\n}: {\n  variant?: keyof typeof variants;\n  size?: keyof typeof sizes;\n  title: string;\n  loading?: boolean;\n  disabled?: boolean;\n  style?: StyleProp\u003CViewStyle>;\n  onPress?: () => void;\n}) {\n  return (\n    \u003CPressable\n      accessibilityRole=\"button\"\n      disabled={disabled || loading}\n      onPress={onPress}\n      style={({ pressed }) => [\n        {\n          backgroundColor: variants[variant].backgroundColor,\n          borderRadius: radius.md,\n          borderCurve: \"continuous\",\n          alignItems: \"center\",\n          opacity: disabled ? 0.4 : pressed ? 0.7 : 1,\n          ...sizes[size],\n        },\n        style, \u002F\u002F caller overrides merge last\n      ]}\n    >\n      {loading ? (\n        \u003CActivityIndicator color={variants[variant].color as string} \u002F>\n      ) : (\n        \u003CThemedText variant=\"headline\" style={{ color: variants[variant].color }}>\n          {title}\n        \u003C\u002FThemedText>\n      )}\n    \u003C\u002FPressable>\n  );\n}\n```\n\n### Composition over configuration\n\nWhen 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.\n\n### When to extract - and when not to\n\nPromote a view into `src\u002Fcomponents\u002F` when **all** of these hold:\n\n1. It appears (or is about to appear) in **two or more screens**. Until then it stays colocated in `screens\u002F\u003Cname>\u002F` (see `expo-project-structure`).\n2. It has a **nameable role** (\"Card\", \"EmptyState\", \"Badge\") - not \"the thing on the profile screen\".\n3. 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.\n\nPromotion path: inline JSX → component in `screens\u002F\u003Cname>\u002F` → `src\u002Fcomponents\u002F`. 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.\n\nDo **not** wrap platform components that already carry the design language (`Switch`, `DateTimePicker`, stack headers, `@expo\u002Fui` views) just to route them through the system. Native styling *is* the design system for those.\n\n## Where Decisions Live\n\n| Decision | Lives in | Example |\n|---|---|---|\n| A visual value used anywhere twice | `src\u002Ftheme\u002F` | brand accent, spacing step |\n| Structure + variants of a reused element | `src\u002Fcomponents\u002F` | Button, Card, EmptyState |\n| One screen's private composition | `screens\u002F\u003Cname>\u002F` | profile header layout |\n| One-off local adjustment | inline, with a comment | optical nudge on an icon |\n| Screen titles, top-level chrome | navigation stack options | header title, large title |\n\n## Self-Critique Pass\n\nAfter building or changing a screen, screenshot it and check it against these principles (from [Expo's design-principles guide](https:\u002F\u002Fexpo.dev\u002Fblog\u002Fhow-to-apply-professional-design-principles-in-ai-app-development)). Each one maps to a system fix, not a local tweak:\n\n- **Hierarchy \u002F contrast** - is the most important element obviously first? Fix with `type` ramp steps, not ad-hoc font sizes.\n- **Proximity \u002F white space** - do related items sit closer than unrelated ones? Fix with `gap` + spacing tokens.\n- **Repetition \u002F unity** - do all corners, shadows, and accents match? If not, a value escaped the theme - move it in.\n- **Alignment** - do edges share axes? Fix with consistent screen edge padding.\n\nThe pass is complete only when all four checks pass, or every failing value has moved into the theme or a component. If a screen fails the same check twice, the fix belongs in the theme or a component - not in the screen.\n\n## Auditing an Existing App\n\nTo measure drift in an app that already has screens - hardcoded hex values, arbitrary spacing, inconsistent component APIs - follow `.\u002Freferences\u002Faudit.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.\n\n## Submitting Feedback\nIf you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:\n```bash\nnpx --yes submit-expo-feedback@latest --category skills --subject \"expo-design-system\" \"\u003Cactionable feedback>\"\n```\nOnly submit when you have something specific and actionable to report. Include as much relevant context as possible.\nIf 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.\n",{"license":15,"description":7},"main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fexpo-design-system","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add NeelakshSaxena\u002FVayu --skill expo-design-system",{"tool":37,"command":38},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill expo-design-system",{"tool":40,"command":41},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill expo-design-system","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fexpo-design-system\u002FSKILL.md",true,[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",576,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fexpo-design-system\u002Fagents\u002Fopenai.yaml",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Faudit.md",7937,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fexpo-design-system\u002Freferences\u002Faudit.md",[56,64,71,78,85,92],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]