Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit 89eaa60

Browse files
AnubisNekhetunseen-ninja
authored andcommitted
feat: customisable accent colors
1 parent aa17c82 commit 89eaa60

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

catppuccin.user.css

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
@updateURL https://github.com/catppuccin/github/raw/main/catppuccin.user.css
88
@preprocessor stylus
99
@var select theme "Theme" ["Latte", "Frappe", "Macchiato", "Mocha*"]
10+
@var select accent-color "Accent" ["Rosewater*", "Flamingo", "Pink", "Mauve", "Red", "Maroon", "Peach", "Yellow", "Green", "Teal", "Blue", "Sapphire", "Sky", "Lavender", "Gray"]
1011
@var checkbox topbar "Topbar colors" 1
11-
@var checkbox blueaccent "Blue Accent" 0
1212
@var checkbox usefont "Use Inter font" 0
1313
==/UserStyle== */
1414
@-moz-document regexp("https:\/\/(gist\.)*github\.com(?!\/(marketplace|organizations\/plan)).*") {
@@ -467,17 +467,10 @@
467467
--color-neutral-emphasis: $overlay2;
468468
--color-neutral-muted: rgba(110, 118, 129, 0.4);
469469
--color-neutral-subtle: rgba(110, 118, 129, 0.1);
470-
if (blueaccent) {
471-
--color-accent-fg: $blue;
472-
--color-accent-emphasis: $blue;
473-
--color-accent-muted: alpha($blue, 0.4);
474-
--color-accent-subtle: alpha($blue, 0.15);
475-
} else {
476-
--color-accent-fg: $rosewater;
477-
--color-accent-emphasis: $rosewater;
478-
--color-accent-muted: alpha($rosewater, 0.4);
479-
--color-accent-subtle: alpha($rosewater, 0.15);
480-
}
470+
--color-accent-fg: $accent-color;
471+
--color-accent-emphasis: $accent-color;
472+
--color-accent-muted: alpha($accent-color, 0.4);
473+
--color-accent-subtle: alpha($accent-color, 0.15);
481474
--color-success-fg: $green;
482475
--color-success-emphasis: $green;
483476
--color-success-muted: rgba(46, 160, 67, 0.4);
@@ -510,11 +503,7 @@
510503
--color-sponsors-emphasis: $mauve;
511504
--color-sponsors-muted: rgba(219, 97, 162, 0.4);
512505
--color-sponsors-subtle: rgba(219, 97, 162, 0.15);
513-
if (blueaccent) {
514-
--color-primer-fg-disabled: alpha($blue, .5);
515-
} else {
516-
--color-primer-fg-disabled: alpha($rosewater, .5);
517-
}
506+
--color-primer-fg-disabled: alpha($accent-color, .5);
518507
--color-primer-canvas-backdrop: rgba(1, 4, 9, 0.8);
519508
--color-primer-canvas-sticky: rgba(13, 17, 23, 0.95);
520509
--color-primer-border-active: $red;

0 commit comments

Comments
 (0)