globals.css 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. @import "preflight.css";
  2. @tailwind base;
  3. @tailwind components;
  4. @import '../../themes/light.css';
  5. @import '../../themes/dark.css';
  6. html[data-changing-theme] * {
  7. transition: none !important;
  8. }
  9. :root {
  10. --max-width: 1100px;
  11. --border-radius: 12px;
  12. --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
  13. "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
  14. "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
  15. --foreground-rgb: 0, 0, 0;
  16. --background-start-rgb: 214, 219, 220;
  17. --background-end-rgb: 255, 255, 255;
  18. --primary-glow: conic-gradient(from 180deg at 50% 50%,
  19. #16abff33 0deg,
  20. #0885ff33 55deg,
  21. #54d6ff33 120deg,
  22. #0071ff33 160deg,
  23. transparent 360deg);
  24. --secondary-glow: radial-gradient(rgba(255, 255, 255, 1),
  25. rgba(255, 255, 255, 0));
  26. --tile-start-rgb: 239, 245, 249;
  27. --tile-end-rgb: 228, 232, 233;
  28. --tile-border: conic-gradient(#00000080,
  29. #00000040,
  30. #00000030,
  31. #00000020,
  32. #00000010,
  33. #00000010,
  34. #00000080);
  35. --callout-rgb: 238, 240, 241;
  36. --callout-border-rgb: 172, 175, 176;
  37. --card-rgb: 180, 185, 188;
  38. --card-border-rgb: 131, 134, 135;
  39. }
  40. /* @media (prefers-color-scheme: dark) {
  41. :root {
  42. --foreground-rgb: 255, 255, 255;
  43. --background-start-rgb: 0, 0, 0;
  44. --background-end-rgb: 0, 0, 0;
  45. --primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
  46. --secondary-glow: linear-gradient(to bottom right,
  47. rgba(1, 65, 255, 0),
  48. rgba(1, 65, 255, 0),
  49. rgba(1, 65, 255, 0.3));
  50. --tile-start-rgb: 2, 13, 46;
  51. --tile-end-rgb: 2, 5, 19;
  52. --tile-border: conic-gradient(#ffffff80,
  53. #ffffff40,
  54. #ffffff30,
  55. #ffffff20,
  56. #ffffff10,
  57. #ffffff10,
  58. #ffffff80);
  59. --callout-rgb: 20, 20, 20;
  60. --callout-border-rgb: 108, 108, 108;
  61. --card-rgb: 100, 100, 100;
  62. --card-border-rgb: 200, 200, 200;
  63. }
  64. } */
  65. * {
  66. box-sizing: border-box;
  67. padding: 0;
  68. margin: 0;
  69. }
  70. html,
  71. body {
  72. max-width: 100vw;
  73. overflow: hidden;
  74. }
  75. body {
  76. color: rgb(var(--foreground-rgb));
  77. user-select: none;
  78. /* background: linear-gradient(
  79. to bottom,
  80. transparent,
  81. rgb(var(--background-end-rgb))
  82. )
  83. rgb(var(--background-start-rgb)); */
  84. }
  85. a {
  86. color: inherit;
  87. text-decoration: none;
  88. outline: none;
  89. }
  90. button:focus-within {
  91. outline: none;
  92. }
  93. /* @media (prefers-color-scheme: dark) {
  94. html {
  95. color-scheme: dark;
  96. }
  97. } */
  98. /* CSS Utils */
  99. .h1 {
  100. padding-bottom: 1.5rem;
  101. line-height: 1.5;
  102. font-size: 1.125rem;
  103. color: #111928;
  104. }
  105. .h2 {
  106. font-size: 14px;
  107. font-weight: 500;
  108. color: #111928;
  109. line-height: 1.5;
  110. }
  111. /* font define start */
  112. .system-kbd {
  113. font-size: 12px;
  114. font-weight: 500;
  115. }
  116. .system-2xs-regular-uppercase {
  117. font-size: 10px;
  118. font-weight: 400;
  119. text-transform: uppercase;
  120. }
  121. .system-2xs-medium {
  122. font-size: 10px;
  123. font-weight: 500;
  124. }
  125. .system-2xs-medium-uppercase {
  126. font-size: 10px;
  127. font-weight: 500;
  128. text-transform: uppercase;
  129. }
  130. .system-2xs-semibold-uppercase {
  131. font-size: 10px;
  132. font-weight: 600;
  133. text-transform: uppercase;
  134. }
  135. .system-xs-regular {
  136. font-size: 12px;
  137. font-weight: 400;
  138. }
  139. .system-xs-regular-uppercase {
  140. font-size: 12px;
  141. font-weight: 400;
  142. text-transform: uppercase;
  143. }
  144. .system-xs-medium {
  145. font-size: 12px;
  146. font-weight: 500;
  147. }
  148. .system-xs-medium-uppercase {
  149. font-size: 12px;
  150. font-weight: 500;
  151. text-transform: uppercase;
  152. }
  153. .system-xs-semibold {
  154. font-size: 12px;
  155. font-weight: 600;
  156. }
  157. .system-xs-semibold-uppercase {
  158. font-size: 12px;
  159. font-weight: 600;
  160. text-transform: uppercase;
  161. }
  162. .system-sm-regular {
  163. font-size: 13px;
  164. font-weight: 400;
  165. }
  166. .system-sm-medium {
  167. font-size: 13px;
  168. font-weight: 500;
  169. }
  170. .system-sm-medium-uppercase {
  171. font-size: 13px;
  172. font-weight: 500;
  173. text-transform: uppercase;
  174. }
  175. .system-sm-semibold {
  176. font-size: 13px;
  177. font-weight: 600;
  178. }
  179. .system-sm-semibold-uppercase {
  180. font-size: 13px;
  181. font-weight: 600;
  182. text-transform: uppercase;
  183. }
  184. .system-md-regular {
  185. font-size: 14px;
  186. font-weight: 400;
  187. }
  188. .system-md-medium {
  189. font-size: 14px;
  190. font-weight: 500;
  191. }
  192. .system-md-semibold {
  193. font-size: 14px;
  194. font-weight: 600;
  195. }
  196. .system-md-semibold-uppercase {
  197. font-size: 14px;
  198. font-weight: 600;
  199. text-transform: uppercase;
  200. }
  201. .system-xl-regular {
  202. font-size: 16px;
  203. font-weight: 400;
  204. }
  205. .system-xl-medium {
  206. font-size: 16px;
  207. font-weight: 500;
  208. }
  209. .system-xl-semibold {
  210. font-size: 16px;
  211. font-weight: 600;
  212. }
  213. .code-xs-regular {
  214. font-size: 12px;
  215. font-weight: 400;
  216. }
  217. .code-xs-semibold {
  218. font-size: 12px;
  219. font-weight: undefined;
  220. }
  221. .code-sm-regular {
  222. font-size: 13px;
  223. font-weight: 400;
  224. }
  225. .code-sm-semibold {
  226. font-size: 13px;
  227. font-weight: undefined;
  228. }
  229. .code-md-regular {
  230. font-size: 14px;
  231. font-weight: 400;
  232. }
  233. .code-md-semibold {
  234. font-size: 14px;
  235. font-weight: undefined;
  236. }
  237. .body-xs-light {
  238. font-size: 12px;
  239. font-weight: undefined;
  240. }
  241. .body-xs-regular {
  242. font-size: 12px;
  243. font-weight: 400;
  244. }
  245. .body-xs-medium {
  246. font-size: 12px;
  247. font-weight: 500;
  248. }
  249. .body-sm-light {
  250. font-size: 13px;
  251. font-weight: undefined;
  252. }
  253. .body-sm-regular {
  254. font-size: 13px;
  255. font-weight: 400;
  256. }
  257. .body-sm-medium {
  258. font-size: 13px;
  259. font-weight: 500;
  260. }
  261. .body-md-light {
  262. font-size: 14px;
  263. font-weight: undefined;
  264. }
  265. .body-md-regular {
  266. font-size: 14px;
  267. font-weight: 400;
  268. }
  269. .body-md-medium {
  270. font-size: 14px;
  271. font-weight: 500;
  272. }
  273. .body-lg-light {
  274. font-size: 15px;
  275. font-weight: undefined;
  276. }
  277. .body-lg-regular {
  278. font-size: 15px;
  279. font-weight: 400;
  280. }
  281. .body-lg-medium {
  282. font-size: 15px;
  283. font-weight: 500;
  284. }
  285. .body-xl-regular {
  286. font-size: 16px;
  287. font-weight: 400;
  288. }
  289. .body-xl-medium {
  290. font-size: 16px;
  291. font-weight: 500;
  292. }
  293. .body-xl-light {
  294. font-size: 16px;
  295. font-weight: undefined;
  296. }
  297. .body-2xl-light {
  298. font-size: 18px;
  299. font-weight: undefined;
  300. }
  301. .body-2xl-regular {
  302. font-size: 18px;
  303. font-weight: 400;
  304. }
  305. .body-2xl-medium {
  306. font-size: 18px;
  307. font-weight: 500;
  308. }
  309. .title-xs-semi-bold {
  310. font-size: 12px;
  311. font-weight: 600;
  312. }
  313. .title-xs-bold {
  314. font-size: 12px;
  315. font-weight: 700;
  316. }
  317. .title-sm-semi-bold {
  318. font-size: 13px;
  319. font-weight: 600;
  320. }
  321. .title-sm-bold {
  322. font-size: 13px;
  323. font-weight: 700;
  324. }
  325. .title-md-semi-bold {
  326. font-size: 14px;
  327. font-weight: 600;
  328. }
  329. .title-md-bold {
  330. font-size: 14px;
  331. font-weight: 700;
  332. }
  333. .title-lg-semi-bold {
  334. font-size: 15px;
  335. font-weight: 600;
  336. }
  337. .title-lg-bold {
  338. font-size: 15px;
  339. font-weight: 700;
  340. }
  341. .title-xl-semi-bold {
  342. font-size: 16px;
  343. font-weight: 600;
  344. }
  345. .title-xl-bold {
  346. font-size: 16px;
  347. font-weight: 700;
  348. }
  349. .title-2xl-semi-bold {
  350. font-size: 18px;
  351. font-weight: 600;
  352. }
  353. .title-2xl-bold {
  354. font-size: 18px;
  355. font-weight: 700;
  356. }
  357. .title-3xl-semi-bold {
  358. font-size: 20px;
  359. font-weight: 600;
  360. }
  361. .title-3xl-bold {
  362. font-size: 20px;
  363. font-weight: 700;
  364. }
  365. .title-4xl-semi-bold {
  366. font-size: 24px;
  367. font-weight: 600;
  368. }
  369. .title-4xl-bold {
  370. font-size: 24px;
  371. font-weight: 700;
  372. }
  373. .title-5xl-semi-bold {
  374. font-size: 30px;
  375. font-weight: 600;
  376. }
  377. .title-5xl-bold {
  378. font-size: 30px;
  379. font-weight: 700;
  380. }
  381. .title-6xl-semi-bold {
  382. font-size: 36px;
  383. font-weight: 600;
  384. }
  385. .title-6xl-bold {
  386. font-size: 36px;
  387. font-weight: 700;
  388. }
  389. .title-7xl-semi-bold {
  390. font-size: 48px;
  391. font-weight: 600;
  392. }
  393. .title-7xl-bold {
  394. font-size: 48px;
  395. font-weight: 700;
  396. }
  397. .title-8xl-semi-bold {
  398. font-size: 60px;
  399. font-weight: 600;
  400. }
  401. .title-8xl-bold {
  402. font-size: 60px;
  403. font-weight: 700;
  404. }
  405. /* font define end */
  406. .link {
  407. @apply text-blue-600 cursor-pointer hover:opacity-80 transition-opacity duration-200 ease-in-out;
  408. }
  409. .text-gradient {
  410. background: linear-gradient(91.58deg, #2250F2 -29.55%, #0EBCF3 75.22%);
  411. -webkit-background-clip: text;
  412. -webkit-text-fill-color: transparent;
  413. background-clip: text;
  414. text-fill-color: transparent;
  415. }
  416. /* overwrite paging active dark model style */
  417. [class*=style_paginatio] li .text-primary-600 {
  418. color: rgb(28 100 242);
  419. background-color: rgb(235 245 255);
  420. }
  421. /* support safari 14 and below */
  422. .inset-0 {
  423. left: 0;
  424. right: 0;
  425. top: 0;
  426. bottom: 0;
  427. }
  428. @import '../components/base/button/index.css';
  429. @import '../components/base/modal/index.css';
  430. @tailwind utilities;