Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

5.7 KB
Raw Blame
@layer theme, base, components, utilities;

@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "components/components.css";
@import "harper-editor/style.css";
@import "tailwindcss/utilities.css" layer(utilities);

@source "../../components/src/lib/**/*.{svelte,ts}";
@source "../../harper-editor/src/lib/**/*.{svelte,ts}";

@custom-variant dark (&:where(.dark, .dark *));

/* Apply after the element selector; exclude embedded UI and all of its descendants. */
@custom-variant docs-prose (&:not(:where([data-docs-embed], [data-docs-embed] *)));

@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;
}

:root {
	--marketing-amber: #b06a1b;
	--marketing-amber-soft: #d98b3a;
	--marketing-amber-tint: #fbf3e6;
	--marketing-amber-line: #e9d6b3;
	--marketing-cream: #fbfaf6;
	--marketing-page-bg: #f6f1e6;
	--marketing-ink: #1c1a16;
	--marketing-ink-2: #4a463e;
	--marketing-ink-3: #807a6e;
	--marketing-ink-4: #ada79a;
	--marketing-line: rgba(28, 26, 22, 0.1);
	--marketing-line-strong: rgba(28, 26, 22, 0.16);
	--marketing-underline: #c96442;
	--marketing-grass: #2f8a5b;

	--docsearch-text-color: var(--marketing-ink);
	--docsearch-muted-color: var(--marketing-ink-3);
	--docsearch-searchbox-background: #fff;
	--docsearch-searchbox-focus-background: #fff;
	--docsearch-modal-background: #f6f1e6;
	--docsearch-footer-background: #fbfaf6;
	--docsearch-hit-background: #fff;
	--docsearch-hit-color: var(--marketing-ink);
}

/* Shared search brand colors for documentation and marketing pages. */
:root {
	--docsearch-primary-color: var(--marketing-amber);
	--docsearch-highlight-color: var(--marketing-amber);
}

html,
body {
	min-height: 100%;
}

body {
	@apply bg-white text-black dark:bg-black dark:text-white;

	font-family:
		Atkinson Hyperlegible,
		sans-serif;
}

ul {
	@apply list-disc pl-4;
}

ol {
	@apply list-decimal pl-4;
}

h1 {
	@apply text-4xl font-extrabold tracking-tight lg:text-5xl;
	font-family: Domine, serif;
}

h2 {
	@apply text-3xl font-semibold tracking-tight;
	font-family: Domine, serif;
}

h3 {
	@apply text-2xl font-semibold tracking-tight;
	font-family: Domine, serif;
}

h4 {
	@apply text-xl font-semibold tracking-tight;
	font-family: Domine, serif;
}

p {
	@apply leading-[130%] [&:not(:first-child)]:mt-6;
}

a {
	@apply underline-offset-4 text-black dark:text-white;
}

blockquote {
	@apply mt-6 border-l-2 border-gray-200 pl-6 italic dark:border-gray-700;
}

code {
	font-family: "JetBrains Mono", monospace;
	word-break: keep-all;
}

code * {
	font-family: "JetBrains Mono", monospace;
}

.underlinespecial {
	position: relative;
	background-color: var(--bg-color);
}

.underlinespecial::after {
	transition-property: all;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
	content: "";
	display: block;
	width: 100%;
	height: var(--line-width);
	border-radius: 1000px;
	background: var(--line-color);
	position: absolute;
	bottom: -3px;
	left: 0;
}

textarea {
	--tw-ring-shadow: 0 0 #000;
}

.animate-bigbounce {
	animation: bigbounce 1s infinite;
}

.animate-after-bigbounce::after {
	animation: bigbounce 1s infinite;
}

@keyframes bigbounce {
	0%,
	100% {
		transform: translateY(-40%);
		animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
	}
	50% {
		transform: none;
		animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
	}
}

th[align="center"] {
	text-align: center;
}

th[align="right"] {
	text-align: right;
}

.skew-hover {
	@apply transition-all hover:rotate-3 hover:scale-105;
}

.skew-hover-left {
	@apply transition-all hover:-rotate-3 hover:scale-105;
}

.last-update {
	display: none;
}

.marketing-page {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.marketing-page *,
.marketing-page *::before,
.marketing-page *::after {
	box-sizing: border-box;
}

.marketing-page a {
	color: inherit;
}

.DocSearch-Container {
	z-index: 9999;
}

.DocSearch-Modal {
	border-radius: 16px;
	box-shadow: 0 30px 70px -24px rgba(28, 26, 22, 0.42);
}

.DocSearch-Hit a {
	border-radius: 10px;
}