theme.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /*
  2. * briven — design token source of truth.
  3. *
  4. * Import once per app:
  5. * @import "@briven/config/tailwind/theme.css";
  6. *
  7. * Never hard-code hex values in components. Never override these tokens locally.
  8. * See BRAND.md §3.2 for rationale and contrast targets.
  9. */
  10. @import 'tailwindcss';
  11. @theme {
  12. /* ── Surfaces ───────────────────────────────────────────────── */
  13. --color-bg: #0a0b0d;
  14. --color-surface: #13151a;
  15. --color-surface-raised: #1b1e25;
  16. --color-surface-overlay: #232731;
  17. --color-surface-inverse: #f5f7fa;
  18. /* ── Borders ────────────────────────────────────────────────── */
  19. --color-border: #2a2e36;
  20. --color-border-subtle: #1e2128;
  21. --color-border-strong: #3a3f4a;
  22. --color-border-primary: #00e87a4d;
  23. /* ── Text ───────────────────────────────────────────────────── */
  24. --color-text: #f5f7fa;
  25. --color-text-muted: #9ba3af;
  26. --color-text-subtle: #6b7280;
  27. --color-text-inverse: #0a0b0d;
  28. --color-text-link: #00e87a;
  29. /* ── Brand / primary ────────────────────────────────────────── */
  30. --color-primary: #00e87a;
  31. --color-primary-hover: #1af08a;
  32. --color-primary-pressed: #00c968;
  33. --color-primary-subtle: #00e87a1a;
  34. --color-primary-ghost: #00e87a0d;
  35. /* ── Semantic ───────────────────────────────────────────────── */
  36. --color-success: #00e87a;
  37. --color-warning: #ffb020;
  38. --color-error: #ff4757;
  39. --color-info: #5b9fff;
  40. /* ── Code & logs ────────────────────────────────────────────── */
  41. --color-code-bg: #0f1115;
  42. --color-code-text: #e6edf3;
  43. --color-code-comment: #6b7280;
  44. --color-code-keyword: #ff7a9f;
  45. --color-code-string: #9dffa8;
  46. --color-code-number: #ffb86b;
  47. --color-code-fn: #5b9fff;
  48. /* ── Shadows ────────────────────────────────────────────────── */
  49. --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  50. --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.4);
  51. --shadow-lg: 0 12px 32px -8px rgb(0 0 0 / 0.5);
  52. --shadow-glow: 0 0 0 1px #00e87a33, 0 0 24px 0 #00e87a1a;
  53. /* ── Radius ─────────────────────────────────────────────────── */
  54. --radius-sm: 6px;
  55. --radius-md: 10px;
  56. --radius-lg: 14px;
  57. --radius-xl: 20px;
  58. --radius-full: 9999px;
  59. /* ── Typography ─────────────────────────────────────────────── */
  60. --font-sans: 'Geist', system-ui, sans-serif;
  61. --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  62. --text-display-1: 4.5rem;
  63. --text-display-2: 3.5rem;
  64. --text-display-3: 2.75rem;
  65. --text-h1: 2rem;
  66. --text-h2: 1.5rem;
  67. --text-h3: 1.25rem;
  68. --text-body: 1rem;
  69. --text-small: 0.875rem;
  70. --text-xs: 0.75rem;
  71. /* ── Motion ─────────────────────────────────────────────────── */
  72. --ease-briven: cubic-bezier(0.16, 1, 0.3, 1);
  73. --duration-fast: 150ms;
  74. --duration-page: 220ms;
  75. }
  76. /* Dark-theme only. No @media (prefers-color-scheme: light) override.
  77. If a third-party embed needs a neutral surface, use surface-inverse deliberately. */
  78. html {
  79. color-scheme: dark;
  80. background-color: var(--color-bg);
  81. color: var(--color-text);
  82. }
  83. body {
  84. font-family: var(--font-sans);
  85. font-feature-settings: 'ss01', 'cv11';
  86. -webkit-font-smoothing: antialiased;
  87. -moz-osx-font-smoothing: grayscale;
  88. }
  89. ::selection {
  90. background-color: var(--color-primary-subtle);
  91. color: var(--color-text);
  92. }
  93. *:focus-visible {
  94. outline: 2px solid var(--color-primary);
  95. outline-offset: 2px;
  96. border-radius: var(--radius-sm);
  97. }
  98. /*
  99. * Tailwind v4 no longer ships the default `cursor: pointer` on buttons.
  100. * Re-add it platform-wide so every clickable surface (buttons, anchors,
  101. * aria role=button) signals affordance. Disabled elements opt out.
  102. */
  103. button:not(:disabled),
  104. a[href],
  105. [role='button']:not([aria-disabled='true']),
  106. summary,
  107. label[for],
  108. select:not(:disabled),
  109. input[type='submit']:not(:disabled),
  110. input[type='button']:not(:disabled),
  111. input[type='reset']:not(:disabled),
  112. input[type='checkbox']:not(:disabled),
  113. input[type='radio']:not(:disabled) {
  114. cursor: pointer;
  115. }
  116. button:disabled,
  117. [role='button'][aria-disabled='true'] {
  118. cursor: not-allowed;
  119. }
  120. @media (prefers-reduced-motion: reduce) {
  121. *,
  122. *::before,
  123. *::after {
  124. animation-duration: 0.01ms !important;
  125. animation-iteration-count: 1 !important;
  126. transition-duration: 0.01ms !important;
  127. scroll-behavior: auto !important;
  128. }
  129. }