Skip to content

About

Custom colorschemes contributed by the community.

Resources

Stars

43 stars

Watchers

1 watching

Forks

Latest commit

 

History

368 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Community palettes

Noctalia Logo


A palette is the set of colors Noctalia paints itself with, and that templates push out to your other apps.

This repo is the community palette source. Merged palettes are served from https://api.noctalia.dev/palette/<name> and appear in Settings -> Color scheme, where any user can pick them. PRs are welcome.

Layout

One directory per palette. The directory name is the palette name users see, so it must begin with an uppercase letter; spaces are fine (Rose Pine Moon/). Each directory must contain exactly one JSON file named exactly after it, including case:

Rose Pine Moon/
  Rose Pine Moon.json

registry.json at the repo root indexes every palette. It is generated by CI, so never edit it or include it in a commit. A PR that touches it is failed automatically.

The palette file

A palette defines a dark and a light variant. Both are required: users switch between them, and a palette that only looks right in one is a palette that breaks for half of them.

A palette file starts with "version": 2, the palette format it is written in, followed by the two variants. Each variant has 16 color roles plus a terminal block. Every key is the name of the color role it sets:

{
  "version": 2,
  "base": "Gruvbox",   // optional: family name, groups variants in the picker
  "dark": {
    "primary": "#a9b665",            // accent: active elements, highlights
    "on_primary": "#282828",         // text and icons drawn on top of primary
    "secondary": "#d8a657",
    "on_secondary": "#282828",
    "tertiary": "#7db2ba",
    "on_tertiary": "#282828",
    "error": "#ea6962",
    "on_error": "#282828",
    "surface": "#282828",            // the main background
    "on_surface": "#d4be98",         // the main text color
    "surface_container": "#32302f",  // raised or inset surfaces
    "on_surface_variant": "#a89984",
    "outline_variant": "#504945",    // borders and dividers
    "shadow": "#000000",
    "hover": "#a9b665",              // hover state
    "on_hover": "#282828",

    "terminal": {
      "normal":  { "black": "#282828", "red": "#ea6962", "green": "#a9b665", "yellow": "#d8a657",
                   "blue": "#7db2ba", "magenta": "#d3869b", "cyan": "#89b482", "white": "#d4be98" },
      "bright":  { "black": "#928374", "red": "#ea6962", "green": "#a9b665", "yellow": "#d8a657",
                   "blue": "#7db2ba", "magenta": "#d3869b", "cyan": "#89b482", "white": "#dfbf8e" },
      "foreground": "#d4be98",
      "background": "#282828",
      "selection_fg": "#282828",
      "selection_bg": "#d4be98",
      "cursor_text": "#282828",
      "cursor": "#d4be98"
    }
  },

  "light": { }                      // the same shape again
}

A palette that is one variant of a larger family can name that family in an optional top-level "base", next to version: "base": "Catppuccin". Noctalia groups palettes that share a base under one collapsible entry in the palette picker. Use the exact spelling other palettes of the family already use; leave it out for a standalone palette.

Copy an existing palette as your starting point; every key above is required in both variants, and CI rejects any key that is not listed. Format 1 files had no version and used m-prefixed camelCase names (mOnPrimary, mSurfaceVariant for surface_container, mOutline for outline_variant, terminal selectionFg); do not use them. Noctalia 5.4.1 and earlier still read only those, and the palette API converts format 2 files back to them for those releases automatically.

Colors are #rrggbb, exactly six hex digits. No named colors, no shorthand, and no alpha: Noctalia drops a value it cannot parse and the role silently falls back to something else, so #00000020 does not give you a translucent shadow, it gives you a broken one. CI rejects anything that is not six hex digits.

Every on_x has to be legible on its x, and on_surface_variant on surface_container. That is the whole job of those pairs, and it is what reviewers look at first. CI measures each pair as a WCAG contrast ratio: below 2.0:1 the check fails (that text is not readable at any size), and 2.0:1 to 3.0:1 is reported as a warning for the reviewer to weigh. Light variants are where this bites, because a near-white on_primary on a mid-tone accent is usually the pair that goes thin.

The Theming docs describe what each role drives.

Test it before you PR

Drop your JSON into the palettes/ folder of your Noctalia config directory and point the config at it:

[theme]
source = "custom"

That is the same loader the shipped palettes go through, without touching the registry. A format 2 file needs a Noctalia release newer than 5.4.1. Switch between dark and light, open a few panels, and open a terminal to check the terminal colors.

Run the contrast check the way CI will, before you open the PR (needs jq):

./.github/workflows/contrast-check.sh "My Palette"/*.json   # add --all to list passing pairs too

Submitting

Open a PR against main. CI checks every changed palette on each push: version is 2, base, when present, is a non-empty string, all required roles present and no unknown keys, every color a valid #rrggbb, and every on_x legible on its x. It comments on the PR with anything it finds.

  • One palette per PR.
  • Pick a name that is not already taken in this repo.
  • Screenshots of Noctalia with your palette applied, in both dark and light (the PR template asks for these).
  • Do not edit registry.json.

Help

About

Custom colorschemes contributed by the community.

Resources

Stars

43 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors