packages/docs/themes/themes-advanced.md
Navigate to Nuclear > Preferences > Themes and look for the "Advanced themes" dropdown. Any JSON files you've added to your themes folder will show up here, ready to apply.
Your themes folder lives at:
~/.local/share/com.nuclearplayer/themes~/Library/Application Support/com.nuclearplayer/themes%APPDATA%/com.nuclearplayer/themesWhen you select a theme, it applies instantly. If you edit the file while it's active, your changes update live in the app.
.json file with any name you like. Copy the template at the end of this page.Here's the basic structure:
{
"version": 1,
"name": "My Theme",
"vars": { /* light mode overrides */ },
"dark": { /* dark mode overrides */ }
}
Both vars and dark are optional. You only need to include the properties you want to change.
Colors
Typography
Custom fonts must be installed on the user's system.
Borders
2px light, 1px dark)Corner radii
Shadows
version must always be 1vars and dark mode values in dark-- prefix#ff0000), OKLCH (oklch(70% 0.15 30)), or any valid CSS color valueA complete template with Nuclear's default values. Copy this and change what you want.
{
"version": 1,
"name": "My Custom Theme",
"vars": {
"background": "oklch(0.9491 0.023 341.75)",
"background-secondary": "oklch(100% 0 0)",
"background-input": "oklch(100% 0 0)",
"foreground": "oklch(0% 0 0)",
"foreground-secondary": "oklch(0.3 0 0)",
"foreground-input": "oklch(0% 0 0)",
"primary": "oklch(76.91% 0.173 341.75)",
"border": "oklch(0% 0 0)",
"border-input": "oklch(0% 0 0)",
"ring": "oklch(100% 0 0)",
"accent-green": "oklch(79.05% 0.209 147.58)",
"accent-yellow": "oklch(95.53% 0.134 112.76)",
"accent-purple": "oklch(74.2% 0.149 301.88)",
"accent-blue": "oklch(55.98% 0.08 270.09)",
"accent-orange": "oklch(83.39% 0.124 66.56)",
"accent-cyan": "oklch(88.26% 0.093 212.85)",
"accent-red": "oklch(68.22% 0.206 24.43)",
"border-width": "2px",
"shadow-color": "oklch(0% 0 0)",
"shadow-x": "2px",
"shadow-y": "2px",
"shadow-blur": "0px",
"font-family": "'DM Sans', system-ui, -apple-system, sans-serif",
"font-family-heading": "'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif",
"font-weight-normal": "400",
"font-weight-bold": "700",
"font-weight-extra-bold": "800",
"radius-sm": "4px",
"radius-md": "8px",
"radius-lg": "12px"
},
"dark": {
"background": "oklch(0.22 0.03 342)",
"background-secondary": "oklch(0.27 0.035 342)",
"background-input": "oklch(0.15 0.02 342)",
"foreground": "oklch(0.90 0.008 342)",
"foreground-secondary": "oklch(0.75 0.015 342)",
"foreground-input": "oklch(0.93 0 0)",
"primary": "oklch(0.65 0.13 342)",
"border": "oklch(0.48 0.04 342)",
"border-width": "1px",
"shadow-x": "0px",
"shadow-y": "0px"
}
}