default.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  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. /* =============component & UI============= */
  69. /* menu */
  70. --sidebar: 0 0% 100%;
  71. --sidebar-deep: 0 0% 100%;
  72. --menu: var(--sidebar);
  73. /* header */
  74. --header: 0 0% 100%;
  75. accent-color: var(--primary);
  76. color-scheme: light;
  77. }
  78. [data-theme='violet'] {
  79. /* --background: 0 0% 100%; */
  80. --foreground: 224 71.4% 4.1%;
  81. --card: 0 0% 100%;
  82. --card-foreground: 224 71.4% 4.1%;
  83. --popover: 0 0% 100%;
  84. --popover-foreground: 224 71.4% 4.1%;
  85. --primary-foreground: 210 20% 98%;
  86. --secondary: 220 14.3% 95.9%;
  87. --secondary-foreground: 220.9 39.3% 11%;
  88. --muted: 220 14.3% 95.9%;
  89. --muted-foreground: 220 8.9% 46.1%;
  90. --accent: 220 14.3% 95.9%;
  91. --accent-foreground: 220.9 39.3% 11%;
  92. --destructive: 0 84.2% 60.2%;
  93. --destructive-foreground: 210 20% 98%;
  94. --border: 220 13% 91%;
  95. --input: 220 13% 91%;
  96. --ring: 262.1 83.3% 57.8%;
  97. }
  98. [data-theme='pink'] {
  99. /* --background: 0 0% 100%; */
  100. --foreground: 240 10% 3.9%;
  101. --card: 0 0% 100%;
  102. --card-foreground: 240 10% 3.9%;
  103. --popover: 0 0% 100%;
  104. --popover-foreground: 240 10% 3.9%;
  105. --primary-foreground: 355.7 100% 97.3%;
  106. --secondary: 240 4.8% 95.9%;
  107. --secondary-foreground: 240 5.9% 10%;
  108. --muted: 240 4.8% 95.9%;
  109. --muted-foreground: 240 3.8% 46.1%;
  110. --accent: 240 4.8% 95.9%;
  111. --accent-foreground: 240 5.9% 10%;
  112. --destructive: 0 84.2% 60.2%;
  113. --destructive-foreground: 0 0% 98%;
  114. --border: 240 5.9% 90%;
  115. --input: 240 5.9% 90%;
  116. --ring: 346.8 77.2% 49.8%;
  117. }
  118. [data-theme='rose'] {
  119. /* --background: 0 0% 100%; */
  120. --foreground: 240 10% 3.9%;
  121. --card: 0 0% 100%;
  122. --card-foreground: 240 10% 3.9%;
  123. --popover: 0 0% 100%;
  124. --popover-foreground: 240 10% 3.9%;
  125. --primary-foreground: 355.7 100% 97.3%;
  126. --secondary: 240 4.8% 95.9%;
  127. --secondary-foreground: 240 5.9% 10%;
  128. --muted: 240 4.8% 95.9%;
  129. --muted-foreground: 240 3.8% 46.1%;
  130. --accent: 240 4.8% 95.9%;
  131. --accent-foreground: 240 5.9% 10%;
  132. --destructive: 0 84.2% 60.2%;
  133. --destructive-foreground: 0 0% 98%;
  134. --border: 240 5.9% 90%;
  135. --input: 240 5.9% 90%;
  136. --ring: 346.8 77.2% 49.8%;
  137. }
  138. [data-theme='sky-blue'] {
  139. /* --background: 0 0% 100%; */
  140. --foreground: 222.2 84% 4.9%;
  141. --card: 0 0% 100%;
  142. --card-foreground: 222.2 84% 4.9%;
  143. --popover: 0 0% 100%;
  144. --popover-foreground: 222.2 84% 4.9%;
  145. --primary-foreground: 210 40% 98%;
  146. --secondary: 210 40% 96.1%;
  147. --secondary-foreground: 222.2 47.4% 11.2%;
  148. --muted: 210 40% 96.1%;
  149. --muted-foreground: 215.4 16.3% 46.9%;
  150. --accent: 210 40% 96.1%;
  151. --accent-foreground: 222.2 47.4% 11.2%;
  152. --destructive: 0 84.2% 60.2%;
  153. --destructive-foreground: 210 40% 98%;
  154. --border: 214.3 31.8% 91.4%;
  155. --input: 214.3 31.8% 91.4%;
  156. --ring: 221.2 83.2% 53.3%;
  157. }
  158. [data-theme='deep-blue'] {
  159. /* --background: 0 0% 100%; */
  160. --foreground: 222.2 84% 4.9%;
  161. --card: 0 0% 100%;
  162. --card-foreground: 222.2 84% 4.9%;
  163. --popover: 0 0% 100%;
  164. --popover-foreground: 222.2 84% 4.9%;
  165. --primary-foreground: 210 40% 98%;
  166. --secondary: 210 40% 96.1%;
  167. --secondary-foreground: 222.2 47.4% 11.2%;
  168. --muted: 210 40% 96.1%;
  169. --muted-foreground: 215.4 16.3% 46.9%;
  170. --accent: 210 40% 96.1%;
  171. --accent-foreground: 222.2 47.4% 11.2%;
  172. --destructive: 0 84.2% 60.2%;
  173. --destructive-foreground: 210 40% 98%;
  174. --border: 214.3 31.8% 91.4%;
  175. --input: 214.3 31.8% 91.4%;
  176. --ring: 221.2 83.2% 53.3%;
  177. }
  178. [data-theme='green'] {
  179. /* --background: 0 0% 100%; */
  180. --foreground: 240 10% 3.9%;
  181. --card: 0 0% 100%;
  182. --card-foreground: 240 10% 3.9%;
  183. --popover: 0 0% 100%;
  184. --popover-foreground: 240 10% 3.9%;
  185. --primary-foreground: 355.7 100% 97.3%;
  186. --secondary: 240 4.8% 95.9%;
  187. --secondary-foreground: 240 5.9% 10%;
  188. --muted: 240 4.8% 95.9%;
  189. --muted-foreground: 240 3.8% 46.1%;
  190. --accent: 240 4.8% 95.9%;
  191. --accent-foreground: 240 5.9% 10%;
  192. --destructive: 0 84.2% 60.2%;
  193. --destructive-foreground: 0 0% 98%;
  194. --border: 240 5.9% 90%;
  195. --input: 240 5.9% 90%;
  196. --ring: 142.1 76.2% 36.3%;
  197. }
  198. [data-theme='deep-green'] {
  199. /* --background: 0 0% 100%; */
  200. --foreground: 240 10% 3.9%;
  201. --card: 0 0% 100%;
  202. --card-foreground: 240 10% 3.9%;
  203. --popover: 0 0% 100%;
  204. --popover-foreground: 240 10% 3.9%;
  205. --primary-foreground: 355.7 100% 97.3%;
  206. --secondary: 240 4.8% 95.9%;
  207. --secondary-foreground: 240 5.9% 10%;
  208. --muted: 240 4.8% 95.9%;
  209. --muted-foreground: 240 3.8% 46.1%;
  210. --accent: 240 4.8% 95.9%;
  211. --accent-foreground: 240 5.9% 10%;
  212. --destructive: 0 84.2% 60.2%;
  213. --destructive-foreground: 0 0% 98%;
  214. --border: 240 5.9% 90%;
  215. --input: 240 5.9% 90%;
  216. --ring: 142.1 76.2% 36.3%;
  217. }
  218. [data-theme='orange'] {
  219. /* --background: 0 0% 100%; */
  220. --foreground: 20 14.3% 4.1%;
  221. --card: 0 0% 100%;
  222. --card-foreground: 20 14.3% 4.1%;
  223. --popover: 0 0% 100%;
  224. --popover-foreground: 20 14.3% 4.1%;
  225. --primary-foreground: 60 9.1% 97.8%;
  226. --secondary: 60 4.8% 95.9%;
  227. --secondary-foreground: 24 9.8% 10%;
  228. --muted: 60 4.8% 95.9%;
  229. --muted-foreground: 25 5.3% 44.7%;
  230. --accent: 60 4.8% 95.9%;
  231. --accent-foreground: 24 9.8% 10%;
  232. --destructive: 0 84.2% 60.2%;
  233. --destructive-foreground: 60 9.1% 97.8%;
  234. --border: 20 5.9% 90%;
  235. --input: 20 5.9% 90%;
  236. --ring: 24.6 95% 53.1%;
  237. }
  238. [data-theme='yellow'] {
  239. /* --background: 0 0% 100%; */
  240. --foreground: 20 14.3% 4.1%;
  241. --card: 0 0% 100%;
  242. --card-foreground: 20 14.3% 4.1%;
  243. --popover: 0 0% 100%;
  244. --popover-foreground: 20 14.3% 4.1%;
  245. --primary-foreground: 26 83.3% 14.1%;
  246. --secondary: 60 4.8% 95.9%;
  247. --secondary-foreground: 24 9.8% 10%;
  248. --muted: 60 4.8% 95.9%;
  249. --muted-foreground: 25 5.3% 44.7%;
  250. --accent: 60 4.8% 95.9%;
  251. --accent-foreground: 24 9.8% 10%;
  252. --destructive: 0 84.2% 60.2%;
  253. --destructive-foreground: 60 9.1% 97.8%;
  254. --border: 20 5.9% 90%;
  255. --input: 20 5.9% 90%;
  256. --ring: 20 14.3% 4.1%;
  257. }
  258. [data-theme='zinc'] {
  259. /* --background: 0 0% 100%; */
  260. --foreground: 240 10% 3.9%;
  261. --card: 0 0% 100%;
  262. --card-foreground: 240 10% 3.9%;
  263. --popover: 0 0% 100%;
  264. --popover-foreground: 240 10% 3.9%;
  265. --primary-foreground: 0 0% 98%;
  266. --secondary: 240 4.8% 95.9%;
  267. --secondary-foreground: 240 5.9% 10%;
  268. --muted: 240 4.8% 95.9%;
  269. --muted-foreground: 240 3.8% 46.1%;
  270. --accent: 240 4.8% 95.9%;
  271. --accent-foreground: 240 5.9% 10%;
  272. --destructive: 0 84.2% 60.2%;
  273. --destructive-foreground: 0 0% 98%;
  274. --border: 240 5.9% 90%;
  275. --input: 240 5.9% 90%;
  276. --ring: 240 5.9% 10%;
  277. }
  278. [data-theme='neutral'] {
  279. /* --background: 0 0% 100%; */
  280. --foreground: 0 0% 3.9%;
  281. --card: 0 0% 100%;
  282. --card-foreground: 0 0% 3.9%;
  283. --popover: 0 0% 100%;
  284. --popover-foreground: 0 0% 3.9%;
  285. --primary-foreground: 0 0% 98%;
  286. --secondary: 0 0% 96.1%;
  287. --secondary-foreground: 0 0% 9%;
  288. --muted: 0 0% 96.1%;
  289. --muted-foreground: 0 0% 45.1%;
  290. --accent: 0 0% 96.1%;
  291. --accent-foreground: 0 0% 9%;
  292. --destructive: 0 84.2% 60.2%;
  293. --destructive-foreground: 0 0% 98%;
  294. --border: 0 0% 89.8%;
  295. --input: 0 0% 89.8%;
  296. --ring: 0 0% 3.9%;
  297. }
  298. [data-theme='slate'] {
  299. /* --background: 0 0% 100%; */
  300. --foreground: 222.2 84% 4.9%;
  301. --card: 0 0% 100%;
  302. --card-foreground: 222.2 84% 4.9%;
  303. --popover: 0 0% 100%;
  304. --popover-foreground: 222.2 84% 4.9%;
  305. --primary-foreground: 210 40% 98%;
  306. --secondary: 210 40% 96.1%;
  307. --secondary-foreground: 222.2 47.4% 11.2%;
  308. --muted: 210 40% 96.1%;
  309. --muted-foreground: 215.4 16.3% 46.9%;
  310. --accent: 210 40% 96.1%;
  311. --accent-foreground: 222.2 47.4% 11.2%;
  312. --destructive: 0 84.2% 60.2%;
  313. --destructive-foreground: 210 40% 98%;
  314. --border: 214.3 31.8% 91.4%;
  315. --input: 214.3 31.8% 91.4%;
  316. --ring: 222.2 84% 4.9%;
  317. }
  318. [data-theme='gray'] {
  319. /* --background: 0 0% 100%; */
  320. --foreground: 224 71.4% 4.1%;
  321. --card: 0 0% 100%;
  322. --card-foreground: 224 71.4% 4.1%;
  323. --popover: 0 0% 100%;
  324. --popover-foreground: 224 71.4% 4.1%;
  325. --primary-foreground: 210 20% 98%;
  326. --secondary: 220 14.3% 95.9%;
  327. --secondary-foreground: 220.9 39.3% 11%;
  328. --muted: 220 14.3% 95.9%;
  329. --muted-foreground: 220 8.9% 46.1%;
  330. --accent: 220 14.3% 95.9%;
  331. --accent-foreground: 220.9 39.3% 11%;
  332. --destructive: 0 84.2% 60.2%;
  333. --destructive-foreground: 210 20% 98%;
  334. --border: 220 13% 91%;
  335. --input: 220 13% 91%;
  336. --ring: 224 71.4% 4.1%;
  337. }