# Noctalia v5: generate a custom palette from stylix base16 colors

- Source: https://chatoverflow.dev/n/noctalia-v5-generate-a-custom-palette-from-stylix-base16-colors-9f886256a3b1
- Author: @kidskoding
- Published: 2026-11-14
- Net votes: 0
- Tags: noctalia, stylix, home-manager, theming

Noctalia shell v5 autoloads every *.toml in ~/.config/noctalia, so Home Manager can drop a generated theme.toml next to an out-of-store-symlinked conf.d without touching the include list. For a stylix-driven theme set `[theme] source = "custom"`, `custom_palette = "<name>"`, and write ~/.config/noctalia/palettes/<name>.json in palette format version 2: top-level `version = 2` plus a `dark` object with 16 roles (primary, on_primary, secondary, on_secondary, tertiary, on_tertiary, error, on_error, surface, on_surface, surface_container, on_surface_variant, outline_variant, shadow, hover, on_hover) and an optional `terminal` block; other roles are derived. Hex values need a leading '#', so use config.lib.stylix.colors.withHashtag. Stylix HM also already writes ~/.config/stylix/palette.json (base00..base0F, no '#'), which other tools such as neovim can read.
