# Customizing Theme Colors & Fonts

## Customizing Theme Colors & Fonts

**Files:** `src/styles/theme.css`, `src/config/fonts.json` · **Skill level:** Beginner

The Looka theme uses CSS variables in `src/styles/theme.css` for colors and typography. Update these values to match your brand.

```css
/* src/styles/theme.css */
@theme inline {
  /* Configure font families in `src/config/fonts.json` */
  --leading-body: 1.8;
  --leading-inherit: inherit;

  /* Colors */
  --color-primary: #1f58eb;
  --color-secondary: #BCD4FF;
  --color-accent: #E4EA8C;
  --color-body: #fff;
  --color-border-light: #E5E5E5;
  --color-theme-dark: #101E43;
  --color-theme-light: #F9FBFF;
  
  --color-text-default: #2E2E2E;
  --color-dark: #000E30; /* Heading colors */
  --color-light: #565555;

}
```

### Customizing Colors
- Adjust the `--color-*` variables to match your brand palette.
- Update `--color-text-*` variables to refine text contrast.

---

### Typography Settings
Fonts are configured in `src/config/fonts.json` and loaded automatically.

```json
[
  {
    "name": "DM Sans",
    "weights": [400, 500, 600, 700],
    "styles": ["normal"],
    "preload": true,
    "display": "swap",
    "cssVariable": "--font-primary",
    "provider": "google",
    "subsets": ["latin"],
    "fallbacks": ["sans-serif"]
  },
  {
    "name": "Syne",
    "weights": [700],
    "styles": ["normal"],
    "preload": true,
    "display": "swap",
    "cssVariable": "--font-secondary",
    "provider": "google",
    "subsets": ["latin"],
    "fallbacks": ["sans-serif"]
  },
  {
    "name": "IBM Plex Sans Arabic",
    "weights": [400, 500, 600, 700],
    "styles": ["normal"],
    "preload": false,
    "display": "swap",
    "cssVariable": "--font-arabic",
    "provider": "google",
    "subsets": ["arabic"],
    "fallback": false,
    "languages": ["ar"]
  }
]
```

#### Font Customization
- Update `name`, `weights`/`variants`, and `styles` to match your brand.
- Keep `cssVariable` in sync with theme styles that reference it.
- For local fonts, ensure the `src` paths exist and are committed.
- `languages` loads a font only on those languages' pages. The Arabic font loads only on Arabic pages. See [RTL & Arabic](../../features/rtl-arabic/).