> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fumbled.lol/llms.txt
> Use this file to discover all available pages before exploring further.

# Theme CSS variables & rules

> Reference for all --fumbled-* CSS custom properties, supported at-rules (@media, @supports, @container, @keyframes), and CSS compiler rules.

Use fumbled.lol's `--fumbled-*` CSS custom properties so your custom styles automatically adapt to your active theme, accent color, font stack, and border radius.

## Theme CSS variables

| Variable | Description | Example |
| - | - | - |
| `--fumbled-accent` | Profile accent color (falls back to `#6366f1`). | `var(--fumbled-accent)` |
| `--fumbled-card-bg` | Resolved card background color. | `var(--fumbled-card-bg)` |
| `--fumbled-text` | Primary adaptive text color. | `var(--fumbled-text)` |
| `--fumbled-text-muted` | Secondary/muted adaptive text color. | `var(--fumbled-text-muted)` |
| `--fumbled-border` | Resolved card border color. | `var(--fumbled-border)` |
| `--fumbled-font` | Active profile font family stack. | `var(--fumbled-font)` |
| `--fumbled-radius` | Active card border radius. | `var(--fumbled-radius)` |

### Using variables with `color-mix()`

Combine `--fumbled-accent` with `color-mix()` for subtle borders, glows, and hover states that always match your profile accent:

```css Accent border and glow theme={null}
.fumbled-card {
  border: 1px solid color-mix(in srgb, var(--fumbled-accent) 45%, transparent);
  border-radius: var(--fumbled-radius);
  font-family: var(--fumbled-font);
}

.fumbled-tag:hover {
  border-color: color-mix(in srgb, var(--fumbled-accent) 65%, transparent);
}
```

## CSS compiler rules

When you save, the server-side CSS compiler tokenizes and rewrites your stylesheet:

* Every selector is scoped under `#fumbled-profile-root` so rules only affect your profile.
* `@media`, `@supports`, `@container`, and `@keyframes` (including `-webkit-keyframes`) are supported. `@keyframes` names are prefixed per profile (`u-<prefix>-<name>`), and `animation` / `animation-name` references are rewritten to match. Other at-rules such as `@import` are removed.
* Any `z-index` outside `-10..100` is clamped into range so platform report and safety controls stay above user styles.
* `url(...)` values are restricted to relative non-API paths or HTTPS URLs on `cdn.fumbled.lol`, `files.fumbled.lol`, `fumbled.lol`, and `www.fumbled.lol`.
* Raw CSS is capped at **32 KB**.

```css Responsive & animated example theme={null}
@keyframes float-badge {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}

.fumbled-badge:hover {
  animation: float-badge 240ms ease forwards;
}

@media (max-width: 640px) {
  .fumbled-card {
    padding: 16px;
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.