Globals CSS
Add elevated shadows, radius scale, and theme tokens to your project.
diarmuradi blocks use custom elevated shadow utilities and a radius scale not included in default shadcn setups. Add these to your globals.css for full visual fidelity.
Elevated shadows
Custom tokens that stack progressively deeper blur layers, a 1px border ring, and an inset highlight. Dark mode uses black with a lit-edge border via color-mix.
Seven sizes from shadow-elevated-2xs to shadow-elevated-2xl. Most blocks use shadow-elevated-lg.
Add these inside your @theme inline block:
@theme inline {
--shadow-elevated-2xs: var(--elevated-2xs);
--shadow-elevated-xs: var(--elevated-xs);
--shadow-elevated-sm: var(--elevated-sm);
--shadow-elevated-md: var(--elevated-md);
--shadow-elevated-lg: var(--elevated-lg);
--shadow-elevated-xl: var(--elevated-xl);
--shadow-elevated-2xl: var(--elevated-2xl);
}Light
:root {
--elevated-2xs:
0 0 0 1px rgb(41 41 41 / 0.04), inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-xs:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 0 0 1px rgb(41 41 41 / 0.04), inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-sm:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 6px 6px -3px rgb(41 41 41 / 0.04), 0 0 0 1px rgb(41 41 41 / 0.04),
inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-md:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 6px 6px -3px rgb(41 41 41 / 0.04), 0 12px 12px -6px rgb(41 41 41 / 0.04),
0 0 0 1px rgb(41 41 41 / 0.04), inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-lg:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 6px 6px -3px rgb(41 41 41 / 0.04), 0 12px 12px -6px rgb(41 41 41 / 0.04),
0 24px 24px -12px rgb(41 41 41 / 0.04), 0 0 0 1px rgb(41 41 41 / 0.04),
inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-xl:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 6px 6px -3px rgb(41 41 41 / 0.04), 0 12px 12px -6px rgb(41 41 41 / 0.04),
0 24px 24px -12px rgb(41 41 41 / 0.04),
0 48px 48px -24px rgb(41 41 41 / 0.04), 0 0 0 1px rgb(41 41 41 / 0.04),
inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-2xl:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 6px 6px -3px rgb(41 41 41 / 0.04), 0 12px 12px -6px rgb(41 41 41 / 0.04),
0 24px 24px -12px rgb(41 41 41 / 0.04),
0 48px 48px -24px rgb(41 41 41 / 0.04),
0 96px 96px -48px rgb(41 41 41 / 0.04), 0 0 0 1px rgb(41 41 41 / 0.04),
inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
}Dark
Replace oklch(0.205 0 0) with your dark --card value if you use a different shade.
.dark {
--elevated-2xs:
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-xs:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-sm:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 6px 6px -3px rgb(0 0 0 / 0.04),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-md:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 6px 6px -3px rgb(0 0 0 / 0.04), 0 12px 12px -6px rgb(0 0 0 / 0.04),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-lg:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 6px 6px -3px rgb(0 0 0 / 0.04), 0 12px 12px -6px rgb(0 0 0 / 0.04),
0 24px 24px -12px rgb(0 0 0 / 0.04),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-xl:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 6px 6px -3px rgb(0 0 0 / 0.04), 0 12px 12px -6px rgb(0 0 0 / 0.04),
0 24px 24px -12px rgb(0 0 0 / 0.04), 0 48px 48px -24px rgb(0 0 0 / 0.04),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-2xl:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 6px 6px -3px rgb(0 0 0 / 0.04), 0 12px 12px -6px rgb(0 0 0 / 0.04),
0 24px 24px -12px rgb(0 0 0 / 0.04), 0 48px 48px -24px rgb(0 0 0 / 0.04),
0 96px 96px -48px rgb(0 0 0 / 0.04),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
}Full globals.css
Copy this into your project. Includes Tailwind v4, Geist fonts, neutral theme tokens, radius scale, elevated shadows, and base styles.
@import "tailwindcss";
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
@theme inline {
--font-sans: "Geist";
--font-mono: "Geist Mono";
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
/*
* Radius scale derived from --radius (0.625rem).
* For nested elements: inner_radius = outer_radius - padding
* 4xl > 3xl > 2xl > xl > lg : step 0.25rem (p-1)
* lg > md > sm : step 0.125rem (p-0.5)
*/
--radius-sm: calc(var(--radius) * 0.6);
--radius-md: calc(var(--radius) * 0.8);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) * 1.4);
--radius-2xl: calc(var(--radius) * 1.8);
--radius-3xl: calc(var(--radius) * 2.2);
--radius-4xl: calc(var(--radius) * 2.6);
--shadow-elevated-2xs: var(--elevated-2xs);
--shadow-elevated-xs: var(--elevated-xs);
--shadow-elevated-sm: var(--elevated-sm);
--shadow-elevated-md: var(--elevated-md);
--shadow-elevated-lg: var(--elevated-lg);
--shadow-elevated-xl: var(--elevated-xl);
--shadow-elevated-2xl: var(--elevated-2xl);
}
:root {
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
--chart-1: oklch(0.87 0 0);
--chart-2: oklch(0.556 0 0);
--chart-3: oklch(0.439 0 0);
--chart-4: oklch(0.371 0 0);
--chart-5: oklch(0.269 0 0);
--radius: 0.625rem;
--elevated-2xs:
0 0 0 1px rgb(41 41 41 / 0.04), inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-xs:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 0 0 1px rgb(41 41 41 / 0.04), inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-sm:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 6px 6px -3px rgb(41 41 41 / 0.04), 0 0 0 1px rgb(41 41 41 / 0.04),
inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-md:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 6px 6px -3px rgb(41 41 41 / 0.04), 0 12px 12px -6px rgb(41 41 41 / 0.04),
0 0 0 1px rgb(41 41 41 / 0.04), inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-lg:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 6px 6px -3px rgb(41 41 41 / 0.04), 0 12px 12px -6px rgb(41 41 41 / 0.04),
0 24px 24px -12px rgb(41 41 41 / 0.04), 0 0 0 1px rgb(41 41 41 / 0.04),
inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-xl:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 6px 6px -3px rgb(41 41 41 / 0.04), 0 12px 12px -6px rgb(41 41 41 / 0.04),
0 24px 24px -12px rgb(41 41 41 / 0.04),
0 48px 48px -24px rgb(41 41 41 / 0.04), 0 0 0 1px rgb(41 41 41 / 0.04),
inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
--elevated-2xl:
0 1px 1px 0.5px rgb(41 41 41 / 0.04), 0 3px 3px -1.5px rgb(41 41 41 / 0.02),
0 6px 6px -3px rgb(41 41 41 / 0.04), 0 12px 12px -6px rgb(41 41 41 / 0.04),
0 24px 24px -12px rgb(41 41 41 / 0.04),
0 48px 48px -24px rgb(41 41 41 / 0.04),
0 96px 96px -48px rgb(41 41 41 / 0.04), 0 0 0 1px rgb(41 41 41 / 0.04),
inset 0 -1px 1px -0.5px rgb(51 51 51 / 0.06);
}
.dark {
--primary: oklch(0.922 0 0);
--primary-foreground: oklch(0.205 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
--chart-1: oklch(0.87 0 0);
--chart-2: oklch(0.556 0 0);
--chart-3: oklch(0.439 0 0);
--chart-4: oklch(0.371 0 0);
--chart-5: oklch(0.269 0 0);
--elevated-2xs:
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-xs:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-sm:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 6px 6px -3px rgb(0 0 0 / 0.04),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-md:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 6px 6px -3px rgb(0 0 0 / 0.04), 0 12px 12px -6px rgb(0 0 0 / 0.04),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-lg:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 6px 6px -3px rgb(0 0 0 / 0.04), 0 12px 12px -6px rgb(0 0 0 / 0.04),
0 24px 24px -12px rgb(0 0 0 / 0.04),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-xl:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 6px 6px -3px rgb(0 0 0 / 0.04), 0 12px 12px -6px rgb(0 0 0 / 0.04),
0 24px 24px -12px rgb(0 0 0 / 0.04), 0 48px 48px -24px rgb(0 0 0 / 0.04),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
--elevated-2xl:
0 1px 1px 0.5px rgb(0 0 0 / 0.04), 0 3px 3px -1.5px rgb(0 0 0 / 0.02),
0 6px 6px -3px rgb(0 0 0 / 0.04), 0 12px 12px -6px rgb(0 0 0 / 0.04),
0 24px 24px -12px rgb(0 0 0 / 0.04), 0 48px 48px -24px rgb(0 0 0 / 0.04),
0 96px 96px -48px rgb(0 0 0 / 0.04),
0 0 0 1px color-mix(in oklch, oklch(0.205 0 0) 94%, white),
inset 0 -1px 1px -0.5px color-mix(in oklch, oklch(0.205 0 0) 95%, white);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
}