nyxxworks / ui /src /index.css
Kazzze's picture
Update to current version
e94c49d verified
Raw History Blame Contribute Delete
4.67 kB
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222 20% 12%;
--canvas: 220 14% 90%;
--card: 0 0% 100%;
--card-foreground: 222 20% 12%;
--popover: 0 0% 100%;
--popover-foreground: 222 20% 12%;
--primary: 24 95% 53%;
--primary-foreground: 0 0% 100%;
--secondary: 220 14% 94%;
--secondary-foreground: 222 20% 16%;
--muted: 220 14% 95%;
--muted-foreground: 220 9% 42%;
--accent: 220 14% 90%;
--accent-foreground: 222 20% 12%;
--destructive: 0 72% 51%;
--destructive-foreground: 0 0% 100%;
--border: 220 13% 86%;
--input: 220 13% 80%;
--ring: 24 95% 53%;
--found: 45 100% 50%;
--chosen: 205 90% 42%;
--warning: 38 92% 50%;
/* The Letter station: text in the accent color, and what was placed by hand. */
--primary-text: 24 90% 40%;
--hand: 268 62% 52%;
/* The colors of categories, in the order of Style Grid's palettes: see lib/category.ts. */
--cat-0: 335 78% 42%;
--cat-1: 17 88% 40%;
--cat-2: 35 92% 33%;
--cat-3: 142 72% 29%;
--cat-4: 163 94% 24%;
--cat-5: 193 82% 31%;
--cat-6: 224 76% 48%;
--cat-7: 245 58% 51%;
--cat-8: 263 70% 50%;
--cat-9: 295 72% 40%;
--cat-10: 0 74% 42%;
--cat-11: 86 78% 27%;
--cat-12: 175 77% 26%;
--cat-13: 201 96% 32%;
--cat-14: 272 72% 47%;
--cat-15: 345 83% 41%;
--cat-16: 26 90% 37%;
--cat-17: 143 64% 24%;
--cat-18: 226 71% 40%;
--cat-19: 336 74% 35%;
--cat-20: 163 88% 20%;
--cat-21: 32 81% 29%;
--cat-22: 273 67% 39%;
--cat-23: 194 70% 27%;
--cat-24: 176 69% 22%;
--cat-25: 0 70% 35%;
--cat-26: 201 90% 27%;
--cat-27: 263 69% 42%;
--cat-28: 15 79% 34%;
--cat-29: 23 83% 31%;
--radius: 0.5rem;
color-scheme: light;
}
.dark {
--background: 222 18% 9%;
--foreground: 220 14% 92%;
--canvas: 222 20% 6%;
--card: 222 16% 12%;
--card-foreground: 220 14% 92%;
--popover: 222 16% 13%;
--popover-foreground: 220 14% 92%;
--secondary: 222 14% 18%;
--secondary-foreground: 220 14% 92%;
--muted: 222 14% 16%;
--muted-foreground: 220 9% 62%;
--accent: 222 14% 21%;
--accent-foreground: 220 14% 96%;
--destructive: 0 72% 58%;
--border: 222 12% 21%;
--input: 222 12% 27%;
--chosen: 205 90% 60%;
--primary-text: 24 96% 68%;
--hand: 270 100% 77%;
--cat-0: 329 86% 70%;
--cat-1: 27 96% 61%;
--cat-2: 48 96% 53%;
--cat-3: 142 69% 58%;
--cat-4: 158 64% 52%;
--cat-5: 188 86% 53%;
--cat-6: 213 94% 68%;
--cat-7: 234 89% 74%;
--cat-8: 255 92% 76%;
--cat-9: 292 91% 73%;
--cat-10: 0 91% 71%;
--cat-11: 83 78% 55%;
--cat-12: 172 66% 50%;
--cat-13: 198 93% 60%;
--cat-14: 270 95% 75%;
--cat-15: 351 95% 71%;
--cat-16: 31 97% 72%;
--cat-17: 142 77% 73%;
--cat-18: 212 96% 78%;
--cat-19: 353 96% 82%;
--cat-20: 156 72% 67%;
--cat-21: 46 97% 65%;
--cat-22: 269 97% 85%;
--cat-23: 187 92% 69%;
--cat-24: 141 79% 85%;
--cat-25: 0 96% 89%;
--cat-26: 213 97% 87%;
--cat-27: 251 95% 92%;
--cat-28: 32 98% 83%;
--cat-29: 43 96% 56%;
color-scheme: dark;
}
* {
@apply border-border;
}
html,
body,
#root {
height: 100%;
margin: 0;
overflow: hidden;
}
body {
@apply bg-background font-sans text-sm text-foreground antialiased;
}
}
/* Thin scrollbars inside the panels. */
.scroll-thin {
scrollbar-width: thin;
scrollbar-color: hsl(var(--input)) transparent;
}
/* The Letter station. The swatch of a color field: the browser's own color input, with
nothing of its own frame left. */
.cl-swatch::-webkit-color-swatch-wrapper {
padding: 0;
}
.cl-swatch::-webkit-color-swatch {
border: 0;
border-radius: 3px;
}
.cl-swatch::-moz-color-swatch {
border: 0;
border-radius: 3px;
}
/* Over the swatch while the color is left to the script: a checker, as where no color is set. */
.cl-checker {
background-color: hsl(var(--card));
background-image: repeating-conic-gradient(hsl(var(--input)) 0% 25%, transparent 0% 50%);
background-size: 8px 8px;
}
/* The selected outline on the canvas: a slow march of its dashes. */
@keyframes tf-march {
to {
stroke-dashoffset: -24;
}
}
.tf-march {
animation: tf-march 1.2s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
.tf-march {
animation: none;
}
}