Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 47 additions & 53 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,58 @@
/* Applies dark: styles when element is .dark or inside .dark */
@custom-variant dark (&:where(.dark, .dark *));

@theme inline {
/* Register theme tokens with Tailwind so it generates utilities (bg-*, text-*, etc.) */
/* E.g. --color-background → bg-background, text-background, border-background, etc. */
/* "inline" (v4) means values are embedded here, not in a separate CSS layer */
--font-display: var(--font-montserrat), Arial, sans-serif;
--font-serif: var(--font-lora), Georgia, serif;
--font-mono: var(--font-jetbrains-mono), ui-monospace, monospace;

--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);

--color-background: var(--background);
--color-foreground: var(--foreground);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);
--color-ring: var(--ring);
--color-input: var(--input);
--color-border: var(--border);
--color-destructive: var(--destructive);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card);
}

:root {
/* Creates CSS variables available to all elements (no utility generation) */
--radius: 0.625rem;

--background: oklch(1 0 0);
--foreground: oklch(0.129 0.042 264.695);

--card: oklch(1 0 0);
--card-foreground: oklch(0.129 0.042 264.695);
--popover: oklch(1 0 0);
Expand All @@ -26,14 +71,12 @@
--border: oklch(0.929 0.013 255.508);
--input: oklch(0.929 0.013 255.508);
--ring: oklch(0.704 0.04 256.788);

--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--sidebar: oklch(0.984 0.003 247.858);

--sidebar-foreground: oklch(0.129 0.042 264.695);
--sidebar-primary: oklch(0.208 0.042 265.755);
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
Expand Down Expand Up @@ -78,55 +121,6 @@
--sidebar-ring: oklch(0.551 0.027 264.364);
}

@theme inline {
/* Maps root and .dark variables to Tailwind utility classes */
/* E.g. --color-background → bg-background, text-background, border-background, etc. */
/* The keyword "inline" (v4) means "define theme values directly in this CSS file" */
--color-background: var(--background);
--color-foreground: var(--foreground);

--font-display: var(--font-montserrat), Arial, sans-serif;
--font-serif: var(--font-lora), Georgia, serif;
--font-mono: var(--font-jetbrains-mono), "Courier New", monospace;

--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);

--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);

--color-ring: var(--ring);
--color-input: var(--input);
--color-border: var(--border);
--color-destructive: var(--destructive);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card);

--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
}

@layer base {
/* Applies styles to actual elements (unlike :root/.dark which only store variables) */
/* Low specificity - can be overridden by components and utilities */
Expand All @@ -136,7 +130,7 @@
@apply border-border outline-ring/50;
}
body {
/* Page background and text color (text color inherited) */
/* Page background and text color */
@apply bg-background text-foreground;
}

Expand Down
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Analytics } from "@vercel/analytics/next";
import { SpeedInsights } from "@vercel/speed-insights/next";
import type { Metadata } from "next";
import "./globals.css";
import "@/app/globals.css";
import { jetbrainsMono, lora, montserrat } from "@/app/fonts";
import { ThemeProvider } from "@/components/theme-provider";

Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down
5 changes: 4 additions & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
reactCompiler: true,

// Enables "use cache" directive, cacheLife(), cacheTag(), and Partial Prerendering.
// Routes are dynamic by default; use "use cache" to opt into caching.
cacheComponents: true,
};

export default nextConfig;
Loading
Loading