@@ -7,6 +7,7 @@ whiskers:
77/*
88name: Catppuccin
99author: Catppuccin
10+ version: 1.0
1011borders: false
1112options:
1213 flavor:
@@ -26,8 +27,54 @@ options:
2627 {%- endif %}{%- endfor %}
2728*/
2829
30+ {%- set_global default_flavor = flavors['mocha'].colors %}
31+
32+ body {
33+ --color-ui: {{ default_flavor.base.hex }};
34+ --color-back: {{ default_flavor.mantle.hex }};
35+ --color-dark: {{ default_flavor.crust.hex }};
36+ --color-border: {{ default_flavor.overlay0.hex }};
37+ --color-selected: {{ default_flavor.surface1.hex }};
38+ --color-elevated: {{ default_flavor.surface0.hex }};
39+ --color-button: {{ default_flavor.surface0.hex }};
40+ --color-bright_ui: {{ default_flavor.text.hex }};
41+ --color-frame: {{ default_flavor.mantle.hex }};
42+ --color-text: {{ default_flavor.subtext1.hex }};
43+ --color-light: {{ default_flavor.text.hex }};
44+ --color-accent_text: {{ default_flavor.base.hex }};
45+ --color-bright_ui_text: {{ default_flavor.base.hex }};
46+ --color-subtle_text: {{ default_flavor.subtext0.hex }};
47+ --color-grid: {{ default_flavor.subtext0.hex }};
48+ --color-wireframe: {{ default_flavor.subtext0.hex }};
49+ --color-checkerboard: {{ default_flavor.surface1.hex }};
50+
51+ --color-accent: {{ default_flavor.mauve.hex }};
52+ }
53+
54+ /* Theme preview can only be accurate when theme selected,
55+ limitation with upstream */
56+ [theme_id="catppuccin"].theme_preview {
57+ --color-ui: inherit !important;
58+ --color-back: inherit !important;
59+ --color-dark: inherit !important;
60+ --color-border: inherit !important;
61+ --color-selected: inherit !important;
62+ --color-elevated: inherit !important;
63+ --color-button: inherit !important;
64+ --color-bright_ui: inherit !important;
65+ --color-frame: inherit !important;
66+ --color-text: inherit !important;
67+ --color-light: inherit !important;
68+ --color-accent_text: inherit !important;
69+ --color-bright_ui_text: inherit !important;
70+ --color-subtle_text: inherit !important;
71+ --color-grid: inherit !important;
72+ --color-wireframe: inherit !important;
73+ --color-checkerboard: inherit !important;
74+ --color-accent: inherit !important;
75+ }
76+
2977{%- for flavorId, flavor in flavors %}
30- {% if loop.last %}body,{% endif %}
3178[theme-flavor="{{ flavorId }}"] {
3279 --color-ui: {{ flavor.colors.base.hex }};
3380 --color-back: {{ flavor.colors.mantle.hex }};
@@ -46,9 +93,6 @@ options:
4693 --color-grid: {{ flavor.colors.subtext0.hex }};
4794 --color-wireframe: {{ flavor.colors.subtext0.hex }};
4895 --color-checkerboard: {{ flavor.colors.surface1.hex }};
49- {%- if loop.last %}
50- --color-accent: {{ flavor.colors.mauve.hex }};
51- {%- endif %}
5296}
5397{%- for colorId, color in flavor.colors %}{% if color.accent %}
5498[theme-flavor="{{ flavorId }}"][theme-accent="{{ colorId }}"] {
0 commit comments