index.css 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. :root.dark,
  2. :root.dark[data-theme='custom'],
  3. :root.dark[data-theme='default'] {
  4. /* Default background color of <body />...etc */
  5. --background: 220deg 13.04% 8%;
  6. --foreground: 220 13% 91%;
  7. /* Background color for <Card /> */
  8. --card: 222.86deg 8.43% 16.27%;
  9. /* --card: 222.2 84% 4.9%; */
  10. --card-foreground: 210 40% 98%;
  11. /* Background color for popovers such as <DropdownMenu />, <HoverCard />, <Popover /> */
  12. --popover: 222.86deg 8.43% 16.27%;
  13. --popover-foreground: 210 40% 98%;
  14. /* Muted backgrounds such as <TabsList />, <Skeleton /> and <Switch /> */
  15. --muted: 220deg 6.82% 17.25%;
  16. --muted-foreground: 215 20.2% 65.1%;
  17. /* 主题颜色 */
  18. /* --primary: 245 82% 67%; */
  19. --primary-foreground: 0 0 98%;
  20. /* Used for destructive actions such as <Button variant="destructive"> */
  21. --destructive: 0 78% 68%;
  22. --destructive-foreground: 0 0 98%;
  23. /* Used for success actions such as <message> */
  24. --success: 144 57% 58%;
  25. --success-foreground: 0 0 98%;
  26. /* Used for warning actions such as <message> */
  27. --warning: 42 84% 61%;
  28. --warning-foreground: 0 0 98%;
  29. /* 颜色次要 */
  30. --secondary: 240 5% 17%;
  31. --secondary-foreground: 0 0 98%;
  32. /* Used for accents such as hover effects on <DropdownMenuItem>, <SelectItem>...etc */
  33. --accent: 0deg 0% 100% / 8%;
  34. --accent-hover: 0deg 0% 100% / 12%;
  35. --accent-foreground: 0 0 98%;
  36. /* Darker color */
  37. --heavy: 0deg 0% 100% / 12%;
  38. --heavy-foreground: var(--accent-foreground);
  39. /* Default border color */
  40. --border: 0deg 0% 100% / 10%;
  41. /* Border color for inputs such as <Input />, <Select />, <Textarea /> */
  42. --input: 0deg 0% 100% / 10%;
  43. --input-placeholder: 218deg 11% 65%;
  44. --input-background: 0deg 0% 100% / 5%;
  45. /* Used for focus ring */
  46. --ring: 222.2 84% 4.9%;
  47. /* 遮罩颜色 */
  48. --overlay: 0deg 0% 0% / 40%;
  49. /* 基本文字大小 */
  50. --font-size-base: 16px;
  51. /* 基本圆角大小 */
  52. --radius: 0.5rem;
  53. /* =============component & UI============= */
  54. /* authentication */
  55. --authentication: 240deg 11% 2%;
  56. color-scheme: dark;
  57. }
  58. :root.dark[data-theme='violet'] {
  59. --background: 224 71.4% 4.1%;
  60. --foreground: 210 20% 98%;
  61. --card: 224 71.4% 4.1%;
  62. --card-foreground: 210 20% 98%;
  63. --popover: 224 71.4% 4.1%;
  64. --popover-foreground: 210 20% 98%;
  65. --primary-foreground: 210 20% 98%;
  66. --secondary: 215 27.9% 16.9%;
  67. --secondary-foreground: 210 20% 98%;
  68. --muted: 215 27.9% 16.9%;
  69. --muted-foreground: 217.9 10.6% 64.9%;
  70. --accent: 215 27.9% 16.9%;
  71. --accent-foreground: 210 20% 98%;
  72. --destructive: 0 62.8% 30.6%;
  73. --destructive-foreground: 210 20% 98%;
  74. --border: 215 27.9% 16.9%;
  75. --input: 215 27.9% 16.9%;
  76. --ring: 263.4 70% 50.4%;
  77. }
  78. :root.dark[data-theme='pink'] {
  79. --background: 20 14.3% 4.1%;
  80. --foreground: 0 0% 95%;
  81. --card: 24 9.8% 10%;
  82. --card-foreground: 0 0% 95%;
  83. --popover: 0 0% 9%;
  84. --popover-foreground: 0 0% 95%;
  85. --primary-foreground: 355.7 100% 97.3%;
  86. --secondary: 240 3.7% 15.9%;
  87. --secondary-foreground: 0 0% 98%;
  88. --muted: 0 0% 15%;
  89. --muted-foreground: 240 5% 64.9%;
  90. --accent: 12 6.5% 15.1%;
  91. --accent-foreground: 0 0% 98%;
  92. --destructive: 0 62.8% 30.6%;
  93. --destructive-foreground: 0 85.7% 97.3%;
  94. --border: 240 3.7% 15.9%;
  95. --input: 240 3.7% 15.9%;
  96. --ring: 346.8 77.2% 49.8%;
  97. }
  98. :root.dark[data-theme='rose'] {
  99. --background: 0 0% 3.9%;
  100. --foreground: 0 0% 98%;
  101. --card: 0 0% 3.9%;
  102. --card-foreground: 0 0% 98%;
  103. --popover: 0 0% 3.9%;
  104. --popover-foreground: 0 0% 98%;
  105. --primary-foreground: 0 85.7% 97.3%;
  106. --secondary: 0 0% 14.9%;
  107. --secondary-foreground: 0 0% 98%;
  108. --muted: 0 0% 14.9%;
  109. --muted-foreground: 0 0% 63.9%;
  110. --accent: 0 0% 14.9%;
  111. --accent-foreground: 0 0% 98%;
  112. --destructive: 0 62.8% 30.6%;
  113. --destructive-foreground: 0 0% 98%;
  114. --border: 0 0% 14.9%;
  115. --input: 0 0% 14.9%;
  116. --ring: 0 72.2% 50.6%;
  117. }
  118. :root.dark[data-theme='sky-blue'] {
  119. --background: 222.2 84% 4.9%;
  120. --foreground: 210 40% 98%;
  121. --card: 222.2 84% 4.9%;
  122. --card-foreground: 210 40% 98%;
  123. --popover: 222.2 84% 4.9%;
  124. --popover-foreground: 210 40% 98%;
  125. --primary-foreground: 210 20% 98%;
  126. --secondary: 217.2 32.6% 17.5%;
  127. --secondary-foreground: 210 40% 98%;
  128. --muted: 217.2 32.6% 17.5%;
  129. --muted-foreground: 215 20.2% 65.1%;
  130. --accent: 217.2 32.6% 17.5%;
  131. --accent-foreground: 210 40% 98%;
  132. --destructive: 0 62.8% 30.6%;
  133. --destructive-foreground: 210 40% 98%;
  134. --border: 217.2 32.6% 17.5%;
  135. --input: 217.2 32.6% 17.5%;
  136. --ring: 224.3 76.3% 48%;
  137. }
  138. :root.dark[data-theme='deep-blue'] {
  139. --background: 222.2 84% 4.9%;
  140. --foreground: 210 40% 98%;
  141. --card: 222.2 84% 4.9%;
  142. --card-foreground: 210 40% 98%;
  143. --popover: 222.2 84% 4.9%;
  144. --popover-foreground: 210 40% 98%;
  145. --primary-foreground: 210 20% 98%;
  146. --secondary: 217.2 32.6% 17.5%;
  147. --secondary-foreground: 210 40% 98%;
  148. --muted: 217.2 32.6% 17.5%;
  149. --muted-foreground: 215 20.2% 65.1%;
  150. --accent: 217.2 32.6% 17.5%;
  151. --accent-foreground: 210 40% 98%;
  152. --destructive: 0 62.8% 30.6%;
  153. --destructive-foreground: 210 40% 98%;
  154. --border: 217.2 32.6% 17.5%;
  155. --input: 217.2 32.6% 17.5%;
  156. --ring: 224.3 76.3% 48%;
  157. }
  158. :root.dark[data-theme='green'] {
  159. --background: 20 14.3% 4.1%;
  160. --foreground: 0 0% 95%;
  161. --card: 24 9.8% 10%;
  162. --card-foreground: 0 0% 95%;
  163. --popover: 0 0% 9%;
  164. --popover-foreground: 0 0% 95%;
  165. --primary-foreground: 210 20% 98%;
  166. --secondary: 240 3.7% 15.9%;
  167. --secondary-foreground: 0 0% 98%;
  168. --muted: 0 0% 15%;
  169. --muted-foreground: 240 5% 64.9%;
  170. --accent: 12 6.5% 15.1%;
  171. --accent-foreground: 0 0% 98%;
  172. --destructive: 0 62.8% 30.6%;
  173. --destructive-foreground: 0 85.7% 97.3%;
  174. --border: 240 3.7% 15.9%;
  175. --input: 240 3.7% 15.9%;
  176. --ring: 142.4 71.8% 29.2%;
  177. }
  178. :root.dark[data-theme='deep-green'] {
  179. --background: 20 14.3% 4.1%;
  180. --foreground: 0 0% 95%;
  181. --card: 24 9.8% 10%;
  182. --card-foreground: 0 0% 95%;
  183. --popover: 0 0% 9%;
  184. --popover-foreground: 0 0% 95%;
  185. --primary-foreground: 210 20% 98%;
  186. --secondary: 240 3.7% 15.9%;
  187. --secondary-foreground: 0 0% 98%;
  188. --muted: 0 0% 15%;
  189. --muted-foreground: 240 5% 64.9%;
  190. --accent: 12 6.5% 15.1%;
  191. --accent-foreground: 0 0% 98%;
  192. --destructive: 0 62.8% 30.6%;
  193. --destructive-foreground: 0 85.7% 97.3%;
  194. --border: 240 3.7% 15.9%;
  195. --input: 240 3.7% 15.9%;
  196. --ring: 142.4 71.8% 29.2%;
  197. }
  198. :root.dark[data-theme='orange'] {
  199. --background: 20 14.3% 4.1%;
  200. --foreground: 60 9.1% 97.8%;
  201. --card: 20 14.3% 4.1%;
  202. --card-foreground: 60 9.1% 97.8%;
  203. --popover: 20 14.3% 4.1%;
  204. --popover-foreground: 60 9.1% 97.8%;
  205. --primary-foreground: 60 9.1% 97.8%;
  206. --secondary: 12 6.5% 15.1%;
  207. --secondary-foreground: 60 9.1% 97.8%;
  208. --muted: 12 6.5% 15.1%;
  209. --muted-foreground: 24 5.4% 63.9%;
  210. --accent: 12 6.5% 15.1%;
  211. --accent-foreground: 60 9.1% 97.8%;
  212. --destructive: 0 72.2% 50.6%;
  213. --destructive-foreground: 60 9.1% 97.8%;
  214. --border: 12 6.5% 15.1%;
  215. --input: 12 6.5% 15.1%;
  216. --ring: 20.5 90.2% 48.2%;
  217. }
  218. :root.dark[data-theme='yellow'] {
  219. --background: 20 14.3% 4.1%;
  220. --foreground: 60 9.1% 97.8%;
  221. --card: 20 14.3% 4.1%;
  222. --card-foreground: 60 9.1% 97.8%;
  223. --popover: 20 14.3% 4.1%;
  224. --popover-foreground: 60 9.1% 97.8%;
  225. --primary-foreground: 26 83.3% 14.1%;
  226. --secondary: 12 6.5% 15.1%;
  227. --secondary-foreground: 60 9.1% 97.8%;
  228. --muted: 12 6.5% 15.1%;
  229. --muted-foreground: 24 5.4% 63.9%;
  230. --accent: 12 6.5% 15.1%;
  231. --accent-foreground: 60 9.1% 97.8%;
  232. --destructive: 0 62.8% 30.6%;
  233. --destructive-foreground: 60 9.1% 97.8%;
  234. --border: 12 6.5% 15.1%;
  235. --input: 12 6.5% 15.1%;
  236. --ring: 35.5 91.7% 32.9%;
  237. }
  238. :root.dark[data-theme='zinc'] {
  239. --background: 240 10% 3.9%;
  240. --foreground: 0 0% 98%;
  241. --card: 240 10% 3.9%;
  242. --card-foreground: 0 0% 98%;
  243. --popover: 240 10% 3.9%;
  244. --popover-foreground: 0 0% 98%;
  245. --primary-foreground: 240 5.9% 10%;
  246. --secondary: 240 3.7% 15.9%;
  247. --secondary-foreground: 0 0% 98%;
  248. --muted: 240 3.7% 15.9%;
  249. --muted-foreground: 240 5% 64.9%;
  250. --accent: 240 3.7% 15.9%;
  251. --accent-foreground: 0 0% 98%;
  252. --destructive: 0 62.8% 30.6%;
  253. --destructive-foreground: 0 0% 98%;
  254. --border: 240 3.7% 15.9%;
  255. --input: 240 3.7% 15.9%;
  256. --ring: 240 4.9% 83.9%;
  257. }
  258. :root.dark[data-theme='neutral'] {
  259. --background: 0 0% 3.9%;
  260. --foreground: 0 0% 98%;
  261. --card: 0 0% 3.9%;
  262. --card-foreground: 0 0% 98%;
  263. --popover: 0 0% 3.9%;
  264. --popover-foreground: 0 0% 98%;
  265. --primary-foreground: 0 0% 9%;
  266. --secondary: 0 0% 14.9%;
  267. --secondary-foreground: 0 0% 98%;
  268. --muted: 0 0% 14.9%;
  269. --muted-foreground: 0 0% 63.9%;
  270. --accent: 0 0% 14.9%;
  271. --accent-foreground: 0 0% 98%;
  272. --destructive: 0 62.8% 30.6%;
  273. --destructive-foreground: 0 0% 98%;
  274. --border: 0 0% 14.9%;
  275. --input: 0 0% 14.9%;
  276. --ring: 0 0% 83.1%;
  277. }
  278. :root.dark[data-theme='slate'] {
  279. --background: 222.2 84% 4.9%;
  280. --foreground: 210 40% 98%;
  281. --card: 222.2 84% 4.9%;
  282. --card-foreground: 210 40% 98%;
  283. --popover: 222.2 84% 4.9%;
  284. --popover-foreground: 210 40% 98%;
  285. --primary-foreground: 222.2 47.4% 11.2%;
  286. --secondary: 217.2 32.6% 17.5%;
  287. --secondary-foreground: 210 40% 98%;
  288. --muted: 217.2 32.6% 17.5%;
  289. --muted-foreground: 215 20.2% 65.1%;
  290. --accent: 217.2 32.6% 17.5%;
  291. --accent-foreground: 210 40% 98%;
  292. --destructive: 0 62.8% 30.6%;
  293. --destructive-foreground: 210 40% 98%;
  294. --border: 217.2 32.6% 17.5%;
  295. --input: 217.2 32.6% 17.5%;
  296. --ring: 212.7 26.8% 83.9;
  297. }
  298. :root.dark[data-theme='gray'] {
  299. --background: 224 71.4% 4.1%;
  300. --foreground: 210 20% 98%;
  301. --card: 224 71.4% 4.1%;
  302. --card-foreground: 210 20% 98%;
  303. --popover: 224 71.4% 4.1%;
  304. --popover-foreground: 210 20% 98%;
  305. --primary-foreground: 220.9 39.3% 11%;
  306. --secondary: 215 27.9% 16.9%;
  307. --secondary-foreground: 210 20% 98%;
  308. --muted: 215 27.9% 16.9%;
  309. --muted-foreground: 217.9 10.6% 64.9%;
  310. --accent: 215 27.9% 16.9%;
  311. --accent-foreground: 210 20% 98%;
  312. --destructive: 0 62.8% 30.6%;
  313. --destructive-foreground: 210 20% 98%;
  314. --border: 215 27.9% 16.9%;
  315. --input: 215 27.9% 16.9%;
  316. --ring: 216 12.2% 83.9%;
  317. }