forked from
tangled.org/core
Monorepo for Tangled
1@tailwind base;
2@tailwind components;
3@tailwind utilities;
4@layer base {
5 @font-face {
6 font-family: "InterVariable";
7 src: url("/static/fonts/InterVariable.woff2") format("woff2");
8 font-weight: normal;
9 font-style: normal;
10 font-display: swap;
11 }
12
13 @font-face {
14 font-family: "InterVariable";
15 src: url("/static/fonts/InterVariable-Italic.woff2") format("woff2");
16 font-weight: normal;
17 font-style: italic;
18 font-display: swap;
19 }
20
21 @font-face {
22 font-family: "InterVariable";
23 src: url("/static/fonts/InterDisplay-Bold.woff2") format("woff2");
24 font-weight: bold;
25 font-style: normal;
26 font-display: swap;
27 }
28
29 @font-face {
30 font-family: "InterVariable";
31 src: url("/static/fonts/InterDisplay-BoldItalic.woff2") format("woff2");
32 font-weight: bold;
33 font-style: italic;
34 font-display: swap;
35 }
36
37 @font-face {
38 font-family: "IBMPlexMono";
39 src: url("/static/fonts/IBMPlexMono-Regular.woff2") format("woff2");
40 font-weight: normal;
41 font-style: normal;
42 font-display: swap;
43 }
44
45 @font-face {
46 font-family: "IBMPlexMono";
47 src: url("/static/fonts/IBMPlexMono-Italic.woff2") format("woff2");
48 font-weight: normal;
49 font-style: italic;
50 font-display: swap;
51 }
52
53 @font-face {
54 font-family: "IBMPlexMono";
55 src: url("/static/fonts/IBMPlexMono-Bold.woff2") format("woff2");
56 font-weight: bold;
57 font-style: normal;
58 font-display: swap;
59 }
60
61 @font-face {
62 font-family: "IBMPlexMono";
63 src: url("/static/fonts/IBMPlexMono-BoldItalic.woff2") format("woff2");
64 font-weight: bold;
65 font-style: italic;
66 font-display: swap;
67 }
68
69 ::selection {
70 @apply bg-yellow-400 text-black bg-opacity-30 dark:bg-yellow-600 dark:bg-opacity-50 dark:text-white;
71 }
72
73 @layer base {
74 html {
75 font-size: 14px;
76 scrollbar-gutter: stable;
77 }
78 @supports (font-variation-settings: normal) {
79 html {
80 font-feature-settings:
81 "kern" 1,
82 "liga" 1,
83 "cv05" 1,
84 "tnum" 1;
85 }
86 }
87
88 a {
89 @apply no-underline text-black hover:underline hover:text-gray-800 dark:text-white dark:hover:text-gray-300;
90 }
91
92 label {
93 @apply block text-gray-900 text-sm py-2 dark:text-gray-100;
94 }
95
96 input,
97 textarea {
98 @apply block rounded p-3
99 bg-gray-50 dark:bg-gray-800 dark:text-white
100 border border-gray-300 dark:border-gray-600
101 focus:outline-none focus:ring-1 focus:ring-gray-400 dark:focus:ring-gray-500;
102 }
103
104 input[type="checkbox"] {
105 @apply appearance-none size-4 rounded
106 bg-transparent border border-gray-200
107 hover:bg-gray-100
108 checked:bg-gray-900 checked:border-transparent
109 checked:hover:bg-gray-800
110 indeterminate:bg-gray-900 indeterminate:border-transparent
111 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:border-gray-200
112 disabled:checked:bg-gray-300 disabled:checked:border-transparent
113 disabled:indeterminate:bg-gray-100 disabled:indeterminate:border-gray-200
114 dark:border-gray-600
115 dark:hover:bg-gray-700
116 dark:checked:bg-gray-100
117 dark:checked:hover:bg-gray-200
118 dark:checked:border-gray-400
119 dark:indeterminate:bg-gray-100 dark:indeterminate:border-transparent
120 dark:disabled:bg-gray-700 dark:disabled:border-gray-600
121 dark:disabled:checked:bg-gray-500 dark:disabled:checked:border-transparent
122 dark:disabled:indeterminate:bg-gray-700 dark:disabled:indeterminate:border-gray-600
123 focus:outline-none focus:ring-1 focus:ring-gray-400 dark:focus:ring-gray-500;
124 background-position: center;
125 background-repeat: no-repeat;
126 background-size: 12px;
127 }
128 input[type="checkbox"]:checked {
129 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M10 3 4.5 8.5 2 6' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
130 }
131 input[type="checkbox"]:indeterminate {
132 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2.5 6h7' stroke='white' stroke-width='1.5' stroke-linecap='round'/></svg>");
133 }
134 input[type="checkbox"]:disabled:indeterminate {
135 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2.5 6h7' stroke='rgb(156,163,175)' stroke-width='1.5' stroke-linecap='round'/></svg>");
136 }
137 @media (prefers-color-scheme: dark) {
138 input[type="checkbox"]:checked {
139 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M10 3 4.5 8.5 2 6' stroke='rgb(17,24,39)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
140 }
141 input[type="checkbox"]:indeterminate {
142 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2.5 6h7' stroke='rgb(17,24,39)' stroke-width='1.5' stroke-linecap='round'/></svg>");
143 }
144 input[type="checkbox"]:disabled:indeterminate {
145 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2.5 6h7' stroke='rgb(107,114,128)' stroke-width='1.5' stroke-linecap='round'/></svg>");
146 }
147 }
148
149 input[type="radio"] {
150 @apply appearance-none size-4 p-0 rounded-full bg-transparent border
151
152 border-gray-400 hover:border-gray-900
153 hover:bg-gray-200
154
155 disabled:cursor-not-allowed
156 disabled:border-gray-300
157 disabled:checked:border-gray-300
158 disabled:hover:bg-inherit
159
160 dark:border-gray-400 dark:hover:border-gray-100
161
162 dark:hover:bg-gray-600
163
164 dark:checked:border-gray-400
165
166 dark:disabled:border-gray-500
167 dark:disabled:checked:border-gray-500
168
169 focus:outline-none focus:ring-1
170 focus:ring-gray-400 dark:focus:ring-gray-500;
171
172 background-position: center;
173 background-repeat: no-repeat;
174 background-size: 8px;
175 }
176 input[type="radio"]:checked {
177 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><circle cx='6' cy='6' r='4.5' fill='rgb(17,24,39)'/></svg>");
178 }
179 input[type="radio"]:disabled:checked {
180 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><circle cx='6' cy='6' r='4.5' fill='rgb(209,213,219)'/></svg>");
181 }
182 @media (prefers-color-scheme: dark) {
183 input[type="radio"]:checked {
184 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><circle cx='6' cy='6' r='4.5' fill='rgb(243,244,246)'/></svg>");
185 }
186 input[type="radio"]:disabled:checked {
187 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><circle cx='6' cy='6' r='4.5' fill='rgb(107,114,128)'/></svg>");
188 }
189 }
190
191 details summary::-webkit-details-marker {
192 display: none;
193 }
194
195 code {
196 @apply font-mono rounded bg-gray-100 dark:bg-gray-700 text-black dark:text-white;
197 }
198 }
199
200 @layer components {
201 .btn {
202 @apply relative z-10 inline-flex min-h-[30px] cursor-pointer items-center justify-center
203 bg-transparent px-2 pb-[0.2rem] text-sm text-gray-900
204 before:absolute before:inset-0 before:-z-10 before:block before:rounded
205 before:border before:border-gray-200 before:bg-white
206 before:shadow-[inset_0_-2px_0_0_rgba(0,0,0,0.1),0_1px_0_0_rgba(0,0,0,0.04)]
207 before:content-[''] before:transition-all before:duration-150 before:ease-in-out
208 hover:before:shadow-[inset_0_-2px_0_0_rgba(0,0,0,0.15),0_2px_1px_0_rgba(0,0,0,0.06)]
209 hover:before:bg-gray-50
210 dark:hover:before:bg-gray-700
211 active:before:shadow-[inset_0_2px_2px_0_rgba(0,0,0,0.1)]
212 focus:outline-none focus-visible:before:outline focus-visible:before:outline-2 focus-visible:before:outline-gray-400
213 disabled:cursor-not-allowed disabled:opacity-50
214 dark:text-gray-100 dark:before:bg-gray-800 dark:before:border-gray-700;
215 }
216
217 .btn-flat {
218 @apply relative z-10 inline-flex min-h-[30px] cursor-pointer items-center justify-center
219 bg-transparent px-2 pb-[0.2rem] text-sm text-gray-900
220 before:absolute before:inset-0 before:-z-10 before:block before:rounded
221 before:border before:border-gray-200 before:bg-white
222 before:content-[''] before:transition-all before:duration-150 before:ease-in-out
223 hover:before:bg-gray-50
224 dark:hover:before:bg-gray-700
225 focus:outline-none focus-visible:before:outline focus-visible:before:outline-2 focus-visible:before:outline-gray-400
226 disabled:cursor-not-allowed disabled:opacity-50
227 dark:text-gray-100 dark:before:bg-gray-800 dark:before:border-gray-700;
228 }
229
230 .btn-create {
231 @apply btn text-white
232 before:bg-green-600 hover:before:bg-green-700
233 dark:before:bg-green-700 dark:hover:before:bg-green-800
234 before:border before:border-green-700 hover:before:border-green-800
235 focus-visible:before:outline-green-500
236 disabled:before:bg-green-400 dark:disabled:before:bg-green-600;
237 }
238
239 .btn-cancel {
240 @apply btn text-white
241 before:bg-red-600 hover:before:bg-red-700
242 dark:before:bg-red-700 dark:hover:before:bg-red-800
243 before:border before:border-red-700 hover:before:border-red-800
244 focus-visible:before:outline-red-500
245 disabled:before:bg-red-400 dark:disabled:before:bg-red-600;
246 }
247
248 .prose {
249 overflow-wrap: anywhere;
250 }
251
252 .prose td,
253 .prose th {
254 overflow-wrap: normal;
255 }
256
257 .prose hr {
258 @apply my-2;
259 }
260
261 .prose li:has(input) {
262 @apply list-none;
263 }
264
265 .prose ul:has(input) {
266 @apply pl-2;
267 }
268
269 .prose .heading .anchor {
270 @apply no-underline mx-2 opacity-0;
271 }
272
273 .prose .heading:hover .anchor {
274 @apply opacity-70;
275 }
276
277 .prose .heading .anchor:hover {
278 @apply opacity-70;
279 }
280
281 .prose h1:target,
282 .prose h2:target,
283 .prose h3:target,
284 .prose h4:target,
285 .prose h5:target,
286 .prose h6:target {
287 @apply bg-yellow-200/30 dark:bg-yellow-600/30;
288 }
289
290 .prose a.footnote-backref {
291 @apply no-underline;
292 }
293
294 .prose a.mention {
295 @apply no-underline hover:underline font-bold;
296 }
297
298 .prose li {
299 @apply my-0 py-0;
300 }
301
302 .prose ul,
303 .prose ol {
304 @apply my-1 py-0;
305 }
306
307 .prose img {
308 display: inline;
309 margin: 0;
310 vertical-align: middle;
311 }
312
313 .prose input {
314 @apply inline-block my-0 mb-1 mx-1;
315 }
316
317
318 /* Mermaid diagrams */
319 .prose pre.mermaid {
320 @apply flex justify-center my-4 overflow-x-auto bg-transparent border-0;
321 }
322
323 /* Base callout */
324 details[data-callout] {
325 @apply border-l-4 pl-3 py-2 text-gray-800 dark:text-gray-200 my-4;
326 }
327
328 details[data-callout] > summary {
329 @apply font-bold cursor-pointer mb-1;
330 }
331
332 details[data-callout] > .callout-content {
333 @apply text-sm leading-snug;
334 }
335
336 /* Note (blue) */
337 details[data-callout="note" i] {
338 @apply border-blue-400 dark:border-blue-500;
339 }
340 details[data-callout="note" i] > summary {
341 @apply text-blue-700 dark:text-blue-400;
342 }
343
344 /* Important (purple) */
345 details[data-callout="important" i] {
346 @apply border-purple-400 dark:border-purple-500;
347 }
348 details[data-callout="important" i] > summary {
349 @apply text-purple-700 dark:text-purple-400;
350 }
351
352 /* Warning (yellow) */
353 details[data-callout="warning" i] {
354 @apply border-yellow-400 dark:border-yellow-500;
355 }
356 details[data-callout="warning" i] > summary {
357 @apply text-yellow-700 dark:text-yellow-400;
358 }
359
360 /* Caution (red) */
361 details[data-callout="caution" i] {
362 @apply border-red-400 dark:border-red-500;
363 }
364 details[data-callout="caution" i] > summary {
365 @apply text-red-700 dark:text-red-400;
366 }
367
368 /* Tip (green) */
369 details[data-callout="tip" i] {
370 @apply border-green-400 dark:border-green-500;
371 }
372 details[data-callout="tip" i] > summary {
373 @apply text-green-700 dark:text-green-400;
374 }
375
376 /* Optional: hide the disclosure arrow like GitHub */
377 details[data-callout] > summary::-webkit-details-marker {
378 display: none;
379 }
380 }
381 @layer utilities {
382 .error {
383 @apply py-1 text-red-400 dark:text-red-300;
384 }
385 .success {
386 @apply py-1 text-gray-900 dark:text-gray-100;
387 }
388
389 @keyframes scroll {
390 0% { transform: translateX(0); }
391 100% { transform: translateX(-50%); }
392 }
393
394 .animate-marquee {
395 animation: scroll 60s linear infinite;
396 }
397
398 .animate-marquee:hover {
399 animation-play-state: paused;
400 }
401
402 @media (prefers-reduced-motion: reduce) {
403 .animate-marquee {
404 animation: none;
405 transform: none;
406 }
407 }
408
409 @keyframes progress {
410 from { width: 0%; }
411 to { width: 100%; }
412 }
413
414 .animate-progress {
415 animation: progress 10s linear forwards;
416 }
417
418 @keyframes fadeIn {
419 from { opacity: 0; }
420 to { opacity: 1; }
421 }
422
423 @keyframes fadeOut {
424 from { opacity: 1; }
425 to { opacity: 0; }
426 }
427
428 .animate-fadein {
429 animation: fadeIn 0.25s ease-in forwards;
430 }
431
432 .animate-fadeout {
433 animation: fadeOut 0.25s ease-out forwards;
434 }
435 }
436}
437
438/* Background */
439.bg {
440 color: #4c4f69;
441 background-color: #eff1f5;
442}
443/* PreWrapper */
444.chroma {
445 color: #4c4f69;
446}
447/* Error */
448.chroma .err {
449 color: #d20f39;
450}
451/* LineLink */
452.chroma .lnlinks {
453 outline: none;
454 text-decoration: none;
455 color: inherit;
456}
457/* LineTableTD */
458.chroma .lntd {
459 vertical-align: top;
460 padding: 0;
461 margin: 0;
462 border: 0;
463}
464/* LineTable */
465.chroma .lntable {
466 border-spacing: 0;
467 padding: 0;
468 margin: 0;
469 border: 0;
470}
471/* LineHighlight */
472.chroma .hl {
473 @apply bg-amber-400/30 dark:bg-amber-500/20;
474}
475
476.line-quote-hl, .line-range-hl {
477 @apply !bg-yellow-200/30 dark:!bg-yellow-700/30;
478}
479
480:is(.line-quote-hl, .line-range-hl) > .min-w-\[3\.5rem\] {
481 @apply !bg-yellow-200/30 dark:!bg-yellow-700/30;
482}
483
484:is(.line-quote-hl, .line-range-hl) > .min-w-\[3\.5rem\] a {
485 @apply !text-black dark:!text-white;
486}
487
488/* LineNumbersTable */
489.chroma .lnt {
490 white-space: pre;
491 -webkit-user-select: none;
492 user-select: none;
493 margin-right: 0.4em;
494 padding: 0 0.4em 0 0.4em;
495 color: #8c8fa1;
496}
497/* LineNumbers */
498.chroma .ln {
499 white-space: pre;
500 -webkit-user-select: none;
501 user-select: none;
502 margin-right: 0.4em;
503 padding: 0 0.4em 0 0.4em;
504 color: #8c8fa1;
505}
506/* Line */
507.chroma .line {
508 display: flex;
509}
510/* Keyword */
511.chroma .k {
512 color: #8839ef;
513}
514/* KeywordConstant */
515.chroma .kc {
516 color: #fe640b;
517}
518/* KeywordDeclaration */
519.chroma .kd {
520 color: #d20f39;
521}
522/* KeywordNamespace */
523.chroma .kn {
524 color: #179299;
525}
526/* KeywordPseudo */
527.chroma .kp {
528 color: #8839ef;
529}
530/* KeywordReserved */
531.chroma .kr {
532 color: #8839ef;
533}
534/* KeywordType */
535.chroma .kt {
536 color: #d20f39;
537}
538/* NameAttribute */
539.chroma .na {
540 color: #1e66f5;
541}
542/* NameBuiltin */
543.chroma .nb {
544 color: #04a5e5;
545}
546/* NameBuiltinPseudo */
547.chroma .bp {
548 color: #04a5e5;
549}
550/* NameClass */
551.chroma .nc {
552 color: #df8e1d;
553}
554/* NameConstant */
555.chroma .no {
556 color: #df8e1d;
557}
558/* NameDecorator */
559.chroma .nd {
560 color: #1e66f5;
561 font-weight: bold;
562}
563/* NameEntity */
564.chroma .ni {
565 color: #179299;
566}
567/* NameException */
568.chroma .ne {
569 color: #fe640b;
570}
571/* NameFunction */
572.chroma .nf {
573 color: #1e66f5;
574}
575/* NameFunctionMagic */
576.chroma .fm {
577 color: #1e66f5;
578}
579/* NameLabel */
580.chroma .nl {
581 color: #04a5e5;
582}
583/* NameNamespace */
584.chroma .nn {
585 color: #fe640b;
586}
587/* NameProperty */
588.chroma .py {
589 color: #fe640b;
590}
591/* NameTag */
592.chroma .nt {
593 color: #8839ef;
594}
595/* NameVariable */
596.chroma .nv {
597 color: #dc8a78;
598}
599/* NameVariableClass */
600.chroma .vc {
601 color: #dc8a78;
602}
603/* NameVariableGlobal */
604.chroma .vg {
605 color: #dc8a78;
606}
607/* NameVariableInstance */
608.chroma .vi {
609 color: #dc8a78;
610}
611/* NameVariableMagic */
612.chroma .vm {
613 color: #dc8a78;
614}
615/* LiteralString */
616.chroma .s {
617 color: #40a02b;
618}
619/* LiteralStringAffix */
620.chroma .sa {
621 color: #d20f39;
622}
623/* LiteralStringBacktick */
624.chroma .sb {
625 color: #40a02b;
626}
627/* LiteralStringChar */
628.chroma .sc {
629 color: #40a02b;
630}
631/* LiteralStringDelimiter */
632.chroma .dl {
633 color: #1e66f5;
634}
635/* LiteralStringDoc */
636.chroma .sd {
637 color: #9ca0b0;
638}
639/* LiteralStringDouble */
640.chroma .s2 {
641 color: #40a02b;
642}
643/* LiteralStringEscape */
644.chroma .se {
645 color: #1e66f5;
646}
647/* LiteralStringHeredoc */
648.chroma .sh {
649 color: #9ca0b0;
650}
651/* LiteralStringInterpol */
652.chroma .si {
653 color: #40a02b;
654}
655/* LiteralStringOther */
656.chroma .sx {
657 color: #40a02b;
658}
659/* LiteralStringRegex */
660.chroma .sr {
661 color: #179299;
662}
663/* LiteralStringSingle */
664.chroma .s1 {
665 color: #40a02b;
666}
667/* LiteralStringSymbol */
668.chroma .ss {
669 color: #40a02b;
670}
671/* LiteralNumber */
672.chroma .m {
673 color: #fe640b;
674}
675/* LiteralNumberBin */
676.chroma .mb {
677 color: #fe640b;
678}
679/* LiteralNumberFloat */
680.chroma .mf {
681 color: #fe640b;
682}
683/* LiteralNumberHex */
684.chroma .mh {
685 color: #fe640b;
686}
687/* LiteralNumberInteger */
688.chroma .mi {
689 color: #fe640b;
690}
691/* LiteralNumberIntegerLong */
692.chroma .il {
693 color: #fe640b;
694}
695/* LiteralNumberOct */
696.chroma .mo {
697 color: #fe640b;
698}
699/* Operator */
700.chroma .o {
701 color: #04a5e5;
702 font-weight: bold;
703}
704/* OperatorWord */
705.chroma .ow {
706 color: #04a5e5;
707 font-weight: bold;
708}
709/* Comment */
710.chroma .c {
711 color: #9ca0b0;
712 font-style: italic;
713}
714/* CommentHashbang */
715.chroma .ch {
716 color: #9ca0b0;
717 font-style: italic;
718}
719/* CommentMultiline */
720.chroma .cm {
721 color: #9ca0b0;
722 font-style: italic;
723}
724/* CommentSingle */
725.chroma .c1 {
726 color: #9ca0b0;
727 font-style: italic;
728}
729/* CommentSpecial */
730.chroma .cs {
731 color: #9ca0b0;
732 font-style: italic;
733}
734/* CommentPreproc */
735.chroma .cp {
736 color: #9ca0b0;
737 font-style: italic;
738}
739/* CommentPreprocFile */
740.chroma .cpf {
741 color: #9ca0b0;
742 font-weight: bold;
743 font-style: italic;
744}
745/* GenericDeleted */
746.chroma .gd {
747 color: #d20f39;
748 background-color: oklch(93.6% 0.032 17.717);
749}
750/* GenericEmph */
751.chroma .ge {
752 font-style: italic;
753}
754/* GenericError */
755.chroma .gr {
756 color: #d20f39;
757}
758/* GenericHeading */
759.chroma .gh {
760 color: #fe640b;
761 font-weight: bold;
762}
763/* GenericInserted */
764.chroma .gi {
765 color: #40a02b;
766 background-color: oklch(96.2% 0.044 156.743);
767}
768/* GenericStrong */
769.chroma .gs {
770 font-weight: bold;
771}
772/* GenericSubheading */
773.chroma .gu {
774 color: #fe640b;
775 font-weight: bold;
776}
777/* GenericTraceback */
778.chroma .gt {
779 color: #d20f39;
780}
781/* GenericUnderline */
782.chroma .gl {
783 text-decoration: underline;
784}
785
786@media (prefers-color-scheme: dark) {
787 /* Background */
788 .bg {
789 color: #cad3f5;
790 background-color: #24273a;
791 }
792 /* PreWrapper */
793 .chroma {
794 color: #cad3f5;
795 }
796 /* Error */
797 .chroma .err {
798 color: #ed8796;
799 }
800 /* LineLink */
801 .chroma .lnlinks {
802 outline: none;
803 text-decoration: none;
804 color: inherit;
805 }
806 /* LineTableTD */
807 .chroma .lntd {
808 vertical-align: top;
809 padding: 0;
810 margin: 0;
811 border: 0;
812 }
813 /* LineTable */
814 .chroma .lntable {
815 border-spacing: 0;
816 padding: 0;
817 margin: 0;
818 border: 0;
819 }
820 /* LineHighlight */
821 .chroma .hl {
822 background-color: #494d64;
823 }
824 /* LineNumbersTable */
825 .chroma .lnt {
826 white-space: pre;
827 -webkit-user-select: none;
828 user-select: none;
829 margin-right: 0.4em;
830 padding: 0 0.4em 0 0.4em;
831 color: #8087a2;
832 }
833 /* LineNumbers */
834 .chroma .ln {
835 white-space: pre;
836 -webkit-user-select: none;
837 user-select: none;
838 margin-right: 0.4em;
839 padding: 0 0.4em 0 0.4em;
840 color: #8087a2;
841 }
842 /* Line */
843 .chroma .line {
844 display: flex;
845 }
846 /* Keyword */
847 .chroma .k {
848 color: #c6a0f6;
849 }
850 /* KeywordConstant */
851 .chroma .kc {
852 color: #f5a97f;
853 }
854 /* KeywordDeclaration */
855 .chroma .kd {
856 color: #ed8796;
857 }
858 /* KeywordNamespace */
859 .chroma .kn {
860 color: #8bd5ca;
861 }
862 /* KeywordPseudo */
863 .chroma .kp {
864 color: #c6a0f6;
865 }
866 /* KeywordReserved */
867 .chroma .kr {
868 color: #c6a0f6;
869 }
870 /* KeywordType */
871 .chroma .kt {
872 color: #ed8796;
873 }
874 /* NameAttribute */
875 .chroma .na {
876 color: #8aadf4;
877 }
878 /* NameBuiltin */
879 .chroma .nb {
880 color: #91d7e3;
881 }
882 /* NameBuiltinPseudo */
883 .chroma .bp {
884 color: #91d7e3;
885 }
886 /* NameClass */
887 .chroma .nc {
888 color: #eed49f;
889 }
890 /* NameConstant */
891 .chroma .no {
892 color: #eed49f;
893 }
894 /* NameDecorator */
895 .chroma .nd {
896 color: #8aadf4;
897 font-weight: bold;
898 }
899 /* NameEntity */
900 .chroma .ni {
901 color: #8bd5ca;
902 }
903 /* NameException */
904 .chroma .ne {
905 color: #f5a97f;
906 }
907 /* NameFunction */
908 .chroma .nf {
909 color: #8aadf4;
910 }
911 /* NameFunctionMagic */
912 .chroma .fm {
913 color: #8aadf4;
914 }
915 /* NameLabel */
916 .chroma .nl {
917 color: #91d7e3;
918 }
919 /* NameNamespace */
920 .chroma .nn {
921 color: #f5a97f;
922 }
923 /* NameProperty */
924 .chroma .py {
925 color: #f5a97f;
926 }
927 /* NameTag */
928 .chroma .nt {
929 color: #c6a0f6;
930 }
931 /* NameVariable */
932 .chroma .nv {
933 color: #f4dbd6;
934 }
935 /* NameVariableClass */
936 .chroma .vc {
937 color: #f4dbd6;
938 }
939 /* NameVariableGlobal */
940 .chroma .vg {
941 color: #f4dbd6;
942 }
943 /* NameVariableInstance */
944 .chroma .vi {
945 color: #f4dbd6;
946 }
947 /* NameVariableMagic */
948 .chroma .vm {
949 color: #f4dbd6;
950 }
951 /* LiteralString */
952 .chroma .s {
953 color: #a6da95;
954 }
955 /* LiteralStringAffix */
956 .chroma .sa {
957 color: #ed8796;
958 }
959 /* LiteralStringBacktick */
960 .chroma .sb {
961 color: #a6da95;
962 }
963 /* LiteralStringChar */
964 .chroma .sc {
965 color: #a6da95;
966 }
967 /* LiteralStringDelimiter */
968 .chroma .dl {
969 color: #8aadf4;
970 }
971 /* LiteralStringDoc */
972 .chroma .sd {
973 color: #6e738d;
974 }
975 /* LiteralStringDouble */
976 .chroma .s2 {
977 color: #a6da95;
978 }
979 /* LiteralStringEscape */
980 .chroma .se {
981 color: #8aadf4;
982 }
983 /* LiteralStringHeredoc */
984 .chroma .sh {
985 color: #6e738d;
986 }
987 /* LiteralStringInterpol */
988 .chroma .si {
989 color: #a6da95;
990 }
991 /* LiteralStringOther */
992 .chroma .sx {
993 color: #a6da95;
994 }
995 /* LiteralStringRegex */
996 .chroma .sr {
997 color: #8bd5ca;
998 }
999 /* LiteralStringSingle */
1000 .chroma .s1 {
1001 color: #a6da95;
1002 }
1003 /* LiteralStringSymbol */
1004 .chroma .ss {
1005 color: #a6da95;
1006 }
1007 /* LiteralNumber */
1008 .chroma .m {
1009 color: #f5a97f;
1010 }
1011 /* LiteralNumberBin */
1012 .chroma .mb {
1013 color: #f5a97f;
1014 }
1015 /* LiteralNumberFloat */
1016 .chroma .mf {
1017 color: #f5a97f;
1018 }
1019 /* LiteralNumberHex */
1020 .chroma .mh {
1021 color: #f5a97f;
1022 }
1023 /* LiteralNumberInteger */
1024 .chroma .mi {
1025 color: #f5a97f;
1026 }
1027 /* LiteralNumberIntegerLong */
1028 .chroma .il {
1029 color: #f5a97f;
1030 }
1031 /* LiteralNumberOct */
1032 .chroma .mo {
1033 color: #f5a97f;
1034 }
1035 /* Operator */
1036 .chroma .o {
1037 color: #91d7e3;
1038 font-weight: bold;
1039 }
1040 /* OperatorWord */
1041 .chroma .ow {
1042 color: #91d7e3;
1043 font-weight: bold;
1044 }
1045 /* Comment */
1046 .chroma .c {
1047 color: #6e738d;
1048 font-style: italic;
1049 }
1050 /* CommentHashbang */
1051 .chroma .ch {
1052 color: #6e738d;
1053 font-style: italic;
1054 }
1055 /* CommentMultiline */
1056 .chroma .cm {
1057 color: #6e738d;
1058 font-style: italic;
1059 }
1060 /* CommentSingle */
1061 .chroma .c1 {
1062 color: #6e738d;
1063 font-style: italic;
1064 }
1065 /* CommentSpecial */
1066 .chroma .cs {
1067 color: #6e738d;
1068 font-style: italic;
1069 }
1070 /* CommentPreproc */
1071 .chroma .cp {
1072 color: #6e738d;
1073 font-style: italic;
1074 }
1075 /* CommentPreprocFile */
1076 .chroma .cpf {
1077 color: #6e738d;
1078 font-weight: bold;
1079 font-style: italic;
1080 }
1081 /* GenericDeleted */
1082 .chroma .gd {
1083 color: #ed8796;
1084 background-color: oklch(44.4% 0.177 26.899 / 0.5);
1085 }
1086 /* GenericEmph */
1087 .chroma .ge {
1088 font-style: italic;
1089 }
1090 /* GenericError */
1091 .chroma .gr {
1092 color: #ed8796;
1093 }
1094 /* GenericHeading */
1095 .chroma .gh {
1096 color: #f5a97f;
1097 font-weight: bold;
1098 }
1099 /* GenericInserted */
1100 .chroma .gi {
1101 color: #a6da95;
1102 background-color: oklch(44.8% 0.119 151.328 / 0.5);
1103 }
1104 /* GenericStrong */
1105 .chroma .gs {
1106 font-weight: bold;
1107 }
1108 /* GenericSubheading */
1109 .chroma .gu {
1110 color: #f5a97f;
1111 font-weight: bold;
1112 }
1113 /* GenericTraceback */
1114 .chroma .gt {
1115 color: #ed8796;
1116 }
1117 /* GenericUnderline */
1118 .chroma .gl {
1119 text-decoration: underline;
1120 }
1121}
1122
1123actor-typeahead {
1124 --color-background: #ffffff;
1125 --color-border: #d1d5db;
1126 --color-shadow: #000000;
1127 --color-hover: #f9fafb;
1128 --color-avatar-fallback: #e5e7eb;
1129 --radius: 0;
1130 --padding-menu: 0rem;
1131 z-index: 1000;
1132}
1133
1134actor-typeahead::part(handle) {
1135 color: #111827;
1136}
1137
1138actor-typeahead::part(menu) {
1139 box-shadow:
1140 0 4px 6px -1px rgb(0 0 0 / 0.1),
1141 0 2px 4px -2px rgb(0 0 0 / 0.1);
1142}
1143
1144@media (prefers-color-scheme: dark) {
1145 actor-typeahead {
1146 --color-background: #1f2937;
1147 --color-border: #4b5563;
1148 --color-shadow: #000000;
1149 --color-hover: #374151;
1150 --color-avatar-fallback: #4b5563;
1151 }
1152
1153 actor-typeahead::part(handle) {
1154 color: #f9fafb;
1155 }
1156}
1157
1158@layer utilities {
1159 .hit-area {
1160 position: relative;
1161 }
1162
1163 .hit-area::before {
1164 content: "";
1165 position: absolute;
1166 top: var(--hit-area-t, 0px);
1167 right: var(--hit-area-r, 0px);
1168 bottom: var(--hit-area-b, 0px);
1169 left: var(--hit-area-l, 0px);
1170 pointer-events: inherit;
1171 }
1172
1173 .hit-area-debug {
1174 position: relative;
1175 }
1176
1177 .hit-area-debug::before {
1178 content: "";
1179 position: absolute;
1180 top: var(--hit-area-t, 0px);
1181 right: var(--hit-area-r, 0px);
1182 bottom: var(--hit-area-b, 0px);
1183 left: var(--hit-area-l, 0px);
1184 pointer-events: inherit;
1185 border: 1px dashed #3b82f6;
1186 background-color: rgba(59, 130, 246, 0.1);
1187 }
1188
1189 .hit-area-debug:hover::before {
1190 border-color: #22c55e;
1191 background-color: rgba(34, 197, 94, 0.1);
1192 }
1193
1194 .hit-area-1 { --hit-area-t: -0.25rem; --hit-area-r: -0.25rem; --hit-area-b: -0.25rem; --hit-area-l: -0.25rem; }
1195 .hit-area-2 { --hit-area-t: -0.5rem; --hit-area-r: -0.5rem; --hit-area-b: -0.5rem; --hit-area-l: -0.5rem; }
1196 .hit-area-4 { --hit-area-t: -1rem; --hit-area-r: -1rem; --hit-area-b: -1rem; --hit-area-l: -1rem; }
1197 .hit-area-6 { --hit-area-t: -1.5rem; --hit-area-r: -1.5rem; --hit-area-b: -1.5rem; --hit-area-l: -1.5rem; }
1198 .hit-area-8 { --hit-area-t: -2rem; --hit-area-r: -2rem; --hit-area-b: -2rem; --hit-area-l: -2rem; }
1199 .hit-area-10 { --hit-area-t: -2.5rem; --hit-area-r: -2.5rem; --hit-area-b: -2.5rem; --hit-area-l: -2.5rem; }
1200 .hit-area-12 { --hit-area-t: -3rem; --hit-area-r: -3rem; --hit-area-b: -3rem; --hit-area-l: -3rem; }
1201
1202 .hit-area-l-1 { --hit-area-l: -0.25rem; }
1203 .hit-area-l-2 { --hit-area-l: -0.5rem; }
1204 .hit-area-l-4 { --hit-area-l: -1rem; }
1205 .hit-area-l-6 { --hit-area-l: -1.5rem; }
1206 .hit-area-l-8 { --hit-area-l: -2rem; }
1207 .hit-area-l-10 { --hit-area-l: -2.5rem; }
1208 .hit-area-l-12 { --hit-area-l: -3rem; }
1209
1210 .hit-area-r-1 { --hit-area-r: -0.25rem; }
1211 .hit-area-r-2 { --hit-area-r: -0.5rem; }
1212 .hit-area-r-4 { --hit-area-r: -1rem; }
1213 .hit-area-r-6 { --hit-area-r: -1.5rem; }
1214 .hit-area-r-8 { --hit-area-r: -2rem; }
1215 .hit-area-r-10 { --hit-area-r: -2.5rem; }
1216 .hit-area-r-12 { --hit-area-r: -3rem; }
1217
1218 .hit-area-t-1 { --hit-area-t: -0.25rem; }
1219 .hit-area-t-2 { --hit-area-t: -0.5rem; }
1220 .hit-area-t-4 { --hit-area-t: -1rem; }
1221 .hit-area-t-6 { --hit-area-t: -1.5rem; }
1222 .hit-area-t-8 { --hit-area-t: -2rem; }
1223 .hit-area-t-10 { --hit-area-t: -2.5rem; }
1224 .hit-area-t-12 { --hit-area-t: -3rem; }
1225
1226 .hit-area-b-1 { --hit-area-b: -0.25rem; }
1227 .hit-area-b-2 { --hit-area-b: -0.5rem; }
1228 .hit-area-b-4 { --hit-area-b: -1rem; }
1229 .hit-area-b-6 { --hit-area-b: -1.5rem; }
1230 .hit-area-b-8 { --hit-area-b: -2rem; }
1231 .hit-area-b-10 { --hit-area-b: -2.5rem; }
1232 .hit-area-b-12 { --hit-area-b: -3rem; }
1233
1234 .hit-area-x-1 { --hit-area-l: -0.25rem; --hit-area-r: -0.25rem; }
1235 .hit-area-x-2 { --hit-area-l: -0.5rem; --hit-area-r: -0.5rem; }
1236 .hit-area-x-4 { --hit-area-l: -1rem; --hit-area-r: -1rem; }
1237 .hit-area-x-6 { --hit-area-l: -1.5rem; --hit-area-r: -1.5rem; }
1238 .hit-area-x-8 { --hit-area-l: -2rem; --hit-area-r: -2rem; }
1239 .hit-area-x-10 { --hit-area-l: -2.5rem; --hit-area-r: -2.5rem; }
1240 .hit-area-x-12 { --hit-area-l: -3rem; --hit-area-r: -3rem; }
1241
1242 .hit-area-y-1 { --hit-area-t: -0.25rem; --hit-area-b: -0.25rem; }
1243 .hit-area-y-2 { --hit-area-t: -0.5rem; --hit-area-b: -0.5rem; }
1244 .hit-area-y-4 { --hit-area-t: -1rem; --hit-area-b: -1rem; }
1245 .hit-area-y-6 { --hit-area-t: -1.5rem; --hit-area-b: -1.5rem; }
1246 .hit-area-y-8 { --hit-area-t: -2rem; --hit-area-b: -2rem; }
1247 .hit-area-y-10 { --hit-area-t: -2.5rem; --hit-area-b: -2.5rem; }
1248 .hit-area-y-12 { --hit-area-t: -3rem; --hit-area-b: -3rem; }
1249}