Claude Skills Guide

Open Props has become one of the most popular CSS variable-based design systems for developers who want lightweight, customizable design tokens without the overhead of a full component library. When combined with Claude Code’s AI capabilities, you can rapidly scaffold design systems, generate consistent token usage, and maintain design consistency across projects. This guide walks through practical approaches to integrating Open Props with your Claude Code workflow.

What Are Open Props Design Tokens

Open Props is a CSS-native design token system that provides variables for colors, spacing, typography, shadows, and more. Unlike heavy UI frameworks, Open Props lets you import only what you need. The tokens are CSS custom properties that follow a consistent naming convention, making them easy to understand and modify.

The core tokens include color scales, spacing units, font sizes, border radii, and shadows. Each category follows a predictable pattern:

--gray-1: #f7f7f8;
--gray-2: #ececf1;
--gray-6: #545459;
--gray-12: #0d0d0f;

--space-1: 0.25rem;
--space-2: 0.5rem;
--space-4: 1rem;
--space-8: 2rem;

--font-size-xs: 0.75rem;
--font-size-sm: 0.875rem;
--font-size-base: 1rem;

Setting Up Open Props with Claude Code

When starting a new project, you can use Claude Code to generate the complete Open Props setup. The frontend-design skill provides structured guidance for component-based architecture, but you can also work directly with Open Props for maximum flexibility.

First, install Open Props via your preferred package manager:

npm install open-props

Then import the tokens you need in your CSS:

@import "open-props/style";
@import "open-props/normalize";

For better tree-shaking, import individual token categories:

@import "open-props/colors";
@import "open-props/spacing";
@import "open-props/typography";

Using Claude Code to Generate Token-Based Components

Claude Code excels at generating consistent component styles using your design tokens. When working on a new component, describe your requirements and reference the specific Open Props tokens you want to use:

Create a card component using Open Props tokens. 
Use --gray-1 for background, --gray-12 for text, 
--space-4 for padding, --radius-lg for border-radius, 
and --shadow-3 for the shadow.

Claude Code will generate markup and styles like this:

<article class="card">
  <h2 class="card-title">Card Title</h2>
  <p class="card-content">Your content here</p>
</article>
.card {
  background: var(--gray-1);
  color: var(--gray-12);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}

Extending Open Props with Custom Tokens

Your project may require tokens beyond what Open Props provides. Create a custom tokens file that extends the base system:

/* custom-tokens.css */
:root {
  /* Brand colors extending Open Props */
  --brand-primary: #6366f1;
  --brand-secondary: #8b5cf6;
  --brand-surface: #fafafa;
  
  /* Semantic tokens */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  /* Custom spacing */
  --space-container: var(--space-12);
  --space-section: var(--space-16);
}

Import your custom tokens after Open Props to allow overrides:

@import "open-props/colors";
@import "open-props/spacing";
@import "custom-tokens";

Working with Typography Tokens

Open Props typography tokens provide a comprehensive scale. The font-size tokens work with your root font size to create consistent type hierarchies. Combine them with the line-height and font-weight tokens for complete type styles:

.heading-1 {
  font-size: var(--font-size-7);
  line-height: var(--font-lineheight-1);
  font-weight: var(--font-weight-7);
}

.body-text {
  font-size: var(--font-size-3);
  line-height: var(--font-lineheight-3);
}

For projects using the tdd skill for test-driven development, you can verify typography consistency by checking computed styles against these token values.

Animation and Transition Tokens

Open Props includes animation tokens for smooth transitions and micro-interactions. Use these tokens to maintain consistent motion design:

.button {
  transition: background var(--transition-1), transform var(--transition-1);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

The animation tokens cover durations, easings, and keyframe definitions, making it simple to create cohesive motion patterns throughout your application.

Practical Workflow with Claude Code Skills

When working on complex projects, combine multiple Claude Code skills for optimal results. The pdf skill helps generate design documentation from your token specifications. Use supermemory to remember project-specific token conventions across sessions.

For team projects, document your custom token extensions in a central location. When onboarding new developers, have Claude Code explain the token system structure using the frontend-design skill’s component patterns.

Performance Considerations

Open Props tokens are CSS custom properties, which means they inherit and cascade naturally. However, excessive token usage can impact CSS specificity and maintenance. Follow these practices:

Conclusion

Open Props provides a flexible foundation for design token management that pairs excellently with Claude Code’s generative capabilities. By establishing clear token conventions and using AI-assisted code generation, you can build consistent design systems efficiently. The key is starting with the base tokens and extending thoughtfully for your project’s specific needs.

Built by theluckystrike — More at zovo.one