정보
이 스킬은 개발자가 Expo 앱 내에서 일관된 디자인 시스템을 구축하고 유지할 수 있도록 지원하며, 재사용 가능한 디자인 토큰 테마와 구조화된 컴포넌트 라이브러리를 제공합니다. 스타일 표준화, 기존 스타일링 라이브러리 확장, 디자인 시스템 이탈 감사를 위해 사용됩니다. 플랫폼별 스타일링이나 Tailwind 설정의 경우, `expo-native-ui` 및 `expo-tailwind-setup`과 같은 보완적 스킬들을 참조합니다.
빠른 설치
Claude Code
추천npx skills add expo/skills -a claude-code/plugin add https://github.com/expo/skillsgit clone https://github.com/expo/skills.git ~/.claude/skills/expo-design-systemClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
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-tailwind-setup- if the project uses Tailwind, tokens live inglobal.cssas CSS variables instead of TypeScript. The scales and naming in this skill still apply; only the storage format changes.expo-project-structure- folder skeleton for new apps.
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
Adopt Before You Build
In an app that already has screens, the first move is detection, not construction. Before writing any token file:
- Look for a declared system. Check
package.jsonfor a styling library - NativeWind/Tailwind (useexpo-tailwind-setup), Tamagui, Restyle, Unistyles, styled-components. Then look for a token file:theme.ts,src/theme/,constants/theme.ts, orconstants/Colors.ts(the create-expo-app default). - 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.
- 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). - 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
spacingfor 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 (
colorsabove) are static-safe: they resolve on-device, so plain token files liketheme/typography.tscan 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
typeramp step, avariantsobject) needs the brand accent, either apply the brand color in the component at render time, or wrap the pair in a static dynamic color (DynamicColorIOSon 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
gapwith spacing tokens for layout rhythm (expo-native-uiprefers gap over margin). - Screen edge padding is
spacing.mdunless 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.
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. Defaultmd. Sizes map to spacing/typography tokens, never to fresh numbers. - States - default, pressed (not hover - this is touch), disabled, loading. Handle pressed with a
Pressablestyle function; never leave a tappable element without pressed feedback. - Style override - accept a
styleprop 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.
// 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"
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:
- It appears (or is about to appear) in two or more screens. Until then it stays colocated in
screens/<name>/(seeexpo-project-structure). - It has a nameable role ("Card", "EmptyState", "Badge") - not "the thing on the profile screen".
- 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
typeramp 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.
The 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.
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.
GitHub 저장소
자주 묻는 질문
expo-design-system Skill이란 무엇인가요?
expo-design-system은(는) expo이(가) 만든 Claude Skill입니다. Skill은 Claude가 필요할 때 불러오는 지침과 리소스를 묶어 추가 프롬프트 없이 expo-design-system 관련 작업을 수행할 수 있게 합니다.
expo-design-system은(는) 어떻게 설치하나요?
이 페이지의 설치 명령을 사용하세요. expo-design-system을(를) Claude Code 플러그인으로 추가하거나 저장소를 skills 디렉터리에 복제한 다음 Claude를 다시 시작해 Skill을 불러옵니다.
expo-design-system은(는) 어떤 카테고리에 속하나요?
expo-design-system은(는) 메타 카테고리에 속합니다.
expo-design-system은(는) 무료로 사용할 수 있나요?
네. expo-design-system은(는) AIMCP에 등록되어 있으며 무료로 설치할 수 있습니다.
연관 스킬
이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
