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
37 changes: 23 additions & 14 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
@import "tailwindcss";

/* Stores the color values we need */
:root {
--background: #ffffff;
--foreground: #171717;
--text-primary: #EAEAEA;
--text-secondary: #ABABAB;
--gold: #FFD700;
--page-background: #080808;
--card-background: #0F0018;
--card-border: #3A2152;
--accent: #842BC4;
--accent-light: #C47BFF;

}

/* Will generate utility classes w Tailwind*/
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-text-primary: var(--text-primary);
--color-text-secondary: var(--text-secondary);
--color-gold: var(--gold);
--color-page-background: var(--page-background);
--color-card-background: var(--card-background);
--color-card-border: var(--card-border);
--color-accent: var(--accent);
--color-accent-light: var(--accent-light);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}

/* Applies the defaults globally */
body {
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
background: var(--color-page-background);
color: var(--color-text-primary);
font-family: var(--font-sans);
}
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function Home() {
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<main className="flex min-h-screen flex-col items-center justify-between p-24 text-text-primary">
Graphics Programming Knights
</main>
);
Expand Down
Loading