-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
calibre.tera
54 lines (54 loc) · 2.12 KB
/
calibre.tera
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
whiskers:
version: 2.0.2
matrix:
- flavor: ["frappe", "macchiato", "mocha"]
- accent
filename: "themes/{{flavor.identifier}}/catppuccin-{{flavor.identifier}}-{{accent}}.calibre-palette"
---
{%- set modes = ["light", "dark"] -%}
{
{%- for mode in modes %}
{%- if mode == "light" -%}
{%- set palette = flavors["latte"].colors -%}
{%- else -%}
{%- set palette = flavor.colors -%}
{%- endif -%}
{%- set accentforlight = palette[accent] | mix(color=palette.crust, amount=0.4) %}
{%- set accentfordark = palette[accent] %}
"{{mode}}": {
"palette": {
"AlternateBase": "#{{ palette.base.hex }}",
"Base": "#{{ palette.mantle.hex }}",
"BrightText": "#{{ palette.text.hex }}",
"BrightText-disabled": "#{{ palette.text.hex }}",
"Button": "#{{ palette.base.hex }}",
"ButtonText": "#{{ palette.text.hex }}",
"ButtonText-disabled": "#{{ palette.surface2.hex }}",
"Highlight": "#{% if mode == "light" %}{{ accentforlight.hex }}{% else %}{{ accentfordark.hex }}{% endif %}",
{% if mode == "light" -%}
"HighlightedText": "#{{ palette.text.hex }}",
{%- else -%}
"HighlightedText": "#{{ palette.base.hex }}",
{%- endif %}
"HighlightedText-disabled": "#{{ palette.mantle.hex }}",
"Link": "#{{ palette.rosewater.hex }}",
"LinkVisited": "#{{ palette.blue.hex }}",
"PlaceholderText": "#{{ palette.text.hex }}",
"PlaceholderText-disabled": "#{{ palette.text.hex }}",
"Text": "#{{ palette.text.hex }}",
"Text-disabled": "#{{ palette.surface2.hex }}",
"ToolTipBase": "#{{ palette.crust.hex }}",
"ToolTipText": "#{{ palette.text.hex }}",
"ToolTipText-disabled": "#{{ palette.text.hex }}",
"Window": "#{{ palette.crust.hex }}",
"WindowText": "#{{ palette.text.hex }}",
"WindowText-disabled": "#{{ palette.surface2.hex }}"
},
"use_custom": true
}
{%- if not loop.last -%}
,
{%- endif -%}
{% endfor %}
}