# CSSFUN > Near-zero runtime CSS-in-JS library Write modular **CSS** within your **JavaScript** code with built-in **themes** and **SSR** support. ## Docs - [Writing styles](https://cssfun.js.org/docs/styles.md): class name generation and the style syntax: nesting, class references, global styles and at-rules. - [Themes](https://cssfun.js.org/docs/themes.md): creating a theme, color schemes and using its CSS variables. - [Server-side rendering](https://cssfun.js.org/docs/ssr.md): rendering styles on the server, hydration, code splitting and Content Security Policy nonces. - [Extending](https://cssfun.js.org/docs/extending.md): custom renderers, subclassing `StyleSheet` and separate registries. - [TypeScript](https://cssfun.js.org/docs/typescript.md): class name inference, CSS property autocomplete and exported types. - [API documentation](https://cssfun.js.org/docs/api.md): every CSSFUN function, class, method and option. - [Agent skill](https://github.com/8tentaculos/cssfun/blob/master/skills/cssfun/SKILL.md): the API, style syntax, themes and best practices for coding agents. Install it with `npx skills add 8tentaculos/cssfun`, or copy `node_modules/cssfun/skills/cssfun` into your agent's skills folder. ## Optional - [README](https://cssfun.js.org/index.md): features, installation and getting started. - [Changelog](https://github.com/8tentaculos/cssfun/blob/master/CHANGELOG.md): release history and migration notes. - [Full documentation](https://cssfun.js.org/llms-full.txt): the README and every documentation page in one file.