@tailwind base; @tailwind components; @tailwind utilities; /* Everforest accent ramp. Everforest uses a different green for light and dark, so the primary-* utilities resolve through these variables instead of fixed hexes. `.dark` must stay after `:root` — same specificity, so source order decides. */ :root { --primary-300: 182 196 106; /* #b6c46a — derived lighten of green */ --primary-400: 161 178 67; /* #a1b243 — derived */ --primary-500: 141 161 1; /* #8da101 — green */ --primary-600: 116 133 10; /* #74850a — derived darken */ --primary-700: 92 106 8; /* #5c6a08 — derived darken */ } .dark { --primary-300: 195 214 164; /* #c3d6a4 — derived lighten of aqua */ --primary-400: 167 192 128; /* #a7c080 — aqua, hover in dark */ --primary-500: 167 192 128; /* #a7c080 — resting link in dark */ --primary-600: 141 161 1; /* #8da101 — active chip in the theme menu */ --primary-700: 116 133 10; /* #74850a */ } /* Article prose. The typography plugin ships Tailwind's own grays as --tw-prose-* defaults, so a palette swap has to override them too — otherwise body copy, headings, rules and code blocks stay slate on a warm background. */ .prose { --tw-prose-body: #475258; --tw-prose-headings: #2d353b; --tw-prose-lead: #5c6a72; --tw-prose-links: #2d353b; --tw-prose-bold: #2d353b; --tw-prose-counters: #7a8471; --tw-prose-bullets: #d3caac; --tw-prose-hr: #e0d7ba; --tw-prose-quotes: #2d353b; --tw-prose-quote-borders: #e0d7ba; --tw-prose-captions: #7a8471; --tw-prose-kbd: #2d353b; --tw-prose-kbd-shadows: 45 53 59; --tw-prose-code: #8da101; --tw-prose-pre-code: #e8dfc3; --tw-prose-pre-bg: #2d353b; --tw-prose-th-borders: #d3caac; --tw-prose-td-borders: #e0d7ba; --tw-prose-invert-body: #d3caac; --tw-prose-invert-headings: #e8dfc3; --tw-prose-invert-lead: #939f91; --tw-prose-invert-links: #e8dfc3; --tw-prose-invert-bold: #e8dfc3; --tw-prose-invert-counters: #939f91; --tw-prose-invert-bullets: #475258; --tw-prose-invert-hr: #3d484d; --tw-prose-invert-quotes: #e8dfc3; --tw-prose-invert-quote-borders: #3d484d; --tw-prose-invert-captions: #939f91; --tw-prose-invert-kbd: #e8dfc3; --tw-prose-invert-kbd-shadows: 232 223 195; --tw-prose-invert-code: #a7c080; --tw-prose-invert-pre-code: #d3caac; --tw-prose-invert-pre-bg: #232a2e; --tw-prose-invert-th-borders: #475258; --tw-prose-invert-td-borders: #3d484d; } /* The plugin hardcodes indigo-500 for inline code instead of using --tw-prose-code, so it needs an explicit override. Links keep their own accent (primary-400) via the typography config. */ .prose :where(code):not(:where([class~='not-prose'], [class~='not-prose'] *, a *)) { color: rgb(var(--primary-500)); } .task-list-item::before { @apply hidden; } .task-list-item { @apply list-none; } .footnotes { @apply mt-12 border-t border-gray-200 pt-8 dark:border-gray-700; } .data-footnote-backref { @apply no-underline; } .csl-entry { @apply my-5; } .no-scrollbar::-webkit-scrollbar { display: none; } .no-scrollbar { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ } /* https://stackoverflow.com/questions/61083813/how-to-avoid-internal-autofill-selected-style-to-be-applied */ input:-webkit-autofill, input:-webkit-autofill:focus { transition: background-color 600000s 0s, color 600000s 0s; } .katex-display { overflow: auto hidden; } .content-header-link { opacity: 0; margin-left: -24px; padding-right: 4px; } .content-header:hover .content-header-link, .content-header-link:hover { opacity: 1; } .linkicon { display: inline-block; vertical-align: middle; }