variables.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * VS Code 工作台 + Claude 插件风格设计令牌(docs/research/claude-vscode-ui-reference.md)
  3. * 默认跟随系统亮/暗;<html data-theme="light|dark"> 可手动指定。
  4. */
  5. :root {
  6. --app-claude-orange: #d97757;
  7. --app-claude-clay: #c6613f;
  8. --app-claude-ivory: #faf9f5;
  9. --app-success: #74c991;
  10. --app-danger: #c74e39;
  11. --app-warning: #e1c08d;
  12. --app-spacing-small: 4px;
  13. --app-spacing-medium: 8px;
  14. --app-spacing-large: 12px;
  15. --app-spacing-xlarge: 16px;
  16. --corner-radius-small: 4px;
  17. --corner-radius-medium: 6px;
  18. --corner-radius-large: 8px;
  19. --app-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  20. --app-monospace-font-family: "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Noto Sans Mono CJK SC", monospace;
  21. --app-font-size: 13px;
  22. --app-monospace-font-size: 12px;
  23. }
  24. /* 亮色:Light Modern */
  25. :root,
  26. :root[data-theme="light"] {
  27. color-scheme: light;
  28. --app-primary-background: #f8f8f8;
  29. --app-secondary-background: #ffffff;
  30. --app-activitybar-background: #f8f8f8;
  31. --app-statusbar-background: #f8f8f8;
  32. --app-statusbar-foreground: #3b3b3b;
  33. --app-primary-foreground: #3b3b3b;
  34. --app-secondary-foreground: #717171;
  35. --app-primary-border-color: #e5e5e5;
  36. --app-input-background: #ffffff;
  37. --app-input-secondary-background: #ffffff;
  38. --app-input-border: #cecece;
  39. --app-input-active-border: #005fb8;
  40. --app-input-placeholder-foreground: #767676;
  41. --app-code-background: #7f7f7f1a;
  42. --app-inline-code-background: #7f7f7f1f;
  43. --app-link-foreground: #005fb8;
  44. --app-list-hover-background: #f2f2f2;
  45. --app-list-active-background: #e4e6f1;
  46. --app-button-background: #005fb8;
  47. --app-button-foreground: #ffffff;
  48. --app-button-hover-background: #0258a8;
  49. --app-secondary-button-background: #e5e5e5;
  50. --app-error-foreground: #c74e39;
  51. --app-shadow: 0 1px 2px #0000001a;
  52. --app-overlay: #0000004d;
  53. }
  54. /* 暗色:Dark Modern */
  55. @media (prefers-color-scheme: dark) {
  56. :root:not([data-theme="light"]) {
  57. color-scheme: dark;
  58. --app-primary-background: #181818;
  59. --app-secondary-background: #1f1f1f;
  60. --app-activitybar-background: #181818;
  61. --app-statusbar-background: #181818;
  62. --app-statusbar-foreground: #cccccc;
  63. --app-primary-foreground: #cccccc;
  64. --app-secondary-foreground: #9d9d9d;
  65. --app-primary-border-color: #2b2b2b;
  66. --app-input-background: #313131;
  67. --app-input-secondary-background: #1f1f1f;
  68. --app-input-border: #3c3c3c;
  69. --app-input-active-border: #2488db;
  70. --app-input-placeholder-foreground: #989898;
  71. --app-code-background: #7f7f7f26;
  72. --app-inline-code-background: #7f7f7f26;
  73. --app-link-foreground: #4daafc;
  74. --app-list-hover-background: #2a2d2e;
  75. --app-list-active-background: #37373d;
  76. --app-button-background: #0078d4;
  77. --app-button-foreground: #ffffff;
  78. --app-button-hover-background: #026ec1;
  79. --app-secondary-button-background: #313131;
  80. --app-error-foreground: #f85149;
  81. --app-shadow: 0 1px 2px #0000004d;
  82. --app-overlay: #00000099;
  83. }
  84. }
  85. :root[data-theme="dark"] {
  86. color-scheme: dark;
  87. --app-primary-background: #181818;
  88. --app-secondary-background: #1f1f1f;
  89. --app-activitybar-background: #181818;
  90. --app-statusbar-background: #181818;
  91. --app-statusbar-foreground: #cccccc;
  92. --app-primary-foreground: #cccccc;
  93. --app-secondary-foreground: #9d9d9d;
  94. --app-primary-border-color: #2b2b2b;
  95. --app-input-background: #313131;
  96. --app-input-secondary-background: #1f1f1f;
  97. --app-input-border: #3c3c3c;
  98. --app-input-active-border: #2488db;
  99. --app-input-placeholder-foreground: #989898;
  100. --app-code-background: #7f7f7f26;
  101. --app-inline-code-background: #7f7f7f26;
  102. --app-link-foreground: #4daafc;
  103. --app-list-hover-background: #2a2d2e;
  104. --app-list-active-background: #37373d;
  105. --app-button-background: #0078d4;
  106. --app-button-foreground: #ffffff;
  107. --app-button-hover-background: #026ec1;
  108. --app-secondary-button-background: #313131;
  109. --app-error-foreground: #f85149;
  110. --app-shadow: 0 1px 2px #0000004d;
  111. --app-overlay: #00000099;
  112. }