mattrguerra/cortexmainPrivate on GitHub, published here in full

tokens.css

Language CSS3.7 KB110 lines

src/styles/tokens.css

  1. /* Color and surface tokens. The resolved theme is on <html data-theme>. */
  2. :root {
  3. --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', sans-serif;
  4. --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  5. --radius-sm: 8px;
  6. --radius: 12px;
  7. --radius-lg: 16px;
  8. --blur: 22px;
  9. --saturate: 1.6;
  10. --sidebar: 268px;
  11. --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  12. }
  13. :root[data-theme='light'] {
  14. color-scheme: light;
  15. --backdrop:
  16. radial-gradient(1200px 800px at 12% 8%, #e9e3ff 0%, transparent 60%),
  17. radial-gradient(900px 700px at 92% 18%, #d4f3ec 0%, transparent 55%),
  18. radial-gradient(1000px 900px at 60% 110%, #f6e6f3 0%, transparent 60%), #f3f1f8;
  19. --glass: rgba(255, 255, 255, 0.62);
  20. --glass-strong: rgba(255, 255, 255, 0.97);
  21. --glass-tint: rgba(255, 255, 255, 0.34);
  22. --glass-border: rgba(255, 255, 255, 0.7);
  23. --hairline: rgba(38, 30, 72, 0.1);
  24. --text-1: #1d1a2c;
  25. --text-2: #4d4764;
  26. --text-3: #6a6482;
  27. --accent: #5a3fd1;
  28. --accent-soft: rgba(90, 63, 209, 0.12);
  29. --accent-text: #ffffff;
  30. --teal: #0b7d72;
  31. --user-bubble: rgba(90, 63, 209, 0.1);
  32. --code-bg: rgba(29, 26, 44, 0.05);
  33. --warn: #9a5b00;
  34. --warn-bg: rgba(255, 196, 92, 0.22);
  35. --danger: #b3261e;
  36. --danger-bg: rgba(229, 72, 77, 0.14);
  37. --shadow: 0 1px 1px rgba(20, 14, 50, 0.04), 0 8px 28px rgba(20, 14, 50, 0.1);
  38. --shadow-pop: 0 2px 6px rgba(20, 14, 50, 0.08), 0 24px 60px rgba(20, 14, 50, 0.18);
  39. --focus: 0 0 0 3px rgba(90, 63, 209, 0.35);
  40. }
  41. :root[data-theme='dark'] {
  42. color-scheme: dark;
  43. --backdrop:
  44. radial-gradient(1200px 800px at 12% 8%, #2a2256 0%, transparent 60%),
  45. radial-gradient(900px 700px at 92% 18%, #0d3b39 0%, transparent 55%),
  46. radial-gradient(1000px 900px at 60% 110%, #3a1d3f 0%, transparent 60%), #121019;
  47. --glass: rgba(28, 25, 40, 0.58);
  48. --glass-strong: rgba(34, 31, 48, 0.97);
  49. --glass-tint: rgba(40, 36, 58, 0.34);
  50. --glass-border: rgba(255, 255, 255, 0.09);
  51. --hairline: rgba(255, 255, 255, 0.08);
  52. --text-1: #f1eefb;
  53. --text-2: #c3bdd8;
  54. --text-3: #a39cbb;
  55. --accent: #a894ff;
  56. --accent-soft: rgba(168, 148, 255, 0.16);
  57. --accent-text: #15122a;
  58. --teal: #6fd8c7;
  59. --user-bubble: rgba(168, 148, 255, 0.14);
  60. --code-bg: rgba(0, 0, 0, 0.28);
  61. --warn: #ffcf7a;
  62. --warn-bg: rgba(255, 196, 92, 0.14);
  63. --danger: #ff9a93;
  64. --danger-bg: rgba(229, 72, 77, 0.18);
  65. --shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.35);
  66. --shadow-pop: 0 2px 8px rgba(0, 0, 0, 0.3), 0 30px 70px rgba(0, 0, 0, 0.5);
  67. --focus: 0 0 0 3px rgba(168, 148, 255, 0.45);
  68. }
  69. /* Under native vibrancy the window material is the frost; panels only tint it.
  70. --tint (0 to 1, from Settings) scales how strongly. */
  71. :root[data-vibrancy='native'] {
  72. --backdrop: transparent;
  73. }
  74. :root[data-vibrancy='native'][data-theme='light'] {
  75. --glass: rgba(255, 255, 255, calc(0.4 * var(--tint, 1)));
  76. --glass-tint: rgba(255, 255, 255, calc(0.18 * var(--tint, 1)));
  77. }
  78. :root[data-vibrancy='native'][data-theme='dark'] {
  79. --glass: rgba(20, 18, 30, calc(0.34 * var(--tint, 1)));
  80. --glass-tint: rgba(20, 18, 30, calc(0.16 * var(--tint, 1)));
  81. }
  82. /* Reduce transparency: opaque surfaces, no blur. Follows the OS or the in-app switch. */
  83. :root[data-reduce-transparency='true'][data-theme='light'] {
  84. --backdrop: #f3f1f8;
  85. --glass: #ffffff;
  86. --glass-strong: #ffffff;
  87. --glass-tint: #f7f6fb;
  88. --glass-border: #e3dfee;
  89. }
  90. :root[data-reduce-transparency='true'][data-theme='dark'] {
  91. --backdrop: #121019;
  92. --glass: #1d1a2a;
  93. --glass-strong: #242134;
  94. --glass-tint: #1a1826;
  95. --glass-border: #2e2a40;
  96. }
  97. :root[data-reduce-transparency='true'] {
  98. --blur: 0px;
  99. --saturate: 1;
  100. }
  101. @media (prefers-reduced-transparency: reduce) {
  102. :root {
  103. --blur: 0px;
  104. --saturate: 1;
  105. }
  106. }