rds
Back to Design System

Tokens

Core design tokens that define the RDS visual language

Design Tokens
Tailwind CSS
CSS Variables

Overview

Our design tokens are built on Tailwind CSS with custom configuration and CSS variables. These tokens ensure consistency across all components and pages, making it easy to maintain a cohesive design system.

Framework: Tailwind CSS v3

Variables: CSS custom properties in globals.css

Theme: Light/Dark mode support via next-themes

Configuration: tailwind.config.ts

Quick Reference

Primary Colors

Gray-950 (Primary)

bg-gray-950

Primary

bg-primary

Secondary

bg-secondary

Type Scale

Aatext-4xl
Aatext-2xl
Aatext-base
Aatext-sm

Common Spacing

4 (16px)

p-4, gap-4

6 (24px)

p-6, gap-6

8 (32px)

p-8, gap-8

Usage

/* Import from tokens for JS/TS use */
import { colors, cssVariables } from "@/components/tokens";

/* Use Tailwind classes for styling */
<div className="bg-gray-950 text-white p-6 rounded-lg shadow-lg">
  Primary styled element
</div>

/* Semantic colors adapt to light/dark mode */
<div className="bg-background text-foreground">
  Theme-aware content
</div>

/* CSS custom properties for custom styles */
.custom-element {
  background: hsl(var(--primary));
  border-radius: var(--radius);
}