tokens.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * 运营支撑系统主题:冷灰工作区 + 深青绿强调。
  3. * 业务页面只引用语义变量;颜色值集中在此文件维护。
  4. * .dark 预留给宿主主题切换,当前产品不增加主题开关。
  5. */
  6. :root {
  7. color-scheme: light;
  8. --radius: 0.75rem;
  9. --type-meta: 0.75rem;
  10. --type-support: 0.8125rem;
  11. --type-body: 0.875rem;
  12. --type-comfort: 0.9375rem;
  13. --type-section: 1rem;
  14. /* 中性层级:画布、容器、辅助区域、文本与控件边界。 */
  15. --background: #f5f7f8;
  16. --foreground: #1f2b32;
  17. --card: #ffffff;
  18. --card-foreground: var(--foreground);
  19. --popover: var(--card);
  20. --popover-foreground: var(--foreground);
  21. --surface-subtle: #f0f4f5;
  22. --secondary: #e9eef1;
  23. --secondary-foreground: #334c59;
  24. --muted: #edf1f3;
  25. --muted-foreground: #586b76;
  26. --text-secondary: #425863;
  27. --icon: #617783;
  28. --border: #d9e2e7;
  29. --border-subtle: #e8eef1;
  30. --border-hover: #7c969f;
  31. --input: #7b8e99;
  32. /* 品牌与交互:主操作、选中、价格及键盘焦点。 */
  33. --primary: #176b63;
  34. --primary-hover: #10564f;
  35. --primary-foreground: #ffffff;
  36. --primary-soft: #e8f3f1;
  37. --primary-soft-foreground: #195b54;
  38. --primary-border: #c5ded9;
  39. --accent: var(--primary-soft);
  40. --accent-foreground: var(--primary-soft-foreground);
  41. --ring: var(--primary);
  42. /* 状态色只表达状态,同时提供文字或图标。 */
  43. --success: #216444;
  44. --success-soft: #edf7f0;
  45. --success-border: #bddcc8;
  46. --warning: #835812;
  47. --warning-soft: #fff6e5;
  48. --warning-border: #e7d2a8;
  49. --info: #315e89;
  50. --info-soft: #edf3fa;
  51. --info-border: #cbdced;
  52. --destructive: #b03b3b;
  53. --destructive-hover: #922d2d;
  54. --destructive-foreground: #ffffff;
  55. --destructive-soft: #fff1f0;
  56. --destructive-border: #e9b9b7;
  57. /* 导航和浮层复用同一语义体系。 */
  58. --sidebar: #f0f4f5;
  59. --sidebar-foreground: var(--foreground);
  60. --sidebar-primary: var(--primary);
  61. --sidebar-primary-foreground: var(--primary-foreground);
  62. --sidebar-accent: var(--primary-soft);
  63. --sidebar-accent-foreground: var(--primary-soft-foreground);
  64. --sidebar-border: var(--border);
  65. --sidebar-ring: var(--ring);
  66. --notice: #263e48;
  67. --notice-foreground: #ffffff;
  68. --notice-hover: #38525c;
  69. --notice-border: #4b6570;
  70. --overlay: rgb(18 35 44 / 38%);
  71. --shadow-color: rgb(24 40 48 / 7%);
  72. --shadow-card: 0 2px 4px var(--shadow-color);
  73. --shadow-card-hover: 0 4px 14px var(--shadow-color);
  74. --shadow-floating-control: 0 3px 10px rgb(24 40 48 / 16%);
  75. --shadow-panel: 0 18px 60px rgb(24 40 48 / 12%);
  76. --shadow-dialog: 0 20px 80px rgb(24 40 48 / 22%);
  77. --shadow-toast: 0 6px 25px rgb(24 40 48 / 18%);
  78. --scrollbar-thumb: #80999f;
  79. --scrollbar-thumb-hover: #4d7778;
  80. --scrollbar-track: transparent;
  81. --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23617783' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  82. }
  83. .dark {
  84. color-scheme: dark;
  85. --background: #111a20;
  86. --foreground: #e5edf1;
  87. --card: #19262e;
  88. --surface-subtle: #1e2d35;
  89. --secondary: #273a44;
  90. --secondary-foreground: #d2e0e7;
  91. --muted: #22333d;
  92. --muted-foreground: #a7bac5;
  93. --text-secondary: #c1d0d9;
  94. --icon: #9cb2c0;
  95. --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239cb2c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  96. --border: #364d5a;
  97. --border-subtle: #2c414d;
  98. --border-hover: #7c99a9;
  99. --input: #6c899a;
  100. --primary: #71c6b9;
  101. --primary-hover: #9adbcf;
  102. --primary-foreground: #102923;
  103. --primary-soft: #203f3d;
  104. --primary-soft-foreground: #a8ddd3;
  105. --primary-border: #3a6560;
  106. --success: #9ad7b2;
  107. --success-soft: #203c30;
  108. --success-border: #3b6651;
  109. --warning: #e9c27c;
  110. --warning-soft: #3d3220;
  111. --warning-border: #705b34;
  112. --info: #a0c7ed;
  113. --info-soft: #21384c;
  114. --info-border: #42637f;
  115. --destructive: #f3aaa5;
  116. --destructive-hover: #ffc7c2;
  117. --destructive-foreground: #3f1418;
  118. --destructive-soft: #41282c;
  119. --destructive-border: #7e4b50;
  120. --sidebar: #15222a;
  121. --notice: #d4e4ec;
  122. --notice-foreground: #192a34;
  123. --notice-hover: #c1d6e1;
  124. --notice-border: #afc8d5;
  125. --overlay: rgb(4 12 18 / 68%);
  126. --shadow-color: rgb(0 0 0 / 20%);
  127. --shadow-floating-control: 0 3px 12px rgb(0 0 0 / 34%);
  128. --shadow-panel: 0 18px 60px rgb(0 0 0 / 28%);
  129. --shadow-dialog: 0 20px 80px rgb(0 0 0 / 44%);
  130. --shadow-toast: 0 6px 25px rgb(0 0 0 / 32%);
  131. --scrollbar-thumb: #607f85;
  132. --scrollbar-thumb-hover: #91b7b4;
  133. --scrollbar-track: transparent;
  134. }