feat(themes): add popular themes, remove redundant default

- Delete default.css (redundant with dracula.css)
- Add snazzy, catppuccin_mocha, tokyonight, rose_pine, onedark themes
- Update docs/static/style.css to import dracula.css
- Update themes/README.md and syntax-highlighting.md

Theme collection now contains 10 well-designed options.
This commit is contained in:
Timothy DeHerrera
2026-02-05 13:04:39 -07:00
parent 113b7e4a4c
commit 5ae8ae6e53
8 changed files with 1652 additions and 236 deletions

View File

@@ -4,14 +4,18 @@ This directory contains CSS themes for sukr's syntax highlighting system.
## Available Themes
| Theme | Description |
| ------------------ | --------------------------- |
| `default.css` | Dracula-inspired dark theme |
| `dracula.css` | Classic Dracula colors |
| `gruvbox.css` | Warm retro palette |
| `nord.css` | Cool arctic colors |
| `github_dark.css` | GitHub's dark mode |
| `github_light.css` | GitHub's light mode |
| Theme | Description |
| ---------------------- | ---------------------------- |
| `dracula.css` | Classic Dracula colors |
| `gruvbox.css` | Warm retro palette |
| `nord.css` | Cool arctic colors |
| `github_dark.css` | GitHub's dark mode |
| `github_light.css` | GitHub's light mode |
| `snazzy.css` | Vibrant modern colors |
| `catppuccin_mocha.css` | Warm pastel dark theme |
| `tokyonight.css` | Japanese-inspired dark theme |
| `rose_pine.css` | Elegant soho-inspired theme |
| `onedark.css` | Classic Atom editor theme |
## Usage
@@ -19,7 +23,7 @@ This directory contains CSS themes for sukr's syntax highlighting system.
2. **Import it** in your main CSS file:
```css
@import "themes/default.css";
@import "themes/dracula.css";
```
sukr uses [lightningcss](https://lightningcss.dev/) which bundles `@import` rules at build time—your final CSS will be a single minified file.
@@ -29,7 +33,7 @@ sukr uses [lightningcss](https://lightningcss.dev/) which bundles `@import` rule
Themes use CSS custom properties for easy customization. Override any variable in your own CSS:
```css
@import "themes/default.css";
@import "themes/dracula.css";
/* Override just the keyword color */
:root {
@@ -83,7 +87,7 @@ If a specific class isn't styled, highlighting falls back up the hierarchy.
## Creating Custom Themes
Start with `default.css` and modify the `:root` variables to create your own color scheme. The class rules reference these variables, so changing values updates the entire theme.
Start with any theme (e.g., `dracula.css`) and modify the `:root` variables to create your own color scheme. The class rules reference these variables, so changing values updates the entire theme.
## Note