๐จ Statue SSG Themes
January 4, 2026 ยท View on GitHub
This folder contains different color themes. Each theme file uses the same CSS variables but with different color palettes.
๐ฆ Available Themes
| Theme | File | Primary Color | Description |
|---|---|---|---|
| Black & White | black-white.css | Monochrome | Minimalist black and white theme |
| Blue | blue.css | #3b82f6 | Navy background, blue accents |
| Red | red.css | #ef4444 | Dark red background, red accents |
| Orange | orange.css | #f97316 | Brown background, orange accents |
| Green | green.css | #10b981 | Dark green background, emerald accents |
| Purple | purple.css | #a855f7 | Dark purple background, purple accents |
| Cyan | cyan.css | #06b6d4 | Dark cyan background, cyan accents |
| Pink | pink.css | #ec4899 | Dark pink background, pink accents |
| Claude Theme | claude-theme.css | #d97757 | Warm dark background, coral accents |
๐ง Theme Usage
Method 1: Use Built-in Themes (Recommended)
Import a built-in theme from statue-ssg in your src/lib/index.css file:
@import "tailwindcss";
/* Choose from built-in themes */
@import "statue-ssg/themes/blue.css";
/* or */
@import "statue-ssg/themes/red.css";
/* or any other built-in theme */
@source "../";
@source "../../node_modules/statue-ssg/src/**/*.{svelte,js,ts}";
Method 2: Create Custom Theme
Create your own theme file in your project (e.g., src/lib/themes/my-theme.css):
/* My Custom Theme */
@theme {
--color-background: #1a1600;
--color-card: #2a2400;
--color-border: #4a4200;
--color-foreground: #fffef0;
--color-muted: #fde047;
--color-primary: #facc15;
--color-secondary: #fde047;
--color-accent: #eab308;
--color-on-primary: #000000;
--color-on-background: #2a2400;
--color-hero-from: #1a1600;
--color-hero-via: #2a2400;
--color-hero-to: #1a1600;
}
Then import it in src/lib/index.css:
@import "tailwindcss";
@import "./themes/my-theme.css"; /* Your custom theme */
@source "../";
@source "../../node_modules/statue-ssg/src/**/*.{svelte,js,ts}";
Method 3: Inline Theme Variables
Copy the @theme block from any theme file and paste it directly into your src/lib/index.css file.
๐จ Theme Variables
Each theme defines the following CSS variables:
Base Palette
--color-background- Main background color--color-card- Card/section background color--color-border- Border color--color-foreground- Main text color--color-muted- Secondary/muted text color
Brand Colors
--color-primary- Primary accent color (buttons, links)--color-secondary- Secondary accent color--color-accent- Tertiary accent color
Text Colors
--color-on-primary- Text on primary color--color-on-background- Contrast text on background
Gradient Colors
--color-hero-from- Hero gradient start--color-hero-via- Hero gradient middle--color-hero-to- Hero gradient end
โจ Creating a New Theme
To create a new theme:
- Use the template: Copy
custom-theme.template.cssfrom this folder to your project'ssrc/lib/themes/directory - Rename the file: Give it a meaningful name (e.g.,
my-brand.css,yellow.css) - Customize the colors: Update all color values to match your brand
- Import it: Add
@import "./themes/your-theme.css";in yoursrc/lib/index.css
Quick example:
/* Yellow Theme */
@theme {
--color-background: #1a1600;
--color-card: #2a2400;
--color-border: #4a4200;
--color-foreground: #fffef0;
--color-muted: #fde047;
--color-primary: #facc15;
--color-secondary: #fde047;
--color-accent: #eab308;
--color-on-primary: #000000;
--color-on-background: #2a2400;
--color-hero-from: #1a1600;
--color-hero-via: #2a2400;
--color-hero-to: #1a1600;
}
๐ก Tips
- Use
color-scheme: darkfor dark themes - Use RGB values of the primary color for hover effects
- Test contrast ratio (WCAG AA standard)
- Maintain consistency across all pages