Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
@import "tailwindcss";
@plugin "flowbite/plugin";
@custom-variant dark (&:where(.dark, .dark *));
@source "./**/*.{svelte,ts}";
@source "./node_modules/flowbite-svelte/**/*.{svelte,ts,js}";
@theme {
--font-serif: Domine, serif;
--color-primary-50: #fef4e7; /* honey bronze */
--color-primary-100: #fce9cf;
--color-primary-200: #f9d49f;
--color-primary-300: #f7be6e;
--color-primary-400: #f4a83e;
--color-primary: #f1920e;
--color-primary-600: #c1750b;
--color-primary-700: #915808;
--color-primary-800: #603b06;
--color-primary-900: #301d03;
--color-primary-950: #221402;
--color-accent-50: #fee7e9; /* hot fuchsia */
--color-accent-100: #fccfd3;
--color-accent-200: #f99fa6;
--color-accent-300: #f76e7a;
--color-accent-400: #f43e4d;
--color-accent: #f10e21;
--color-accent-600: #c10b1a;
--color-accent-700: #910814;
--color-accent-800: #60060d;
--color-accent-900: #300307;
--color-accent-950: #220205;
--color-cream: #fef4e7; /* simple cream */
--color-cream-100: #fce9cf;
--color-cream-200: #f9d49f;
--color-cream-300: #f7be6e;
--color-cream-400: #f4a83e;
--color-cream-500: #f1920e;
--color-cream-600: #c1750b;
--color-cream-700: #915808;
--color-cream-800: #603b06;
--color-cream-900: #301d03;
--color-cream-950: #221402;
--color-champagne-mist-50: #fef4e7;
--color-champagne-mist-100: #fce9cf;
--color-champagne-mist-200: #fad49e;
--color-champagne-mist-300: #f7be6e;
--color-champagne-mist-400: #f5a83d;
--color-champagne-mist-500: #f2930d;
--color-champagne-mist-600: #c2750a;
--color-champagne-mist-700: #915808;
--color-champagne-mist-800: #613b05;
--color-champagne-mist-900: #301d03;
--color-champagne-mist-950: #221502;
--color-white: #fffdfa;
--color-white-100: #fceacf;
--color-white-200: #fad59e;
--color-white-300: #f7c06e;
--color-white-400: #f5ab3d;
--color-white-500: #f2960d;
--color-white-600: #c2780a;
--color-white-700: #915a08;
--color-white-800: #613c05;
--color-white-900: #301e03;
--color-white-950: #221502;
}
@layer components {
/*
* The gradient image is three times the size of the content area, so the visible
* area shows one third of the 135deg gradient line. The streak occupies 45%-53% of
* that line, and moving the position from 82% to 15% carries it from just outside
* the top-left corner to just outside the bottom-right corner for any aspect ratio.
*/
.slide-flash {
/*
* A light tint of the progress bar amber; the fallback covers hosts without
* marketing tokens. Mixing with white keeps the hue while lifting the tone.
*/
--flash-color: color-mix(in srgb, var(--marketing-amber-soft, #d98b3a) 55%, white);
background-image:
linear-gradient(
135deg,
transparent 45.2%,
color-mix(in srgb, var(--flash-color) 70%, transparent) 45.4%,
color-mix(in srgb, var(--flash-color) 70%, transparent) 45.8%,
transparent 46%
),
linear-gradient(
135deg,
transparent 47.5%,
color-mix(in srgb, var(--flash-color) 30%, transparent) 49%,
color-mix(in srgb, var(--flash-color) 50%, transparent) 50%,
color-mix(in srgb, var(--flash-color) 30%, transparent) 51%,
transparent 52.5%
);
background-repeat: no-repeat;
background-size: 300% 300%;
background-position: 82% 82%;
/* A soft amber glow gives the streak an anime-style bloom. */
filter: drop-shadow(0 0 8px color-mix(in srgb, var(--flash-color) 35%, transparent));
opacity: 0;
animation: slide-flash 350ms ease-in-out forwards;
}
@keyframes slide-flash {
0% {
background-position: 82% 82%;
opacity: 0;
}
10% {
opacity: 1;
}
85% {
opacity: 1;
}
100% {
background-position: 15% 15%;
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.slide-flash {
display: none;
}
}
}
body {
@apply bg-white dark:bg-white-900 dark:text-white;
}