firebreak/web/app/static/css/input.css

233 lines
6.3 KiB
CSS

@import "tailwindcss";
@theme {
--font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
--font-inter: "Inter", ui-sans-serif, system-ui, sans-serif;
--color-background: #f8f8f6;
--color-foreground: #17191c;
--color-card: #f8f8f6;
--color-card-foreground: #17191c;
--color-muted: #eeeeea;
--color-muted-foreground: #3a3d42;
--color-accent: #f1f1ee;
--color-accent-foreground: #17191c;
--color-primary: #2a2d31;
--color-primary-foreground: #ffffff;
--color-primary-hover: #17191c;
--color-primary-muted: rgb(23 25 28 / 10%);
--color-secondary: #eeeeea;
--color-secondary-foreground: #17191c;
--color-border: #d8d8d2;
--color-border-subtle: #e9e9e4;
--color-input: #ffffff;
--color-ring: #2a2d31;
--color-ring-muted: rgb(23 25 28 / 12%);
--shadow-card: 0 1px 2px rgb(23 25 28 / 5%);
--color-success: oklch(47.8% 0.13 150);
--color-success-foreground: oklch(47.8% 0.13 150);
--color-success-muted: oklch(94.8% 0.055 150);
--color-warning: oklch(54.7% 0.13 65);
--color-warning-foreground: oklch(54.7% 0.13 65);
--color-warning-muted: oklch(96.3% 0.052 85);
--color-danger: #c62030;
--color-danger-foreground: #c62030;
--color-danger-muted: rgb(198 32 48 / 10%);
--color-expired: #5c5c58;
--color-expired-foreground: #4b4b47;
--color-expired-muted: #eeeeea;
--radius-sm: 0.125rem;
--radius-md: 0.25rem;
--radius-lg: 0.375rem;
--radius-xl: 0.5rem;
--radius-2xl: 0.75rem;
}
@custom-variant dark (&:where(.dark, .dark *));
.dark {
--color-background: #17191c;
--color-foreground: #f7f2e8;
--color-card: #1f2226;
--color-card-foreground: #f7f2e8;
--color-muted: #282b30;
--color-muted-foreground: #bdb8ad;
--color-accent: #2f2728;
--color-accent-foreground: #f7f2e8;
--color-primary: #f7f2e8;
--color-primary-foreground: #17191c;
--color-primary-hover: #fffdf8;
--color-primary-muted: rgb(247 242 232 / 14%);
--color-secondary: #282b30;
--color-secondary-foreground: #f7f2e8;
--color-border: #34373d;
--color-border-subtle: #282b30;
--color-input: #1f2226;
--color-ring: #f7f2e8;
--color-ring-muted: rgb(247 242 232 / 18%);
--shadow-card: 0 1px 2px rgb(0 0 0 / 22%);
--color-success: oklch(75% 0.12 150);
--color-success-foreground: oklch(82% 0.12 150);
--color-success-muted: oklch(32% 0.07 150);
--color-warning: oklch(82% 0.13 75);
--color-warning-foreground: oklch(86% 0.13 75);
--color-warning-muted: oklch(35% 0.075 75);
--color-danger: #f04a36;
--color-danger-foreground: #ff7a66;
--color-danger-muted: rgb(240 74 54 / 18%);
--color-expired: #bdb8ad;
--color-expired-foreground: #d6d0c4;
--color-expired-muted: #282b30;
}
@layer base {
* {
@apply border-border;
}
html {
@apply bg-background text-foreground;
font-family: var(--font-sans);
}
body {
@apply bg-background text-foreground antialiased;
letter-spacing: 0;
}
code {
font-family: var(--font-mono);
}
h1,
h2,
h3 {
@apply text-danger-foreground;
}
}
@layer components {
.btn {
@apply inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 py-2.5 text-sm font-medium transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50;
}
.btn-xs {
@apply px-2 py-1 text-xs;
}
.btn-sm {
@apply px-3 py-2 text-sm;
}
.btn-md {
@apply px-4 py-2.5 text-sm;
}
.btn-lg {
@apply px-5 py-3 text-base;
}
.btn-primary {
@apply bg-primary text-primary-foreground hover:bg-primary-hover;
}
.btn-secondary {
@apply border border-border bg-card text-secondary-foreground hover:border-border hover:bg-accent hover:text-accent-foreground;
}
.btn-borderless {
@apply bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground;
}
/* .btn-underline {
@apply bg-transparent text-base uppercase leading-5 tracking-[0.05em] text-[#294ba5] hover:underline hover:text-[#26479c] hover:underline-offset-4 hover:decoration-4 font-semibold;
} */
.section-header-primary {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-primary;
}
.section-header-subtle {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground;
}
.badge {
@apply rounded-full px-2.5 py-1 text-xs font-medium;
}
.badge-success {
@apply rounded-full bg-success-muted px-2.5 py-1 text-xs font-medium text-success-foreground;
}
.badge-warning {
@apply rounded-full bg-warning-muted px-2.5 py-1 text-xs font-medium text-warning-foreground;
}
.badge-danger {
@apply rounded-full bg-danger-muted px-2.5 py-1 text-xs font-medium text-danger-foreground;
}
.badge-expired {
@apply rounded-full bg-expired-muted px-2.5 py-1 text-xs font-medium text-expired-foreground;
}
.card {
@apply rounded-lg border border-border bg-card text-card-foreground;
box-shadow: var(--shadow-card);
}
.card-header {
@apply border-b border-border px-4 py-3;
}
.card-header-label {
@apply text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground;
}
.card-header-title {
@apply mt-1 text-base font-semibold text-card-foreground;
}
.card-body {
@apply px-4 py-4;
}
.input-mono {
@apply rounded-md border border-border bg-input px-3 py-2 font-mono text-[13px] leading-5 text-foreground transition placeholder:text-muted-foreground focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring-muted;
}
.input-error {
@apply text-sm font-medium text-danger-foreground;
}
}
@layer utilities {
.firebreak-text {
@apply font-black tracking-tight normal-case;
font-family: var(--font-inter), sans-serif;
/* Use 900 for Black, or 800 for Extra Bold */
/* Tightens the spacing like the logo */
}
}