-
Notifications
You must be signed in to change notification settings - Fork 323
Design: App styling following blue Enterprise site tones #1074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5191e43
e52965f
2076b47
68f7673
b78d059
fe6ff0d
3a0c1f3
8a59367
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
| * License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
|
||
| @import '@fontsource-variable/dm-sans'; | ||
| @import 'tailwindcss'; | ||
|
|
||
| @plugin 'tailwindcss-animate'; | ||
|
|
@@ -10,45 +11,50 @@ | |
| @variant dark (&:where(.dark, .dark *)); | ||
|
|
||
| @theme { | ||
| --color-background: oklch(1 0 0); | ||
| --color-foreground: oklch(0.145 0 0); | ||
| --color-card: oklch(1 0 0); | ||
| --color-card-foreground: oklch(0.145 0 0); | ||
| --color-popover: oklch(1 0 0); | ||
| --color-popover-foreground: oklch(0.145 0 0); | ||
| --color-primary: #191919; | ||
| --font-sans: 'DM Sans Variable', system-ui, -apple-system, sans-serif; | ||
| --font-mono: 'DM Sans Variable', system-ui, -apple-system, sans-serif; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Convention — --font-mono now points at a proportional font in the main app Small thing that might have knock-on effects: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Convention — --font-mono is set to a proportional sans font Both |
||
| /* Enterprise Light Theme */ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Convention — Overriding --color-black remaps Tailwind's black utility app-wide Defining |
||
| --color-white: #ffffff; | ||
| --color-black: #101828; | ||
| --color-background: #f9fafb; | ||
| --color-foreground: #101828; | ||
| --color-card: #ffffff; | ||
| --color-card-foreground: #101828; | ||
| --color-popover: #ffffff; | ||
| --color-popover-foreground: #101828; | ||
| --color-primary: #142952; | ||
| --color-primary-foreground: #ffffff; | ||
| --color-secondary: #f7f7f8; | ||
| --color-secondary-foreground: #000000; | ||
| --color-tertiary: #808080; | ||
| --color-muted: oklch(0.97 0 0); | ||
| --color-muted-foreground: oklch(0.556 0 0); | ||
| --color-accent: oklch(0.97 0 0); | ||
| --color-accent-foreground: oklch(0.205 0 0); | ||
| --color-destructive: oklch(0.577 0.245 27.325); | ||
| --color-destructive-foreground: oklch(0.577 0.245 27.325); | ||
| --color-secondary: #eff1f4; | ||
| --color-secondary-foreground: #101828; | ||
| --color-tertiary: #667085; | ||
| --color-muted: #f2f4f7; | ||
| --color-muted-foreground: #667085; | ||
| --color-accent: #eff1f4; | ||
| --color-accent-foreground: #101828; | ||
| --color-destructive: #ff5f5f; | ||
| --color-destructive-foreground: #101828; | ||
| --color-success: oklch(0.627 0.17 149.214); | ||
| --color-success-foreground: oklch(0.985 0 0); | ||
| --color-warning: oklch(0.769 0.171 70.67); | ||
| --color-warning-foreground: oklch(0.205 0 0); | ||
| --color-border: oklch(0.922 0 0); | ||
| --color-input: oklch(0.922 0 0); | ||
| --color-ring: oklch(0.708 0 0); | ||
| --color-border: #eaecf0; | ||
| --color-input: #f2f4f7; | ||
| --color-ring: #142952; | ||
| --color-chart-1: oklch(0.646 0.222 41.116); | ||
| --color-chart-2: oklch(0.6 0.118 184.704); | ||
| --color-chart-3: oklch(0.398 0.07 227.392); | ||
| --color-chart-4: oklch(0.828 0.189 84.429); | ||
| --color-chart-5: oklch(0.769 0.188 70.08); | ||
| --radius: 0.625rem; | ||
| --color-sidebar: oklch(0.985 0 0); | ||
| --color-sidebar-foreground: oklch(0.145 0 0); | ||
| --color-sidebar-primary: oklch(0.205 0 0); | ||
| --color-sidebar-primary-foreground: oklch(0.985 0 0); | ||
| --color-sidebar-accent: oklch(0.97 0 0); | ||
| --color-sidebar-accent-foreground: oklch(0.205 0 0); | ||
| --color-sidebar-border: oklch(0.922 0 0); | ||
| --color-sidebar-ring: oklch(0.708 0 0); | ||
| --color-card-border: #dee8df; | ||
| --color-sidebar: #ffffff; | ||
| --color-sidebar-foreground: #101828; | ||
| --color-sidebar-primary: #142952; | ||
| --color-sidebar-primary-foreground: #ffffff; | ||
| --color-sidebar-accent: #eff1f4; | ||
| --color-sidebar-accent-foreground: #101828; | ||
| --color-sidebar-border: #eaecf0; | ||
| --color-sidebar-ring: #142952; | ||
| --color-card-border: #eaecf0; | ||
| } | ||
|
|
||
| /* =========================== | ||
|
|
@@ -125,42 +131,45 @@ | |
| } | ||
|
|
||
| .dark { | ||
| --color-background: oklch(0.145 0 0); | ||
| --color-foreground: oklch(0.985 0 0); | ||
| --color-card: oklch(0.145 0 0); | ||
| --color-card-foreground: oklch(0.985 0 0); | ||
| --color-popover: oklch(0.145 0 0); | ||
| --color-popover-foreground: oklch(0.985 0 0); | ||
| --color-primary: oklch(0.985 0 0); | ||
| --color-primary-foreground: oklch(0.205 0 0); | ||
| --color-secondary: oklch(0.269 0 0); | ||
| --color-secondary-foreground: oklch(0.985 0 0); | ||
| --color-muted: oklch(0.269 0 0); | ||
| --color-muted-foreground: oklch(0.708 0 0); | ||
| --color-accent: oklch(0.269 0 0); | ||
| --color-accent-foreground: oklch(0.985 0 0); | ||
| --color-destructive: oklch(0.396 0.141 25.723); | ||
| --color-destructive-foreground: oklch(0.637 0.237 25.331); | ||
| --color-background: #0f1117; | ||
| --color-foreground: #e8e8e8; | ||
| --color-card: #161b22; | ||
| --color-card-foreground: #e8e8e8; | ||
| --color-popover: #161b22; | ||
| --color-popover-foreground: #e8e8e8; | ||
| --color-primary: #58a6ff; | ||
| --color-primary-foreground: #0f1117; | ||
| --color-heading: #f5f5f5; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Convention — New --color-heading token is dark-only and unused; components hardcode the same hex This adds |
||
| --color-secondary: #21262d; | ||
| --color-secondary-foreground: #e8e8e8; | ||
| --color-tertiary: #8b949e; | ||
| --color-muted: #21262d; | ||
| --color-muted-foreground: #8b949e; | ||
| --color-accent: #21262d; | ||
| --color-accent-foreground: #e8e8e8; | ||
| --color-destructive: #ff5f5f; | ||
| --color-destructive-foreground: #0f1117; | ||
| --color-success: oklch(0.696 0.17 162.48); | ||
| --color-success-foreground: oklch(0.985 0 0); | ||
| --color-warning: oklch(0.828 0.189 84.429); | ||
| --color-warning-foreground: oklch(0.205 0 0); | ||
| --color-border: oklch(0.269 0 0); | ||
| --color-input: oklch(0.269 0 0); | ||
| --color-ring: oklch(0.439 0 0); | ||
| --color-border: #30363d; | ||
| --color-input: #0d1117; | ||
| --color-ring: #58a6ff; | ||
| --color-chart-1: oklch(0.488 0.243 264.376); | ||
| --color-chart-2: oklch(0.696 0.17 162.48); | ||
| --color-chart-3: oklch(0.769 0.188 70.08); | ||
| --color-chart-4: oklch(0.627 0.265 303.9); | ||
| --color-chart-5: oklch(0.645 0.246 16.439); | ||
| --color-sidebar: oklch(0.205 0 0); | ||
| --color-sidebar-foreground: oklch(0.985 0 0); | ||
| --color-sidebar-primary: oklch(0.488 0.243 264.376); | ||
| --color-sidebar-primary-foreground: oklch(0.985 0 0); | ||
| --color-sidebar-accent: oklch(0.269 0 0); | ||
| --color-sidebar-accent-foreground: oklch(0.985 0 0); | ||
| --color-sidebar-border: oklch(0.269 0 0); | ||
| --color-sidebar-ring: oklch(0.439 0 0); | ||
| --color-sidebar: #161b22; | ||
| --color-sidebar-foreground: #e8e8e8; | ||
| --color-sidebar-primary: #58a6ff; | ||
| --color-sidebar-primary-foreground: #0f1117; | ||
| --color-sidebar-accent: #21262d; | ||
| --color-sidebar-accent-foreground: #e8e8e8; | ||
| --color-sidebar-border: #30363d; | ||
| --color-sidebar-ring: #58a6ff; | ||
| --color-card-border: #30363d; | ||
| } | ||
|
|
||
| @keyframes accordion-down { | ||
|
|
@@ -214,9 +223,30 @@ | |
| border-color: var(--color-border); | ||
| outline-color: oklch(from var(--color-ring) l c h / 0.5); | ||
| } | ||
| html { | ||
| font-family: | ||
| 'DM Sans Variable', | ||
| system-ui, | ||
| -apple-system, | ||
| sans-serif; | ||
| } | ||
| body { | ||
| background-color: var(--color-background); | ||
| color: var(--color-foreground); | ||
| font-family: | ||
| 'DM Sans Variable', | ||
| system-ui, | ||
| -apple-system, | ||
| sans-serif; | ||
| letter-spacing: -0.03em; | ||
| } | ||
| h1, | ||
| h2, | ||
| h3, | ||
| h4, | ||
| h5, | ||
| h6 { | ||
| letter-spacing: -0.05em; | ||
| } | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Convention — --font-mono now points to a proportional font
I noticed
--font-monois being set to DM Sans, which is a proportional typeface. A fair number of spots in the app lean onfont-monoprecisely because they want monospacing — code snippets like/nameandlocalhost, MCP server config textareas, URLs, and thetext-snippetblock. Those will lose alignment and their code-y look. If the goal was just to unify the UI font, could we keep a real monospace stack for--font-mono(e.g.ui-monospace, SFMono-Regular, Menlo, monospace)?