From a1bcc15b82ff602cf0f194f436984b68b2a88f2d Mon Sep 17 00:00:00 2001 From: mStar Date: Sun, 17 Aug 2025 19:53:46 +0200 Subject: [PATCH 1/4] Move colours to media queries and add light mode --- src/main.css | 438 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 280 insertions(+), 158 deletions(-) diff --git a/src/main.css b/src/main.css index 368eeae..59fc8af 100644 --- a/src/main.css +++ b/src/main.css @@ -1,173 +1,295 @@ -@import url('https://refact0r.github.io/midnight-discord/build/midnight.css'); -@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap'); +@import url("https://refact0r.github.io/midnight-discord/build/midnight.css"); +@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap"); @font-face { - font-family: 'asciid'; - font-style: normal; - font-weight: 400; - src: local('asciid'), url('https://refact0r.github.io/system24/assets/asciid.woff') format('woff'); + font-family: "asciid"; + font-style: normal; + font-weight: 400; + src: + local("asciid"), + url("https://refact0r.github.io/system24/assets/asciid.woff") format("woff"); } body { - /* font, change to '' for default discord font */ - --font: 'DM Mono'; /* change to '' for default discord font */ - --code-font: 'DM Mono'; /* 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-secondary); /* 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 */ + /* font, change to '' for default discord font */ + --font: "DM Mono"; /* change to '' for default discord font */ + --code-font: "DM Mono"; /* 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-secondary); /* 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 */ :root { - --colors: on; /* off: discord default colors, on: midnight custom colors */ - - /* text colors */ - --text-0: var(--bg-4); /* text on colored elements */ - --text-1: oklch(95% 0 0); /* other normally white text */ - --text-2: oklch(85% 0 0); /* headings and important text */ - --text-3: oklch(75% 0 0); /* normal text */ - --text-4: oklch(60% 0 0); /* icon buttons and channels */ - --text-5: oklch(40% 0 0); /* muted channels/chats and timestamps */ - - /* background and dark colors */ - --bg-1: oklch(31% 0 0); /* dark buttons when clicked */ - --bg-2: oklch(27% 0 0); /* dark buttons */ - --bg-3: oklch(23% 0 0); /* spacing, secondary elements */ - --bg-4: oklch(19% 0 0); /* main background color */ - --hover: oklch(54% 0 0 / 0.1); /* channels and buttons when hovered */ - --active: oklch(54% 0 0 / 0.2); /* channels and buttons when clicked or selected */ - --active-2: oklch(54% 0 0 / 0.3); /* extra state for transparent buttons */ - --message-hover: var(--hover); /* messages when hovered */ - - /* accent colors */ - --accent-1: var(--purple-1); /* links and other accent text */ - --accent-2: var(--purple-2); /* small accent elements */ - --accent-3: var(--purple-3); /* accent buttons */ - --accent-4: var(--purple-4); /* accent buttons when hovered */ - --accent-5: var(--purple-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(--text-3), transparent 90%) 40%, transparent); /* background of messages that reply to you */ - --reply-hover: linear-gradient(to right, color-mix(in hsl, var(--text-3), transparent 95%) 40%, transparent); /* background of messages that reply to you when hovered */ - - /* status indicator colors */ - --online: var(--green-2); /* change to #40a258 for default */ - --dnd: var(--red-2); /* change to #d83a41 for default */ - --idle: var(--yellow-2); /* change to #cc954c for default */ - --streaming: var(--purple-2); /* change to ##9147ff for default */ - --offline: var(--text-4); /* change to #82838b for default offline color */ - - /* 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: hsl(220, 0%, 100%, 0.1); /* neutral border color of buttons */ - - /* base colors */ - --red-1: oklch(75% 0.13 0); - --red-2: oklch(70% 0.13 0); - --red-3: oklch(65% 0.13 0); - --red-4: oklch(60% 0.13 0); - --red-5: oklch(55% 0.13 0); - - --green-1: oklch(75% 0.12 170); - --green-2: oklch(70% 0.12 170); - --green-3: oklch(65% 0.12 170); - --green-4: oklch(60% 0.12 170); - --green-5: oklch(55% 0.12 160); - - --blue-1: oklch(75% 0.11 215); - --blue-2: oklch(70% 0.11 215); - --blue-3: oklch(65% 0.11 215); - --blue-4: oklch(60% 0.11 215); - --blue-5: oklch(55% 0.11 215); - - --yellow-1: oklch(80% 0.12 90); - --yellow-2: oklch(75% 0.12 90); - --yellow-3: oklch(70% 0.12 90); - --yellow-4: oklch(65% 0.12 90); - --yellow-5: oklch(60% 0.12 90); - - --purple-1: oklch(75% 0.12 310); - --purple-2: oklch(70% 0.12 310); - --purple-3: oklch(65% 0.12 310); - --purple-4: oklch(60% 0.12 310); - --purple-5: oklch(55% 0.12 310); + --colors: on; /* off: discord default colors, on: midnight custom colors */ +} + +/* color options dark mode */ +@media (prefers-color-scheme: dark) { + :root { + /* text colors */ + --text-0: var(--bg-4); /* text on colored elements */ + --text-1: oklch(95% 0 0); /* other normally white text */ + --text-2: oklch(85% 0 0); /* headings and important text */ + --text-3: oklch(75% 0 0); /* normal text */ + --text-4: oklch(60% 0 0); /* icon buttons and channels */ + --text-5: oklch(40% 0 0); /* muted channels/chats and timestamps */ + + /* background and dark colors */ + --bg-1: oklch(31% 0 0); /* dark buttons when clicked */ + --bg-2: oklch(27% 0 0); /* dark buttons */ + --bg-3: oklch(23% 0 0); /* spacing, secondary elements */ + --bg-4: oklch(19% 0 0); /* main background color */ + --hover: oklch(54% 0 0 / 0.1); /* channels and buttons when hovered */ + --active: oklch(54% 0 0 / 0.2); /* channels and buttons when clicked or selected */ + --active-2: oklch(54% 0 0 / 0.3); /* extra state for transparent buttons */ + --message-hover: var(--hover); /* messages when hovered */ + + /* accent colors */ + --accent-1: var(--purple-1); /* links and other accent text */ + --accent-2: var(--purple-2); /* small accent elements */ + --accent-3: var(--purple-3); /* accent buttons */ + --accent-4: var(--purple-4); /* accent buttons when hovered */ + --accent-5: var(--purple-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(--text-3), transparent 90%) 40%, + transparent + ); /* background of messages that reply to you */ + --reply-hover: linear-gradient( + to right, + color-mix(in hsl, var(--text-3), transparent 95%) 40%, + transparent + ); /* background of messages that reply to you when hovered */ + + /* status indicator colors */ + --online: var(--green-2); /* change to #40a258 for default */ + --dnd: var(--red-2); /* change to #d83a41 for default */ + --idle: var(--yellow-2); /* change to #cc954c for default */ + --streaming: var(--purple-2); /* change to ##9147ff for default */ + --offline: var(--text-4); /* change to #82838b for default offline color */ + + /* 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: hsl(220, 0%, 100%, 0.1); /* neutral border color of buttons */ + + /* base colors */ + --red-1: oklch(75% 0.13 0); + --red-2: oklch(70% 0.13 0); + --red-3: oklch(65% 0.13 0); + --red-4: oklch(60% 0.13 0); + --red-5: oklch(55% 0.13 0); + + --green-1: oklch(75% 0.12 170); + --green-2: oklch(70% 0.12 170); + --green-3: oklch(65% 0.12 170); + --green-4: oklch(60% 0.12 170); + --green-5: oklch(55% 0.12 160); + + --blue-1: oklch(75% 0.11 215); + --blue-2: oklch(70% 0.11 215); + --blue-3: oklch(65% 0.11 215); + --blue-4: oklch(60% 0.11 215); + --blue-5: oklch(55% 0.11 215); + + --yellow-1: oklch(80% 0.12 90); + --yellow-2: oklch(75% 0.12 90); + --yellow-3: oklch(70% 0.12 90); + --yellow-4: oklch(65% 0.12 90); + --yellow-5: oklch(60% 0.12 90); + + --purple-1: oklch(75% 0.12 310); + --purple-2: oklch(70% 0.12 310); + --purple-3: oklch(65% 0.12 310); + --purple-4: oklch(60% 0.12 310); + --purple-5: oklch(55% 0.12 310); + } +} + +/* color options light mode */ +@media (prefers-color-scheme: light) { + :root { + /* text colors */ + --text-0: var(--bg-4); /* text on colored elements */ + --text-1: oklch(5% 0 0); /* other normally white text */ + --text-2: oklch(15% 0 0); /* headings and important text */ + --text-3: oklch(25% 0 0); /* normal text */ + --text-4: oklch(40% 0 0); /* icon buttons and channels */ + --text-5: oklch(60% 0 0); /* muted channels/chats and timestamps */ + + /* background and dark colors */ + --bg-1: oklch(69% 0 0); /* dark buttons when clicked */ + --bg-2: oklch(63% 0 0); /* dark buttons */ + --bg-3: oklch(77% 0 0); /* spacing, secondary elements */ + --bg-4: oklch(81% 0 0); /* main background color */ + --hover: oklch(46% 0 0 / 0.1); /* channels and buttons when hovered */ + --active: oklch(46% 0 0 / 0.2); /* channels and buttons when clicked or selected */ + --active-2: oklch(46% 0 0 / 0.3); /* extra state for transparent buttons */ + --message-hover: var(--hover); /* messages when hovered */ + + /* accent colors */ + --accent-1: var(--purple-1); /* links and other accent text */ + --accent-2: var(--purple-2); /* small accent elements */ + --accent-3: var(--purple-3); /* accent buttons */ + --accent-4: var(--purple-4); /* accent buttons when hovered */ + --accent-5: var(--purple-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 10%) 40%, + transparent + ); /* background of messages that mention you */ + --mention-hover: linear-gradient( + to right, + color-mix(in hsl, var(--accent-2), transparent 05%) 40%, + transparent + ); /* background of messages that mention you when hovered */ + --reply: linear-gradient( + to right, + color-mix(in hsl, var(--text-3), transparent 10%) 40%, + transparent + ); /* background of messages that reply to you */ + --reply-hover: linear-gradient( + to right, + color-mix(in hsl, var(--text-3), transparent 05%) 40%, + transparent + ); /* background of messages that reply to you when hovered */ + + /* status indicator colors */ + --online: var(--green-2); /* change to #40a258 for default */ + --dnd: var(--red-2); /* change to #d83a41 for default */ + --idle: var(--yellow-2); /* change to #cc954c for default */ + --streaming: var(--purple-2); /* change to ##9147ff for default */ + --offline: var(--text-4); /* change to #82838b for default offline color */ + + /* 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: hsl(220, 100%, 100%, 0.1); /* neutral border color of buttons */ + + /* base colors */ + --red-1: oklch(25% 0.13 0); + --red-2: oklch(30% 0.13 0); + --red-3: oklch(35% 0.13 0); + --red-4: oklch(40% 0.13 0); + --red-5: oklch(45% 0.13 0); + + --green-1: oklch(25% 0.12 170); + --green-2: oklch(30% 0.12 170); + --green-3: oklch(35% 0.12 170); + --green-4: oklch(40% 0.12 170); + --green-5: oklch(45% 0.12 160); + + --blue-1: oklch(25% 0.11 215); + --blue-2: oklch(30% 0.11 215); + --blue-3: oklch(35% 0.11 215); + --blue-4: oklch(40% 0.11 215); + --blue-5: oklch(45% 0.11 215); + + --yellow-1: oklch(20% 0.12 90); + --yellow-2: oklch(25% 0.12 90); + --yellow-3: oklch(30% 0.12 90); + --yellow-4: oklch(35% 0.12 90); + --yellow-5: oklch(40% 0.12 90); + + --purple-1: oklch(25% 0.12 310); + --purple-2: oklch(30% 0.12 310); + --purple-3: oklch(35% 0.12 310); + --purple-4: oklch(40% 0.12 310); + --purple-5: oklch(45% 0.12 310); + } } body { - --custom-chatbar: separated !important; /* off: default chatbar, aligned: chatbar aligned with the user panel, separated: chatbar separated from chat */ - --chatbar-height: 56px !important; /* height of the chatbar (52px by default, 47px recommended for aligned, 56px recommended for separated) */ + --custom-chatbar: separated !important; /* off: default chatbar, aligned: chatbar aligned with the user panel, separated: chatbar separated from chat */ + --chatbar-height: 56px !important; /* height of the chatbar (52px by default, 47px recommended for aligned, 56px recommended for separated) */ } .visual-refresh { - .bg__960e4 { - background: var(--bg-base-primary); - } - .container__01ae2 { - background-color: var(--bg-base-primary); - } - .container__37e49 { - padding: 8px; - } + .bg__960e4 { + background: var(--bg-base-primary); + } + .container__01ae2 { + background-color: var(--bg-base-primary); + } + .container__37e49 { + padding: 8px; + } } From 666525ba9b6ffab50df6dfba47943f8c515f429c Mon Sep 17 00:00:00 2001 From: mStar Date: Sun, 17 Aug 2025 19:58:58 +0200 Subject: [PATCH 2/4] Revert unintended lsp and prettier changes --- src/main.css | 44 +++++++++++++++++++------------------------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/src/main.css b/src/main.css index 59fc8af..67b1f64 100644 --- a/src/main.css +++ b/src/main.css @@ -1,19 +1,17 @@ -@import url("https://refact0r.github.io/midnight-discord/build/midnight.css"); -@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap"); +@import url('https://refact0r.github.io/midnight-discord/build/midnight.css'); +@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap'); @font-face { - font-family: "asciid"; + font-family: 'asciid'; font-style: normal; font-weight: 400; - src: - local("asciid"), - url("https://refact0r.github.io/system24/assets/asciid.woff") format("woff"); + src: local('asciid'), url('https://refact0r.github.io/system24/assets/asciid.woff') format('woff'); } body { /* font, change to '' for default discord font */ - --font: "DM Mono"; /* change to '' for default discord font */ - --code-font: "DM Mono"; /* change to '' for default discord font */ + --font: 'DM Mono'; /* change to '' for default discord font */ + --code-font: 'DM Mono'; /* 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.*/ @@ -40,23 +38,18 @@ body { /* 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-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-secondary); /* 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-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) */ + --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 */ + --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); */ @@ -83,6 +76,7 @@ body { --label-font-weight: 500; /* font weight of labels */ } +/* color options */ :root { --colors: on; /* off: discord default colors, on: midnight custom colors */ } @@ -118,22 +112,22 @@ body { --mention: linear-gradient( to right, color-mix(in hsl, var(--accent-2), transparent 90%) 40%, - transparent + transparent ); /* background of messages that mention you */ --mention-hover: linear-gradient( to right, color-mix(in hsl, var(--accent-2), transparent 95%) 40%, - transparent + transparent ); /* background of messages that mention you when hovered */ --reply: linear-gradient( to right, color-mix(in hsl, var(--text-3), transparent 90%) 40%, - transparent + transparent ); /* background of messages that reply to you */ --reply-hover: linear-gradient( to right, color-mix(in hsl, var(--text-3), transparent 95%) 40%, - transparent + transparent ); /* background of messages that reply to you when hovered */ /* status indicator colors */ @@ -213,22 +207,22 @@ body { --mention: linear-gradient( to right, color-mix(in hsl, var(--accent-2), transparent 10%) 40%, - transparent + transparent ); /* background of messages that mention you */ --mention-hover: linear-gradient( to right, color-mix(in hsl, var(--accent-2), transparent 05%) 40%, - transparent + transparent ); /* background of messages that mention you when hovered */ --reply: linear-gradient( to right, color-mix(in hsl, var(--text-3), transparent 10%) 40%, - transparent + transparent ); /* background of messages that reply to you */ --reply-hover: linear-gradient( to right, color-mix(in hsl, var(--text-3), transparent 05%) 40%, - transparent + transparent ); /* background of messages that reply to you when hovered */ /* status indicator colors */ From 7813e95360b4c37bddcfeac1f55dc19396afccc8 Mon Sep 17 00:00:00 2001 From: mStar Date: Sun, 17 Aug 2025 20:02:38 +0200 Subject: [PATCH 3/4] Also "revert" base colours for light theme Base colours (red, green, blue, yellow & purple) should always stay the same since they are used for things such as accents and online status --- src/main.css | 58 ++++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/main.css b/src/main.css index 67b1f64..d023b3f 100644 --- a/src/main.css +++ b/src/main.css @@ -239,35 +239,35 @@ body { --button-border: hsl(220, 100%, 100%, 0.1); /* neutral border color of buttons */ /* base colors */ - --red-1: oklch(25% 0.13 0); - --red-2: oklch(30% 0.13 0); - --red-3: oklch(35% 0.13 0); - --red-4: oklch(40% 0.13 0); - --red-5: oklch(45% 0.13 0); - - --green-1: oklch(25% 0.12 170); - --green-2: oklch(30% 0.12 170); - --green-3: oklch(35% 0.12 170); - --green-4: oklch(40% 0.12 170); - --green-5: oklch(45% 0.12 160); - - --blue-1: oklch(25% 0.11 215); - --blue-2: oklch(30% 0.11 215); - --blue-3: oklch(35% 0.11 215); - --blue-4: oklch(40% 0.11 215); - --blue-5: oklch(45% 0.11 215); - - --yellow-1: oklch(20% 0.12 90); - --yellow-2: oklch(25% 0.12 90); - --yellow-3: oklch(30% 0.12 90); - --yellow-4: oklch(35% 0.12 90); - --yellow-5: oklch(40% 0.12 90); - - --purple-1: oklch(25% 0.12 310); - --purple-2: oklch(30% 0.12 310); - --purple-3: oklch(35% 0.12 310); - --purple-4: oklch(40% 0.12 310); - --purple-5: oklch(45% 0.12 310); + --red-1: oklch(75% 0.13 0); + --red-2: oklch(70% 0.13 0); + --red-3: oklch(65% 0.13 0); + --red-4: oklch(60% 0.13 0); + --red-5: oklch(55% 0.13 0); + + --green-1: oklch(75% 0.12 170); + --green-2: oklch(70% 0.12 170); + --green-3: oklch(65% 0.12 170); + --green-4: oklch(60% 0.12 170); + --green-5: oklch(55% 0.12 160); + + --blue-1: oklch(75% 0.11 215); + --blue-2: oklch(70% 0.11 215); + --blue-3: oklch(65% 0.11 215); + --blue-4: oklch(60% 0.11 215); + --blue-5: oklch(55% 0.11 215); + + --yellow-1: oklch(80% 0.12 90); + --yellow-2: oklch(75% 0.12 90); + --yellow-3: oklch(70% 0.12 90); + --yellow-4: oklch(65% 0.12 90); + --yellow-5: oklch(60% 0.12 90); + + --purple-1: oklch(75% 0.12 310); + --purple-2: oklch(70% 0.12 310); + --purple-3: oklch(65% 0.12 310); + --purple-4: oklch(60% 0.12 310); + --purple-5: oklch(55% 0.12 310); } } From b9961d61a4edd726e67a65d4b2d1f7c79917f311 Mon Sep 17 00:00:00 2001 From: mStar Date: Sun, 17 Aug 2025 20:08:08 +0200 Subject: [PATCH 4/4] Fix accidental switch to tabs --- src/main.css | 526 +++++++++++++++++++++++++-------------------------- 1 file changed, 263 insertions(+), 263 deletions(-) diff --git a/src/main.css b/src/main.css index d023b3f..7208088 100644 --- a/src/main.css +++ b/src/main.css @@ -2,288 +2,288 @@ @import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap'); @font-face { - font-family: 'asciid'; - font-style: normal; - font-weight: 400; - src: local('asciid'), url('https://refact0r.github.io/system24/assets/asciid.woff') format('woff'); + font-family: 'asciid'; + font-style: normal; + font-weight: 400; + src: local('asciid'), url('https://refact0r.github.io/system24/assets/asciid.woff') format('woff'); } body { - /* font, change to '' for default discord font */ - --font: 'DM Mono'; /* change to '' for default discord font */ - --code-font: 'DM Mono'; /* 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-secondary); /* 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 */ + /* font, change to '' for default discord font */ + --font: 'DM Mono'; /* change to '' for default discord font */ + --code-font: 'DM Mono'; /* 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-secondary); /* 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 */ :root { - --colors: on; /* off: discord default colors, on: midnight custom colors */ + --colors: on; /* off: discord default colors, on: midnight custom colors */ } /* color options dark mode */ @media (prefers-color-scheme: dark) { - :root { - /* text colors */ - --text-0: var(--bg-4); /* text on colored elements */ - --text-1: oklch(95% 0 0); /* other normally white text */ - --text-2: oklch(85% 0 0); /* headings and important text */ - --text-3: oklch(75% 0 0); /* normal text */ - --text-4: oklch(60% 0 0); /* icon buttons and channels */ - --text-5: oklch(40% 0 0); /* muted channels/chats and timestamps */ - - /* background and dark colors */ - --bg-1: oklch(31% 0 0); /* dark buttons when clicked */ - --bg-2: oklch(27% 0 0); /* dark buttons */ - --bg-3: oklch(23% 0 0); /* spacing, secondary elements */ - --bg-4: oklch(19% 0 0); /* main background color */ - --hover: oklch(54% 0 0 / 0.1); /* channels and buttons when hovered */ - --active: oklch(54% 0 0 / 0.2); /* channels and buttons when clicked or selected */ - --active-2: oklch(54% 0 0 / 0.3); /* extra state for transparent buttons */ - --message-hover: var(--hover); /* messages when hovered */ - - /* accent colors */ - --accent-1: var(--purple-1); /* links and other accent text */ - --accent-2: var(--purple-2); /* small accent elements */ - --accent-3: var(--purple-3); /* accent buttons */ - --accent-4: var(--purple-4); /* accent buttons when hovered */ - --accent-5: var(--purple-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(--text-3), transparent 90%) 40%, - transparent - ); /* background of messages that reply to you */ - --reply-hover: linear-gradient( - to right, - color-mix(in hsl, var(--text-3), transparent 95%) 40%, - transparent - ); /* background of messages that reply to you when hovered */ - - /* status indicator colors */ - --online: var(--green-2); /* change to #40a258 for default */ - --dnd: var(--red-2); /* change to #d83a41 for default */ - --idle: var(--yellow-2); /* change to #cc954c for default */ - --streaming: var(--purple-2); /* change to ##9147ff for default */ - --offline: var(--text-4); /* change to #82838b for default offline color */ - - /* 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: hsl(220, 0%, 100%, 0.1); /* neutral border color of buttons */ - - /* base colors */ - --red-1: oklch(75% 0.13 0); - --red-2: oklch(70% 0.13 0); - --red-3: oklch(65% 0.13 0); - --red-4: oklch(60% 0.13 0); - --red-5: oklch(55% 0.13 0); - - --green-1: oklch(75% 0.12 170); - --green-2: oklch(70% 0.12 170); - --green-3: oklch(65% 0.12 170); - --green-4: oklch(60% 0.12 170); - --green-5: oklch(55% 0.12 160); - - --blue-1: oklch(75% 0.11 215); - --blue-2: oklch(70% 0.11 215); - --blue-3: oklch(65% 0.11 215); - --blue-4: oklch(60% 0.11 215); - --blue-5: oklch(55% 0.11 215); - - --yellow-1: oklch(80% 0.12 90); - --yellow-2: oklch(75% 0.12 90); - --yellow-3: oklch(70% 0.12 90); - --yellow-4: oklch(65% 0.12 90); - --yellow-5: oklch(60% 0.12 90); - - --purple-1: oklch(75% 0.12 310); - --purple-2: oklch(70% 0.12 310); - --purple-3: oklch(65% 0.12 310); - --purple-4: oklch(60% 0.12 310); - --purple-5: oklch(55% 0.12 310); - } + :root { + /* text colors */ + --text-0: var(--bg-4); /* text on colored elements */ + --text-1: oklch(95% 0 0); /* other normally white text */ + --text-2: oklch(85% 0 0); /* headings and important text */ + --text-3: oklch(75% 0 0); /* normal text */ + --text-4: oklch(60% 0 0); /* icon buttons and channels */ + --text-5: oklch(40% 0 0); /* muted channels/chats and timestamps */ + + /* background and dark colors */ + --bg-1: oklch(31% 0 0); /* dark buttons when clicked */ + --bg-2: oklch(27% 0 0); /* dark buttons */ + --bg-3: oklch(23% 0 0); /* spacing, secondary elements */ + --bg-4: oklch(19% 0 0); /* main background color */ + --hover: oklch(54% 0 0 / 0.1); /* channels and buttons when hovered */ + --active: oklch(54% 0 0 / 0.2); /* channels and buttons when clicked or selected */ + --active-2: oklch(54% 0 0 / 0.3); /* extra state for transparent buttons */ + --message-hover: var(--hover); /* messages when hovered */ + + /* accent colors */ + --accent-1: var(--purple-1); /* links and other accent text */ + --accent-2: var(--purple-2); /* small accent elements */ + --accent-3: var(--purple-3); /* accent buttons */ + --accent-4: var(--purple-4); /* accent buttons when hovered */ + --accent-5: var(--purple-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(--text-3), transparent 90%) 40%, + transparent + ); /* background of messages that reply to you */ + --reply-hover: linear-gradient( + to right, + color-mix(in hsl, var(--text-3), transparent 95%) 40%, + transparent + ); /* background of messages that reply to you when hovered */ + + /* status indicator colors */ + --online: var(--green-2); /* change to #40a258 for default */ + --dnd: var(--red-2); /* change to #d83a41 for default */ + --idle: var(--yellow-2); /* change to #cc954c for default */ + --streaming: var(--purple-2); /* change to ##9147ff for default */ + --offline: var(--text-4); /* change to #82838b for default offline color */ + + /* 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: hsl(220, 0%, 100%, 0.1); /* neutral border color of buttons */ + + /* base colors */ + --red-1: oklch(75% 0.13 0); + --red-2: oklch(70% 0.13 0); + --red-3: oklch(65% 0.13 0); + --red-4: oklch(60% 0.13 0); + --red-5: oklch(55% 0.13 0); + + --green-1: oklch(75% 0.12 170); + --green-2: oklch(70% 0.12 170); + --green-3: oklch(65% 0.12 170); + --green-4: oklch(60% 0.12 170); + --green-5: oklch(55% 0.12 160); + + --blue-1: oklch(75% 0.11 215); + --blue-2: oklch(70% 0.11 215); + --blue-3: oklch(65% 0.11 215); + --blue-4: oklch(60% 0.11 215); + --blue-5: oklch(55% 0.11 215); + + --yellow-1: oklch(80% 0.12 90); + --yellow-2: oklch(75% 0.12 90); + --yellow-3: oklch(70% 0.12 90); + --yellow-4: oklch(65% 0.12 90); + --yellow-5: oklch(60% 0.12 90); + + --purple-1: oklch(75% 0.12 310); + --purple-2: oklch(70% 0.12 310); + --purple-3: oklch(65% 0.12 310); + --purple-4: oklch(60% 0.12 310); + --purple-5: oklch(55% 0.12 310); + } } /* color options light mode */ @media (prefers-color-scheme: light) { - :root { - /* text colors */ - --text-0: var(--bg-4); /* text on colored elements */ - --text-1: oklch(5% 0 0); /* other normally white text */ - --text-2: oklch(15% 0 0); /* headings and important text */ - --text-3: oklch(25% 0 0); /* normal text */ - --text-4: oklch(40% 0 0); /* icon buttons and channels */ - --text-5: oklch(60% 0 0); /* muted channels/chats and timestamps */ - - /* background and dark colors */ - --bg-1: oklch(69% 0 0); /* dark buttons when clicked */ - --bg-2: oklch(63% 0 0); /* dark buttons */ - --bg-3: oklch(77% 0 0); /* spacing, secondary elements */ - --bg-4: oklch(81% 0 0); /* main background color */ - --hover: oklch(46% 0 0 / 0.1); /* channels and buttons when hovered */ - --active: oklch(46% 0 0 / 0.2); /* channels and buttons when clicked or selected */ - --active-2: oklch(46% 0 0 / 0.3); /* extra state for transparent buttons */ - --message-hover: var(--hover); /* messages when hovered */ - - /* accent colors */ - --accent-1: var(--purple-1); /* links and other accent text */ - --accent-2: var(--purple-2); /* small accent elements */ - --accent-3: var(--purple-3); /* accent buttons */ - --accent-4: var(--purple-4); /* accent buttons when hovered */ - --accent-5: var(--purple-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 10%) 40%, - transparent - ); /* background of messages that mention you */ - --mention-hover: linear-gradient( - to right, - color-mix(in hsl, var(--accent-2), transparent 05%) 40%, - transparent - ); /* background of messages that mention you when hovered */ - --reply: linear-gradient( - to right, - color-mix(in hsl, var(--text-3), transparent 10%) 40%, - transparent - ); /* background of messages that reply to you */ - --reply-hover: linear-gradient( - to right, - color-mix(in hsl, var(--text-3), transparent 05%) 40%, - transparent - ); /* background of messages that reply to you when hovered */ - - /* status indicator colors */ - --online: var(--green-2); /* change to #40a258 for default */ - --dnd: var(--red-2); /* change to #d83a41 for default */ - --idle: var(--yellow-2); /* change to #cc954c for default */ - --streaming: var(--purple-2); /* change to ##9147ff for default */ - --offline: var(--text-4); /* change to #82838b for default offline color */ - - /* 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: hsl(220, 100%, 100%, 0.1); /* neutral border color of buttons */ - - /* base colors */ - --red-1: oklch(75% 0.13 0); - --red-2: oklch(70% 0.13 0); - --red-3: oklch(65% 0.13 0); - --red-4: oklch(60% 0.13 0); - --red-5: oklch(55% 0.13 0); - - --green-1: oklch(75% 0.12 170); - --green-2: oklch(70% 0.12 170); - --green-3: oklch(65% 0.12 170); - --green-4: oklch(60% 0.12 170); - --green-5: oklch(55% 0.12 160); - - --blue-1: oklch(75% 0.11 215); - --blue-2: oklch(70% 0.11 215); - --blue-3: oklch(65% 0.11 215); - --blue-4: oklch(60% 0.11 215); - --blue-5: oklch(55% 0.11 215); - - --yellow-1: oklch(80% 0.12 90); - --yellow-2: oklch(75% 0.12 90); - --yellow-3: oklch(70% 0.12 90); - --yellow-4: oklch(65% 0.12 90); - --yellow-5: oklch(60% 0.12 90); - - --purple-1: oklch(75% 0.12 310); - --purple-2: oklch(70% 0.12 310); - --purple-3: oklch(65% 0.12 310); - --purple-4: oklch(60% 0.12 310); - --purple-5: oklch(55% 0.12 310); - } + :root { + /* text colors */ + --text-0: var(--bg-4); /* text on colored elements */ + --text-1: oklch(5% 0 0); /* other normally white text */ + --text-2: oklch(15% 0 0); /* headings and important text */ + --text-3: oklch(25% 0 0); /* normal text */ + --text-4: oklch(40% 0 0); /* icon buttons and channels */ + --text-5: oklch(60% 0 0); /* muted channels/chats and timestamps */ + + /* background and dark colors */ + --bg-1: oklch(69% 0 0); /* dark buttons when clicked */ + --bg-2: oklch(63% 0 0); /* dark buttons */ + --bg-3: oklch(77% 0 0); /* spacing, secondary elements */ + --bg-4: oklch(81% 0 0); /* main background color */ + --hover: oklch(46% 0 0 / 0.1); /* channels and buttons when hovered */ + --active: oklch(46% 0 0 / 0.2); /* channels and buttons when clicked or selected */ + --active-2: oklch(46% 0 0 / 0.3); /* extra state for transparent buttons */ + --message-hover: var(--hover); /* messages when hovered */ + + /* accent colors */ + --accent-1: var(--purple-1); /* links and other accent text */ + --accent-2: var(--purple-2); /* small accent elements */ + --accent-3: var(--purple-3); /* accent buttons */ + --accent-4: var(--purple-4); /* accent buttons when hovered */ + --accent-5: var(--purple-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 10%) 40%, + transparent + ); /* background of messages that mention you */ + --mention-hover: linear-gradient( + to right, + color-mix(in hsl, var(--accent-2), transparent 05%) 40%, + transparent + ); /* background of messages that mention you when hovered */ + --reply: linear-gradient( + to right, + color-mix(in hsl, var(--text-3), transparent 10%) 40%, + transparent + ); /* background of messages that reply to you */ + --reply-hover: linear-gradient( + to right, + color-mix(in hsl, var(--text-3), transparent 05%) 40%, + transparent + ); /* background of messages that reply to you when hovered */ + + /* status indicator colors */ + --online: var(--green-2); /* change to #40a258 for default */ + --dnd: var(--red-2); /* change to #d83a41 for default */ + --idle: var(--yellow-2); /* change to #cc954c for default */ + --streaming: var(--purple-2); /* change to ##9147ff for default */ + --offline: var(--text-4); /* change to #82838b for default offline color */ + + /* 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: hsl(220, 100%, 100%, 0.1); /* neutral border color of buttons */ + + /* base colors */ + --red-1: oklch(75% 0.13 0); + --red-2: oklch(70% 0.13 0); + --red-3: oklch(65% 0.13 0); + --red-4: oklch(60% 0.13 0); + --red-5: oklch(55% 0.13 0); + + --green-1: oklch(75% 0.12 170); + --green-2: oklch(70% 0.12 170); + --green-3: oklch(65% 0.12 170); + --green-4: oklch(60% 0.12 170); + --green-5: oklch(55% 0.12 160); + + --blue-1: oklch(75% 0.11 215); + --blue-2: oklch(70% 0.11 215); + --blue-3: oklch(65% 0.11 215); + --blue-4: oklch(60% 0.11 215); + --blue-5: oklch(55% 0.11 215); + + --yellow-1: oklch(80% 0.12 90); + --yellow-2: oklch(75% 0.12 90); + --yellow-3: oklch(70% 0.12 90); + --yellow-4: oklch(65% 0.12 90); + --yellow-5: oklch(60% 0.12 90); + + --purple-1: oklch(75% 0.12 310); + --purple-2: oklch(70% 0.12 310); + --purple-3: oklch(65% 0.12 310); + --purple-4: oklch(60% 0.12 310); + --purple-5: oklch(55% 0.12 310); + } } body { - --custom-chatbar: separated !important; /* off: default chatbar, aligned: chatbar aligned with the user panel, separated: chatbar separated from chat */ - --chatbar-height: 56px !important; /* height of the chatbar (52px by default, 47px recommended for aligned, 56px recommended for separated) */ + --custom-chatbar: separated !important; /* off: default chatbar, aligned: chatbar aligned with the user panel, separated: chatbar separated from chat */ + --chatbar-height: 56px !important; /* height of the chatbar (52px by default, 47px recommended for aligned, 56px recommended for separated) */ } .visual-refresh { - .bg__960e4 { - background: var(--bg-base-primary); - } - .container__01ae2 { - background-color: var(--bg-base-primary); - } - .container__37e49 { - padding: 8px; - } + .bg__960e4 { + background: var(--bg-base-primary); + } + .container__01ae2 { + background-color: var(--bg-base-primary); + } + .container__37e49 { + padding: 8px; + } }