/**
* @name Gruvpine system24
* @description system24 (a tui-style discord theme) recoloured to Gruvpine, the NixDaemon system palette.
* @author daemon-sec
* @version 1.0.0
* @website https://github.com/refact0r/system24
* @source https://github.com/refact0r/system24/blob/master/theme/system24.theme.css
*
* Based on system24 v2.0.0 by refact0r (https://www.refact0r.dev).
* Every layout/behaviour option below is unchanged from upstream -- only the
* colour block at the bottom is remapped to Gruvpine: Gruvbox's warm charcoal,
* cream, gold and sage under Rosé Pine's soft accents (NixDaemon modules/_palette.nix).
*
* Palette:
* base #282828 surface #32302f overlay #3c3836
* muted #928374 subtle #a89984 text #ebdbb2
* love #eb6f92 gold #fabd2f rose #ebbcba
* sage #b8bb26 foam #9ccfd8 iris #c4a7e7
* highlight low #32302f med #504945 high #665c54
*/
/* import theme modules */
@import url('https://refact0r.github.io/system24/build/system24.css');
body {
/* font, change to '' for default discord font */
/* NOTE: this is the fontconfig family name of the installed Nerd Font
build. Plain 'DM Mono' does NOT match it and would silently fall back. */
--font: 'DMMono Nerd Font'; /* change to '' for default discord font */
--code-font: 'DMMono Nerd Font'; /* change to '' for default discord font */
font-weight: 300; /* text font weight. 300 is light, 400 is normal. DOES NOT AFFECT BOLD TEXT */
letter-spacing: -0.05ch; /* decreases letter spacing for better readability. recommended on monospace fonts.*/
/* sizes */
--gap: 12px; /* spacing between panels */
--divider-thickness: 4px; /* thickness of unread messages divider and highlighted message borders */
--border-thickness: 2px; /* thickness of borders around main panels. DOES NOT AFFECT OTHER BORDERS */
--border-hover-transition: 0.2s ease; /* transition for borders when hovered */
/* animation/transition options */
--animations: on; /* off: disable animations/transitions, on: enable animations/transitions */
--list-item-transition: 0.2s ease; /* transition for list items */
--dms-icon-svg-transition: 0.4s ease; /* transition for the dms icon */
/* top bar options */
--top-bar-height: var(--gap); /* height of the top bar (discord default is 36px, old discord style is 24px, var(--gap) recommended if button position is set to titlebar) */
--top-bar-button-position: titlebar; /* off: default position, hide: hide buttons completely, serverlist: move inbox button to server list, titlebar: move inbox button to channel titlebar (will hide title) */
--top-bar-title-position: off; /* off: default centered position, hide: hide title completely, left: left align title (like old discord) */
--subtle-top-bar-title: off; /* off: default, on: hide the icon and use subtle text color (like old discord) */
/* window controls */
--custom-window-controls: off; /* off: default window controls, on: custom window controls */
--window-control-size: 14px; /* size of custom window controls */
/* dms button options */
--custom-dms-icon: off; /* off: use default discord icon, hide: remove icon entirely, custom: use custom icon */
--dms-icon-svg-url: url(''); /* icon svg url. MUST BE A SVG. */
--dms-icon-svg-size: 90%; /* size of the svg (css mask-size property) */
--dms-icon-color-before: var(--icon-subtle); /* normal icon color */
--dms-icon-color-after: var(--white); /* icon color when button is hovered/selected */
--custom-dms-background: off; /* off to disable, image to use a background image (must set url variable below), color to use a custom color/gradient */
--dms-background-image-url: url(''); /* url of the background image */
--dms-background-image-size: cover; /* size of the background image (css background-size property) */
--dms-background-color: linear-gradient(70deg, var(--blue-2), var(--purple-2), var(--red-2)); /* fixed color/gradient (css background property) */
/* background image options */
--background-image: off; /* off: no background image, on: enable background image (must set url variable below) */
--background-image-url: url(''); /* url of the background image */
/* transparency/blur options */
/* NOTE: TO USE TRANSPARENCY/BLUR, YOU MUST HAVE TRANSPARENT BG COLORS. FOR EXAMPLE: --bg-4: hsla(220, 15%, 10%, 0.7); */
--transparency-tweaks: off; /* off: no changes, on: remove some elements for better transparency */
--remove-bg-layer: off; /* off: no changes, on: remove the base --bg-3 layer for use with window transparency (WILL OVERRIDE BACKGROUND IMAGE) */
--panel-blur: off; /* off: no changes, on: blur the background of panels */
--blur-amount: 12px; /* amount of blur */
--bg-floating: var(--bg-3); /* set this to a more opaque color if floating panels look too transparent. only applies if panel blur is on */
/* other options */
--small-user-panel: on; /* off: default user panel, on: smaller user panel like in old discord */
/* unrounding options */
--unrounding: on; /* off: default, on: remove rounded corners from panels */
/* styling options */
--custom-spotify-bar: on; /* off: default, on: custom text-like spotify progress bar */
--ascii-titles: on; /* off: default, on: use ascii font for titles at the start of a channel */
--ascii-loader: system24; /* off: default, system24: use system24 ascii loader, cats: use cats loader */
/* panel labels */
--panel-labels: on; /* off: default, on: add labels to panels */
--label-color: var(--text-muted); /* color of labels */
--label-font-weight: 500; /* font weight of labels */
}
/* color options -- Gruvpine */
:root {
--colors: on; /* off: discord default colors, on: midnight custom colors */
/* text colors */
/* Gruvpine has three text tones (text/subtle/muted) against system24's
five-step ramp, so the top three collapse onto `text`. The hierarchy
still reads: text -> subtle -> muted. */
--text-0: var(--bg-4); /* text on colored elements */
--text-1: #ebdbb2; /* other normally white text -- text */
--text-2: #ebdbb2; /* headings and important text -- text */
--text-3: #ebdbb2; /* normal text -- text */
--text-4: #a89984; /* icon buttons and channels -- subtle */
--text-5: #928374; /* muted channels/chats and timestamps -- muted */
/* background and dark colors */
--bg-1: #504945; /* dark buttons when clicked -- highlight med */
--bg-2: #3c3836; /* dark buttons -- overlay */
--bg-3: #32302f; /* spacing, secondary elements -- surface */
--bg-4: #282828; /* main background color -- base */
--hover: rgb(146 131 116 / 0.1); /* channels and buttons when hovered -- muted @ 10% */
--active: rgb(146 131 116 / 0.2); /* channels and buttons when clicked or selected -- muted @ 20% */
--active-2: rgb(146 131 116 / 0.3); /* extra state for transparent buttons -- muted @ 30% */
--message-hover: var(--hover); /* messages when hovered */
/* accent colors */
/* Sage is the system focus/active colour; --text-0 keeps charcoal text on it. */
--accent-1: var(--green-1); /* links and other accent text */
--accent-2: var(--green-2); /* small accent elements */
--accent-3: var(--green-3); /* accent buttons */
--accent-4: var(--green-4); /* accent buttons when hovered */
--accent-5: var(--green-5); /* accent buttons when clicked */
--accent-new: var(--red-2); /* stuff that's normally red like mute/deafen buttons */
--mention: linear-gradient(to right, color-mix(in hsl, var(--accent-2), transparent 90%) 40%, transparent); /* background of messages that mention you */
--mention-hover: linear-gradient(to right, color-mix(in hsl, var(--accent-2), transparent 95%) 40%, transparent); /* background of messages that mention you when hovered */
--reply: linear-gradient(to right, color-mix(in hsl, var(--rose-2), transparent 90%) 40%, transparent); /* background of messages that reply to you -- rose */
--reply-hover: linear-gradient(to right, color-mix(in hsl, var(--rose-2), transparent 95%) 40%, transparent); /* background of messages that reply to you when hovered */
/* status indicator colors */
/* Gruvpine has a real green (sage), so online gets it back. */
--online: var(--green-2); /* sage */
--dnd: var(--red-2); /* love */
--idle: var(--yellow-2); /* gold */
--streaming: var(--purple-2); /* iris */
--offline: var(--text-4); /* subtle */
/* border colors */
--border-light: var(--hover); /* general light border color */
--border: var(--active); /* general normal border color */
--border-hover: var(--accent-2); /* border color of panels when hovered */
--button-border: rgb(235 219 178 / 0.1); /* neutral border color of buttons -- text @ 10% */
/* base colors -- ramps anchored so that index 2 is the canonical Gruvpine hex */
/* love */
--red-1: #f08fab;
--red-2: #eb6f92;
--red-3: #d95c80;
--red-4: #c44a6e;
--red-5: #ad3c5d;
/* sage (Gruvbox yellow-green) */
--green-1: #cdcf67;
--green-2: #b8bb26;
--green-3: #a6a822;
--green-4: #93961e;
--green-5: #81831b;
/* foam */
--blue-1: #b5dde4;
--blue-2: #9ccfd8;
--blue-3: #7fbcc7;
--blue-4: #63a6b3;
--blue-5: #4a8d9c;
/* gold (Gruvbox yellow) */
--yellow-1: #fcd16d;
--yellow-2: #fabd2f;
--yellow-3: #e1aa2a;
--yellow-4: #c89726;
--yellow-5: #af8421;
/* iris */
--purple-1: #d5bdf0;
--purple-2: #c4a7e7;
--purple-3: #b191dd;
--purple-4: #9d7ad0;
--purple-5: #8a63c2;
/* rose -- not in upstream system24; used for the reply highlight */
--rose-1: #f0cfce;
--rose-2: #ebbcba;
--rose-3: #dfa7a5;
--rose-4: #cd9190;
--rose-5: #b87b7a;
}
/*═══════════════════════════════════════════════════════════════════════════
Gruvpine extras -- colour + motion
Everything below is additive. Delete from this banner to the end of the file
to get back to plain system24-in-Gruvpine.
Deliberately built on system24's own variables and @property-animated custom
properties at :root, NOT on Discord's class names -- those are hashed and
change without warning, so anything targeting them rots within weeks.
═══════════════════════════════════════════════════════════════════════════*/
/*── accent ─────────────────────────────────────────────────────────────────
This started life as an animated "aurora" that cycled the accent through the
palette. It has been removed, and it is worth recording why so nobody adds it
back.
--rp-aurora was a *registered, inherited* custom property animated on :root.
Every element in the document inherits it, so an active animation on it makes
Chromium invalidate and recompute style for the entire Discord DOM on every
frame. Measured on this machine it cost ~30 percentage points of renderer CPU
(107.8% -> 78.4% with it removed).
Throttling the value changes does NOT help: steps(12) still measured 103.9%,
because an active animation ticks per-frame whether or not the value changed.
There is no cheap version of this at :root -- the cost is the inheritance, not
the colour maths.
If you ever want it back, restore the @property + @keyframes and set
`animation: rp-aurora-cycle 60s linear infinite;` on :root -- and accept
roughly a third of a core for it. */
:root {
--rp-accent: #b8bb26; /* sage -- the system focus colour */
/* Panel borders light up on hover. system24 transitions this via
--border-hover-transition, so it still animates -- but only on the few
elements actually being hovered, which costs nothing. */
--border-hover: var(--rp-accent);
}
/*── more colour ────────────────────────────────────────────────────────────
Plain system24 is near-monochrome by design. These pull real palette hues
into the roles where Rosé Pine conventionally uses them; Gruvpine keeps
those roles and only warms the base. */
:root {
/* Links and accent text -> foam. Canonical Rosé Pine link colour, and it
separates links from the sage used for buttons. */
--accent-1: #9ccfd8;
/* Headings and important text -> rose. The one place a warm hue earns its
keep against all the cool tones. */
--text-2: #ebbcba;
/* Mentions in gold, replies in rose -- previously both were near-grey, so
they were hard to tell apart at a glance. */
--mention: linear-gradient(to right, color-mix(in hsl, #fabd2f, transparent 88%) 40%, transparent);
--mention-hover: linear-gradient(to right, color-mix(in hsl, #fabd2f, transparent 94%) 40%, transparent);
--reply: linear-gradient(to right, color-mix(in hsl, #ebbcba, transparent 88%) 40%, transparent);
--reply-hover: linear-gradient(to right, color-mix(in hsl, #ebbcba, transparent 94%) 40%, transparent);
}
/*── labels + DMs button ────────────────────────────────────────────────────
Both live on `body` because that is where system24 declares them. */
body {
/* Panel labels in the accent -- this is the "tui chrome" of the theme and
the most visible place for it.
NOTE: this MUST be set on `body`, not `:root`. system24 declares
--label-color inside its own `body {}` block, and because <body> is a
descendant of <html>, a :root declaration loses to it for the whole
app -- the value would be silently ignored. */
--label-color: var(--rp-accent);
/* system24 ships this gradient but leaves it switched off. Turning it on
with palette hues gives the server rail a splash of colour at the top. */
--custom-dms-background: color;
--dms-background-color: linear-gradient(140deg, #b8bb26, #fabd2f 55%, #eb6f92);
}
/*── selection + scrollbars ─────────────────────────────────────────────────
Standard CSS pseudo-elements, not Discord classes, so these are stable. */
::selection {
background: color-mix(in hsl, #c4a7e7, transparent 65%);
color: #ebdbb2;
}
::-webkit-scrollbar-thumb {
background: #504945 !important; /* highlight med */
border-radius: 0 !important; /* keep the tui squareness */
transition: background 0.25s ease;
}
::-webkit-scrollbar-thumb:hover {
background: var(--rp-accent) !important;
}
::-webkit-scrollbar-track {
background: #282828 !important; /* base */
}
/*── reduced motion ─────────────────────────────────────────────────────────
Honour the system setting -- the colours stay, the cycling stops. */
@media (prefers-reduced-motion: reduce) {
::-webkit-scrollbar-thumb { transition: none; }
}