Skip to content

Commit 00c97fa

Browse files
jack-miluncentersgoudham
authored
refactor: simplify with whiskers v2.5.1 & add whiskers check (#13)
Co-authored-by: uncenter <uncenter@uncenter.dev> Co-authored-by: sgoudham <sgoudham@gmail.com>
1 parent f410083 commit 00c97fa

6 files changed

Lines changed: 65 additions & 50 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: whiskers
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
run:
12+
uses: catppuccin/actions/.github/workflows/whiskers-check.yml@v1
13+
with:
14+
args: glamour.tera
15+
secrets: inherit

glamour.tera

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
whiskers:
3-
version: 2.0.0
3+
version: ^2.5.1
44
matrix:
55
- flavor
66
filename: "themes/catppuccin-{{ flavor.identifier }}.json"
7+
hex_format: "#{{r}}{{g}}{{b}}{{z}}"
78
---
8-
{%- set palette = flavor.colors -%}
99
{
1010
"document": {
1111
"block_prefix": "\n",
1212
"block_suffix": "\n",
13-
"color": "#{{ palette.text.hex }}",
13+
"color": "{{ text.hex }}",
1414
"margin": 2
1515
},
1616
"block_quote": {
@@ -23,34 +23,34 @@ whiskers:
2323
},
2424
"heading": {
2525
"block_suffix": "\n",
26-
"color": "#{{ palette.text.hex }}",
26+
"color": "{{ text.hex }}",
2727
"bold": true
2828
},
2929
"h1": {
3030
"prefix": "▓▓▓ ",
3131
"suffix": " ",
32-
"color": "#{{ palette.red.hex }}",
32+
"color": "{{ red.hex }}",
3333
"bold": true
3434
},
3535
"h2": {
3636
"prefix": "▓▓▓▓ ",
37-
"color": "#{{ palette.peach.hex }}"
37+
"color": "{{ peach.hex }}"
3838
},
3939
"h3": {
4040
"prefix": "▓▓▓▓▓ ",
41-
"color": "#{{ palette.yellow.hex }}"
41+
"color": "{{ yellow.hex }}"
4242
},
4343
"h4": {
4444
"prefix": "▓▓▓▓▓▓ ",
45-
"color": "#{{ palette.green.hex }}"
45+
"color": "{{ green.hex }}"
4646
},
4747
"h5": {
4848
"prefix": "▓▓▓▓▓▓▓ ",
49-
"color": "#{{ palette.sapphire.hex }}"
49+
"color": "{{ sapphire.hex }}"
5050
},
5151
"h6": {
5252
"prefix": "▓▓▓▓▓▓▓▓ ",
53-
"color": "#{{ palette.lavender.hex }}"
53+
"color": "{{ lavender.hex }}"
5454
},
5555
"text": {},
5656
"strikethrough": {
@@ -63,7 +63,7 @@ whiskers:
6363
"bold": true
6464
},
6565
"hr": {
66-
"color": "#{{ palette.overlay0.hex }}",
66+
"color": "{{ overlay0.hex }}",
6767
"format": "\n--------\n"
6868
},
6969
"item": {
@@ -77,118 +77,118 @@ whiskers:
7777
"unticked": "[ ] "
7878
},
7979
"link": {
80-
"color": "#{{ palette.blue.hex }}",
80+
"color": "{{ blue.hex }}",
8181
"underline": true
8282
},
8383
"link_text": {
84-
"color": "#{{ palette.lavender.hex }}",
84+
"color": "{{ lavender.hex }}",
8585
"bold": true
8686
},
8787
"image": {
88-
"color": "#{{ palette.blue.hex }}",
88+
"color": "{{ blue.hex }}",
8989
"underline": true
9090
},
9191
"image_text": {
92-
"color": "#{{ palette.lavender.hex }}",
92+
"color": "{{ lavender.hex }}",
9393
"format": "Image: {{ "{{.text}}" }} →"
9494
},
9595
"code": {
9696
"prefix": " ",
9797
"suffix": " ",
98-
"color": "#{{ palette.maroon.hex }}",
99-
"background_color": "#{{ palette.mantle.hex }}"
98+
"color": "{{ maroon.hex }}",
99+
"background_color": "{{ mantle.hex }}"
100100
},
101101
"code_block": {
102-
"color": "#{{ palette.mantle.hex }}",
102+
"color": "{{ mantle.hex }}",
103103
"margin": 2,
104104
"chroma": {
105105
"text": {
106-
"color": "#{{ palette.text.hex }}"
106+
"color": "{{ text.hex }}"
107107
},
108108
"error": {
109-
"color": "#{{ palette.text.hex }}",
110-
"background_color": "#{{ palette.red.hex }}"
109+
"color": "{{ text.hex }}",
110+
"background_color": "{{ red.hex }}"
111111
},
112112
"comment": {
113-
"color": "#{{ palette.overlay0.hex }}"
113+
"color": "{{ overlay0.hex }}"
114114
},
115115
"comment_preproc": {
116-
"color": "#{{ palette.blue.hex }}"
116+
"color": "{{ blue.hex }}"
117117
},
118118
"keyword": {
119-
"color": "#{{ palette.mauve.hex }}"
119+
"color": "{{ mauve.hex }}"
120120
},
121121
"keyword_reserved": {
122-
"color": "#{{ palette.mauve.hex }}"
122+
"color": "{{ mauve.hex }}"
123123
},
124124
"keyword_namespace": {
125-
"color": "#{{ palette.yellow.hex }}"
125+
"color": "{{ yellow.hex }}"
126126
},
127127
"keyword_type": {
128-
"color": "#{{ palette.yellow.hex }}"
128+
"color": "{{ yellow.hex }}"
129129
},
130130
"operator": {
131-
"color": "#{{ palette.sky.hex }}"
131+
"color": "{{ sky.hex }}"
132132
},
133133
"punctuation": {
134-
"color": "#{{ palette.overlay2.hex }}"
134+
"color": "{{ overlay2.hex }}"
135135
},
136136
"name": {
137-
"color": "#{{ palette.lavender.hex }}"
137+
"color": "{{ lavender.hex }}"
138138
},
139139
"name_builtin": {
140-
"color": "#{{ palette.peach.hex }}"
140+
"color": "{{ peach.hex }}"
141141
},
142142
"name_tag": {
143-
"color": "#{{ palette.mauve.hex }}"
143+
"color": "{{ mauve.hex }}"
144144
},
145145
"name_attribute": {
146-
"color": "#{{ palette.yellow.hex }}"
146+
"color": "{{ yellow.hex }}"
147147
},
148148
"name_class": {
149-
"color": "#{{ palette.yellow.hex }}"
149+
"color": "{{ yellow.hex }}"
150150
},
151151
"name_constant": {
152-
"color": "#{{ palette.yellow.hex }}"
152+
"color": "{{ yellow.hex }}"
153153
},
154154
"name_decorator": {
155-
"color": "#{{ palette.pink.hex }}"
155+
"color": "{{ pink.hex }}"
156156
},
157157
"name_exception": {},
158158
"name_function": {
159-
"color": "#{{ palette.blue.hex }}"
159+
"color": "{{ blue.hex }}"
160160
},
161161
"name_other": {},
162162
"literal": {},
163163
"literal_number": {
164-
"color": "#{{ palette.peach.hex }}"
164+
"color": "{{ peach.hex }}"
165165
},
166166
"literal_date": {},
167167
"literal_string": {
168-
"color": "#{{ palette.green.hex }}"
168+
"color": "{{ green.hex }}"
169169
},
170170
"literal_string_escape": {
171-
"color": "#{{ palette.pink.hex }}"
171+
"color": "{{ pink.hex }}"
172172
},
173173
"generic_deleted": {
174-
"color": "#{{ palette.red.hex }}"
174+
"color": "{{ red.hex }}"
175175
},
176176
"generic_emph": {
177-
"color": "#{{ palette.text.hex }}",
177+
"color": "{{ text.hex }}",
178178
"italic": true
179179
},
180180
"generic_inserted": {
181-
"color": "#{{ palette.green.hex }}"
181+
"color": "{{ green.hex }}"
182182
},
183183
"generic_strong": {
184-
"color": "#{{ palette.text.hex }}",
184+
"color": "{{ text.hex }}",
185185
"bold": true
186186
},
187187
"generic_subheading": {
188-
"color": "#{{ palette.sky.hex }}"
188+
"color": "{{ sky.hex }}"
189189
},
190190
"background": {
191-
"background_color": "#{{ palette.mantle.hex }}"
191+
"background_color": "{{ mantle.hex }}"
192192
}
193193
}
194194
},

themes/catppuccin-frappe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@
196196
},
197197
"html_block": {},
198198
"html_span": {}
199-
}
199+
}

themes/catppuccin-latte.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@
196196
},
197197
"html_block": {},
198198
"html_span": {}
199-
}
199+
}

themes/catppuccin-macchiato.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@
196196
},
197197
"html_block": {},
198198
"html_span": {}
199-
}
199+
}

themes/catppuccin-mocha.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@
196196
},
197197
"html_block": {},
198198
"html_span": {}
199-
}
199+
}

0 commit comments

Comments
 (0)