2026-08-18 13:02:59 -05:00
|
|
|
---
|
|
|
|
|
import "@fontsource-variable/jetbrains-mono";
|
|
|
|
|
import "@fontsource-variable/roboto-flex";
|
2026-11-19 16:59:43 -06:00
|
|
|
import { spaces, weights } from "../config/styles";
|
|
|
|
|
|
|
|
|
|
let styles = "";
|
|
|
|
|
|
|
|
|
|
styles += ":root{";
|
|
|
|
|
|
|
|
|
|
spaces.forEach((space, index) => {
|
|
|
|
|
styles += `--space-${index}:${space}rem;`;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
for (const weight in weights) {
|
|
|
|
|
styles += `--weight-${weight}:${weights[weight as keyof typeof weights]};`;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
styles += "}";
|
2026-08-18 13:02:59 -05:00
|
|
|
---
|
|
|
|
|
|
2026-11-19 16:59:43 -06:00
|
|
|
<style set:html={styles}></style>
|
|
|
|
|
|
2026-08-18 13:02:59 -05:00
|
|
|
<style>
|
|
|
|
|
:root {
|
|
|
|
|
--page-width: 64rem;
|
2026-11-21 19:33:55 -06:00
|
|
|
--page-padding: var(--space-4);
|
2026-08-18 13:02:59 -05:00
|
|
|
|
|
|
|
|
--max-size: max(100vw, 100vh);
|
|
|
|
|
--radius-max: var(--max-size);
|
|
|
|
|
|
|
|
|
|
--font-size-regular: 1rem;
|
2026-10-31 16:08:27 -05:00
|
|
|
--font-size-minor: 0.85rem;
|
2026-08-18 13:02:59 -05:00
|
|
|
--font-size-major: 1.25rem;
|
|
|
|
|
|
|
|
|
|
--font-size-heading-1: 3rem;
|
|
|
|
|
--font-size-heading-2: 2rem;
|
|
|
|
|
--font-size-heading-3: 1.5rem;
|
|
|
|
|
--font-size-heading-4: 1.25rem;
|
|
|
|
|
--font-size-heading-5: 1rem;
|
|
|
|
|
--font-size-heading-6: 0.75rem;
|
|
|
|
|
|
|
|
|
|
--font-family-regular: "Roboto Flex Variable", sans-serif;
|
|
|
|
|
--font-family-mono: "JetBrains Mono Variable", monospace;
|
|
|
|
|
|
|
|
|
|
--color-regular: var(--gray-12);
|
|
|
|
|
--color-low-contrast: var(--gray-11);
|
|
|
|
|
|
|
|
|
|
--outline-interactive: var(--space-1) solid var(--gray-4);
|
|
|
|
|
--outline-focus: var(--space-1) solid var(--accent-6);
|
|
|
|
|
|
|
|
|
|
--shadow-bump:
|
|
|
|
|
inset calc(var(--space-1) * sin(45deg)) calc(var(--space-1) * sin(45deg))
|
|
|
|
|
var(--space-1) var(--white-a3),
|
|
|
|
|
inset calc(var(--space-1) * sin(45deg) * -1)
|
|
|
|
|
calc(var(--space-1) * sin(45deg) * -1) var(--space-1) var(--black-a3);
|
|
|
|
|
|
|
|
|
|
--shadow-outline-width: 1.5px;
|
|
|
|
|
--shadow-outline-width-negative: calc(var(--shadow-outline-width) * -1);
|
|
|
|
|
|
|
|
|
|
--shadow-aggressive: var(--space-1) var(--space-1) var(--space-4)
|
|
|
|
|
var(--black-a11);
|
|
|
|
|
--shadow-subtle: 0 var(--space-1) var(--space-3) var(--black-a5);
|
2026-10-31 16:35:43 -05:00
|
|
|
--shadow-icon: 0 0 var(--space-1) var(--black-a11);
|
2026-08-18 13:02:59 -05:00
|
|
|
--shadow-none: 0 0 0 transparent;
|
|
|
|
|
|
|
|
|
|
&.light {
|
|
|
|
|
--shadow-subtle: 0 var(--space-1) var(--space-3) var(--black-a2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
--blur-glass: blur(4rem);
|
|
|
|
|
--blur-tint: blur(8rem);
|
|
|
|
|
|
|
|
|
|
--duration-brief: 200ms;
|
|
|
|
|
--duration-subtle: 2s;
|
2026-11-12 15:14:01 -06:00
|
|
|
--duration-spinner: 1s;
|
2026-11-28 15:42:45 -06:00
|
|
|
/* Gap between consecutive items in a staggered entrance */
|
|
|
|
|
--duration-stagger: 20ms;
|
|
|
|
|
|
|
|
|
|
--easing-standard: cubic-bezier(0.4, 0, 0.6, 1);
|
2026-08-18 13:02:59 -05:00
|
|
|
|
|
|
|
|
--tank-card-min-width: 8rem;
|
2026-11-12 15:14:01 -06:00
|
|
|
--drop-down-min-width: 16rem;
|
|
|
|
|
--alert-max-width: 28rem;
|
2026-08-18 13:02:59 -05:00
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<style is:global>
|
2026-11-28 15:42:45 -06:00
|
|
|
/* Zero specificity, so any component's own timing function still wins */
|
|
|
|
|
* {
|
|
|
|
|
transition-timing-function: var(--easing-standard);
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-18 13:02:59 -05:00
|
|
|
.composable-radius {
|
|
|
|
|
&[data-radius="1"] {
|
|
|
|
|
border-radius: var(--space-3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&[data-radius="2"] {
|
|
|
|
|
border-radius: var(--space-4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&[data-radius="3"] {
|
|
|
|
|
border-radius: var(--space-5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&[data-radius="max"] {
|
|
|
|
|
border-radius: var(--radius-max);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|