feat: configure design system tokens in Tailwind v4 (#8) - #51
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Next.js frontend’s typography and Tailwind v4 token setup to align the UI with the Material Design 3 / PRD §12.1 design system (colors, elevations, radii, and fonts), while also refreshing app metadata.
Changes:
- Replaced default Geist fonts with Roboto + Roboto Mono via
next/font/google, and updated page metadata. - Added MD3-aligned design tokens (colors, shadows/elevation tiers, radii, typography variables) in
globals.cssusing Tailwind v4’s@theme. - Imported Material Symbols Outlined via a Google Fonts stylesheet
@import.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| frontend/app/layout.tsx | Switches to Roboto/Roboto Mono via Next.js font optimizer; updates document metadata and font CSS variable wiring. |
| frontend/app/globals.css | Introduces MD3 token variables and Tailwind v4 theme tokens; imports Material Symbols stylesheet; updates base body styles. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+57
to
+61
| --shadow-tier-0: none; | ||
| --shadow-tier-1: var(--shadow-tier-1); | ||
| --shadow-tier-2: var(--shadow-tier-2); | ||
| --shadow-tier-3: var(--shadow-tier-3); | ||
| --shadow-tier-4: var(--shadow-tier-4); |
Comment on lines
+64
to
+68
| --radius-xs: var(--radius-xs); | ||
| --radius-sm: var(--radius-sm); | ||
| --radius-md: var(--radius-md); | ||
| --radius-lg: var(--radius-lg); | ||
| --radius-full: var(--radius-full); |
| /* Spacing: Inherits the standard 8px grid. Under Tailwind v4, standard spacing utilities like space-1 (4px), space-2 (8px), etc. map automatically. */ | ||
|
|
||
| /* Typography Fonts */ | ||
| --font-display: "Product Sans", "Google Sans", var(--font-roboto), sans-serif; |
Comment on lines
+1
to
2
| @import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"); | ||
| @import "tailwindcss"; |
Comment on lines
+72
to
+73
| background: var(--gs-neutral-100); | ||
| color: var(--gs-neutral-900); |
| --color-gs-neutral-100: var(--gs-neutral-100); | ||
| --color-gs-white: var(--gs-white); | ||
|
|
||
| /* Spacing: Inherits the standard 8px grid. Under Tailwind v4, standard spacing utilities like space-1 (4px), space-2 (8px), etc. map automatically. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the exact Material Design 3 design system tokens specified in PRD Section 12.1.
Closes #8
Changes:
gs-blue-600, etc.), MD3 elevations (shadow-tier-0toshadow-tier-4), and MD3 corner radii (rounded-xstorounded-lg) insidefrontend/app/globals.css.RobotoandRoboto_Monoinfrontend/app/layout.tsxusing the Next.js Font optimizer.Material Symbols Outlinedfont stylesheet at the absolute top of the bundle.