# Hugo Blox Tailwind CSS v4 Color System ## Architecture Overview This system leverages Tailwind CSS v4's automatic utility generation to provide a comprehensive color system with minimal code. ### How It Works 1. **Theme Configuration** (`config/theme.css`) - Colors defined in `@theme` block automatically generate ALL utilities - Includes standard Tailwind colors: gray, slate, zinc, neutral, stone - Includes themeable colors: primary, secondary 2. **Theme Files** (`themes/*.css`) - Small files that override `--color-primary-*` and `--color-secondary-*` variables - Users switch themes by loading different theme CSS files - No utilities redefined - just color values changed 3. **Custom Utilities** (`color-utilities.css`) - Only 42 lines vs previous 1,228 lines! - Contains only custom colors not auto-generated (like `hb-dark`) ### Available Colors **Standard Colors (always available):** - `gray-*` - Neutral grays - `slate-*` - Cool grays - `zinc-*` - True grays - `neutral-*` - Pure grays - `stone-*` - Warm grays **Themeable Colors (vary by theme):** - `primary-*` - Main theme color - `secondary-*` - Accent theme color **Custom Colors:** - `hb-dark` - Hugo Blox brand dark color ### Auto-Generated Utilities For every color defined in `@theme`, Tailwind automatically creates: - Background: `bg-{color}-{shade}` - Text: `text-{color}-{shade}` - Border: `border-{color}-{shade}` - Hover: `hover:bg-{color}-{shade}`, `hover:text-{color}-{shade}` - Dark mode: `dark:bg-{color}-{shade}`, `dark:text-{color}-{shade}` - Gradients: `from-{color}-{shade}`, `to-{color}-{shade}` - Focus rings: `focus:ring-{color}-{shade}` - All other Tailwind color variants ### Shades Available All colors include 11 shades: `50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950` ### Usage Examples ```html