diff --git a/styles/substack/catppuccin.user.css b/styles/substack/catppuccin.user.css index af90adc8..a46f2bc1 100644 --- a/styles/substack/catppuccin.user.css +++ b/styles/substack/catppuccin.user.css @@ -2,7 +2,7 @@ @name Substack Catppuccin @namespace github.com/catppuccin/userstyles/styles/substack @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/substack -@version 0.1.2 +@version 0.2.0 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/substack/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Asubstack @description Soothing pastel theme for Substack @@ -69,115 +69,139 @@ } } + color: @text; background-color: @base !important; &, - .dark-mode { - --color-primary: @text; - --color-secondary: @subtext0; + .dark-mode, + .dark-theme, + [class*="_pubTheme_"] { --color-bg-primary: @base; --color-bg-primary-rgb: #rgbify(@base) []; - --web_bg_color: @base; - --color-bg-primary-hover: mix(@surface0, @base, 50%); - --color-bg-secondary: @mantle; - --color-bg-tertiary: @crust; - --color-dark-bg-tertiary: @crust; - --color-dark-primary: @text; - --color-bg-elevated: @surface0; - --color-bg-elevated-hover: mix(@surface1, @surface0, 50%); + --color-bg-primary-raw: #rgbify(@base) []; + --color-bg-primary-hover: @surface0; + --color-bg-secondary: @surface0; + --color-bg-tertiary: @surface1; + --color-bg-elevated-primary: @mantle; + --color-bg-elevated-secondary: @crust; + --color-fg-primary: @text; + --color-fg-secondary: @subtext1; + --color-fg-tertiary: @subtext0; + --color-utility-detail: @surface1; + --color-utility-white: @text; + --color-detail-themed: @surface1; --color-accent-themed: @accent-color; - --color-bg-secondary-opacity: @surface0; - --color-bg-secondary-themed: @surface0; - --color-accent-inverse-themed: @crust; - --color-light-bg-primary: @crust; - --color-accent-primary: @accent-color; - --color-accent-substack: @accent-color; - --color-accent-blue: @blue; - --color-accent-red: @red; - --color-accent-purple: @mauve; - --color-accent-facebook: @blue; - --color-accent-error: @red; - --color-detail: @surface1; - --color-dark-bg-primary: @mantle; - // subdomains - --print_on_web_bg_color: @text; - --color-secondary-themed: @subtext0; - --print_secondary_on_web_bg_color: @subtext0; - --background_pop: @peach; - --print_pop: @peach; + --color-accent-fg-red: @red; + --color-accent-bg-red: fade(@red, 20%); + --color-semantic-error-bg-primary: @red; + --color-semantic-error-utility-contrast: @crust; + + --color-accent-fg-orange: @accent-color; + --color-accent-bg-orange: fade(@accent-color, 20%); + + --color-accent-fg-green: @green; + --color-accent-bg-green: fade(@green, 20%); + + --color-accent-fg-cyan: @blue; + --color-accent-bg-cyan: fade(@blue, 20%); + + /* Buttons */ + --color-button-primary-bg: @accent-color; + --color-button-primary-bg-hover: darken(@accent-color, 5%); + --color-button-primary-fg: @crust; + + --color-button-secondary-bg: @surface0; + --color-button-secondary-bg-hover: @surface1; + --color-button-secondary-fg: @text; + + --color-button-tertiary-bg-hover: @surface1; + --color-button-tertiary-fg: @text; + + --color-button-mono-bg: @text; + --color-button-mono-bg-hover: @subtext1; + --color-button-mono-fg: @crust; + + --color-button-disabled-fg: @subtext0; + + /* Tooltips & Toasts */ + --color-bg-tooltip: @mantle; + --material-thick: @mantle; + + --print_pop: @accent-color; + --print_secondary: @subtext1; + --background_pop: @accent-color; --print_on_pop: @crust; - --print_secondary: @subtext0; - --color-tertiary: @crust; - --background_contrast_1: @crust; - --background_contrast_2: mix(@crust, @mantle, 50%); - --background_contrast_3: @mantle; - --background_contrast_4: mix(@mantle, @base, 33%); - --background_contrast_5: mix(@mantle, @base, 66%); - --color_theme_bg_contrast_1: unset; - --color_theme_bg_contrast_2: mix(@surface0, @surface1, 50%); - --color_theme_bg_contrast_3: @surface1; - --color_theme_bg_contrast_4: mix(@surface1, @surface2, 50%); - --color_theme_bg_contrast_5: @surface2; - --input_background: @surface0; - - // used for podcast play controls - --color_theme_bg_pop_rgb: #rgbify(@accent-color) []; + --color_theme_bg_pop: @accent-color; + --color_theme_bg_pop_darken: darken(@accent-color, 5%); --color_theme_print_on_pop: @crust; + --border_subtle: @surface1; + --background_contrast_1: @mantle; + --background_contrast_2: @surface2; + + --color-chat-other-fg-secondary: @subtext1; + + --color-semantic-select-fg-primary: @accent-color; + --color-semantic-select-utility-detail: fade(@accent-color, 20%); + --color-semantic-highlight-fg-primary: @accent-color; + + /* Weird variables issue fixes */ + --color-light-bg-primary: @crust; + --color-dark-bg-secondary: @surface0; + --color-dark-bg-tertiary: @base; } - // brand colors in SVGs - // Substack orange - *[stroke="#ff6719"], - *[stroke="#FF6719"] { - stroke: @peach !important; + /* Substack logos */ + [fill="#ff6719" i] { + fill: @accent-color !important; } - *[fill="#ff6719"], - *[fill="#FF6719"] { - fill: @peach !important; + /* Inverted logo colors */ + [fill="#FFFFFF" i] { + fill: @crust !important; } - .footer-wrap .footer .footer-substack-cta { - background-color: @base; + /* Footer */ + .footer-wrap .footer { + background-color: @mantle; + } + .subscribe-footer .button.primary { + border-color: @crust; } - .reader-nav-top.pinned { - background-color: rgba(#rgbify(@base) [], 85%); - backdrop-filter: var(--glass); - } + /* Onboarding and profile */ - // toggle switches - .tailwind-preflight button span { - background-color: @base !important; - } + .onboarding-profile-page { + .accept-tos * { + color: @subtext1; + } - // restack quote popup - div[class*="frontend-components-selection_popover-module"] { - * { - color: @text !important; - background: @base !important; - border-color: @surface0 !important; - stroke: @text !important; + .skip-button { + color: @text; } } - // top navbar user button - .button.user-indicator { - background: var(--color-bg-secondary-themed) !important; + .profile-page .set-up-profile-button { + color: @crust; + } + .edit-profile-page .publication-section .all-toggle { + color: @subtext1; } - // comment boxes - .comment-input-wrap form.comment-input .comment-input-right textarea { - overflow-y: auto !important; + /* Misc inputs */ + button[role="switch"], + input[type="radio"] + span { + --color-utility-white: @surface0; } - ::-webkit-scrollbar { - background: @mantle; - width: 0.25rem; + input[type="text"], + select { + background-color: @mantle; + color: @text; } - ::-webkit-scrollbar-thumb { - background: @accent-color; - border-radius: 9999px; + + /* Dashboard analytics icons */ + [stroke="#888888"] { + stroke: @subtext1 !important; } } }