default.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. :root {
  2. /** 弹出层的基础层级 **/
  3. --popup-z-index: 2000;
  4. --font-family:
  5. -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, 'Helvetica Neue',
  6. arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
  7. 'Segoe UI Symbol', 'Noto Color Emoji';
  8. /* Default background color of <body />...etc */
  9. --background: 0 0% 100%;
  10. /* 主体区域背景色 */
  11. --background-deep: 216 20.11% 95.47%;
  12. --foreground: 210 6% 21%;
  13. /* Background color for <Card /> */
  14. --card: 0 0% 100%;
  15. --card-foreground: 222.2 84% 4.9%;
  16. /* Background color for popovers such as <DropdownMenu />, <HoverCard />, <Popover /> */
  17. --popover: 0 0% 100%;
  18. --popover-foreground: 222.2 84% 4.9%;
  19. /* Muted backgrounds such as <TabsList />, <Skeleton /> and <Switch /> */
  20. /* --muted: 210 40% 96.1%;
  21. --muted-foreground: 215.4 16.3% 46.9%; */
  22. --muted: 240 4.8% 95.9%;
  23. --muted-foreground: 240 3.8% 46.1%;
  24. /* 主题颜色 */
  25. --primary: 212 100% 45%;
  26. --primary-foreground: 0 0% 98%;
  27. /* Used for destructive actions such as <Button variant="destructive"> */
  28. --destructive: 359.33 100% 65.1%;
  29. --destructive-foreground: 0 0% 98%;
  30. /* Used for success actions such as <message> */
  31. --info: 240, 5%, 96%;
  32. --info-foreground: 220, 4%, 58%;
  33. /* Used for success actions such as <message> */
  34. --success: 144 57% 58%;
  35. --success-foreground: 0 0% 98%;
  36. /* Used for warning actions such as <message> */
  37. --warning: 42 84% 61%;
  38. --warning-foreground: 0 0% 98%;
  39. /* Secondary colors for <Button /> */
  40. --secondary: 240 5% 96%;
  41. --secondary-foreground: 240 6% 10%;
  42. /* Used for accents such as hover effects on <DropdownMenuItem>, <SelectItem>...etc */
  43. --accent: 240 5% 96%;
  44. --accent-dark: 216 14% 93%;
  45. --accent-darker: 216 11% 91%;
  46. --accent-lighter: 240 0% 98%;
  47. --accent-hover: 200deg 10% 90%;
  48. --accent-foreground: 240 6% 10%;
  49. /* Darker color */
  50. --heavy: 192deg 9.43% 89.61%;
  51. --heavy-foreground: var(--accent-foreground);
  52. /* Default border color */
  53. --border: 240 5.9% 90%;
  54. /* Border color for inputs such as <Input />, <Select />, <Textarea /> */
  55. --input: 240deg 5.88% 90%;
  56. --input-placeholder: 217 10.6% 65%;
  57. --input-background: 0 0% 100%;
  58. /* Used for focus ring */
  59. --ring: 222.2 84% 4.9%;
  60. /* Border radius for card, input and buttons */
  61. --radius: 0.5rem;
  62. /* ============= custom ============= */
  63. /* 遮罩颜色 */
  64. --overlay: 0 0% 0% / 45%;
  65. --overlay-content: 0 0% 95% / 45%;
  66. /* 基本文字大小 */
  67. --font-size-base: 16px;
  68. --menu-font-size: calc(var(--font-size-base) * 0.875);
  69. /* =============component & UI============= */
  70. /* menu */
  71. --sidebar: 0 0% 100%;
  72. --sidebar-deep: 0 0% 100%;
  73. --menu: var(--sidebar);
  74. /* header */
  75. --header: 0 0% 100%;
  76. accent-color: var(--primary);
  77. color-scheme: light;
  78. }
  79. [data-theme='violet'] {
  80. /* --background: 0 0% 100%; */
  81. --foreground: 224 71.4% 4.1%;
  82. --card: 0 0% 100%;
  83. --card-foreground: 224 71.4% 4.1%;
  84. --popover: 0 0% 100%;
  85. --popover-foreground: 224 71.4% 4.1%;
  86. --primary-foreground: 210 20% 98%;
  87. --secondary: 220 14.3% 95.9%;
  88. --secondary-foreground: 220.9 39.3% 11%;
  89. --muted: 220 14.3% 95.9%;
  90. --muted-foreground: 220 8.9% 46.1%;
  91. --accent: 220 14.3% 95.9%;
  92. --accent-foreground: 220.9 39.3% 11%;
  93. --destructive: 0 84.2% 60.2%;
  94. --destructive-foreground: 210 20% 98%;
  95. --border: 220 13% 91%;
  96. --input: 220 13% 91%;
  97. --ring: 262.1 83.3% 57.8%;
  98. }
  99. [data-theme='pink'] {
  100. /* --background: 0 0% 100%; */
  101. --foreground: 240 10% 3.9%;
  102. --card: 0 0% 100%;
  103. --card-foreground: 240 10% 3.9%;
  104. --popover: 0 0% 100%;
  105. --popover-foreground: 240 10% 3.9%;
  106. --primary-foreground: 355.7 100% 97.3%;
  107. --secondary: 240 4.8% 95.9%;
  108. --secondary-foreground: 240 5.9% 10%;
  109. --muted: 240 4.8% 95.9%;
  110. --muted-foreground: 240 3.8% 46.1%;
  111. --accent: 240 4.8% 95.9%;
  112. --accent-foreground: 240 5.9% 10%;
  113. --destructive: 0 84.2% 60.2%;
  114. --destructive-foreground: 0 0% 98%;
  115. --border: 240 5.9% 90%;
  116. --input: 240 5.9% 90%;
  117. --ring: 346.8 77.2% 49.8%;
  118. }
  119. [data-theme='rose'] {
  120. /* --background: 0 0% 100%; */
  121. --foreground: 240 10% 3.9%;
  122. --card: 0 0% 100%;
  123. --card-foreground: 240 10% 3.9%;
  124. --popover: 0 0% 100%;
  125. --popover-foreground: 240 10% 3.9%;
  126. --primary-foreground: 355.7 100% 97.3%;
  127. --secondary: 240 4.8% 95.9%;
  128. --secondary-foreground: 240 5.9% 10%;
  129. --muted: 240 4.8% 95.9%;
  130. --muted-foreground: 240 3.8% 46.1%;
  131. --accent: 240 4.8% 95.9%;
  132. --accent-foreground: 240 5.9% 10%;
  133. --destructive: 0 84.2% 60.2%;
  134. --destructive-foreground: 0 0% 98%;
  135. --border: 240 5.9% 90%;
  136. --input: 240 5.9% 90%;
  137. --ring: 346.8 77.2% 49.8%;
  138. }
  139. [data-theme='sky-blue'] {
  140. /* --background: 0 0% 100%; */
  141. --foreground: 222.2 84% 4.9%;
  142. --card: 0 0% 100%;
  143. --card-foreground: 222.2 84% 4.9%;
  144. --popover: 0 0% 100%;
  145. --popover-foreground: 222.2 84% 4.9%;
  146. --primary-foreground: 210 40% 98%;
  147. --secondary: 210 40% 96.1%;
  148. --secondary-foreground: 222.2 47.4% 11.2%;
  149. --muted: 210 40% 96.1%;
  150. --muted-foreground: 215.4 16.3% 46.9%;
  151. --accent: 210 40% 96.1%;
  152. --accent-foreground: 222.2 47.4% 11.2%;
  153. --destructive: 0 84.2% 60.2%;
  154. --destructive-foreground: 210 40% 98%;
  155. --border: 214.3 31.8% 91.4%;
  156. --input: 214.3 31.8% 91.4%;
  157. --ring: 221.2 83.2% 53.3%;
  158. }
  159. [data-theme='deep-blue'] {
  160. /* --background: 0 0% 100%; */
  161. --foreground: 222.2 84% 4.9%;
  162. --card: 0 0% 100%;
  163. --card-foreground: 222.2 84% 4.9%;
  164. --popover: 0 0% 100%;
  165. --popover-foreground: 222.2 84% 4.9%;
  166. --primary-foreground: 210 40% 98%;
  167. --secondary: 210 40% 96.1%;
  168. --secondary-foreground: 222.2 47.4% 11.2%;
  169. --muted: 210 40% 96.1%;
  170. --muted-foreground: 215.4 16.3% 46.9%;
  171. --accent: 210 40% 96.1%;
  172. --accent-foreground: 222.2 47.4% 11.2%;
  173. --destructive: 0 84.2% 60.2%;
  174. --destructive-foreground: 210 40% 98%;
  175. --border: 214.3 31.8% 91.4%;
  176. --input: 214.3 31.8% 91.4%;
  177. --ring: 221.2 83.2% 53.3%;
  178. }
  179. [data-theme='green'] {
  180. /* --background: 0 0% 100%; */
  181. --foreground: 240 10% 3.9%;
  182. --card: 0 0% 100%;
  183. --card-foreground: 240 10% 3.9%;
  184. --popover: 0 0% 100%;
  185. --popover-foreground: 240 10% 3.9%;
  186. --primary-foreground: 355.7 100% 97.3%;
  187. --secondary: 240 4.8% 95.9%;
  188. --secondary-foreground: 240 5.9% 10%;
  189. --muted: 240 4.8% 95.9%;
  190. --muted-foreground: 240 3.8% 46.1%;
  191. --accent: 240 4.8% 95.9%;
  192. --accent-foreground: 240 5.9% 10%;
  193. --destructive: 0 84.2% 60.2%;
  194. --destructive-foreground: 0 0% 98%;
  195. --border: 240 5.9% 90%;
  196. --input: 240 5.9% 90%;
  197. --ring: 142.1 76.2% 36.3%;
  198. }
  199. [data-theme='deep-green'] {
  200. /* --background: 0 0% 100%; */
  201. --foreground: 240 10% 3.9%;
  202. --card: 0 0% 100%;
  203. --card-foreground: 240 10% 3.9%;
  204. --popover: 0 0% 100%;
  205. --popover-foreground: 240 10% 3.9%;
  206. --primary-foreground: 355.7 100% 97.3%;
  207. --secondary: 240 4.8% 95.9%;
  208. --secondary-foreground: 240 5.9% 10%;
  209. --muted: 240 4.8% 95.9%;
  210. --muted-foreground: 240 3.8% 46.1%;
  211. --accent: 240 4.8% 95.9%;
  212. --accent-foreground: 240 5.9% 10%;
  213. --destructive: 0 84.2% 60.2%;
  214. --destructive-foreground: 0 0% 98%;
  215. --border: 240 5.9% 90%;
  216. --input: 240 5.9% 90%;
  217. --ring: 142.1 76.2% 36.3%;
  218. }
  219. [data-theme='orange'] {
  220. /* --background: 0 0% 100%; */
  221. --foreground: 20 14.3% 4.1%;
  222. --card: 0 0% 100%;
  223. --card-foreground: 20 14.3% 4.1%;
  224. --popover: 0 0% 100%;
  225. --popover-foreground: 20 14.3% 4.1%;
  226. --primary-foreground: 60 9.1% 97.8%;
  227. --secondary: 60 4.8% 95.9%;
  228. --secondary-foreground: 24 9.8% 10%;
  229. --muted: 60 4.8% 95.9%;
  230. --muted-foreground: 25 5.3% 44.7%;
  231. --accent: 60 4.8% 95.9%;
  232. --accent-foreground: 24 9.8% 10%;
  233. --destructive: 0 84.2% 60.2%;
  234. --destructive-foreground: 60 9.1% 97.8%;
  235. --border: 20 5.9% 90%;
  236. --input: 20 5.9% 90%;
  237. --ring: 24.6 95% 53.1%;
  238. }
  239. [data-theme='yellow'] {
  240. /* --background: 0 0% 100%; */
  241. --foreground: 20 14.3% 4.1%;
  242. --card: 0 0% 100%;
  243. --card-foreground: 20 14.3% 4.1%;
  244. --popover: 0 0% 100%;
  245. --popover-foreground: 20 14.3% 4.1%;
  246. --primary-foreground: 26 83.3% 14.1%;
  247. --secondary: 60 4.8% 95.9%;
  248. --secondary-foreground: 24 9.8% 10%;
  249. --muted: 60 4.8% 95.9%;
  250. --muted-foreground: 25 5.3% 44.7%;
  251. --accent: 60 4.8% 95.9%;
  252. --accent-foreground: 24 9.8% 10%;
  253. --destructive: 0 84.2% 60.2%;
  254. --destructive-foreground: 60 9.1% 97.8%;
  255. --border: 20 5.9% 90%;
  256. --input: 20 5.9% 90%;
  257. --ring: 20 14.3% 4.1%;
  258. }
  259. [data-theme='zinc'] {
  260. /* --background: 0 0% 100%; */
  261. --foreground: 240 10% 3.9%;
  262. --card: 0 0% 100%;
  263. --card-foreground: 240 10% 3.9%;
  264. --popover: 0 0% 100%;
  265. --popover-foreground: 240 10% 3.9%;
  266. --primary-foreground: 0 0% 98%;
  267. --secondary: 240 4.8% 95.9%;
  268. --secondary-foreground: 240 5.9% 10%;
  269. --muted: 240 4.8% 95.9%;
  270. --muted-foreground: 240 3.8% 46.1%;
  271. --accent: 240 4.8% 95.9%;
  272. --accent-foreground: 240 5.9% 10%;
  273. --destructive: 0 84.2% 60.2%;
  274. --destructive-foreground: 0 0% 98%;
  275. --border: 240 5.9% 90%;
  276. --input: 240 5.9% 90%;
  277. --ring: 240 5.9% 10%;
  278. }
  279. [data-theme='neutral'] {
  280. /* --background: 0 0% 100%; */
  281. --foreground: 0 0% 3.9%;
  282. --card: 0 0% 100%;
  283. --card-foreground: 0 0% 3.9%;
  284. --popover: 0 0% 100%;
  285. --popover-foreground: 0 0% 3.9%;
  286. --primary-foreground: 0 0% 98%;
  287. --secondary: 0 0% 96.1%;
  288. --secondary-foreground: 0 0% 9%;
  289. --muted: 0 0% 96.1%;
  290. --muted-foreground: 0 0% 45.1%;
  291. --accent: 0 0% 96.1%;
  292. --accent-foreground: 0 0% 9%;
  293. --destructive: 0 84.2% 60.2%;
  294. --destructive-foreground: 0 0% 98%;
  295. --border: 0 0% 89.8%;
  296. --input: 0 0% 89.8%;
  297. --ring: 0 0% 3.9%;
  298. }
  299. [data-theme='slate'] {
  300. /* --background: 0 0% 100%; */
  301. --foreground: 222.2 84% 4.9%;
  302. --card: 0 0% 100%;
  303. --card-foreground: 222.2 84% 4.9%;
  304. --popover: 0 0% 100%;
  305. --popover-foreground: 222.2 84% 4.9%;
  306. --primary-foreground: 210 40% 98%;
  307. --secondary: 210 40% 96.1%;
  308. --secondary-foreground: 222.2 47.4% 11.2%;
  309. --muted: 210 40% 96.1%;
  310. --muted-foreground: 215.4 16.3% 46.9%;
  311. --accent: 210 40% 96.1%;
  312. --accent-foreground: 222.2 47.4% 11.2%;
  313. --destructive: 0 84.2% 60.2%;
  314. --destructive-foreground: 210 40% 98%;
  315. --border: 214.3 31.8% 91.4%;
  316. --input: 214.3 31.8% 91.4%;
  317. --ring: 222.2 84% 4.9%;
  318. }
  319. [data-theme='gray'] {
  320. /* --background: 0 0% 100%; */
  321. --foreground: 224 71.4% 4.1%;
  322. --card: 0 0% 100%;
  323. --card-foreground: 224 71.4% 4.1%;
  324. --popover: 0 0% 100%;
  325. --popover-foreground: 224 71.4% 4.1%;
  326. --primary-foreground: 210 20% 98%;
  327. --secondary: 220 14.3% 95.9%;
  328. --secondary-foreground: 220.9 39.3% 11%;
  329. --muted: 220 14.3% 95.9%;
  330. --muted-foreground: 220 8.9% 46.1%;
  331. --accent: 220 14.3% 95.9%;
  332. --accent-foreground: 220.9 39.3% 11%;
  333. --destructive: 0 84.2% 60.2%;
  334. --destructive-foreground: 210 20% 98%;
  335. --border: 220 13% 91%;
  336. --input: 220 13% 91%;
  337. --ring: 224 71.4% 4.1%;
  338. }