rn-styling

rn-styling is a skill for Claude Code from lukedj78/dev-flow. It costs 195 tokens per session (1,155 once invoked), scanned A, original, MIT.

A set of styling rules for React Native and Expo components, covering layouts, safe areas, dark mode, responsive screens, images, and long lists.

In plain words
What is it for?
Use it when choosing between NativeWind and StyleSheet, setting up design tokens, styling screens, handling dark mode, or optimizing images and lists.
Why use it?
It helps avoid platform-specific layout mistakes and inconsistent styling, such as forgetting that React Native stacks items vertically by default or ignoring screen cutouts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dev-flow plugin — 56 skills shipped together

Good fit Use it when choosing between NativeWind and StyleSheet, setting up design tokens, styling screens, handling dark mode, or optimizing images and lists.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lukedj78/dev-flow/rn-styling
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lukedj78/dev-flow --skill rn-styling
Clone the repo
git clone --depth 1 https://github.com/lukedj78/dev-flow

Made for: Claude Code.

Or install dev-flow, the plugin that ships this one along with the rest of its 56 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rn-styling

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukedj78/dev-flow/rn-styling/github.svg)](https://agentmods.dev/skills/lukedj78/dev-flow/rn-styling)
Your own site
<a href="https://agentmods.dev/skills/lukedj78/dev-flow/rn-styling"><img src="https://agentmods.dev/badge/skills/lukedj78/dev-flow/rn-styling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rn-styling

Your own site · 80×15
<a href="https://agentmods.dev/skills/lukedj78/dev-flow/rn-styling"><img src="https://agentmods.dev/badge/skills/lukedj78/dev-flow/rn-styling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,155 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00195 $0.01155
Opus 5.5 $0.00078 $0.00462
Sonnet 5.5 $0.00039 $0.00231
Haiku 4.5 $0.00019 $0.00115

Measured 7d ago against content hash 7f3db01631c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rn-styling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rn-styling/SKILL.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

rn-styling — guardrail for styling in React Native + Expo

The 5 rules (non-negotiable)

  1. NativeWind v4 is the default. StyleSheet only for performance-critical paths (per-frame animations etc.).
  2. No magic numbers. Every spacing/color/radius/font value comes from tailwind.config.js (which mirrors the project's DESIGN.md tokens).
  3. SafeArea mandatory on every root screen. Use SafeAreaView from react-native-safe-area-context (NOT the one from react-native).
  4. Dark mode via useColorScheme + Tailwind dark: variant. Never Appearance.getColorScheme() at module top-level.
  5. Optimized primitives: expo-image instead of Image; @shopify/flash-list for any list > 20 items.

Quick decision tree

  • "Should I style this with NativeWind or StyleSheet?" → references/decision-tree.md
  • "How do I set up NativeWind v4 from scratch?" → references/nativewind-setup.md
  • "Why does Flexbox behave differently than on the web?" → references/concepts.md
  • "What are the common patterns and anti-patterns?" → references/patterns.md
  • "Show me a real example" → references/examples/
  • "I need this screen to feel native, not just look styled" (grouped settings, native toggle/picker/slider, real bottom sheet) → this isn't a styling question, it's references/expo-ui.md (@expo/ui) — real SwiftUI/Jetpack Compose components, not RN primitives.

NativeWind vs @expo/ui — two different tools

  • NativeWind (this skill's default) styles RN's own primitives (View, Text, …) with utility classes. It changes how things look.
  • @expo/ui (see references/expo-ui.md; import paths verified against @expo/[email protected]) renders actual native components — SwiftUI on iOS, Jetpack Compose on Android — not styled primitives. Reach for it when a screen needs to genuinely behave like a native settings/picker/sheet screen, not when it just needs the right colors and spacing.
  • They compose: an @expo/ui tree can sit inside a NativeWind-styled screen. Don't use @expo/ui as a general-purpose styling system, and don't expect NativeWind classes to apply inside its native components.

Read the full file on GitHub · 47 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed 7f3db01631c9
  2. 1mo ago First seen · 47 lines · 195 tokens per session scan A 08efdbc8f303

Subscribe to this mod's changes

rn-styling is a skill published in the GitHub repository lukedj78/dev-flow (6 stars, last pushed 3d ago), licensed MIT. It adds 195 tokens to every session and 1,155 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

uniwind

Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className props, accent- color props, platform/data/state/responsive variants, CSS variables, custom utilities…

uni-stack/uniwind · 130 tokens

unistyles-v2-to-v3-migration

Migrate react-native-unistyles from v2 to v3. Triggers on: "migrate unistyles", "upgrade unistyles", "v2 to v3", "unistyles migration", "update unistyles", "convert unistyles v2". Covers all API changes including StyleSheet.create, useStyles removal, theme configuration, variants, withUnistyles, Babel plugin setup…

jpudysz/react-native-unistyles · 104 tokens

react-native-unistyles-v3

Guide for using react-native-unistyles v3. Triggers on: "unistyles", "StyleSheet.create", "create stylesheet", "add theme", "breakpoints", "variants", "withUnistyles", "useUnistyles", "ScopedTheme", "UnistylesRuntime", "style component", "responsive styles", "media queries", "dynamic styles", "scoped theme", "adaptive…

jpudysz/react-native-unistyles · 144 tokens

agent-spec-mobile-react-native

Agent skill for spec-mobile-react-native - invoke with $agent-spec-mobile-react-native.

ruvnet/ruflo · 22 tokens

moai-design-tools

Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.

modu-ai/moai-adk · 45 tokens

writing-react-native-storybook-stories

Create and edit React Native Storybook stories using Component Story Format (CSF). Use when writing .stories.tsx files, adding stories to React Native components, configuring Storybook addons (controls, actions, backgrounds, notes), setting up argTypes, decorators, parameters, or working with portable stories for…

storybookjs/react-native · 83 tokens