1@import "tailwindcss";
2
3/*
4 Remove latte classes
5 They're not being used right now, so no reason to ship them
6*/
7/* .latte {
8 --ctp-rosewater: rgb(220 138 120);
9 --ctp-flamingo: rgb(221 120 120);
10 --ctp-pink: rgb(234 118 203);
11 --ctp-mauve: rgb(136 57 239);
12 --ctp-red: rgb(210 15 57);
13 --ctp-maroon: rgb(230 69 83);
14 --ctp-peach: rgb(254 100 11);
15 --ctp-yellow: rgb(223 142 29);
16 --ctp-green: rgb(64 160 43);
17 --ctp-teal: rgb(23 146 153);
18 --ctp-sky: rgb(4 165 229);
19 --ctp-sapphire: rgb(32 159 181);
20 --ctp-blue: rgb(30 102 245);
21 --ctp-lavender: rgb(114 135 253);
22 --ctp-text: rgb(76 79 105);
23 --ctp-subtext1: rgb(92 95 119);
24 --ctp-subtext0: rgb(108 111 133);
25 --ctp-overlay2: rgb(124 127 147);
26 --ctp-overlay1: rgb(140 143 161);
27 --ctp-overlay0: rgb(156 160 176);
28 --ctp-surface2: rgb(172 176 190);
29 --ctp-surface1: rgb(188 192 204);
30 --ctp-surface0: rgb(204 208 218);
31 --ctp-base: rgb(239 241 245);
32 --ctp-mantle: rgb(230 233 239);
33 --ctp-crust: rgb(220 224 232);
34 --callout-blend-mode: darken;
35} */
36.mocha {
37 --ctp-rosewater: rgb(245 224 220);
38 --ctp-flamingo: rgb(242 205 205);
39 --ctp-pink: rgb(245 194 231);
40 --ctp-mauve: rgb(203 166 247);
41 --ctp-red: rgb(243 139 168);
42 --ctp-maroon: rgb(235 160 172);
43 --ctp-peach: rgb(250 179 135);
44 --ctp-yellow: rgb(249 226 175);
45 --ctp-green: rgb(166 227 161);
46 --ctp-teal: rgb(148 226 213);
47 --ctp-sky: rgb(137 220 235);
48 --ctp-sapphire: rgb(116 199 236);
49 --ctp-blue: rgb(137 180 250);
50 --ctp-lavender: rgb(180 190 254);
51 --ctp-text: rgb(205 214 244);
52 --ctp-subtext1: rgb(186 194 222);
53 --ctp-subtext0: rgb(166 173 200);
54 --ctp-overlay2: rgb(147 153 178);
55 --ctp-overlay1: rgb(127 132 156);
56 --ctp-overlay0: rgb(108 112 134);
57 --ctp-surface2: rgb(88 91 112);
58 --ctp-surface1: rgb(69 71 90);
59 --ctp-surface0: rgb(49 50 68);
60 --ctp-base: rgb(30 30 46);
61 --ctp-mantle: rgb(24 24 37);
62 --ctp-crust: rgb(17 17 27);
63 --callout-blend-mode: lighten;
64}
65
66@theme {
67 /* Remove initial variables we don't need */
68 --color-*: initial;
69 --blur-*: initial;
70 --perspective-*: initial;
71 --drop-shadow-*: initial;
72 --shadow-*: initial;
73 --inset-shadow-*: initial;
74 --ease-*: initial;
75 --animate-*: initial;
76 --font-sans: "Inter", "ui-sans-serif", "system-ui", "sans-serif";
77 --font-serif: "IBM Plex Serif", "ui-serif", "serif";
78
79 /* Flag Colors */
80 --color-trans-blue: #5bcffa;
81 --color-trans-pink: #f5abb9;
82 --color-lesbian-orange1: #d62900;
83 --color-lesbian-orange2: #ff790d;
84 --color-lesbian-orange3: #ff9b55;
85 --color-lesbian-pink1: #d462a6;
86 --color-lesbian-pink2: #ef5496;
87 --color-lesbian-pink3: #a50062;
88}
89
90@theme inline {
91 --color-rosewater: var(--ctp-rosewater);
92 --color-flamingo: var(--ctp-flamingo);
93 --color-pink: var(--ctp-pink);
94 --color-mauve: var(--ctp-mauve);
95 --color-red: var(--ctp-red);
96 --color-maroon: var(--ctp-maroon);
97 --color-peach: var(--ctp-peach);
98 --color-yellow: var(--ctp-yellow);
99 --color-green: var(--ctp-green);
100 --color-teal: var(--ctp-teal);
101 --color-sky: var(--ctp-sky);
102 --color-sapphire: var(--ctp-sapphire);
103 --color-blue: var(--ctp-blue);
104 --color-lavender: var(--ctp-lavender);
105 --color-text: var(--ctp-text);
106 --color-subtext1: var(--ctp-subtext1);
107 --color-subtext0: var(--ctp-subtext0);
108 --color-overlay2: var(--ctp-overlay2);
109 --color-overlay1: var(--ctp-overlay1);
110 --color-overlay0: var(--ctp-overlay0);
111 --color-surface2: var(--ctp-surface2);
112 --color-surface1: var(--ctp-surface1);
113 --color-surface0: var(--ctp-surface0);
114 --color-base: var(--ctp-base);
115 --color-mantle: var(--ctp-mantle);
116 --color-crust: var(--ctp-crust);
117}
118
119@layer components {
120 [data-editor-file] {
121 @apply transition-all rounded-md;
122 }
123 [data-editor-file]:hover {
124 @apply transition-all outline-blue outline-2 outline-offset-4
125 bg-blue/10 pl-1;
126 }
127}
128
129@utility h-entry {
130 a {
131 @apply text-blue underline;
132 }
133
134 p {
135 @apply mb-6;
136 }
137
138 blockquote {
139 @apply border-l-2 pl-6 relative border-overlay0 italic;
140 left: -0.5rem;
141 }
142
143 div.callout-content > p {
144 @apply mb-0;
145 }
146
147 h2:has(a.header-anchor) {
148 @apply text-3xl text-mauve relative mb-8;
149 left: -1.75rem;
150 }
151
152 h3:has(a.header-anchor) {
153 @apply text-2xl text-mauve relative mb-6;
154 left: -1.75rem;
155 }
156
157 a.header-anchor::before {
158 @apply relative mr-1 inline-block;
159 font-family: "bootstrap-icons";
160 content: "\F40A";
161 top: 0.225rem;
162 }
163}
164
165@utility header-anchor {
166 @apply text-mauve!;
167}
168
169@utility no-fold {
170 pointer-events: none;
171}
172
173@utility callout {
174 @apply outline-1 rounded-sm py-2 pl-2 pr-4 outline-solid overflow-hidden;
175 outline-color: --alpha(var(--callout-color) / 50%);
176 margin: 1em 0;
177 mix-blend-mode: var(--callout-blend-mode);
178 background-color: --alpha(var(--callout-color) / 15%);
179
180 .callout-title {
181 @apply text-lg mb-2 flex gap-2 items-start font-semibold w-full;
182 color: rgb(var(--callout-color));
183
184 &::before {
185 @apply flex items-center text-xl leading-7 mr-1;
186 flex: 0 0 auto;
187 font-family: "bootstrap-icons";
188 content: var(--callout-icon);
189 }
190
191 .no-fold &::after {
192 content: "" !important;
193 }
194
195 &::after {
196 margin-left: auto;
197 font-family: "bootstrap-icons";
198 background-color: rgb(var(--callout-color));
199 content: "\F285";
200 }
201
202 [open] &::after {
203 margin-left: auto;
204 font-family: "bootstrap-icons";
205 background-color: rgb(var(--callout-color));
206 content: "\F282";
207 }
208 }
209
210 .callout-content {
211 @apply overflow-x-auto pl-2;
212
213 [data-editor-file]:hover {
214 @apply relative top-2 mr-2;
215 }
216 }
217 &[data-callout="note"] {
218 --callout-color: var(--ctp-blue);
219 --callout-icon: "\F4CB";
220 }
221
222 &[data-callout="todo"] {
223 --callout-color: var(--ctp-blue);
224 --callout-icon: "\F26B";
225 }
226
227 &[data-callout="info"] {
228 --callout-color: var(--ctp-blue);
229 --callout-icon: "\F431";
230 }
231
232 &[data-callout="success"],
233 &[data-callout="check"],
234 &[data-callout="done"] {
235 --callout-color: var(--ctp-green);
236 --callout-icon: "\F272";
237 }
238
239 &[data-callout="warning"],
240 &[data-callout="caution"],
241 &[data-callout="attention"] {
242 --callout-color: var(--ctp-yellow);
243 --callout-icon: "\F33B";
244 }
245
246 &[data-callout="question"] {
247 --callout-color: var(--ctp-yellow);
248 --callout-icon: "\F505";
249 }
250
251 &[data-callout="danger"],
252 &[data-callout="error"] {
253 --callout-color: var(--ctp-red);
254 --callout-icon: "\F46F";
255 }
256
257 &[data-callout="failure"] {
258 --callout-color: var(--ctp-red);
259 --callout-icon: "\F659";
260 }
261
262 &[data-callout="bug"] {
263 --callout-color: var(--ctp-red);
264 --callout-icon: "\F1DC";
265 }
266
267 &[data-callout="tip"],
268 &[data-callout="hint"] {
269 --callout-color: var(--ctp-teal);
270 --callout-icon: "\F7F6";
271 }
272
273 &[data-callout="example"] {
274 --callout-color: var(--ctp-mauve);
275 --callout-icon: "\F478";
276 }
277
278 &[data-callout="abstract"],
279 &[data-callout="summary"],
280 &[data-callout="tldr"] {
281 --callout-color: var(--ctp-sky);
282 --callout-icon: "\F727";
283 }
284
285 &[data-callout="quote"],
286 &[data-callout="cite"] {
287 --callout-color: var(--ctp-overlay0);
288 --callout-icon: "\F6B0";
289 }
290}
291
292details.callout .callout-title {
293 margin: 0;
294 cursor: pointer;
295}
296
297details.callout > .callout-title > .callout-fold::after {
298 content: "\F285";
299}
300
301details[open].callout > .callout-title > .callout-fold::after {
302 content: "\F282";
303}