/prometheus-skills-mini:expo-design-systemfrom prometheus-skills-mini
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/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.
Trending skills
7-day visitors to each skill page
Ships in prometheus-skills-mini. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This pinned upstream guidance is subordinate to the project's approved scope, design authority, framework versions, tool permissions, and phase boundary. Read PRODUCT.md, DESIGN.md, existing tokens and the affected application manifest before choosing advice. Apply relevant rules only; do not migrate frameworks or replace incumbent design by default.
Complete the implementation phase before a single consolidated verification pass; allow one batched correction and confirmation. Upstream per-edit tests, detector hooks and repetitive audit loops do not apply. Native platform execution requires its actual SDK/toolchain; portable guidance does not imply Windows can build or profile Apple applications. Never install a dependency, fetch a runtime, submit feedback, or message a third party merely because upstream suggests it.
Use the installed prometheus-ui-ux protocol for automatic selection. Taste guidance is limited to new surfaces or authorized redesign, one implementation plus at most one explicit overlay. No taste guidance applies to refinement or review. Existing DESIGN.md remains authoritative; generated recommendations and DESIGN.stitch.md cannot overwrite it without explicit authorization. User-only skills remain user-only in every harness; reading their source is not an invocation workaround.
Inspect the actual Expo SDK version first. Guidance requiring SDK 56+ applies only when the project already satisfies it; preserve existing UI libraries unless migration is requested.
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.
Consult these resources as needed:
Inspect the indicated project files using the harness file tools or Node.js filesystem APIs. This upstream shell example is omitted in the portable distribution.
In an app that already has screens, the first move is detection, not construction. Before writing any token file:
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).references/audit.md §5).src/theme/ next to a Tamagui config is design-system drift, not adoption.Only when nothing exists do the defaults below apply as written.
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:
spacing for layout padding is fine; a screen file redefining a button color is drift.src/theme/. One-off values that are genuinely local (an icon's 17px optical nudge) may stay inline - with a comment saying why.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:
colors above) are static-safe: they resolve on-device, so plain token files like theme/typography.ts can import them at module scope.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.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.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;
gap with spacing tokens for layout rhythm (expo-native-ui prefers gap over margin).spacing.md unless the design says otherwise - pick one and keep it.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}.
// 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 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;
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).
The theme controls values; components control structure. Shared primitives live in src/components/ (see expo-project-structure).
Every design-system primitive defines, explicitly:
primary, secondary, ghost, destructive. Add a variant only when a real screen needs it.sm, md, lg. Default md. Sizes map to spacing/typography tokens, never to fresh numbers.Pressable style function; never leave a tappable element without pressed feedback.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.// 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>
);
}
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.
Promote a view into src/components/ when all of these hold:
screens/<name>/ (see expo-project-structure).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.
| 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 |
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:
type ramp steps, not ad-hoc font sizes.gap + spacing tokens.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.
Use these names to recognize common mistakes when building and reviewing:
formSheet, @expo/ui BottomSheet) or menu; native confirmation alerts remain appropriate for consequential actions.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 source-search checks are in ./references/native-slop.md; use them to explain the problem and replacement when reviewing a screen.
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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skills-mini --plugin prometheus-skills-mini106 skills in this plugin
/adversarial-reviewIsolated, cross-model adversarial review of KBD artifacts and change diffs. Dispatches a fresh-context LLM judge over an OpenAI-compatible REST gateway (openai-proxy or `liter-llm api`) with an explicit mandate to find problems — the model that produced an artifact or change is never the model that reviews it. Runs as a pipeline stage inside kbd-assess/analyze/plan (artifact mode) and kbd-execute's per-change QA gate (diff mode). Findings are severity-bucketed (CRITICAL/WARNING/SUGGESTION) and the judge's own report is screened by sycophancy-correction before it is surfaced.
/agent-team-creatorCreate, revise, package, and deploy agent-team definitions with staged questions and native exports for UAR, Codex, Claude Code, Copilot, Kimi Code, MiniMax CLI, OpenCode and DeepSeek. Use for team definition and catalog lifecycle; use agent-team-manage for active runtime task state./agent-team-handoffPrepare and accept a durable handoff between agent roles or coding harnesses using task context, Git identity, evidence and memory references. Use when work must continue in another harness or agent; use agent-team-manage for ordinary same-owner task updates. Do not use for ordinary same-owner task updates (see agent-team-manage)./agent-team-manageManage an existing agent team's active task state: assign dependencies and owners, track evidence, cancel or reassign work, and reconcile KBD-linked completion. Use agent-team-creator for definition creation, versioned maintenance, native export, and UAR catalog deployment./agent-team-modelsDiscover configured models and choose explicit capability, strength and cost policies at team, role, skill and task levels. Use when selecting models or controlling an agent team budget; use agent-team-creator for role discovery. Unknown prices and capabilities remain unknown. Do not use for role selection (see agent-team-creator)./android-compose-adaptiveInstructions to make or update an app's UI so that it adapts to different Android devices including phones, tablets, foldables, laptops, desktop, TV, Auto and XR. It includes how to handle different window sizes, pointing devices (such as mouse) and text entry devices (such as keyboard) using the Compose MediaQuery API. It also covers multi-pane layouts using Navigation3 Scenes, adaptive UI components (such as buttons) with varying target sizes, and adaptive layouts (including navigation areas - nav rails and nav bars) using the Compose Grid and FlexBox APIs.Other plugins' skills for the same job
3 plugins in 2 repositories ship this exact skill · first indexed Nov 27, 2026