No description
  • Mustache 100%
Find a file
2026-11-30 00:20:53 +02:00
colors Add Ghostty shadow to remaining Penumbra themes 2026-11-28 11:41:20 +02:00
templates Apply layer shadow to kitty and remove draw-behind-window 2026-11-30 00:20:53 +02:00
.gitignore Initial commit: Tinted Theming templates for niri 2026-11-11 19:45:16 +02:00
LICENSE Initial commit: Tinted Theming templates for niri 2026-11-11 19:45:16 +02:00
README.md Add Ghostty quick terminal layer shadow 2026-11-28 11:39:05 +02:00

tinted-niri

Tinted Theming templates for niri, a scrollable-tiling Wayland compositor.

This repository generates a KDL color file for every Tinted Theming scheme and every color property niri exposes. The generated files only change colors, so niri merges them into your normal config without touching gaps, widths, binds, animations, or output configuration.

Supported scheme systems:

What gets themed

Each file in colors/ sets every color option that can be set globally in niri:

niri property Base16/Base24 Tinted8 Purpose
layout.background-color base00 ui.global.background.normal Workspace background
layout.fullscreen-backdrop-color base00 ui.global.background.normal Backdrop behind fullscreen windows
layout.focus-ring.active-color base0A ui.status.warning Focused window ring
layout.focus-ring.inactive-color base03 ui.border.normal Ring on unfocused outputs
layout.focus-ring.urgent-color base08 ui.status.error Urgent window ring
layout.focus-ring.*-gradient palette pairs palette pairs Commented alternatives
layout.border.active-color base0D ui.accent.normal Active window border
layout.border.inactive-color base03 ui.border.normal Inactive window border
layout.border.urgent-color base08 ui.status.error Urgent window border
layout.border.*-gradient palette pairs palette pairs Commented alternatives
layout.shadow.color base03 + alpha palette.gray.normal + alpha Window shadow
layout.shadow.inactive-color base03 + alpha palette.gray.normal + alpha Inactive window shadow
layout.tab-indicator.active-color base0D ui.accent.normal Active tab
layout.tab-indicator.inactive-color base03 ui.border.normal Inactive tab
layout.tab-indicator.urgent-color base08 ui.status.error Urgent tab
layout.tab-indicator.*-gradient palette pairs palette pairs Commented alternatives
layout.insert-hint.color base0A + alpha ui.status.warning + alpha Move/insert hint
layout.insert-hint.gradient palette pair palette pair Commented alternative
overview.backdrop-color base01 ui.global.background.dark Overview backdrop
overview.workspace-shadow.color base03 + alpha palette.gray.normal + alpha Workspace shadow in overview
recent-windows.highlight.active-color base0D + alpha ui.accent.normal + alpha Alt-Tab highlight
recent-windows.highlight.urgent-color base08 + alpha ui.status.error + alpha Alt-Tab urgent highlight
window-rule.focus-ring.* base08 / base0F ui.status.error / palette.red.dim Screencast target ring
window-rule.border.* base08 / base0F ui.status.error / palette.red.dim Screencast target border
window-rule.shadow.color base08 + alpha ui.status.error + alpha Screencast target shadow
window-rule.tab-indicator.* base08 / base0F ui.status.error / palette.red.dim Screencast target tab
layer-rule.shadow.color base03 ui.border.normal Ghostty quick-terminal shadow

The template also includes commented examples for optional gradients and for the per-output and per-layer scopes described below. The layer-rule for Ghostty's quick terminal is active by default because layer shadows must be enabled per rule.

The screencast-target window-rule is active by default. It only applies to windows that are the target of an individual-window screencast, so it is safe to leave in place.

Scoped color overrides

The generated file sets the global colors. niri additionally accepts colors in narrower scopes, which is useful when one output or workspace should look different. Add these blocks to your own config after the include so they take precedence:

Scope Where colors can be set Restrictions
Output output "<name>" { backdrop-color; layout { ... } } layout accepts every layout color property, including insert-hint and empty-workspace-above-first
Named workspace workspace "<name>" { layout { ... } } Same layout colors, except insert-hint and empty-workspace-above-first are rejected
Window window-rule { focus-ring / border / shadow / tab-indicator } Applies only to matching windows
Layer layer-rule { shadow { color; inactive-color } } Shadow colors only; shadows must be enabled per rule

For example, a per-output override:

output "eDP-1" {
    backdrop-color "#1a1b26"

    layout {
        background-color "#1a1b26"
        fullscreen-backdrop-color "#1a1b26"
        focus-ring {
            active-color "#7aa2f7"
        }
    }
}

And a per-workspace override:

workspace "gaming" {
    layout {
        background-color "#16161e"
        border {
            active-color "#e0af68"
        }
    }
}

Per-output and per-layer examples are commented out in the generated files because they need an output name or layer namespace that only you know. The same rules apply to window-rule color blocks: the theme’s screencast rule is one example, and you can add rules for other matches.

Installation

Requirements

  • niri 25.11 or newer for top-level include support. The fullscreen-backdrop-color property requires a newer niri build; remove or comment that line if your niri version does not support it yet.
  • tinty is recommended for switching themes, but is not required.

With tinty

  1. Add the template to ~/.config/tinted-theming/tinty/config.toml:

    [[items]]
    path = "https://github.com/tinted-theming/tinted-niri"
    name = "tinted-niri"
    themes-dir = "colors"
    supported-systems = ["base16", "base24", "tinted8"]
    hook = "cp -f \"$TINTY_THEME_FILE_PATH\" ~/.config/niri/tinted-niri.kdl"
    
  2. Sync and apply a scheme:

    tinty sync
    tinty apply base16-catppuccin-mocha
    
  3. Include the generated file at the top level of ~/.config/niri/config.kdl, after your own layout { } block:

    include "~/.config/niri/tinted-niri.kdl"
    

    Includes are positional, so anything after the include line overrides the theme. Niri watches the file and reloads live when tinty rewrites it.

Manual

Copy or download any file from colors/ and include it:

curl -fsSL \
  https://raw.githubusercontent.com/tinted-theming/tinted-niri/main/colors/base16-catppuccin-mocha.kdl \
  > ~/.config/niri/tinted-niri.kdl
// ~/.config/niri/config.kdl
include "~/.config/niri/tinted-niri.kdl"

To use a different scheme, replace the file. If the file may be missing, use an optional include:

include optional=true "~/.config/niri/tinted-niri.kdl"

Validate the result with:

niri validate

Enabling colors that are off by default

The theme file is an include, so it sets colors without forcing layout features on or off. In your main config:

  • Focus ring is on by default, so its colors apply immediately.
  • Border is off by default. Uncomment border { on } (or // on inside the generated border block) to show it.
  • Shadow is off by default. Uncomment shadow { on } to show it.
  • Tab indicator is on by default, but only appears in tabbed columns.
  • Layer-shell shadows must be enabled per layer-rule. The Ghostty quick terminal rule is active by default; add similar rules for other layers (see the commented example at the end of each generated file).

Building the templates

This repository follows the Tinted Theming template layout:

templates/config.yaml
templates/default.mustache   # Base16 / Base24
templates/tinted8.mustache   # Tinted8
colors/                      # generated, one KDL per scheme

Build with tinted-builder-rust:

cargo install tinted-builder-rust
tinted-builder-rust sync
tinted-builder-rust build .

Or build against a local schemes checkout:

git clone https://github.com/tinted-theming/schemes.git
tinted-builder-rust build . --schemes-dir ./schemes

Do not edit files in colors/ by hand. Edit the Mustache templates and rebuild.

License

MIT