Skills core-components
📦

core-components

Safe

Build consistent UIs with core components

Also available from: ChrisWiles

Inconsistent styling and fragmented component usage create maintenance challenges. This skill provides a unified design system with tokens and patterns for cohesive interfaces.

Supports: Claude Codex Code(CC)
🥉 72 Bronze
1

Download the skill ZIP

2

Upload in Claude

Go to Settings → Capabilities → Skills → Upload skill

3

Toggle on and start using

Test it

Using "core-components". Create a settings screen header with title and icon

Expected outcome:

A ScreenHeader component with the title text using $textPrimary color and an icon positioned in an HStack with $3 gap, wrapped in a Box with $4 padding and $backgroundPrimary background.

Using "core-components". Style a disabled button

Expected outcome:

A Button component with variant set to solid, isDisabled prop set to true, which automatically applies muted styling using $textTertiary for the label color.

Security Audit

Safe
v1 • 2/24/2026

Static analyzer flagged 57 patterns (49 external_commands, 8 blocker) that are all false positives. The backtick detections are Markdown code fence delimiters (```tsx) used for syntax highlighting in documentation, not shell execution. No cryptographic code exists in this file. This is a documentation-only skill teaching React Native component library usage with design tokens. No security risks detected.

1
Files scanned
270
Lines analyzed
0
findings
1
Total audits
No security issues found
Audited by: claude

Quality Score

38
Architecture
100
Maintainability
87
Content
32
Community
100
Security
100
Spec Compliance

What You Can Build

Frontend Developer Building New Features

A developer needs to add a new settings screen with forms and lists. They use this skill to apply consistent spacing tokens, color tokens, and component patterns that match the existing design system.

Team Standardizing UI Components

A team notices inconsistent styling across their app. They use this skill to establish shared patterns for layouts, typography, and interactive elements using design tokens.

Code Reviewer Enforcing Standards

During code review, a developer identifies hard-coded values and raw platform components. They reference this skill to guide contributors toward proper token usage and core components.

Try These Prompts

Basic Component Usage
Show me how to create a card component with a title and content using the core component library with proper design tokens.
Form Layout Pattern
Create a login form with email and password inputs using VStack, Input components, and appropriate spacing tokens. Include a submit button.
List Item with Avatar
Build a list item component showing a user avatar, name, and subtitle with a chevron icon. Use HStack, proper gap tokens, and semantic color tokens for text hierarchy.
Token Conversion Review
Review this component code and identify any hard-coded values that should use design tokens. Show the corrected version with proper token usage for spacing, colors, and typography.

Best Practices

  • Always use design tokens ($4, $textPrimary) instead of hard-coded values (16, #333333)
  • Import from components/core instead of raw react-native primitives
  • Use HStack and VStack for layouts instead of manual flexbox configuration

Avoid

  • Using View and Text from react-native instead of Box and Text from core components
  • Hard-coding pixel values for spacing, colors, or typography
  • Creating inline style objects instead of using token-based props

Frequently Asked Questions

What are design tokens and why should I use them?
Design tokens are named values that represent design decisions like spacing, colors, and typography. Using tokens ensures consistency across your app and makes theme changes easier.
How do I know which spacing token to use?
Reference the spacing token table: $1 is 4px, $2 is 8px, $3 is 12px, $4 is 16px, $6 is 24px, and $8 is 32px. Choose based on the visual density needed.
Can I use core components with existing react-native code?
Yes, core components wrap react-native primitives. You can gradually migrate by replacing View with Box and Text with the core Text component.
What if I need a value that is not in the token scale?
Extend the design token system rather than hard-coding. Add the new value to your theme configuration to maintain consistency.
Are core components compatible with React Native Web?
Yes, the core component library is designed for cross-platform compatibility including iOS, Android, and Web targets.
How do I handle component variants like button styles?
Use the variant prop with predefined values like solid, outline, ghost, or link. Each variant applies consistent styling for its intended use case.

Developer Details

File structure

📄 SKILL.md