> react-native-dls

Enforce design token usage in React Native. Use when enforcing a design system, preventing hardcoded styles, or implementing theme tokens in React Native. (triggers: **/*Screen.tsx, **/*Component.tsx, **/theme/**, **/styles/**, StyleSheet, styled-components, theme, colors, spacing)

fetch
$curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/react-native-dls?format=md"
SKILL.mdreact-native-dls

React Native Design System

Priority: P1 (OPERATIONAL)

Enforce design token usage in React Native apps.

Guidelines

  • Structure: Define tokens in theme/colors.ts, spacing.ts, typography.ts.
  • Usage: Import tokens (colors.primary) instead of literals (#000).
  • Styling: Compatible with StyleSheet and styled-components.

Usage Examples

Anti-Patterns

  • No Inline Colors: Use '#FF0000' → Error. Import from theme/colors.
  • No Magic Spacing: Use padding: 16 → Error. Use spacing.md.
  • No Inline Fonts: Define fontSize: 20 → Error. Use typography.h1.

Related Topics

mobile-ux-core | react-native/performance

┌ stats

installs/wk0
░░░░░░░░░░
github stars341
██████████
first seenMar 17, 2026
└────────────

┌ repo

HoangNguyen0403/agent-skills-standard
by HoangNguyen0403
└────────────

┌ tags

└────────────