> ## 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.

# Custom CSS & HTML overview

> Customize your fumbled.lol profile layout and add custom HTML cards using .fumbled-* selectors and --fumbled-* CSS variables.

Open **Dashboard → Customize → Custom Code** to edit your **Custom CSS** and **Custom HTML Card** with live preview, selector autocomplete, and **Inspect Mode**.

## How the editor works

When you save, fumbled.lol compiles and sanitizes your code on the server so your profile loads without extra parsing in the visitor's browser.

* Edits appear in the dashboard preview pane as you type, before you save.
* Unsaved changes stay in a local draft per profile so you do not lose work if you leave the page.
* If anything is stripped or adjusted on save, a **Sanitizer notices** banner explains what changed.

> [!TIP]
>
> Turn on **Inspect Mode** in the Custom Code editor and hover over elements in the preview to see each selector and click to copy it.

## What is allowed

Your CSS stays scoped to your profile so it cannot affect site navigation or safety controls. Scripts, iframes, inline `style=""` attributes, and third-party image URLs are stripped on save. Upload images to your fumbled.lol file host (`cdn.fumbled.lol` or `files.fumbled.lol`) before referencing them in Custom CSS or HTML.

## Limits

| Resource | Limit | Notes |
| - | - | - |
| Custom CSS size | **32 KB** | Compiled once on save |
| Custom HTML size | **16 KB** | Rendered inside `.fumbled-custom-card` |
| Max DOM depth | **16 levels** | Deeper nested elements are removed |
| Max DOM nodes | **250 nodes** | HTML is truncated after 250 nodes |

> [!NOTE]
>
> You can move your `.fumbled-custom-card` block above or below other profile sections under **Dashboard → Customize → Appearance & Layout**.

## Reference guides

> [card] [Component selectors](https://docs.fumbled.lol/guides/custom-code/selectors.md)
>
> Browse all 24 selectors across layout, header, links, live cards, and custom blocks.

> [card] [CSS variables & rules](https://docs.fumbled.lol/guides/custom-code/css-variables.md)
>
> Use `--fumbled-*` theme variables and see which CSS at-rules are supported.

> [card] [HTML tags & security](https://docs.fumbled.lol/guides/custom-code/html-and-security.md)
>
> See all 41 allowed HTML tags, attribute rules, and sanitization limits.

> [card] [Starter recipes](https://docs.fumbled.lol/guides/custom-code/recipes.md)
>
> Copy-paste tested CSS and HTML snippets for frosted cards, monochrome themes, and link shelves.


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