From b9b7e7671697fe5eb16c7d7babc618bfa9ed4916 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:05:31 -0400 Subject: [PATCH 01/12] refactor(github): rewrite for new css --- styles/github/catppuccin.user.css | 601 ++++++++++++++++++++++++++---- 1 file changed, 534 insertions(+), 67 deletions(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index c73c39b257..0b49ab6f84 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -106,7 +106,6 @@ --color-btn-@{item}-hover-icon: @base; - /* set these to transparent for the looks */ --color-btn-@{item}-border: transparent; --color-btn-@{item}-shadow: 0 0 transparent; --color-btn-@{item}-inset-shadow: 0 0 transparent; @@ -145,22 +144,431 @@ accent-color: @accent-color; color: @text; + + /* NEW */ + --color-workflow-card-header-shadow: rgba(27, 31, 35, 0.04); + --color-icon-directory: var(--fgColor-muted, var(--color-fg-muted)); + --color-calendar-halloween-graph-day-L1-bg: fadeout( + @accent-color, + 60% + ) !important; + --color-calendar-halloween-graph-day-L2-bg: fadeout( + @accent-color, + 40% + ) !important; + --color-calendar-halloween-graph-day-L3-bg: fadeout( + @accent-color, + 20% + ) !important; + --color-calendar-halloween-graph-day-L4-bg: @accent-color !important; + --color-calendar-winter-graph-day-L1-bg: fadeout( + @accent-color, + 60% + ) !important; + --color-calendar-winter-graph-day-L2-bg: fadeout( + @accent-color, + 40% + ) !important; + --color-calendar-winter-graph-day-L3-bg: fadeout( + @accent-color, + 20% + ) !important; + --color-calendar-winter-graph-day-L4-bg: @accent-color !important; + --color-calendar-graph-day-bg: @surface0 !important; + --color-calendar-graph-day-border: transparent !important; + --color-calendar-graph-day-L1-bg: fadeout(@accent-color, 60%) !important; + --color-calendar-graph-day-L2-bg: fadeout(@accent-color, 40%) !important; + --color-calendar-graph-day-L3-bg: fadeout(@accent-color, 20%) !important; + --color-calendar-graph-day-L4-bg: @accent-color !important; + --color-calendar-graph-day-L2-border: transparent !important; + --color-calendar-graph-day-L3-border: transparent !important; + --color-calendar-graph-day-L4-border: transparent !important; + --color-user-mention-fg: @accent-color; + --color-user-mention-bg: fade(@accent-color, 30%); + --color-dashboard-feed-bg: var(--color-scale-gray-9); + --color-mktg-btn-shadow-outline: rgba(255, 255, 255, 0.25) 0 0 0 1px inset; + --color-marketing-icon-secondary: var(--color-scale-blue-5); + --color-project-header-bg: var(--color-scale-gray-9); + --color-project-sidebar-bg: var(--color-scale-gray-8); + --color-project-gradient-in: var(--color-scale-gray-8); + --color-project-gradient-out: rgba(22, 27, 34, 0); + --color-diff-blob-selected-line-highlight-mix-blend-mode: screen; + --topicTag-borderColor: #00000000; + --highlight-neutral-bgColor: #d2992266; + --page-header-bgColor: #0d1117; + --diffBlob-addition-fgColor-text: @text; + --diffBlob-addition-fgColor-num: @text; + --diffBlob-addition-bgColor-num: fadeout(@green, 70%); + --diffBlob-addition-bgColor-line: fadeout(@green, 85%); + --diffBlob-addition-bgColor-word: fadeout(@green, 70%); + --diffBlob-deletion-fgColor-text: @text; + --diffBlob-deletion-fgColor-num: @text; + --diffBlob-deletion-bgColor-num: fadeout(@red, 70%); + --diffBlob-deletion-bgColor-line: fadeout(@red, 85%); + --diffBlob-deletion-bgColor-word: fadeout(@red, 70%); + --diffBlob-hunk-bgColor-num: fadeout(@blue, 60%); + --diffBlob-expander-iconColor: #848d97; + --codeMirror-fgColor: @text; + --codeMirror-bgColor: @base; + --codeMirror-gutters-bgColor: @base; + --codeMirror-gutterMarker-fgColor-default: @base; + --codeMirror-gutterMarker-fgColor-muted: @overlay0; + --codeMirror-lineNumber-fgColor: @subtext1; + --codeMirror-cursor-fgColor: #e6edf3; + --codeMirror-selection-bgColor: #388bfd66; + --codeMirror-activeline-bgColor: #6e768166; + --codeMirror-matchingBracket-fgColor: @text; + --codeMirror-lines-bgColor: @base; + --codeMirror-syntax-fgColor-comment: @overlay0; + --codeMirror-syntax-fgColor-constant: @blue; + --codeMirror-syntax-fgColor-entity: @blue; + --codeMirror-syntax-fgColor-keyword: @pink; + --codeMirror-syntax-fgColor-storage: @peach; + --codeMirror-syntax-fgColor-string: @green; + --codeMirror-syntax-fgColor-support: #79c0ff; + --codeMirror-syntax-fgColor-variable: @peach; + --header-fgColor-default: #ffffffb3; + --header-fgColor-logo: #f0f6fc; + --header-bgColor: #161b22f2; + --header-borderColor-divider: #8b949e; + --headerSearch-bgColor: #0d1117; + --headerSearch-borderColor: #30363d; + --data-blue-color: #0576ff; + --data-auburn-color: #a86f6b; + --data-orange-color: #984b10; + --data-yellow-color: #895906; + --data-green-color: #2f6f37; + --data-teal-color: #106c70; + --data-purple-color: #975bf1; + --data-pink-color: #d34591; + --data-red-color: #eb3342; + --data-gray-color: #576270; + --display-blue-bgColor-muted: #001a47; + --display-blue-bgColor-emphasis: #0576ff; + --display-blue-fgColor: #4da0ff; + --display-blue-borderColor-muted: #002766; + --display-blue-borderColor-emphasis: #0576ff; + --display-green-bgColor-muted: #122117; + --display-green-bgColor-emphasis: #388f3f; + --display-green-fgColor: #41b445; + --display-green-borderColor-muted: #182f1f; + --display-green-borderColor-emphasis: #388f3f; + --display-orange-bgColor-muted: #311708; + --display-orange-bgColor-emphasis: #c46212; + --display-orange-fgColor: #ed8326; + --display-orange-borderColor-muted: #43200a; + --display-orange-borderColor-emphasis: #c46212; + --display-purple-bgColor-muted: #211047; + --display-purple-bgColor-emphasis: #975bf1; + --display-purple-fgColor: #b687f7; + --display-purple-borderColor-muted: #31146b; + --display-purple-borderColor-emphasis: #975bf1; + --display-red-bgColor-muted: #3c0614; + --display-red-bgColor-emphasis: #eb3342; + --display-red-fgColor: #f27d83; + --display-red-borderColor-muted: #58091a; + --display-red-borderColor-emphasis: #eb3342; + --display-yellow-bgColor-muted: #2e1a00; + --display-yellow-bgColor-emphasis: #aa7109; + --display-yellow-fgColor: #d3910d; + --display-yellow-borderColor-muted: #3d2401; + --display-yellow-borderColor-emphasis: #aa7109; + --display-gray-bgColor-muted: #1c1c1c; + --display-gray-bgColor-emphasis: #6e7f96; + --display-gray-fgColor: #92a1b5; + --display-gray-borderColor-muted: #2a2b2d; + --display-gray-borderColor-emphasis: #6e7f96; + --display-auburn-bgColor-muted: #271817; + --display-auburn-bgColor-emphasis: #a86f6b; + --display-auburn-fgColor: #bf9592; + --display-auburn-borderColor-muted: #3a2422; + --display-auburn-borderColor-emphasis: #a86f6b; + --display-brown-bgColor-muted: #241c14; + --display-brown-bgColor-emphasis: #94774c; + --display-brown-fgColor: #b69a6d; + --display-brown-borderColor-muted: #342a1d; + --display-brown-borderColor-emphasis: #94774c; + --display-lemon-bgColor-muted: #291d00; + --display-lemon-bgColor-emphasis: #977b0c; + --display-lemon-fgColor: #ba9b12; + --display-lemon-borderColor-muted: #372901; + --display-lemon-borderColor-emphasis: #977b0c; + --display-olive-bgColor-muted: #171e0b; + --display-olive-bgColor-emphasis: #7a8321; + --display-olive-fgColor: #a2a626; + --display-olive-borderColor-muted: #252d10; + --display-olive-borderColor-emphasis: #7a8321; + --display-lime-bgColor-muted: #141f0f; + --display-lime-bgColor-emphasis: #5f892f; + --display-lime-fgColor: #7dae37; + --display-lime-borderColor-muted: #1f3116; + --display-lime-borderColor-emphasis: #5f892f; + --display-pine-bgColor-muted: #082119; + --display-pine-bgColor-emphasis: #18915e; + --display-pine-fgColor: #1bb673; + --display-pine-borderColor-muted: #0b3224; + --display-pine-borderColor-emphasis: #18915e; + --display-teal-bgColor-muted: #041f25; + --display-teal-bgColor-emphasis: #158a8a; + --display-teal-fgColor: #1cb0ab; + --display-teal-borderColor-muted: #073036; + --display-teal-borderColor-emphasis: #158a8a; + --display-cyan-bgColor-muted: #001f29; + --display-cyan-bgColor-emphasis: #0587b3; + --display-cyan-fgColor: #07ace4; + --display-cyan-borderColor-muted: #002e3d; + --display-cyan-borderColor-emphasis: #0587b3; + --display-indigo-bgColor-muted: #1b183f; + --display-indigo-bgColor-emphasis: #7070e1; + --display-indigo-fgColor: #9899ec; + --display-indigo-borderColor-muted: #25215f; + --display-indigo-borderColor-emphasis: #7070e1; + --avatar-bgColor: #ffffff1a; + --avatar-borderColor: #30363db3; + --avatar-shadow: 0px 0px 0px 2px #0d1117; + --avatarStack-fade-bgColor-default: #30363d; + --avatarStack-fade-bgColor-muted: #21262d; + --control-bgColor-rest: #21262d; + --control-bgColor-hover: #292e36; + --control-bgColor-active: #31363e; + --control-bgColor-disabled: #21262db3; + --control-bgColor-selected: #161b22; + --control-fgColor-rest: #c9d1d9; + --control-fgColor-placeholder: #484f58; + --control-fgColor-disabled: #6e7681; + --control-borderColor-rest: #30363d; + --control-borderColor-emphasis: #666e79; + --control-borderColor-disabled: #21262db3; + --control-borderColor-selected: #f0f6fc; + --control-borderColor-success: #238636; + --control-borderColor-danger: #da3633; + --control-borderColor-warning: #9e6a03; + --control-iconColor-rest: #848d97; + --control-transparent-bgColor-rest: #00000000; + --control-transparent-bgColor-hover: #b1bac41f; + --control-transparent-bgColor-active: #b1bac433; + --control-transparent-bgColor-disabled: #21262db3; + --control-transparent-bgColor-selected: #b1bac414; + --control-transparent-borderColor-rest: #00000000; + --control-transparent-borderColor-hover: #00000000; + --control-transparent-borderColor-active: #00000000; + --control-danger-fgColor-rest: #f85149; + --control-danger-fgColor-hover: #ff7b72; + --control-danger-bgColor-hover: #f851491a; + --control-danger-bgColor-active: #f8514966; + --control-checked-bgColor-rest: #1f6feb; + --control-checked-bgColor-hover: #2a7aef; + --control-checked-bgColor-active: #3685f3; + --control-checked-bgColor-disabled: #6e7681; + --control-checked-fgColor-rest: #ffffff; + --control-checked-fgColor-disabled: #010409; + --control-checked-borderColor-rest: #1f6feb; + --control-checked-borderColor-hover: #2a7aef; + --control-checked-borderColor-active: #3685f3; + --control-checked-borderColor-disabled: #6e7681; + --controlTrack-bgColor-rest: #21262d; + --controlTrack-bgColor-hover: #292e36; + --controlTrack-bgColor-active: #31363e; + --controlTrack-bgColor-disabled: #6e7681; + --controlTrack-fgColor-rest: #848d97; + --controlTrack-fgColor-disabled: #ffffff; + --controlTrack-borderColor-rest: #00000000; + --controlTrack-borderColor-disabled: #6e7681; + --controlKnob-bgColor-rest: #010409; + --controlKnob-bgColor-disabled: #21262db3; + --controlKnob-bgColor-checked: #ffffff; + --controlKnob-borderColor-rest: #666e79; + --controlKnob-borderColor-disabled: #21262db3; + --controlKnob-borderColor-checked: #1f6feb; + --counter-borderColor: #00000000; + --button-default-fgColor-rest: #c9d1d9; + --button-default-bgColor-rest: #21262d; + --button-default-bgColor-hover: #292e36; + --button-default-bgColor-active: #31363e; + --button-default-bgColor-selected: #31363e; + --button-default-bgColor-disabled: #21262db3; + --button-default-borderColor-rest: #30363d; + --button-default-borderColor-hover: #30363d; + --button-default-borderColor-active: #30363d; + --button-default-borderColor-disabled: #21262db3; + --button-default-shadow-resting: 0px 0px 0px 0px #000000; + --button-primary-fgColor-rest: #ffffff; + --button-primary-fgColor-disabled: #ffffffcc; + --button-primary-iconColor-rest: #ffffff; + --button-primary-bgColor-rest: #238636; + --button-primary-bgColor-hover: #29903b; + --button-primary-bgColor-active: #2e9a40; + --button-primary-bgColor-disabled: #77c982; + --button-primary-borderColor-rest: #f0f6fc1a; + --button-primary-borderColor-hover: #f0f6fc1a; + --button-primary-borderColor-active: #f0f6fc1a; + --button-primary-borderColor-disabled: #77c982; + --button-primary-shadow-selected: 0px 0px 0px 0px #000000; + --button-invisible-fgColor-rest: #4493f8; + --button-invisible-fgColor-hover: #58a6ff; + --button-invisible-fgColor-disabled: #6e7681; + --button-invisible-iconColor-rest: #848d97; + --button-invisible-iconColor-hover: #e6edf3; + --button-invisible-iconColor-disabled: #6e7681; + --button-invisible-bgColor-rest: #00000000; + --button-invisible-bgColor-hover: #b1bac41f; + --button-invisible-bgColor-active: #b1bac433; + --button-invisible-bgColor-disabled: #21262db3; + --button-invisible-borderColor-rest: #00000000; + --button-invisible-borderColor-hover: #00000000; + --button-invisible-borderColor-disabled: #21262db3; + --button-outline-fgColor-rest: #388bfd; + --button-outline-fgColor-hover: #58a6ff; + --button-outline-fgColor-active: #ffffff; + --button-outline-fgColor-disabled: #4493f880; + --button-outline-bgColor-rest: #f0f6fc; + --button-outline-bgColor-hover: #30363d; + --button-outline-bgColor-active: #0d419d; + --button-outline-bgColor-disabled: #0d1117; + --button-outline-borderColor-hover: #f0f6fc1a; + --button-outline-borderColor-selected: #f0f6fc1a; + --button-outline-shadow-selected: 0px 0px 0px 0px #000000; + --button-danger-fgColor-rest: #f85149; + --button-danger-fgColor-hover: #ffffff; + --button-danger-fgColor-active: #ffffff; + --button-danger-fgColor-disabled: #f8514980; + --button-danger-iconColor-rest: #f85149; + --button-danger-iconColor-hover: #ffffff; + --button-danger-bgColor-rest: #21262d; + --button-danger-bgColor-hover: #b62324; + --button-danger-bgColor-active: #d03533; + --button-danger-bgColor-disabled: #21262db3; + --button-danger-borderColor-rest: #30363d; + --button-danger-borderColor-hover: #f0f6fc1a; + --button-danger-borderColor-active: #f0f6fc1a; + --button-danger-shadow-selected: 0px 0px 0px 0px #000000; + --button-inactive-fgColor: #8b949e; + --button-inactive-bgColor: #21262d; + --button-star-iconColor: #e3b341; + --buttonCounter-default-bgColor-rest: #30363d; + --buttonCounter-invisible-bgColor-rest: #30363d; + --buttonCounter-primary-bgColor-rest: #04260f33; + --buttonCounter-outline-bgColor-rest: #051d4d33; + --buttonCounter-outline-bgColor-hover: #051d4d33; + --buttonCounter-outline-bgColor-disabled: #1f6feb0d; + --buttonCounter-outline-fgColor-rest: #388bfd; + --buttonCounter-outline-fgColor-hover: #58a6ff; + --buttonCounter-outline-fgColor-disabled: #4493f880; + --buttonCounter-danger-bgColor-hover: #ffffff33; + --buttonCounter-danger-bgColor-disabled: #da36330d; + --buttonCounter-danger-bgColor-rest: #49020233; + --buttonCounter-danger-fgColor-rest: #f85149; + --buttonCounter-danger-fgColor-hover: #ffffff; + --buttonCounter-danger-fgColor-disabled: #f8514980; + --focus-outlineColor: #1f6feb; + --menu-bgColor-active: #161b22; + --overlay-bgColor: #161b22; + --overlay-borderColor: #30363db3; + --overlay-backdrop-bgColor: #161b2266; + --selectMenu-borderColor: #484f58; + --selectMenu-bgColor-active: #0c2d6b; + --sideNav-bgColor-selected: #21262d; + --skeletonLoader-bgColor: #161b22; + --timelineBadge-bgColor: #21262d; + --treeViewItem-leadingVisual-iconColor-rest: #848d97; + --underlineNav-borderColor-active: #f78166; + --underlineNav-borderColor-hover: #6e768166; + --underlineNav-iconColor-rest: #848d97; + --selection-bgColor: #1f6febb3; + --fgColor-default: #e6edf3; + --fgColor-muted: #848d97; + --fgColor-onEmphasis: #ffffff; + --fgColor-white: #ffffff; + --fgColor-disabled: #6e7681; + --fgColor-link: #4493f8; + --fgColor-neutral: #6e7681; + --fgColor-accent: #4493f8; + --fgColor-success: #3fb950; + --fgColor-attention: #d29922; + --fgColor-severe: #db6d28; + --fgColor-danger: #f85149; + --fgColor-open: #3fb950; + --fgColor-closed: #f85149; + --fgColor-done: #a371f7; + --fgColor-sponsors: #db61a2; --bgColor-default: @base; - --color-page-header-bg: @base; - --color-marketing-icon-primary: @sky; - --color-marketing-icon-secondary: @blue; - --color-diff-blob-addition-num-text: @text; - --color-diff-blob-addition-fg: @text; - --color-diff-blob-addition-num-bg: fadeout(@green, 70%); - --color-diff-blob-addition-line-bg: fadeout(@green, 85%); - --color-diff-blob-addition-word-bg: fadeout(@green, 70%); - --color-diff-blob-deletion-num-text: @text; - --color-diff-blob-deletion-fg: @text; - --color-diff-blob-deletion-num-bg: fadeout(@red, 70%); - --color-diff-blob-deletion-line-bg: fadeout(@red, 85%); - --color-diff-blob-deletion-word-bg: fadeout(@red, 70%); - --color-diff-blob-hunk-num-bg: fadeout(@blue, 60%); - --color-diffstat-addition-bg: @green; + --bgColor-muted: @mantle; + --bgColor-inset: @surface0; + --bgColor-emphasis: #6e7681; + --bgColor-inverse: #ffffff; + --bgColor-disabled: #21262db3; + --bgColor-transparent: #00000000; + --bgColor-neutral-muted: #6e768166; + --bgColor-neutral-emphasis: #6e7681; + --bgColor-accent-muted: #388bfd1a; + --bgColor-accent-emphasis: #1f6feb; + --bgColor-success-muted: #2ea04326; + --bgColor-success-emphasis: #238636; + --bgColor-attention-muted: #bb800926; + --bgColor-attention-emphasis: #9e6a03; + --bgColor-severe-muted: #db6d281a; + --bgColor-severe-emphasis: #bd561d; + --bgColor-danger-muted: #f851491a; + --bgColor-danger-emphasis: #da3633; + --bgColor-open-muted: #2ea0431a; + --bgColor-open-emphasis: #238636; + --bgColor-closed-muted: #f8514926; + --bgColor-closed-emphasis: #da3633; + --bgColor-done-muted: #a371f726; + --bgColor-done-emphasis: #8957e5; + --bgColor-sponsors-muted: #db61a21a; + --bgColor-sponsors-emphasis: #bf4b8a; + --borderColor-default: @surface1; + --borderColor-muted: #30363db3; + --borderColor-emphasis: #484f58; + --borderColor-disabled: #21262db3; + --borderColor-transparent: #00000000; + --borderColor-neutral-muted: #6e768166; + --borderColor-neutral-emphasis: #6e7681; + --borderColor-accent-muted: #388bfd66; + --borderColor-accent-emphasis: #1f6feb; + --borderColor-success-muted: #2ea04366; + --borderColor-success-emphasis: #238636; + --borderColor-attention-muted: #bb800966; + --borderColor-attention-emphasis: #9e6a03; + --borderColor-severe-muted: #db6d2866; + --borderColor-severe-emphasis: #bd561d; + --borderColor-danger-muted: #f8514966; + --borderColor-danger-emphasis: #da3633; + --borderColor-open-muted: #2ea04366; + --borderColor-open-emphasis: #238636; + --borderColor-closed-muted: #f8514966; + --borderColor-closed-emphasis: #da3633; + --borderColor-done-muted: #a371f766; + --borderColor-done-emphasis: #8957e5; + --borderColor-sponsors-muted: #db61a266; + --borderColor-sponsors-emphasis: #bf4b8a; + & when (@lookup =latte) { + --color-ansi-black: @subtext1; + --color-ansi-black-bright: @subtext0; + --color-ansi-gray: @subtext0; + --color-ansi-white: @surface2; + --color-ansi-white-bright: @surface1; + } + & when not (@lookup =latte) { + --color-ansi-black: @surface1; + --color-ansi-black-bright: @surface2; + --color-ansi-gray: @surface2; + --color-ansi-white: @subtext1; + --color-ansi-white-bright: @subtext0; + } + --color-ansi-red: @red; + --color-ansi-red-bright: @red; + --color-ansi-green: @green; + --color-ansi-green-bright: @green; + --color-ansi-yellow: @yellow; + --color-ansi-yellow-bright: @yellow; + --color-ansi-blue: @blue; + --color-ansi-blue-bright: @blue; + --color-ansi-magenta: @pink; + --color-ansi-magenta-bright: @pink; + --color-ansi-cyan: @teal; + --color-ansi-cyan-bright: @teal; --color-prettylights-syntax-comment: @overlay1; --color-prettylights-syntax-constant: @blue; --color-prettylights-syntax-entity: @blue; @@ -181,21 +589,116 @@ --color-prettylights-syntax-markup-changed-text: @text; --color-prettylights-syntax-markup-changed-bg: fadeout(@yellow, 60%); --color-prettylights-syntax-markup-ignored-text: @text; - --color-codemirror-text: @text; - --color-codemirror-bg: @base; - --color-codemirror-gutters-bg: @base; - --color-codemirror-guttermarker-text: @base; - --color-codemirror-lines-bg: @base; - --color-codemirror-guttermarker-subtle-text: @overlay0; - --color-codemirror-linenumber-text: @subtext1; - --color-codemirror-matchingbracket-text: @text; - --color-codemirror-syntax-comment: @overlay0; - --color-codemirror-syntax-constant: @blue; - --color-codemirror-syntax-entity: @blue; - --color-codemirror-syntax-keyword: @pink; - --color-codemirror-syntax-storage: @peach; - --color-codemirror-syntax-string: @green; - --color-codemirror-syntax-variable: @peach; + --color-scale-black: #010409; + --color-scale-transparent: #00000000; + --color-scale-white: @text; + --color-scale-gray-0: #f0f6fc; + --color-scale-gray-1: #c9d1d9; + --color-scale-gray-2: #b1bac4; + --color-scale-gray-3: @overlay2; + --color-scale-gray-4: #6e7681; + --color-scale-gray-5: @overlay0; + --color-scale-gray-6: @surface1; + --color-scale-gray-7: @surface1; + --color-scale-gray-8: #161b22; + --color-scale-gray-9: #0d1117; + --color-scale-blue-0: #cae8ff; + --color-scale-blue-1: #a5d6ff; + --color-scale-blue-2: @sky; + --color-scale-blue-3: #58a6ff; + --color-scale-blue-4: #388bfd; + --color-scale-blue-5: @blue; + --color-scale-blue-6: #1158c7; + --color-scale-blue-7: #0d419d; + --color-scale-blue-8: #0c2d6b; + --color-scale-blue-9: #051d4d; + --color-scale-green-0: #aff5b4; + --color-scale-green-1: #7ee787; + --color-scale-green-2: #56d364; + --color-scale-green-3: #3fb950; + --color-scale-green-4: @green; + --color-scale-green-5: #238636; + --color-scale-green-6: #196c2e; + --color-scale-green-7: #0f5323; + --color-scale-green-8: #033a16; + --color-scale-green-9: #04260f; + --color-scale-yellow-0: #f8e3a1; + --color-scale-yellow-1: #f2cc60; + --color-scale-yellow-2: #e3b341; + --color-scale-yellow-3: @peach; + --color-scale-yellow-4: #bb8009; + --color-scale-yellow-5: #9e6a03; + --color-scale-yellow-6: #845306; + --color-scale-yellow-7: #693e00; + --color-scale-yellow-8: #4b2900; + --color-scale-yellow-9: #341a00; + --color-scale-orange-0: #ffdfb6; + --color-scale-orange-1: #ffc680; + --color-scale-orange-2: #ffa657; + --color-scale-orange-3: #f0883e; + --color-scale-orange-4: #db6d28; + --color-scale-orange-5: #bd561d; + --color-scale-orange-6: #9b4215; + --color-scale-orange-7: #762d0a; + --color-scale-orange-8: #5a1e02; + --color-scale-orange-9: #3d1300; + --color-scale-red-0: #ffdcd7; + --color-scale-red-1: #ffc1ba; + --color-scale-red-2: #ffa198; + --color-scale-red-3: #ff7b72; + --color-scale-red-4: @red; + --color-scale-red-5: #da3633; + --color-scale-red-6: #b62324; + --color-scale-red-7: #8e1519; + --color-scale-red-8: #67060c; + --color-scale-red-9: #490202; + --color-scale-purple-0: #eddeff; + --color-scale-purple-1: #e2c5ff; + --color-scale-purple-2: #d2a8ff; + --color-scale-purple-3: #bc8cff; + --color-scale-purple-4: #a371f7; + --color-scale-purple-5: #8957e5; + --color-scale-purple-6: #6e40c9; + --color-scale-purple-7: #553098; + --color-scale-purple-8: #3c1e70; + --color-scale-purple-9: #271052; + --color-scale-pink-0: #ffdaec; + --color-scale-pink-1: #ffbedd; + --color-scale-pink-2: #ff9bce; + --color-scale-pink-3: #f778ba; + --color-scale-pink-4: #db61a2; + --color-scale-pink-5: #bf4b8a; + --color-scale-pink-6: #9e3670; + --color-scale-pink-7: #7d2457; + --color-scale-pink-8: #5e103e; + --color-scale-pink-9: #42062a; + --color-scale-coral-0: #ffddd2; + --color-scale-coral-1: #ffc2b2; + --color-scale-coral-2: #ffa28b; + --color-scale-coral-3: #f78166; + --color-scale-coral-4: #ea6045; + --color-scale-coral-5: #cf462d; + --color-scale-coral-6: #ac3220; + --color-scale-coral-7: #872012; + --color-scale-coral-8: #640d04; + --color-scale-coral-9: #460701; + --shadow-inset: inset 0px 1px 0px 0px #0104093d; + --shadow-resting-xsmall: 0px 1px 0px 0px #010409cc; + --shadow-resting-small: 0px 1px 0px 0px #01040966, 0px 1px 3px 0px #01040966; + --shadow-resting-medium: 0px 3px 6px 0px #010409cc; + --shadow-floating-small: 0px 0px 0px 1px #30363d, + 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966; + --shadow-floating-medium: 0px 0px 0px 1px #30363d, + 0px 8px 16px -4px #01040966, 0px 4px 32px -4px #01040966, + 0px 24px 48px -12px #01040966, 0px 48px 96px -24px #01040966; + --shadow-floating-large: 0px 0px 0px 1px #30363d, 0px 24px 48px 0px #010409; + --shadow-floating-xlarge: 0px 0px 0px 1px #30363d, 0px 32px 64px 0px #010409; + --shadow-floating-legacy: 0px 6px 12px -3px #01040966, + 0px 6px 18px 0px #01040966; + --outline-focus: #1f6feb solid 2px; + + /* OLD */ + --color-diffstat-addition-bg: @green; --color-checks-bg: @mantle; --color-checks-text-primary: @text; --color-checks-text-secondary: @subtext1; @@ -245,28 +748,6 @@ --color-checks-logline-warning-bg: fadeout(@peach, 85%); --color-checks-logline-command-text: @blue; --color-checks-logline-section-text: @green; - --color-checks-ansi-black: @surface1; - --color-checks-ansi-black-bright: @surface2; - --color-checks-ansi-white: @subtext1; - --color-checks-ansi-white-bright: @subtext0; - & when (@lookup =latte) { - --color-checks-ansi-black: @subtext1; - --color-checks-ansi-black-bright: @subtext0; - --color-checks-ansi-white: @surface2; - --color-checks-ansi-white-bright: @surface1; - } - --color-checks-ansi-red: @red; - --color-checks-ansi-red-bright: @red; - --color-checks-ansi-green: @green; - --color-checks-ansi-green-bright: @green; - --color-checks-ansi-yellow: @yellow; - --color-checks-ansi-yellow-bright: @yellow; - --color-checks-ansi-blue: @blue; - --color-checks-ansi-blue-bright: @blue; - --color-checks-ansi-magenta: @pink; - --color-checks-ansi-magenta-bright: @pink; - --color-checks-ansi-cyan: @teal; - --color-checks-ansi-cyan-bright: @teal; --color-header-text: var(--subtext2); --color-header-bg: @mantle; --color-header-logo: @text; @@ -350,20 +831,6 @@ --color-user-mention-fg: @accent-color; --color-user-mention-bg: fade(@accent-color, 30%); --color-text-white: @text; - --color-calendar-halloween-graph-day-L1-bg: fadeout(@accent-color, 3); - --color-calendar-halloween-graph-day-L2-bg: fadeout(@accent-color, 2); - --color-calendar-halloween-graph-day-L3-bg: @accent-color; - --color-calendar-halloween-graph-day-L4-bg: @mantle; - --color-calendar-graph-day-L1-bg: fadeout(@accent-color, 60%) !important; - --color-calendar-graph-day-L2-bg: fadeout(@accent-color, 40%) !important; - --color-calendar-graph-day-L3-bg: fadeout(@accent-color, 20%) !important; - --color-calendar-graph-day-L4-bg: @accent-color !important; - --color-calendar-graph-day-L1-border: transparent !important; - --color-calendar-graph-day-L2-border: transparent !important; - --color-calendar-graph-day-L3-border: transparent !important; - --color-calendar-graph-day-L4-border: transparent !important; - --color-calendar-graph-day-border: transparent !important; - --color-calendar-graph-day-bg: @surface0 !important; --color-segmented-control-button-bg: @base; --color-segmented-control-button-hover-bg: @surface0; --color-segmented-control-button-active-bg: @mantle; From 2005e0f28d3113c6ff3cc11b950a004cb4461841 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 09:33:27 -0400 Subject: [PATCH 02/12] feat(github): theme mostly everything --- styles/github/catppuccin.user.css | 441 ++++++++---------------------- 1 file changed, 107 insertions(+), 334 deletions(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index 0b49ab6f84..e57fa8d696 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -194,7 +194,7 @@ --color-project-gradient-out: rgba(22, 27, 34, 0); --color-diff-blob-selected-line-highlight-mix-blend-mode: screen; --topicTag-borderColor: #00000000; - --highlight-neutral-bgColor: #d2992266; + --highlight-neutral-bgColor: fade(@yellow, 66%); --page-header-bgColor: #0d1117; --diffBlob-addition-fgColor-text: @text; --diffBlob-addition-fgColor-num: @text; @@ -227,12 +227,12 @@ --codeMirror-syntax-fgColor-string: @green; --codeMirror-syntax-fgColor-support: #79c0ff; --codeMirror-syntax-fgColor-variable: @peach; - --header-fgColor-default: #ffffffb3; + --header-fgColor-default: @text; --header-fgColor-logo: #f0f6fc; - --header-bgColor: #161b22f2; + --header-bgColor: @crust; --header-borderColor-divider: #8b949e; - --headerSearch-bgColor: #0d1117; - --headerSearch-borderColor: #30363d; + --headerSearch-bgColor: @base; + --headerSearch-borderColor: @surface0; --data-blue-color: #0576ff; --data-auburn-color: #a86f6b; --data-orange-color: #984b10; @@ -323,11 +323,11 @@ --display-indigo-fgColor: #9899ec; --display-indigo-borderColor-muted: #25215f; --display-indigo-borderColor-emphasis: #7070e1; - --avatar-bgColor: #ffffff1a; + --avatar-bgColor: fade(@text, 26%); --avatar-borderColor: #30363db3; --avatar-shadow: 0px 0px 0px 2px #0d1117; - --avatarStack-fade-bgColor-default: #30363d; - --avatarStack-fade-bgColor-muted: #21262d; + --avatarStack-fade-bgColor-default: @surface1 + --avatarStack-fade-bgColor-muted: #21262d; --control-bgColor-rest: #21262d; --control-bgColor-hover: #292e36; --control-bgColor-active: #31363e; @@ -336,7 +336,7 @@ --control-fgColor-rest: #c9d1d9; --control-fgColor-placeholder: #484f58; --control-fgColor-disabled: #6e7681; - --control-borderColor-rest: #30363d; + --control-borderColor-rest: @surface1; --control-borderColor-emphasis: #666e79; --control-borderColor-disabled: #21262db3; --control-borderColor-selected: #f0f6fc; @@ -345,22 +345,22 @@ --control-borderColor-warning: #9e6a03; --control-iconColor-rest: #848d97; --control-transparent-bgColor-rest: #00000000; - --control-transparent-bgColor-hover: #b1bac41f; - --control-transparent-bgColor-active: #b1bac433; + --control-transparent-bgColor-hover: fade(@surface0, 30%); + --control-transparent-bgColor-active: fade(@surface0, 50%); --control-transparent-bgColor-disabled: #21262db3; --control-transparent-bgColor-selected: #b1bac414; --control-transparent-borderColor-rest: #00000000; --control-transparent-borderColor-hover: #00000000; --control-transparent-borderColor-active: #00000000; - --control-danger-fgColor-rest: #f85149; + --control-danger-fgColor-rest: @red; --control-danger-fgColor-hover: #ff7b72; - --control-danger-bgColor-hover: #f851491a; - --control-danger-bgColor-active: #f8514966; + --control-danger-bgColor-hover: fade(@red, 26%); + --control-danger-bgColor-active: @red; --control-checked-bgColor-rest: #1f6feb; --control-checked-bgColor-hover: #2a7aef; --control-checked-bgColor-active: #3685f3; --control-checked-bgColor-disabled: #6e7681; - --control-checked-fgColor-rest: #ffffff; + --control-checked-fgColor-rest: @text; --control-checked-fgColor-disabled: #010409; --control-checked-borderColor-rest: #1f6feb; --control-checked-borderColor-hover: #2a7aef; @@ -371,33 +371,33 @@ --controlTrack-bgColor-active: #31363e; --controlTrack-bgColor-disabled: #6e7681; --controlTrack-fgColor-rest: #848d97; - --controlTrack-fgColor-disabled: #ffffff; + --controlTrack-fgColor-disabled: @text; --controlTrack-borderColor-rest: #00000000; --controlTrack-borderColor-disabled: #6e7681; --controlKnob-bgColor-rest: #010409; --controlKnob-bgColor-disabled: #21262db3; - --controlKnob-bgColor-checked: #ffffff; + --controlKnob-bgColor-checked: @text; --controlKnob-borderColor-rest: #666e79; --controlKnob-borderColor-disabled: #21262db3; - --controlKnob-borderColor-checked: #1f6feb; + --controlKnob-borderColor-checked: @blue; --counter-borderColor: #00000000; - --button-default-fgColor-rest: #c9d1d9; - --button-default-bgColor-rest: #21262d; - --button-default-bgColor-hover: #292e36; - --button-default-bgColor-active: #31363e; - --button-default-bgColor-selected: #31363e; - --button-default-bgColor-disabled: #21262db3; - --button-default-borderColor-rest: #30363d; - --button-default-borderColor-hover: #30363d; - --button-default-borderColor-active: #30363d; + --button-default-fgColor-rest: @text; + --button-default-bgColor-rest: @surface0; + --button-default-bgColor-hover: @surface1; + --button-default-bgColor-active: @surface2; + --button-default-bgColor-selected: @surface2; + --button-default-bgColor-disabled: fade(@base, 70%); + --button-default-borderColor-rest: @surface1; + --button-default-borderColor-hover: @surface1; + --button-default-borderColor-active: @surface1; --button-default-borderColor-disabled: #21262db3; --button-default-shadow-resting: 0px 0px 0px 0px #000000; - --button-primary-fgColor-rest: #ffffff; - --button-primary-fgColor-disabled: #ffffffcc; - --button-primary-iconColor-rest: #ffffff; - --button-primary-bgColor-rest: #238636; - --button-primary-bgColor-hover: #29903b; - --button-primary-bgColor-active: #2e9a40; + --button-primary-fgColor-rest: @base; + --button-primary-fgColor-disabled: fade(@text, 80%); + --button-primary-iconColor-rest: @base; + --button-primary-bgColor-rest: @green; + --button-primary-bgColor-hover: lighten(@green, 5%); + --button-primary-bgColor-active: saturate(@green, 5%); --button-primary-bgColor-disabled: #77c982; --button-primary-borderColor-rest: #f0f6fc1a; --button-primary-borderColor-hover: #f0f6fc1a; @@ -419,50 +419,50 @@ --button-invisible-borderColor-disabled: #21262db3; --button-outline-fgColor-rest: #388bfd; --button-outline-fgColor-hover: #58a6ff; - --button-outline-fgColor-active: #ffffff; + --button-outline-fgColor-active: @text; --button-outline-fgColor-disabled: #4493f880; --button-outline-bgColor-rest: #f0f6fc; - --button-outline-bgColor-hover: #30363d; - --button-outline-bgColor-active: #0d419d; + --button-outline-bgColor-hover: @surface1 --button-outline-bgColor-active: + #0d419d; --button-outline-bgColor-disabled: #0d1117; --button-outline-borderColor-hover: #f0f6fc1a; --button-outline-borderColor-selected: #f0f6fc1a; --button-outline-shadow-selected: 0px 0px 0px 0px #000000; - --button-danger-fgColor-rest: #f85149; - --button-danger-fgColor-hover: #ffffff; - --button-danger-fgColor-active: #ffffff; - --button-danger-fgColor-disabled: #f8514980; - --button-danger-iconColor-rest: #f85149; - --button-danger-iconColor-hover: #ffffff; - --button-danger-bgColor-rest: #21262d; - --button-danger-bgColor-hover: #b62324; + --button-danger-fgColor-rest: @red; + --button-danger-fgColor-hover: @base; + --button-danger-fgColor-active: @text; + --button-danger-fgColor-disabled: fade(@red, 50%); + --button-danger-iconColor-rest: @red; + --button-danger-iconColor-hover: @text; + --button-danger-bgColor-rest: @surface0; + --button-danger-bgColor-hover: @red; --button-danger-bgColor-active: #d03533; --button-danger-bgColor-disabled: #21262db3; - --button-danger-borderColor-rest: #30363d; - --button-danger-borderColor-hover: #f0f6fc1a; - --button-danger-borderColor-active: #f0f6fc1a; + --button-danger-borderColor-rest: @surface1; + --button-danger-borderColor-hover: @surface2; + --button-danger-borderColor-active: @surface2; --button-danger-shadow-selected: 0px 0px 0px 0px #000000; --button-inactive-fgColor: #8b949e; --button-inactive-bgColor: #21262d; - --button-star-iconColor: #e3b341; - --buttonCounter-default-bgColor-rest: #30363d; - --buttonCounter-invisible-bgColor-rest: #30363d; - --buttonCounter-primary-bgColor-rest: #04260f33; + --button-star-iconColor: @yellow; + --buttonCounter-default-bgColor-rest: @surface1 + --buttonCounter-invisible-bgColor-rest: @surface1 + --buttonCounter-primary-bgColor-rest: #04260f33; --buttonCounter-outline-bgColor-rest: #051d4d33; --buttonCounter-outline-bgColor-hover: #051d4d33; --buttonCounter-outline-bgColor-disabled: #1f6feb0d; --buttonCounter-outline-fgColor-rest: #388bfd; --buttonCounter-outline-fgColor-hover: #58a6ff; --buttonCounter-outline-fgColor-disabled: #4493f880; - --buttonCounter-danger-bgColor-hover: #ffffff33; + --buttonCounter-danger-bgColor-hover: fade(@text, 20%); --buttonCounter-danger-bgColor-disabled: #da36330d; --buttonCounter-danger-bgColor-rest: #49020233; - --buttonCounter-danger-fgColor-rest: #f85149; - --buttonCounter-danger-fgColor-hover: #ffffff; - --buttonCounter-danger-fgColor-disabled: #f8514980; - --focus-outlineColor: #1f6feb; + --buttonCounter-danger-fgColor-rest: @red; + --buttonCounter-danger-fgColor-hover: @text; + --buttonCounter-danger-fgColor-disabled: fade(@red, 50%); + --focus-outlineColor: @blue; --menu-bgColor-active: #161b22; - --overlay-bgColor: #161b22; + --overlay-bgColor: @mantle; --overlay-borderColor: #30363db3; --overlay-backdrop-bgColor: #161b2266; --selectMenu-borderColor: #484f58; @@ -471,53 +471,53 @@ --skeletonLoader-bgColor: #161b22; --timelineBadge-bgColor: #21262d; --treeViewItem-leadingVisual-iconColor-rest: #848d97; - --underlineNav-borderColor-active: #f78166; + --underlineNav-borderColor-active: @accent-color; --underlineNav-borderColor-hover: #6e768166; --underlineNav-iconColor-rest: #848d97; --selection-bgColor: #1f6febb3; - --fgColor-default: #e6edf3; - --fgColor-muted: #848d97; - --fgColor-onEmphasis: #ffffff; - --fgColor-white: #ffffff; - --fgColor-disabled: #6e7681; - --fgColor-link: #4493f8; + --fgColor-default: @text; + --fgColor-muted: @subtext1; + --fgColor-onEmphasis: @base; + --fgColor-white: @text; + --fgColor-disabled: @surface2; + --fgColor-link: @blue; --fgColor-neutral: #6e7681; - --fgColor-accent: #4493f8; - --fgColor-success: #3fb950; - --fgColor-attention: #d29922; - --fgColor-severe: #db6d28; - --fgColor-danger: #f85149; - --fgColor-open: #3fb950; - --fgColor-closed: #f85149; - --fgColor-done: #a371f7; - --fgColor-sponsors: #db61a2; + --fgColor-accent: @accent-color; + --fgColor-success: @green; + --fgColor-attention: @yellow; + --fgColor-severe: @peach; + --fgColor-danger: @red; + --fgColor-open: @green; + --fgColor-closed: @red; + --fgColor-done: @mauve; + --fgColor-sponsors: @pink; --bgColor-default: @base; --bgColor-muted: @mantle; - --bgColor-inset: @surface0; + --bgColor-inset: @crust; --bgColor-emphasis: #6e7681; - --bgColor-inverse: #ffffff; + --bgColor-inverse: @text; --bgColor-disabled: #21262db3; --bgColor-transparent: #00000000; - --bgColor-neutral-muted: #6e768166; - --bgColor-neutral-emphasis: #6e7681; - --bgColor-accent-muted: #388bfd1a; - --bgColor-accent-emphasis: #1f6feb; + --bgColor-neutral-muted: @surface1; + --bgColor-neutral-emphasis: @subtext0; + --bgColor-accent-muted: fade(@accent-color, 20%); + --bgColor-accent-emphasis: @accent-color; --bgColor-success-muted: #2ea04326; - --bgColor-success-emphasis: #238636; + --bgColor-success-emphasis: @green; --bgColor-attention-muted: #bb800926; - --bgColor-attention-emphasis: #9e6a03; - --bgColor-severe-muted: #db6d281a; - --bgColor-severe-emphasis: #bd561d; - --bgColor-danger-muted: #f851491a; - --bgColor-danger-emphasis: #da3633; + --bgColor-attention-emphasis: @yellow; + --bgColor-severe-muted: fade(@peach, 26%); + --bgColor-severe-emphasis: @peach; + --bgColor-danger-muted: fade(@red, 26%); + --bgColor-danger-emphasis: @red; --bgColor-open-muted: #2ea0431a; - --bgColor-open-emphasis: #238636; - --bgColor-closed-muted: #f8514926; + --bgColor-open-emphasis: @green; + --bgColor-closed-muted: fade(@red, 15%); --bgColor-closed-emphasis: #da3633; --bgColor-done-muted: #a371f726; - --bgColor-done-emphasis: #8957e5; + --bgColor-done-emphasis: @mauve; --bgColor-sponsors-muted: #db61a21a; - --bgColor-sponsors-emphasis: #bf4b8a; + --bgColor-sponsors-emphasis: @pink; --borderColor-default: @surface1; --borderColor-muted: #30363db3; --borderColor-emphasis: #484f58; @@ -525,24 +525,24 @@ --borderColor-transparent: #00000000; --borderColor-neutral-muted: #6e768166; --borderColor-neutral-emphasis: #6e7681; - --borderColor-accent-muted: #388bfd66; - --borderColor-accent-emphasis: #1f6feb; - --borderColor-success-muted: #2ea04366; - --borderColor-success-emphasis: #238636; - --borderColor-attention-muted: #bb800966; - --borderColor-attention-emphasis: #9e6a03; - --borderColor-severe-muted: #db6d2866; + --borderColor-accent-muted: fade(@accent-color, 50%); + --borderColor-accent-emphasis: @accent-color; + --borderColor-success-muted: darken(@green, 5%); + --borderColor-success-emphasis: @green; + --borderColor-attention-muted: darken(@peach, 5%); + --borderColor-attention-emphasis: @peach; + --borderColor-severe-muted: @peach; --borderColor-severe-emphasis: #bd561d; - --borderColor-danger-muted: #f8514966; - --borderColor-danger-emphasis: #da3633; - --borderColor-open-muted: #2ea04366; - --borderColor-open-emphasis: #238636; - --borderColor-closed-muted: #f8514966; - --borderColor-closed-emphasis: #da3633; - --borderColor-done-muted: #a371f766; - --borderColor-done-emphasis: #8957e5; + --borderColor-danger-muted: @red; + --borderColor-danger-emphasis: @red; + --borderColor-open-muted: darken(@green, 5%); + --borderColor-open-emphasis: @green; + --borderColor-closed-muted: @red; + --borderColor-closed-emphasis: @red; + --borderColor-done-muted: @lavender; + --borderColor-done-emphasis: @mauve; --borderColor-sponsors-muted: #db61a266; - --borderColor-sponsors-emphasis: #bf4b8a; + --borderColor-sponsors-emphasis: @pink; & when (@lookup =latte) { --color-ansi-black: @subtext1; --color-ansi-black-bright: @subtext0; @@ -615,7 +615,7 @@ --color-scale-green-0: #aff5b4; --color-scale-green-1: #7ee787; --color-scale-green-2: #56d364; - --color-scale-green-3: #3fb950; + --color-scale-green-3: @green; --color-scale-green-4: @green; --color-scale-green-5: #238636; --color-scale-green-6: #196c2e; @@ -636,7 +636,7 @@ --color-scale-orange-1: #ffc680; --color-scale-orange-2: #ffa657; --color-scale-orange-3: #f0883e; - --color-scale-orange-4: #db6d28; + --color-scale-orange-4: @peach; --color-scale-orange-5: #bd561d; --color-scale-orange-6: #9b4215; --color-scale-orange-7: #762d0a; @@ -697,236 +697,9 @@ 0px 6px 18px 0px #01040966; --outline-focus: #1f6feb solid 2px; - /* OLD */ - --color-diffstat-addition-bg: @green; - --color-checks-bg: @mantle; - --color-checks-text-primary: @text; - --color-checks-text-secondary: @subtext1; - --color-checks-text-link: @sapphire; - --color-checks-btn-icon: @text; - --color-checks-btn-hover-icon: @text; - --color-checks-btn-hover-bg: @crust; - --color-checks-input-text: @surface1; - --color-checks-input-placeholder-text: @subtext1; - --color-checks-input-focus-text: @text; - --color-checks-input-bg: @surface0; - --color-checks-donut-error: @red; - --color-checks-donut-pending: @peach; - --color-checks-donut-success: @green; - --color-checks-donut-neutral: @overlay2; - --color-checks-dropdown-text: @text; - --color-checks-dropdown-bg: @surface0; - --color-checks-dropdown-border: @surface1; - --color-checks-dropdown-shadow: @crust; - --color-checks-dropdown-hover-text: @subtext0; - --color-checks-dropdown-hover-bg: @mantle; - --color-checks-dropdown-btn-hover-text: @text; - --color-checks-dropdown-btn-hover-bg: @mantle; - --color-checks-scrollbar-thumb-bg: @mantle; - --color-checks-header-label-text: @text; - --color-checks-header-label-open-text: @accent-color; - --color-checks-header-border: @surface0; - --color-checks-header-icon: @text; - --color-checks-line-text: @subtext0; - --color-checks-line-num-text: @subtext0; - --color-checks-line-timestamp-text: @subtext0; - --color-checks-line-hover-bg: @surface0; - --color-checks-line-selected-bg: @surface0; - --color-checks-gate-text: @text; - --color-checks-gate-waiting-text: @yellow; - --color-checks-step-header-open-bg: @surface0; - --color-checks-step-error-text: @maroon; - --color-checks-step-warning-text: @peach; - --color-checks-logline-text: @text; - --color-checks-logline-num-text: @text; - --color-checks-logline-debug-text: @mauve; - --color-checks-logline-error-text: @text; - --color-checks-logline-error-num-text: @maroon; - --color-checks-logline-error-bg: fadeout(@maroon, 85%); - --color-checks-logline-warning-text: @subtext1; - --color-checks-logline-warning-num-text: @peach; - --color-checks-logline-warning-bg: fadeout(@peach, 85%); - --color-checks-logline-command-text: @blue; - --color-checks-logline-section-text: @green; - --color-header-text: var(--subtext2); - --color-header-bg: @mantle; - --color-header-logo: @text; - --color-header-search-bg: @surface0; - --color-header-search-border: @surface1; - --color-sidenav-selected-bg: @surface1; - --color-menu-bg-active: @surface2; - --color-timeline-badge-bg: @surface0; - --color-btn-text: @text; - --color-btn-bg: @surface0; - --color-btn-border: @surface1; - --color-btn-hover-bg: @surface1; - --color-btn-hover-border: @surface2; - --color-btn-active-bg: @surface2; - --color-btn-selected-bg: @surface2; - --color-btn-counter-bg: @surface2; - --color-btn-outline-text: @accent-color; - #coloredButton(primary, @green, false); - #coloredButton(danger, @red, true); - --color-action-list-item-inline-divider: @surface2; - --color-action-list-item-default-hover-bg: @surface1; - --color-action-list-item-default-selected-bg: @surface1; - --color-fg-default: @text; - --color-fg-muted: @subtext1; - --color-fg-subtle: @subtext1; - --color-fg-on-emphasis: @base; - --color-canvas-default: @base; - --color-canvas-overlay: @surface0; - --color-canvas-inset: @crust; // background - --color-canvas-subtle: @mantle; - --color-border-default: @surface1; - --color-border-muted: @surface0; - --color-shadow-medium: 0 3px 6px @crust; - --color-shadow-large: 0 8px 24px @crust; - --color-shadow-extra-large: 0 12px 48px @crust; - --color-neutral-emphasis-plus: @overlay0; - --color-neutral-emphasis: @overlay2; - --color-neutral-muted: fadeout(@overlay0, 60%); - --color-accent-fg: @accent-color; - --color-accent-emphasis: @accent-color; - --color-accent-muted: fadeout(@accent-color, 60%); - --color-accent-subtle: fadeout(@accent-color, 85%); - --color-success-fg: @green; - --color-success-emphasis: @green; - --color-attention-fg: @peach; - --color-attention-emphasis: @peach; - --color-severe-fg: @maroon; - --color-severe-emphasis: @maroon; - --color-danger-fg: @red; - --color-danger-muted: fadeout(@red, 60%); - --color-danger-emphasis: @red; - --color-open-fg: @green; - --color-open-emphasis: @green; - --color-closed-fg: @red; - --color-closed-emphasis: @red; - --color-done-fg: @mauve; - --color-done-emphasis: @mauve; - --color-sponsors-fg: @mauve; - --color-sponsors-emphasis: @mauve; - --color-primer-fg-disabled: fadeout(@accent-color, 50%); - --color-primer-border-active: @red; - --color-workflow-card-connector: @overlay0; - --color-workflow-card-connector-bg: @overlay0; - --color-workflow-card-connector-inactive: @surface1; - --color-workflow-card-connector-inactive-bg: @surface1; - --color-workflow-card-connector-highlight: @accent-color; - --color-workflow-card-connector-highlight-bg: @accent-color; - --color-workflow-card-bg: @surface1; - --color-workflow-card-inactive-bg: @surface0; - --color-workflow-card-progress-complete-bg: fadeout(@blue, 85%); - --color-workflow-card-progress-incomplete-bg: @surface1; - --color-discussions-state-answered-icon: var(--color-scale-green-3); - --color-bg-discussions-row-emoji-box: var(--color-scale-gray-6); - --color-notifications-button-text: var(--color-scale-white); - --color-notifications-button-hover-text: var(--color-scale-white); - --color-notifications-button-hover-bg: var(--color-scale-blue-4); - --color-notifications-row-read-bg: var(--color-canvas-default); - --color-notifications-row-bg: var(--color-canvas-subtle); - --color-icon-directory: @text; - --color-checks-step-error-icon: var(--color-scale-red-4); - --color-user-mention-fg: @accent-color; - --color-user-mention-bg: fade(@accent-color, 30%); - --color-text-white: @text; - --color-segmented-control-button-bg: @base; - --color-segmented-control-button-hover-bg: @surface0; - --color-segmented-control-button-active-bg: @mantle; - --color-segmented-control-button-selected-border: @overlay0; - --color-social-reaction-bg-hover: @surface0; - --color-social-reaction-bg-reacted-hover: fade(@accent-color, 30%); - - /* Other */ - --rgh-heat-color: @red; - --divider-color: @surface1; - --underlineNav-borderColor-active: @accent-color; - --color-scale-yellow-2: @yellow; - - /* Focus states */ - *:focus-visible, - *:focus-within { - outline-color: @blue !important; - } - - /* Adds styling for primary buttons that lack the .btn-primary class. */ - /* In use at: "Code", "Compare & pull request", "New repository secret" buttons. */ - .hBMKRG, - .jWTzpl, - #repository-secrets + div a[href$="settings/secrets/actions/new"] { - background-color: var(--color-btn-primary-bg); - color: var(--color-btn-primary-text); - - &:hover { - background-color: var(--color-btn-primary-hover-bg) !important; - } - } - - /* Header */ - .HeaderMenu-link { - color: @text; - } - .octicon.octicon-mark-github { - fill: @text; - } - .HeaderMenu-toggle-bar { - background-color: @text; - } - - /* Search */ - .header-search-input { - color: @text !important; - } - .header-search-button.placeholder, - .header-search-input::placeholder { - color: @subtext1 !important; - } - - /* Tags */ - .topic-tag { - --color-accent-fg: @accent-color; - --color-accent-emphasis: @accent-color; - --color-accent-muted: fadeout(@accent-color, 60%); - --color-accent-subtle: fadeout(@accent-color, 85%); - } - - /* User/team mentions */ - .user-mention, - .team-mention { - color: @accent-color; - } - - /* Large notification */ - .flash { - --color-attention-muted: @accent-color; - --bgColor-attention-muted: fadeout(@accent-color, 60%); - --color-attention-subtle: fadeout(@accent-color, 85%); - } - .notifications-list .Box-header { - box-shadow: none; - } .turbo-progress-bar { - background: @accent-color; - } - - /* Currently selected "tab" */ - .gcnonJ::after, - .cnHXaE::after { background-color: @accent-color; } - - /* Tooltip */ - [id^="tooltip-"], - .tooltipped::after, - span[role="tooltip"]::after { - --color-fg-on-emphasis: @text !important; - } - - /* Edit file */ - .cm-placeholder { - color: @overlay1 !important; - } } } From 4edfe68e66844b7b382913b7a3bfe6ee7877b028 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 09:40:01 -0400 Subject: [PATCH 03/12] feat(github): more themed stuff --- styles/github/catppuccin.user.css | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index e57fa8d696..c88e9fc4c2 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -335,10 +335,10 @@ --control-bgColor-selected: #161b22; --control-fgColor-rest: #c9d1d9; --control-fgColor-placeholder: #484f58; - --control-fgColor-disabled: #6e7681; + --control-fgColor-disabled: @surface0; --control-borderColor-rest: @surface1; --control-borderColor-emphasis: #666e79; - --control-borderColor-disabled: #21262db3; + --control-borderColor-disabled: fade(@surface1, 75%); --control-borderColor-selected: #f0f6fc; --control-borderColor-success: #238636; --control-borderColor-danger: #da3633; @@ -469,7 +469,7 @@ --selectMenu-bgColor-active: #0c2d6b; --sideNav-bgColor-selected: #21262d; --skeletonLoader-bgColor: #161b22; - --timelineBadge-bgColor: #21262d; + --timelineBadge-bgColor: @crust; --treeViewItem-leadingVisual-iconColor-rest: #848d97; --underlineNav-borderColor-active: @accent-color; --underlineNav-borderColor-hover: #6e768166; @@ -700,6 +700,13 @@ .turbo-progress-bar { background-color: @accent-color; } + + .form-select { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}"); + } } } From 9fd2b587fc312dcbcf943870f1e0622143721d39 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 09:58:46 -0400 Subject: [PATCH 04/12] feat(github): theme more stuff, remove unused --- styles/github/catppuccin.user.css | 94 +++++++++---------------------- 1 file changed, 26 insertions(+), 68 deletions(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index c88e9fc4c2..5ef49668eb 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -69,50 +69,6 @@ z-index: 9999; } - #coloredButton(@item, @color, @flat) { - & when (@flat) { - --color-btn-@{item}-text: @color; - --color-btn-@{item}-bg: @base; - --color-btn-@{item}-icon: @color; - - --color-btn-@{item}-hover-text: @base; - --color-btn-@{item}-hover-bg: @color; - --color-btn-@{item}-hover-border: @color; - - --color-btn-@{item}-selected-text: @base; - --color-btn-@{item}-selected-bg: @color; - --color-btn-@{item}-selected-border: @color; - - --color-btn-@{item}-disabled-text: fadeout(@color, 60%); - --color-btn-@{item}-disabled-bg: @mantle; - } - - & when not (@flat) { - --color-btn-@{item}-text: @base; - --color-btn-@{item}-bg: @color; - --color-btn-@{item}-icon: @base; - - --color-btn-@{item}-hover-text: @base; - --color-btn-@{item}-hover-bg: lighten(@color, 10%); - --color-btn-@{item}-hover-border: lighten(@color, 10%); - - --color-btn-@{item}-selected-text: @base; - --color-btn-@{item}-selected-bg: lighten(@color, 10%); - --color-btn-@{item}-selected-border: lighten(@color, 10%); - - --color-btn-@{item}-disabled-text: @crust; - --color-btn-@{item}-disabled-bg: fadeout(@color, 60%); - } - - --color-btn-@{item}-hover-icon: @base; - - --color-btn-@{item}-border: transparent; - --color-btn-@{item}-shadow: 0 0 transparent; - --color-btn-@{item}-inset-shadow: 0 0 transparent; - --color-btn-@{item}-selected-shadow: 0 0 transparent; - --color-btn-@{item}-disabled-border: transparent; - } - #catppuccin(@lookup, @accent) { @rosewater: @catppuccin[@@lookup][@rosewater]; @flamingo: @catppuccin[@@lookup][@flamingo]; @@ -143,9 +99,10 @@ @accent-color: @catppuccin[@@lookup][@@accent]; accent-color: @accent-color; + color-scheme: if(@lookup = latte, light, dark); color: @text; - /* NEW */ + --color-notifications-button-hover-bg: fade(@accent-color, 60%); --color-workflow-card-header-shadow: rgba(27, 31, 35, 0.04); --color-icon-directory: var(--fgColor-muted, var(--color-fg-muted)); --color-calendar-halloween-graph-day-L1-bg: fadeout( @@ -324,7 +281,7 @@ --display-indigo-borderColor-muted: #25215f; --display-indigo-borderColor-emphasis: #7070e1; --avatar-bgColor: fade(@text, 26%); - --avatar-borderColor: #30363db3; + --avatar-borderColor: @surface0; --avatar-shadow: 0px 0px 0px 2px #0d1117; --avatarStack-fade-bgColor-default: @surface1 --avatarStack-fade-bgColor-muted: #21262d; @@ -404,8 +361,8 @@ --button-primary-borderColor-active: #f0f6fc1a; --button-primary-borderColor-disabled: #77c982; --button-primary-shadow-selected: 0px 0px 0px 0px #000000; - --button-invisible-fgColor-rest: #4493f8; - --button-invisible-fgColor-hover: #58a6ff; + --button-invisible-fgColor-rest: @accent-color; + --button-invisible-fgColor-hover: lighten(@accent-color, 10%); --button-invisible-fgColor-disabled: #6e7681; --button-invisible-iconColor-rest: #848d97; --button-invisible-iconColor-hover: #e6edf3; @@ -463,13 +420,13 @@ --focus-outlineColor: @blue; --menu-bgColor-active: #161b22; --overlay-bgColor: @mantle; - --overlay-borderColor: #30363db3; + --overlay-borderColor: @surface0; --overlay-backdrop-bgColor: #161b2266; --selectMenu-borderColor: #484f58; --selectMenu-bgColor-active: #0c2d6b; --sideNav-bgColor-selected: #21262d; --skeletonLoader-bgColor: #161b22; - --timelineBadge-bgColor: @crust; + --timelineBadge-bgColor: @mantle; --treeViewItem-leadingVisual-iconColor-rest: #848d97; --underlineNav-borderColor-active: @accent-color; --underlineNav-borderColor-hover: #6e768166; @@ -480,7 +437,7 @@ --fgColor-onEmphasis: @base; --fgColor-white: @text; --fgColor-disabled: @surface2; - --fgColor-link: @blue; + --fgColor-link: @accent-color; --fgColor-neutral: #6e7681; --fgColor-accent: @accent-color; --fgColor-success: @green; @@ -494,11 +451,11 @@ --bgColor-default: @base; --bgColor-muted: @mantle; --bgColor-inset: @crust; - --bgColor-emphasis: #6e7681; + --bgColor-emphasis: @overlay2; --bgColor-inverse: @text; --bgColor-disabled: #21262db3; --bgColor-transparent: #00000000; - --bgColor-neutral-muted: @surface1; + --bgColor-neutral-muted: @surface0; --bgColor-neutral-emphasis: @subtext0; --bgColor-accent-muted: fade(@accent-color, 20%); --bgColor-accent-emphasis: @accent-color; @@ -519,7 +476,7 @@ --bgColor-sponsors-muted: #db61a21a; --bgColor-sponsors-emphasis: @pink; --borderColor-default: @surface1; - --borderColor-muted: #30363db3; + --borderColor-muted: fade(@crust, 66%); --borderColor-emphasis: #484f58; --borderColor-disabled: #21262db3; --borderColor-transparent: #00000000; @@ -682,20 +639,21 @@ --color-scale-coral-7: #872012; --color-scale-coral-8: #640d04; --color-scale-coral-9: #460701; - --shadow-inset: inset 0px 1px 0px 0px #0104093d; - --shadow-resting-xsmall: 0px 1px 0px 0px #010409cc; - --shadow-resting-small: 0px 1px 0px 0px #01040966, 0px 1px 3px 0px #01040966; - --shadow-resting-medium: 0px 3px 6px 0px #010409cc; - --shadow-floating-small: 0px 0px 0px 1px #30363d, - 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966; - --shadow-floating-medium: 0px 0px 0px 1px #30363d, - 0px 8px 16px -4px #01040966, 0px 4px 32px -4px #01040966, - 0px 24px 48px -12px #01040966, 0px 48px 96px -24px #01040966; - --shadow-floating-large: 0px 0px 0px 1px #30363d, 0px 24px 48px 0px #010409; - --shadow-floating-xlarge: 0px 0px 0px 1px #30363d, 0px 32px 64px 0px #010409; - --shadow-floating-legacy: 0px 6px 12px -3px #01040966, - 0px 6px 18px 0px #01040966; - --outline-focus: #1f6feb solid 2px; + --shadow-inset: inset 0px 1px 0px 0px @crust; + --shadow-resting-xsmall: 0px 1px 0px 0px @crust; + --shadow-resting-small: 0px 1px 0px 0px @crust, 0px 1px 3px 0px @crust; + --shadow-resting-medium: 0px 3px 6px 0px @crust; + --shadow-floating-small: 0px 0px 0px 1px @base, 0px 6px 12px -3px @crust, + 0px 6px 18px 0px @crust; + --shadow-floating-medium: 0px 0px 0px 1px @surface0, + 0px 8px 16px -4px @crust, 0px 4px 32px -4px @crust, + 0px 24px 48px -12px @crust, 0px 48px 96px -24px @crust; + --shadow-floating-large: 0px 0px 0px 1px @surface0, + 0px 24px 48px 0px #010409; + --shadow-floating-xlarge: 0px 0px 0px 1px @surface0, + 0px 32px 64px 0px #010409; + --shadow-floating-legacy: 0px 6px 12px -3px @crust, 0px 6px 18px 0px @crust; + --outline-focus: @blue solid 2px; .turbo-progress-bar { background-color: @accent-color; From 0f090a4e54badf9d10ec0db3cdb74d18b3228747 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 10:05:46 -0400 Subject: [PATCH 05/12] fix(github): whitespace causing issues lol --- styles/github/catppuccin.user.css | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index 5ef49668eb..d107eb4f00 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -283,8 +283,8 @@ --avatar-bgColor: fade(@text, 26%); --avatar-borderColor: @surface0; --avatar-shadow: 0px 0px 0px 2px #0d1117; - --avatarStack-fade-bgColor-default: @surface1 - --avatarStack-fade-bgColor-muted: #21262d; + --avatarStack-fade-bgColor-default: @surface1; + --avatarStack-fade-bgColor-muted: #21262d; --control-bgColor-rest: #21262d; --control-bgColor-hover: #292e36; --control-bgColor-active: #31363e; @@ -364,7 +364,7 @@ --button-invisible-fgColor-rest: @accent-color; --button-invisible-fgColor-hover: lighten(@accent-color, 10%); --button-invisible-fgColor-disabled: #6e7681; - --button-invisible-iconColor-rest: #848d97; + --button-invisible-iconColor-rest: @overlay2; --button-invisible-iconColor-hover: #e6edf3; --button-invisible-iconColor-disabled: #6e7681; --button-invisible-bgColor-rest: #00000000; @@ -379,8 +379,8 @@ --button-outline-fgColor-active: @text; --button-outline-fgColor-disabled: #4493f880; --button-outline-bgColor-rest: #f0f6fc; - --button-outline-bgColor-hover: @surface1 --button-outline-bgColor-active: - #0d419d; + --button-outline-bgColor-hover: @surface1; + --button-outline-bgColor-active: #0d419d; --button-outline-bgColor-disabled: #0d1117; --button-outline-borderColor-hover: #f0f6fc1a; --button-outline-borderColor-selected: #f0f6fc1a; @@ -402,9 +402,9 @@ --button-inactive-fgColor: #8b949e; --button-inactive-bgColor: #21262d; --button-star-iconColor: @yellow; - --buttonCounter-default-bgColor-rest: @surface1 - --buttonCounter-invisible-bgColor-rest: @surface1 - --buttonCounter-primary-bgColor-rest: #04260f33; + --buttonCounter-default-bgColor-rest: @surface1; + --buttonCounter-invisible-bgColor-rest: @surface1; + --buttonCounter-primary-bgColor-rest: #04260f33; --buttonCounter-outline-bgColor-rest: #051d4d33; --buttonCounter-outline-bgColor-hover: #051d4d33; --buttonCounter-outline-bgColor-disabled: #1f6feb0d; @@ -476,7 +476,7 @@ --bgColor-sponsors-muted: #db61a21a; --bgColor-sponsors-emphasis: @pink; --borderColor-default: @surface1; - --borderColor-muted: fade(@crust, 66%); + --borderColor-muted: @surface0; --borderColor-emphasis: #484f58; --borderColor-disabled: #21262db3; --borderColor-transparent: #00000000; From 26fa7eb09775ed38c6aba946a34c39e9f6f40c96 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 10:20:17 -0400 Subject: [PATCH 06/12] chore(github): bump version from 1.3.14 to 1.4.0 --- styles/github/catppuccin.user.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index d107eb4f00..2433e6543d 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -2,7 +2,7 @@ @name GitHub Catppuccin @namespace github.com/catppuccin/userstyles/styles/github @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/github -@version 1.3.14 +@version 1.4.0 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/github/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Agithub @description Soothing pastel theme for GitHub From 449877183e9fa8005d24eca4bb34e46ca604812a Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 10:23:17 -0400 Subject: [PATCH 07/12] fix(github): border colors --- styles/github/catppuccin.user.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index 2433e6543d..d5328594be 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -355,10 +355,10 @@ --button-primary-bgColor-rest: @green; --button-primary-bgColor-hover: lighten(@green, 5%); --button-primary-bgColor-active: saturate(@green, 5%); - --button-primary-bgColor-disabled: #77c982; - --button-primary-borderColor-rest: #f0f6fc1a; - --button-primary-borderColor-hover: #f0f6fc1a; - --button-primary-borderColor-active: #f0f6fc1a; + --button-primary-bgColor-disabled: @green; + --button-primary-borderColor-rest: @green; + --button-primary-borderColor-hover: @green; + --button-primary-borderColor-active: @green; --button-primary-borderColor-disabled: #77c982; --button-primary-shadow-selected: 0px 0px 0px 0px #000000; --button-invisible-fgColor-rest: @accent-color; From ef8d248edf7deca9c058f832540f5cc833e34600 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 10:25:10 -0400 Subject: [PATCH 08/12] impr(github): transparent buttons --- styles/github/catppuccin.user.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index d5328594be..be1fecdbad 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -302,8 +302,8 @@ --control-borderColor-warning: #9e6a03; --control-iconColor-rest: #848d97; --control-transparent-bgColor-rest: #00000000; - --control-transparent-bgColor-hover: fade(@surface0, 30%); - --control-transparent-bgColor-active: fade(@surface0, 50%); + --control-transparent-bgColor-hover: fade(@overlay0, 30%); + --control-transparent-bgColor-active: fade(@overlay0, 50%); --control-transparent-bgColor-disabled: #21262db3; --control-transparent-bgColor-selected: #b1bac414; --control-transparent-borderColor-rest: #00000000; From afdf28b31399dbf773024e773c1b3cc59940a55e Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 23:10:37 -0400 Subject: [PATCH 09/12] feat(github): theme more vars --- styles/github/catppuccin.user.css | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index be1fecdbad..33f76dbbba 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -302,7 +302,7 @@ --control-borderColor-warning: #9e6a03; --control-iconColor-rest: #848d97; --control-transparent-bgColor-rest: #00000000; - --control-transparent-bgColor-hover: fade(@overlay0, 30%); + --control-transparent-bgColor-hover: fade(@surface2, 20%); --control-transparent-bgColor-active: fade(@overlay0, 50%); --control-transparent-bgColor-disabled: #21262db3; --control-transparent-bgColor-selected: #b1bac414; @@ -323,18 +323,18 @@ --control-checked-borderColor-hover: #2a7aef; --control-checked-borderColor-active: #3685f3; --control-checked-borderColor-disabled: #6e7681; - --controlTrack-bgColor-rest: #21262d; - --controlTrack-bgColor-hover: #292e36; + --controlTrack-bgColor-rest: @surface0; + --controlTrack-bgColor-hover: @surface1; --controlTrack-bgColor-active: #31363e; --controlTrack-bgColor-disabled: #6e7681; --controlTrack-fgColor-rest: #848d97; --controlTrack-fgColor-disabled: @text; --controlTrack-borderColor-rest: #00000000; --controlTrack-borderColor-disabled: #6e7681; - --controlKnob-bgColor-rest: #010409; + --controlKnob-bgColor-rest: @base; --controlKnob-bgColor-disabled: #21262db3; --controlKnob-bgColor-checked: @text; - --controlKnob-borderColor-rest: #666e79; + --controlKnob-borderColor-rest: @surface2; --controlKnob-borderColor-disabled: #21262db3; --controlKnob-borderColor-checked: @blue; --counter-borderColor: #00000000; @@ -350,12 +350,12 @@ --button-default-borderColor-disabled: #21262db3; --button-default-shadow-resting: 0px 0px 0px 0px #000000; --button-primary-fgColor-rest: @base; - --button-primary-fgColor-disabled: fade(@text, 80%); + --button-primary-fgColor-disabled: @surface2; --button-primary-iconColor-rest: @base; --button-primary-bgColor-rest: @green; --button-primary-bgColor-hover: lighten(@green, 5%); --button-primary-bgColor-active: saturate(@green, 5%); - --button-primary-bgColor-disabled: @green; + --button-primary-bgColor-disabled: darken(desaturate(@green, 10%), 5%); --button-primary-borderColor-rest: @green; --button-primary-borderColor-hover: @green; --button-primary-borderColor-active: @green; From fe6da2a4cfb0ce3cd11accb0dd70aebe5b6902e3 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 23:17:37 -0400 Subject: [PATCH 10/12] fix(github): various attention-related vars --- styles/github/catppuccin.user.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index 33f76dbbba..5561081e1c 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -461,7 +461,7 @@ --bgColor-accent-emphasis: @accent-color; --bgColor-success-muted: #2ea04326; --bgColor-success-emphasis: @green; - --bgColor-attention-muted: #bb800926; + --bgColor-attention-muted: fade(@yellow, 15%); --bgColor-attention-emphasis: @yellow; --bgColor-severe-muted: fade(@peach, 26%); --bgColor-severe-emphasis: @peach; @@ -486,8 +486,8 @@ --borderColor-accent-emphasis: @accent-color; --borderColor-success-muted: darken(@green, 5%); --borderColor-success-emphasis: @green; - --borderColor-attention-muted: darken(@peach, 5%); - --borderColor-attention-emphasis: @peach; + --borderColor-attention-muted: fade(@flamingo, 30%); + --borderColor-attention-emphasis: @flamingo; --borderColor-severe-muted: @peach; --borderColor-severe-emphasis: #bd561d; --borderColor-danger-muted: @red; From 48624fd2ff1ca8ec4c3a842f93db32281e1d848f Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 23:21:10 -0400 Subject: [PATCH 11/12] fix(github): placate linter --- styles/github/catppuccin.user.css | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index 5561081e1c..b0b18fb554 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -150,7 +150,7 @@ --color-project-gradient-in: var(--color-scale-gray-8); --color-project-gradient-out: rgba(22, 27, 34, 0); --color-diff-blob-selected-line-highlight-mix-blend-mode: screen; - --topicTag-borderColor: #00000000; + --topicTag-borderColor: #0000; --highlight-neutral-bgColor: fade(@yellow, 66%); --page-header-bgColor: #0d1117; --diffBlob-addition-fgColor-text: @text; @@ -301,14 +301,14 @@ --control-borderColor-danger: #da3633; --control-borderColor-warning: #9e6a03; --control-iconColor-rest: #848d97; - --control-transparent-bgColor-rest: #00000000; + --control-transparent-bgColor-rest: #0000; --control-transparent-bgColor-hover: fade(@surface2, 20%); --control-transparent-bgColor-active: fade(@overlay0, 50%); --control-transparent-bgColor-disabled: #21262db3; --control-transparent-bgColor-selected: #b1bac414; - --control-transparent-borderColor-rest: #00000000; - --control-transparent-borderColor-hover: #00000000; - --control-transparent-borderColor-active: #00000000; + --control-transparent-borderColor-rest: #0000; + --control-transparent-borderColor-hover: #0000; + --control-transparent-borderColor-active: #0000; --control-danger-fgColor-rest: @red; --control-danger-fgColor-hover: #ff7b72; --control-danger-bgColor-hover: fade(@red, 26%); @@ -329,7 +329,7 @@ --controlTrack-bgColor-disabled: #6e7681; --controlTrack-fgColor-rest: #848d97; --controlTrack-fgColor-disabled: @text; - --controlTrack-borderColor-rest: #00000000; + --controlTrack-borderColor-rest: #0000; --controlTrack-borderColor-disabled: #6e7681; --controlKnob-bgColor-rest: @base; --controlKnob-bgColor-disabled: #21262db3; @@ -337,7 +337,7 @@ --controlKnob-borderColor-rest: @surface2; --controlKnob-borderColor-disabled: #21262db3; --controlKnob-borderColor-checked: @blue; - --counter-borderColor: #00000000; + --counter-borderColor: #0000; --button-default-fgColor-rest: @text; --button-default-bgColor-rest: @surface0; --button-default-bgColor-hover: @surface1; @@ -348,7 +348,7 @@ --button-default-borderColor-hover: @surface1; --button-default-borderColor-active: @surface1; --button-default-borderColor-disabled: #21262db3; - --button-default-shadow-resting: 0px 0px 0px 0px #000000; + --button-default-shadow-resting: 0px 0px 0px 0px #000; --button-primary-fgColor-rest: @base; --button-primary-fgColor-disabled: @surface2; --button-primary-iconColor-rest: @base; @@ -360,19 +360,19 @@ --button-primary-borderColor-hover: @green; --button-primary-borderColor-active: @green; --button-primary-borderColor-disabled: #77c982; - --button-primary-shadow-selected: 0px 0px 0px 0px #000000; + --button-primary-shadow-selected: 0px 0px 0px 0px #000; --button-invisible-fgColor-rest: @accent-color; --button-invisible-fgColor-hover: lighten(@accent-color, 10%); --button-invisible-fgColor-disabled: #6e7681; --button-invisible-iconColor-rest: @overlay2; --button-invisible-iconColor-hover: #e6edf3; --button-invisible-iconColor-disabled: #6e7681; - --button-invisible-bgColor-rest: #00000000; + --button-invisible-bgColor-rest: #0000; --button-invisible-bgColor-hover: #b1bac41f; --button-invisible-bgColor-active: #b1bac433; --button-invisible-bgColor-disabled: #21262db3; - --button-invisible-borderColor-rest: #00000000; - --button-invisible-borderColor-hover: #00000000; + --button-invisible-borderColor-rest: #0000; + --button-invisible-borderColor-hover: #0000; --button-invisible-borderColor-disabled: #21262db3; --button-outline-fgColor-rest: #388bfd; --button-outline-fgColor-hover: #58a6ff; @@ -384,7 +384,7 @@ --button-outline-bgColor-disabled: #0d1117; --button-outline-borderColor-hover: #f0f6fc1a; --button-outline-borderColor-selected: #f0f6fc1a; - --button-outline-shadow-selected: 0px 0px 0px 0px #000000; + --button-outline-shadow-selected: 0px 0px 0px 0px #000; --button-danger-fgColor-rest: @red; --button-danger-fgColor-hover: @base; --button-danger-fgColor-active: @text; @@ -398,7 +398,7 @@ --button-danger-borderColor-rest: @surface1; --button-danger-borderColor-hover: @surface2; --button-danger-borderColor-active: @surface2; - --button-danger-shadow-selected: 0px 0px 0px 0px #000000; + --button-danger-shadow-selected: 0px 0px 0px 0px #000; --button-inactive-fgColor: #8b949e; --button-inactive-bgColor: #21262d; --button-star-iconColor: @yellow; @@ -454,7 +454,7 @@ --bgColor-emphasis: @overlay2; --bgColor-inverse: @text; --bgColor-disabled: #21262db3; - --bgColor-transparent: #00000000; + --bgColor-transparent: #0000; --bgColor-neutral-muted: @surface0; --bgColor-neutral-emphasis: @subtext0; --bgColor-accent-muted: fade(@accent-color, 20%); @@ -479,7 +479,7 @@ --borderColor-muted: @surface0; --borderColor-emphasis: #484f58; --borderColor-disabled: #21262db3; - --borderColor-transparent: #00000000; + --borderColor-transparent: #0000; --borderColor-neutral-muted: #6e768166; --borderColor-neutral-emphasis: #6e7681; --borderColor-accent-muted: fade(@accent-color, 50%); @@ -547,7 +547,7 @@ --color-prettylights-syntax-markup-changed-bg: fadeout(@yellow, 60%); --color-prettylights-syntax-markup-ignored-text: @text; --color-scale-black: #010409; - --color-scale-transparent: #00000000; + --color-scale-transparent: #0000; --color-scale-white: @text; --color-scale-gray-0: #f0f6fc; --color-scale-gray-1: #c9d1d9; From d420f1934c4301cdaee0bfb5b5c33f6965fc095c Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 22 Mar 2024 23:27:04 -0400 Subject: [PATCH 12/12] fix(github): optimize svg --- styles/github/catppuccin.user.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styles/github/catppuccin.user.css b/styles/github/catppuccin.user.css index b0b18fb554..ea70deb413 100644 --- a/styles/github/catppuccin.user.css +++ b/styles/github/catppuccin.user.css @@ -661,7 +661,7 @@ .form-select { @svg: escape( - '' + '' ); background-image: url("data:image/svg+xml,@{svg}"); }