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 div.callout-content > p { 138 @apply mb-0; 139 } 140 141 h2:has(a.header-anchor) { 142 @apply text-3xl text-mauve relative mb-8 no-underline; 143 left: -1.75rem; 144 } 145 h2:has(a.header-anchor)::before { 146 @apply text-2xl relative mr-1; 147 top: 0.25rem; 148 font-family: "bootstrap-icons"; 149 content: "\F4B4"; 150 } 151} 152 153@utility header-anchor { 154 @apply text-mauve!; 155} 156 157@utility no-fold { 158 pointer-events: none; 159} 160 161@utility callout { 162 @apply outline-1 rounded-sm py-2 pl-2 pr-4 outline-solid overflow-hidden; 163 outline-color: --alpha(var(--callout-color) / 50%); 164 margin: 1em 0; 165 mix-blend-mode: var(--callout-blend-mode); 166 background-color: --alpha(var(--callout-color) / 15%); 167 168 .callout-title { 169 @apply text-lg mb-2 flex gap-2 items-start font-semibold w-full; 170 color: rgb(var(--callout-color)); 171 172 &::before { 173 @apply flex items-center text-xl leading-7 mr-1; 174 flex: 0 0 auto; 175 font-family: "bootstrap-icons"; 176 content: var(--callout-icon); 177 } 178 179 .no-fold &::after { 180 content: "" !important; 181 } 182 183 &::after { 184 margin-left: auto; 185 font-family: "bootstrap-icons"; 186 background-color: rgb(var(--callout-color)); 187 content: "\F285"; 188 } 189 190 [open] &::after { 191 margin-left: auto; 192 font-family: "bootstrap-icons"; 193 background-color: rgb(var(--callout-color)); 194 content: "\F282"; 195 } 196 } 197 198 .callout-content { 199 @apply overflow-x-auto pl-2; 200 201 [data-editor-file]:hover { 202 @apply relative top-2 mr-2; 203 } 204 } 205 &[data-callout="note"] { 206 --callout-color: var(--ctp-blue); 207 --callout-icon: "\F4CB"; 208 } 209 210 &[data-callout="todo"] { 211 --callout-color: var(--ctp-blue); 212 --callout-icon: "\F26B"; 213 } 214 215 &[data-callout="info"] { 216 --callout-color: var(--ctp-blue); 217 --callout-icon: "\F431"; 218 } 219 220 &[data-callout="success"], 221 &[data-callout="check"], 222 &[data-callout="done"] { 223 --callout-color: var(--ctp-green); 224 --callout-icon: "\F272"; 225 } 226 227 &[data-callout="warning"], 228 &[data-callout="caution"], 229 &[data-callout="attention"] { 230 --callout-color: var(--ctp-yellow); 231 --callout-icon: "\F33B"; 232 } 233 234 &[data-callout="question"] { 235 --callout-color: var(--ctp-yellow); 236 --callout-icon: "\F505"; 237 } 238 239 &[data-callout="danger"], 240 &[data-callout="error"] { 241 --callout-color: var(--ctp-red); 242 --callout-icon: "\F46F"; 243 } 244 245 &[data-callout="failure"] { 246 --callout-color: var(--ctp-red); 247 --callout-icon: "\F659"; 248 } 249 250 &[data-callout="bug"] { 251 --callout-color: var(--ctp-red); 252 --callout-icon: "\F1DC"; 253 } 254 255 &[data-callout="tip"], 256 &[data-callout="hint"] { 257 --callout-color: var(--ctp-teal); 258 --callout-icon: "\F7F6"; 259 } 260 261 &[data-callout="example"] { 262 --callout-color: var(--ctp-mauve); 263 --callout-icon: "\F478"; 264 } 265 266 &[data-callout="abstract"], 267 &[data-callout="summary"], 268 &[data-callout="tldr"] { 269 --callout-color: var(--ctp-sky); 270 --callout-icon: "\F727"; 271 } 272 273 &[data-callout="quote"], 274 &[data-callout="cite"] { 275 --callout-color: var(--ctp-overlay0); 276 --callout-icon: "\F6B0"; 277 } 278} 279 280details.callout .callout-title { 281 margin: 0; 282 cursor: pointer; 283} 284 285details.callout > .callout-title > .callout-fold::after { 286 content: "\F285"; 287} 288 289details[open].callout > .callout-title > .callout-fold::after { 290 content: "\F282"; 291}