diff --git a/src/app/styles/app.css b/src/app/styles/app.css index f312953..e908072 100644 --- a/src/app/styles/app.css +++ b/src/app/styles/app.css @@ -2,117 +2,261 @@ @import "tw-animate-css"; -@custom-variant dark (&:is(.dark *)); - :root { - --radius: 0.625rem; - --background: oklch(1 0 0); - --foreground: oklch(0.141 0.005 285.823); - --card: oklch(1 0 0); - --card-foreground: oklch(0.141 0.005 285.823); + /* Base font size */ + --font-size: 16px; + + /* GLYPHDIFF Swiss Design System */ + /* Primary Colors */ + --swiss-beige: #f3f0e9; + --swiss-red: #ff3b30; + --swiss-black: #1a1a1a; + --swiss-white: #ffffff; + + /* Neutral Grays */ + --neutral-50: #fafafa; + --neutral-100: #f5f5f5; + --neutral-200: #e5e5e5; + --neutral-300: #d4d4d4; + --neutral-400: #a3a3a3; + --neutral-500: #737373; + --neutral-600: #525252; + --neutral-700: #404040; + --neutral-800: #262626; + --neutral-900: #171717; + + /* Dark Mode Backgrounds */ + --dark-bg: #121212; + --dark-card: #1e1e1e; + --dark-border: rgba(255, 255, 255, 0.1); + + /* Light Mode Backgrounds */ + --light-bg: #f3f0e9; + --light-card: #ffffff; + --light-border: rgba(0, 0, 0, 0.05); + + /* Semantic Colors */ + --color-brand: var(--swiss-red); + --color-surface: var(--swiss-beige); + --color-paper: var(--swiss-white); + + /* Base Tailwind Colors (for compatibility) */ + --background: #ffffff; + --foreground: oklch(0.145 0 0); + --card: #ffffff; + --card-foreground: oklch(0.145 0 0); --popover: oklch(1 0 0); - --popover-foreground: oklch(0.141 0.005 285.823); - --primary: oklch(0.21 0.006 285.885); - --primary-foreground: oklch(0.985 0 0); - --secondary: oklch(0.967 0.001 286.375); - --secondary-foreground: oklch(0.21 0.006 285.885); - --muted: oklch(0.967 0.001 286.375); - --muted-foreground: oklch(0.552 0.016 285.938); - --accent: oklch(0.967 0.001 286.375); - --accent-foreground: oklch(0.21 0.006 285.885); - --destructive: oklch(0.577 0.245 27.325); - --border: oklch(0.92 0.004 286.32); - --input: oklch(0.92 0.004 286.32); - --ring: oklch(0.705 0.015 286.067); + --popover-foreground: oklch(0.145 0 0); + --primary: #030213; + --primary-foreground: oklch(1 0 0); + --secondary: oklch(0.95 0.0058 264.53); + --secondary-foreground: #030213; + --muted: #ececf0; + --muted-foreground: #717182; + --accent: #e9ebef; + --accent-foreground: #030213; + --destructive: #d4183d; + --destructive-foreground: #ffffff; + --border: rgba(0, 0, 0, 0.1); + --input: transparent; + --input-background: #f3f3f5; + --switch-background: #cbced4; + --font-weight-medium: 500; + --font-weight-normal: 400; + --ring: oklch(0.708 0 0); --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); + --radius: 0rem; --sidebar: oklch(0.985 0 0); - --sidebar-foreground: oklch(0.141 0.005 285.823); - --sidebar-primary: oklch(0.21 0.006 285.885); + --sidebar-foreground: oklch(0.145 0 0); + --sidebar-primary: #030213; --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.967 0.001 286.375); - --sidebar-accent-foreground: oklch(0.21 0.006 285.885); - --sidebar-border: oklch(0.92 0.004 286.32); - --sidebar-ring: oklch(0.705 0.015 286.067); + --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); - --background-20: oklch(1 0 0 / 20%); - --background-40: oklch(1 0 0 / 40%); - --background-60: oklch(1 0 0 / 60%); - --background-80: oklch(1 0 0 / 80%); - --background-95: oklch(1 0 0 / 95%); - --background-subtle: oklch(0.98 0 0); - --background-muted: oklch(0.97 0.002 286.375); + /* Spacing Scale (rem-based) */ + --space-xs: 0.25rem; + --space-sm: 0.5rem; + --space-md: 0.75rem; + --space-lg: 1rem; + --space-xl: 1.5rem; + --space-2xl: 2rem; + --space-3xl: 3rem; + --space-4xl: 4rem; - --text-muted: oklch(0.552 0.016 285.938); - --text-subtle: oklch(0.705 0.015 286.067); - --text-soft: oklch(0.5 0.01 286); + /* Typography Scale */ + --text-2xs: 0.625rem; + --text-xs: 0.75rem; + --text-sm: 0.875rem; + --text-base: 1rem; + --text-lg: 1.125rem; + --text-xl: 1.25rem; + --text-2xl: 1.5rem; + --text-3xl: 1.875rem; + --text-4xl: 2.25rem; + --text-5xl: 3rem; + --text-6xl: 3.75rem; + --text-7xl: 4.5rem; + --text-8xl: 6rem; - --border-subtle: oklch(0.95 0.003 286.32); - --border-muted: oklch(0.92 0.004 286.32); - --border-soft: oklch(0.88 0.005 286.32); - - --gradient-from: oklch(0.98 0.002 286.32); - --gradient-via: oklch(1 0 0); - --gradient-to: oklch(0.98 0.002 286.32); - - --font-mono: 'Major Mono Display'; + /* Comparison Font Sizes */ + --comparison-font-mobile: 3rem; + --comparison-font-tablet: 4.5rem; + --comparison-font-desktop: 6rem; } .dark { - --background: oklch(0.141 0.005 285.823); + --color-surface: var(--dark-bg); + --color-paper: var(--dark-card); + + --background: oklch(0.145 0 0); --foreground: oklch(0.985 0 0); - --card: oklch(0.21 0.006 285.885); + --card: oklch(0.145 0 0); --card-foreground: oklch(0.985 0 0); - --popover: oklch(0.21 0.006 285.885); + --popover: oklch(0.145 0 0); --popover-foreground: oklch(0.985 0 0); - --primary: oklch(0.92 0.004 286.32); - --primary-foreground: oklch(0.21 0.006 285.885); - --secondary: oklch(0.274 0.006 286.033); + --primary: oklch(0.985 0 0); + --primary-foreground: oklch(0.205 0 0); + --secondary: oklch(0.269 0 0); --secondary-foreground: oklch(0.985 0 0); - --muted: oklch(0.274 0.006 286.033); - --muted-foreground: oklch(0.705 0.015 286.067); - --accent: oklch(0.274 0.006 286.033); + --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.552 0.016 285.938); + --destructive: oklch(0.396 0.141 25.723); + --destructive-foreground: oklch(0.637 0.237 25.331); + --border: oklch(0.269 0 0); + --input: oklch(0.269 0 0); + --ring: oklch(0.439 0 0); + --font-weight-medium: 500; + --font-weight-normal: 400; --chart-1: oklch(0.488 0.243 264.376); --chart-2: oklch(0.696 0.17 162.48); --chart-3: oklch(0.769 0.188 70.08); --chart-4: oklch(0.627 0.265 303.9); --chart-5: oklch(0.645 0.246 16.439); - --sidebar: oklch(0.21 0.006 285.885); + --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.274 0.006 286.033); + --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.552 0.016 285.938); + --sidebar-border: oklch(0.269 0 0); + --sidebar-ring: oklch(0.439 0 0); +} - --background-20: oklch(0.21 0.006 285.885 / 20%); - --background-40: oklch(0.21 0.006 285.885 / 40%); - --background-60: oklch(0.21 0.006 285.885 / 60%); - --background-80: oklch(0.21 0.006 285.885 / 80%); - --background-95: oklch(0.21 0.006 285.885 / 95%); - --background-subtle: oklch(0.18 0.005 285.823); - --background-muted: oklch(0.274 0.006 286.033); +@theme { + --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-primary: var(--primary); + --color-primary-foreground: var(--primary-foreground); + --color-secondary: var(--secondary); + --color-secondary-foreground: var(--secondary-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-destructive-foreground: var(--destructive-foreground); + --color-border: var(--border); + --color-input: var(--input); + --color-input-background: var(--input-background); + --color-switch-background: var(--switch-background); + --color-ring: var(--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-sm: 0rem; + --radius-md: 0rem; + --radius-lg: 0rem; + --radius-xl: 0rem; + --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); - --text-muted: oklch(0.705 0.015 286.067); - --text-subtle: oklch(0.552 0.016 285.938); - --text-soft: oklch(0.8 0.01 286); + --color-swiss-beige: var(--swiss-beige); + --color-swiss-red: var(--swiss-red); + --color-swiss-black: var(--swiss-black); + --color-swiss-white: var(--swiss-white); + --color-brand: var(--color-brand); + --color-surface: var(--color-surface); + --color-paper: var(--color-paper); + --color-dark-bg: var(--dark-bg); + --color-dark-card: var(--dark-card); +} - --border-subtle: oklch(1 0 0 / 8%); - --border-muted: oklch(1 0 0 / 10%); - --border-soft: oklch(1 0 0 / 15%); +@layer base { + * { + @apply border-border outline-ring/50; + } - --gradient-from: oklch(0.25 0.005 285.885); - --gradient-via: oklch(0.21 0.006 285.885); - --gradient-to: oklch(0.25 0.005 285.885); + body { + @apply bg-background text-foreground; + font-family: "Karla", system-ui, -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif; + font-optical-sizing: auto; + } + + html { + font-size: var(--font-size); + } + + h1 { + font-size: var(--text-2xl); + font-weight: var(--font-weight-medium); + line-height: 1.5; + } + + h2 { + font-size: var(--text-xl); + font-weight: var(--font-weight-medium); + line-height: 1.5; + } + + h3 { + font-size: var(--text-lg); + font-weight: var(--font-weight-medium); + line-height: 1.5; + } + + h4 { + font-size: var(--text-base); + font-weight: var(--font-weight-medium); + line-height: 1.5; + } + + label { + font-size: var(--text-base); + font-weight: var(--font-weight-medium); + line-height: 1.5; + } + + button { + font-size: var(--text-base); + font-weight: var(--font-weight-medium); + line-height: 1.5; + } + + input { + font-size: var(--text-base); + font-weight: var(--font-weight-normal); + line-height: 1.5; + } } @theme inline { @@ -171,17 +315,6 @@ --font-sans: 'Karla', system-ui, -apple-system, 'Segoe UI', Inter, Roboto, Arial, sans-serif; } -@layer base { - * { - @apply border-border outline-ring/50; - } - body { - @apply bg-background text-foreground; - font-family: "Karla", system-ui, -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif; - font-optical-sizing: auto; - } -} - /* Global utility - useful across your app */ @media (prefers-reduced-motion: reduce) { * {