Files
hatchet/frontend/docs/styles/global.css
T
abelanger5 4d95b1c80c docs: new blog post (#1728)
* docs: new blog post

* readability

* subscribe form

* drop reo

* linting

* resolve feedback

---------

Co-authored-by: gabriel ruttner <gabriel.ruttner@gmail.com>
2025-05-15 17:00:07 -04:00

246 lines
4.9 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
/* ========================= */
/* Root Variables & Theming */
/* ========================= */
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 0 0% 3.9%;
--card: 0 0% 100%;
--card-foreground: 0 0% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 0 0% 3.9%;
--primary: 0 0% 9%;
--primary-foreground: 0 0% 98%;
--secondary: 0 0% 96.1%;
--secondary-foreground: 0 0% 9%;
--muted: 0 0% 96.1%;
--muted-foreground: 0 0% 45.1%;
--accent: 0 0% 96.1%;
--accent-foreground: 0 0% 9%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 0 0% 89.8%;
--input: 0 0% 89.8%;
--ring: 0 0% 3.9%;
/* Chart Colors */
--chart-1: 221.2 83.2% 53.3%;
--chart-2: 212 95% 68%;
--chart-3: 216 92% 60%;
--chart-4: 210 98% 78%;
--chart-5: 212 97% 87%;
--radius: 0.5rem;
}
.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;
--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;
--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;
--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--ring: 212.7 26.8% 83.9%;
/* Dark Mode Chart Colors */
--chart-1: 220 70% 50%;
--chart-2: 160 60% 45%;
--chart-3: 30 80% 55%;
--chart-4: 280 65% 60%;
--chart-5: 340 75% 55%;
}
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
height: 100vh;
}
}
/* ========================= */
/* Custom UI Components */
/* ========================= */
.step-run-card {
--transition: 0.25s;
--spark: 3s;
display: grid;
border-radius: 10px;
position: relative;
overflow: hidden;
box-shadow: 0 1000px 0 0 hsl(217.2 32.6% 17.5%) inset;
transition:
box-shadow var(--transition),
background var(--transition),
transform var(--transition);
}
.step-run-card.active .step-run-backdrop {
background: var(--background);
}
.step-run-card.active {
transform: scale(1.05);
}
.step-run-backdrop {
position: absolute;
inset: 1px;
background: var(--background);
border-radius: 10px;
transition:
background var(--transition),
opacity var(--transition);
}
/* ========================= */
/* Animation Effects */
/* ========================= */
.spark {
position: absolute;
inset: 0;
border-radius: 10px;
rotate: 0deg;
overflow: hidden;
mask: linear-gradient(white, transparent 50%);
animation: flip calc(var(--spark) * 2) infinite steps(2, end);
}
@keyframes flip {
to {
rotate: 360deg;
}
}
@keyframes rotate {
to {
transform: rotate(90deg);
}
}
/* ========================= */
/* Dark Mode Fixes (Nextra) */
/* ========================= */
html {
background-color: hsl(var(--background));
}
body {
background-color: hsl(var(--background));
color: hsl(var(--foreground));
}
html.dark main,
html.dark body,
html.dark .nx-fixed,
html.dark ._fixed,
html.dark .dark\:nx-bg-dark,
html.dark .dark\:_bg-dark,
html.dark .nx-bg-white,
html.dark ._bg-white,
html.dark div.nx-sticky.nx-bottom-0,
html.dark div._sticky._bottom-0,
html.dark div.nextra-nav-container {
background-color: var(--background) !important;
}
html.dark .nx-text-gray-800,
html.dark ._text-gray-800 {
color: #f8fafc !important;
}
html.dark .nx-border-gray-200,
html.dark ._border-gray-200,
html.dark .nx-border,
html.dark ._border {
border-color: #1e293b !important;
}
/* ========================= */
/* Code Block Styling */
/* ========================= */
.shiki {
padding: 15px !important;
border-radius: 10px !important;
background-color: #ccc;
border-radius: 0.375rem; /* rounded-md */
font-size: 0.875rem;
border: 1px solid #333;
}
html.dark .nextra-code-block pre,
.dark .shiki {
background-color: transparent !important;
}
pre.shiki {
overflow-x: auto;
}
/* High contrast mode */
.contrast-more .shiki {
filter: contrast(1.5);
}
/* ========================= */
/* Miscellaneous Fixes */
/* ========================= */
.nextra-steps h3::before {
line-height: 25px;
}
.dark .nextra-breadcrumb a,
.dark .nextra-breadcrumb a:visited,
.dark .nextra-breadcrumb a:hover,
.dark .nextra-breadcrumb a:active {
background: none !important;
-webkit-text-fill-color: var(--ash-gray) !important;
}
.nextra-nav-container-blur {
background-color: var(--background) !important;
}
nav {
background-color: var(--background) !important;
}
.dark .nx-sticky,
.dark ._sticky {
box-shadow: none !important;
}