* cleanup: use tailwindcss classes * design: de-emphasize unimportant terms in InboxItem * fix: button shadow appearing in situations it shouldnt * cleanup: remove tag rules * fix: fonts not applying correctly * fix: uncentered settings
190 lines
4.5 KiB
CSS
190 lines
4.5 KiB
CSS
@import 'tailwindcss';
|
|
|
|
@plugin '@tailwindcss/container-queries';
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme {
|
|
--font-sans: sans-serif;
|
|
--font-system: system-ui;
|
|
--font-inter: Inter, system-ui, sans-serif;
|
|
--font-nunito: Nunito, system-ui, sans-serif;
|
|
--font-display: Inter, system-ui, sans-serif;
|
|
--font-mono: monospace;
|
|
|
|
--animate-pop-in: pop-in 0.25s ease-out forwards;
|
|
|
|
--spacing-22: 88px;
|
|
|
|
--color-slate-25: rgb(var(--c-s-25, 252 253 254));
|
|
--color-slate-50: rgb(var(--c-s-50, 248 250 252));
|
|
--color-slate-100: rgb(var(--c-s-100, 241 245 249));
|
|
--color-slate-200: rgb(var(--c-s-200, 226 232 240));
|
|
--color-slate-300: rgb(var(--c-s-300, 203 213 225));
|
|
--color-slate-400: rgb(var(--c-s-400, 148 163 184));
|
|
--color-slate-500: rgb(var(--c-s-500, 100 116 139));
|
|
--color-slate-600: rgb(var(--c-s-600, 71 85 105));
|
|
--color-slate-700: rgb(var(--c-s-700, 51 65 85));
|
|
--color-slate-800: rgb(var(--c-s-800, 30 41 59));
|
|
--color-slate-900: rgb(var(--c-s-900, 15 23 42));
|
|
--color-slate-950: rgb(var(--c-s-950, 2 6 23));
|
|
|
|
--color-zinc-50: rgb(var(--c-z-50, 251 253 255));
|
|
--color-zinc-100: rgb(var(--c-z-100, 246 247 249));
|
|
--color-zinc-200: rgb(var(--c-z-200, 229 231 235));
|
|
--color-zinc-300: rgb(var(--c-z-300, 217 221 226));
|
|
--color-zinc-400: rgb(var(--c-z-400, 171 177 188));
|
|
--color-zinc-500: rgb(var(--c-z-500, 127 133 146));
|
|
--color-zinc-600: rgb(var(--c-z-600, 95 104 117));
|
|
--color-zinc-700: rgb(var(--c-z-700, 75 84 99));
|
|
--color-zinc-800: rgb(var(--c-z-800, 42 50 63));
|
|
--color-zinc-900: rgb(var(--c-z-900, 32 37 50));
|
|
--color-zinc-925: rgb(var(--c-z-925, 28 32 43));
|
|
--color-zinc-950: rgb(var(--c-z-950, 23 27 36));
|
|
|
|
--color-primary-100: rgb(var(--c-p-100, 241 245 249));
|
|
--color-primary-900: rgb(var(--c-p-900, 15 23 42));
|
|
|
|
--color-black: rgb(var(--c-o-black, 0 0 0));
|
|
--color-white: rgb(var(--c-o-white, 255 255 255));
|
|
|
|
@keyframes pop-in {
|
|
0%,
|
|
100% {
|
|
transform: translateX(8px);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.cc {
|
|
inset: -1px;
|
|
position: absolute;
|
|
border-radius: inherit;
|
|
z-index: -1;
|
|
background: linear-gradient(
|
|
125deg,
|
|
color-mix(in oklab, var(--color-zinc-50) 20%, transparent),
|
|
color-mix(in oklab, var(--color-zinc-50) 0%, transparent),
|
|
color-mix(in oklab, var(--color-zinc-50) 20%, transparent)
|
|
);
|
|
}
|
|
|
|
/*
|
|
The default border color has changed to `currentcolor` in Tailwind CSS v4,
|
|
so we've added these compatibility styles to make sure everything still
|
|
looks the same as it did with Tailwind CSS v3.
|
|
|
|
If we ever want to remove these styles, we need to add an explicit border
|
|
color utility to any element that depends on these defaults.
|
|
*/
|
|
@layer base {
|
|
*,
|
|
::after,
|
|
::before,
|
|
::backdrop,
|
|
::file-selector-button {
|
|
border-color: var(--color-gray-200, currentcolor);
|
|
}
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Inter';
|
|
src: url('/font/Inter.woff2') format('woff2');
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Satoshi';
|
|
src: url('/font/Satoshi.woff2') format('woff2');
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Nunito';
|
|
src: url('/font/Nunito.woff2') format('woff2');
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'EBGaramond';
|
|
src: url('/font/EBGaramond-Regular.woff2') format('woff2');
|
|
font-display: swap;
|
|
}
|
|
|
|
body {
|
|
@apply bg-slate-50 text-slate-900 dark:bg-zinc-950 dark:text-zinc-100 accent-slate-950 dark:accent-zinc-50;
|
|
}
|
|
|
|
.dark {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
text-rendering: auto;
|
|
}
|
|
|
|
.wait * {
|
|
cursor: wait !important;
|
|
}
|
|
|
|
#nprogress {
|
|
z-index: 999 !important;
|
|
position: fixed !important;
|
|
}
|
|
|
|
#nprogress .bar {
|
|
@apply bg-primary-900! dark:bg-primary-100!;
|
|
z-index: 999 !important;
|
|
height: 1px !important;
|
|
}
|
|
|
|
#nprogress .peg {
|
|
display: none !important;
|
|
z-index: 999 !important;
|
|
}
|
|
|
|
pre:not(.code-baseline) {
|
|
@apply bg-slate-100 p-2 rounded-xl my-2 max-w-full whitespace-pre-wrap
|
|
border-slate-200 border dark:bg-zinc-950 dark:border-zinc-900 text-xs;
|
|
}
|
|
|
|
:not(pre) > code:not(.code-baseline) {
|
|
@apply bg-slate-100 dark:bg-zinc-950;
|
|
padding-left: 0.25rem;
|
|
padding-right: 0.25rem;
|
|
padding-top: 0.125rem;
|
|
padding-bottom: 0.125rem;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 3px;
|
|
height: 3px;
|
|
padding: 1px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
width: 2px;
|
|
margin: 1px;
|
|
background-color: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
border-radius: 9999px;
|
|
@apply bg-slate-200;
|
|
}
|
|
|
|
.dark ::-webkit-scrollbar-thumb {
|
|
@apply bg-zinc-800;
|
|
}
|
|
|
|
select:focus-visible,
|
|
a:focus-visible,
|
|
button:focus-visible {
|
|
outline: none;
|
|
@apply ring-2 ring-offset-1 ring-primary-900 dark:ring-primary-100;
|
|
}
|