# CSS Migration Guide
This guide documents the migration from legacy `.igny8-*` classes and `--igny8-*` variables to the new standardized design token system.
## Overview
All design tokens are now centralized in `/src/styles/tokens.css` with plain naming (no "igny8" prefix). The legacy `igny8-colors.css` file is maintained for backward compatibility but should not be used in new code.
## Color Token Migration
### CSS Variables
**Before:**
```tsx
Content
```
**After:**
```tsx
Content
```
### Complete Variable Mapping
| Legacy Variable | New Token | Usage |
|----------------|-----------|-------|
| `--igny8-blue` | `--color-primary` | Primary brand color |
| `--igny8-blue-dark` | `--color-primary-dark` | Primary dark variant |
| `--igny8-green` | `--color-success` | Success states |
| `--igny8-green-dark` | `--color-success-dark` | Success dark variant |
| `--igny8-amber` | `--color-warning` | Warning states |
| `--igny8-amber-dark` | `--color-warning-dark` | Warning dark variant |
| `--igny8-red` | `--color-danger` | Danger/error states |
| `--igny8-red-dark` | `--color-danger-dark` | Danger dark variant |
| `--igny8-purple` | `--color-purple` | Purple accent |
| `--igny8-purple-dark` | `--color-purple-dark` | Purple dark variant |
## Utility Class Migration
### Background Colors
**Before:**
```tsx
Content
```
**After (Option 1 - Tailwind):**
```tsx
Content
```
**After (Option 2 - CSS Variable):**
```tsx
Content
```
### Text Colors
**Before:**
```tsx
Text
```
**After (Option 1 - Tailwind):**
```tsx
Text
```
**After (Option 2 - CSS Variable):**
```tsx
Text
```
### Border Colors
**Before:**
```tsx
Content
```
**After (Option 1 - Tailwind):**
```tsx
Content
```
**After (Option 2 - CSS Variable):**
```tsx
Content
```
## Component Migration
### Buttons
**Before:**
```tsx
Click me
```
**After:**
```tsx
import Button from '@/components/ui/button/Button';
```
### Badges
**Before:**
```tsx
New
```
**After:**
```tsx
import Badge from '@/components/ui/badge/Badge';
New
```
### Cards
**Before:**
```tsx