globals.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  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. line-height: 16px;
  116. }
  117. .system-2xs-regular-uppercase {
  118. font-size: 10px;
  119. font-weight: 400;
  120. text-transform: uppercase;
  121. line-height: 12px;
  122. }
  123. .system-2xs-medium {
  124. font-size: 10px;
  125. font-weight: 500;
  126. line-height: 12px;
  127. }
  128. .system-2xs-medium-uppercase {
  129. font-size: 10px;
  130. font-weight: 500;
  131. text-transform: uppercase;
  132. line-height: 12px;
  133. }
  134. .system-2xs-semibold-uppercase {
  135. font-size: 10px;
  136. font-weight: 600;
  137. text-transform: uppercase;
  138. line-height: 12px;
  139. }
  140. .system-xs-regular {
  141. font-size: 12px;
  142. font-weight: 400;
  143. line-height: 16px;
  144. }
  145. .system-xs-regular-uppercase {
  146. font-size: 12px;
  147. font-weight: 400;
  148. text-transform: uppercase;
  149. line-height: 16px;
  150. }
  151. .system-xs-medium {
  152. font-size: 12px;
  153. font-weight: 500;
  154. line-height: 16px;
  155. }
  156. .system-xs-medium-uppercase {
  157. font-size: 12px;
  158. font-weight: 500;
  159. text-transform: uppercase;
  160. line-height: 16px;
  161. }
  162. .system-xs-semibold {
  163. font-size: 12px;
  164. font-weight: 600;
  165. line-height: 16px;
  166. }
  167. .system-xs-semibold-uppercase {
  168. font-size: 12px;
  169. font-weight: 600;
  170. text-transform: uppercase;
  171. line-height: 16px;
  172. }
  173. .system-sm-regular {
  174. font-size: 13px;
  175. font-weight: 400;
  176. line-height: 16px;
  177. }
  178. .system-sm-medium {
  179. font-size: 13px;
  180. font-weight: 500;
  181. line-height: 16px;
  182. }
  183. .system-sm-medium-uppercase {
  184. font-size: 13px;
  185. font-weight: 500;
  186. text-transform: uppercase;
  187. line-height: 16px;
  188. }
  189. .system-sm-semibold {
  190. font-size: 13px;
  191. font-weight: 600;
  192. line-height: 16px;
  193. }
  194. .system-sm-semibold-uppercase {
  195. font-size: 13px;
  196. font-weight: 600;
  197. text-transform: uppercase;
  198. line-height: 16px;
  199. }
  200. .system-md-regular {
  201. font-size: 14px;
  202. font-weight: 400;
  203. line-height: 20px;
  204. }
  205. .system-md-medium {
  206. font-size: 14px;
  207. font-weight: 500;
  208. line-height: 20px;
  209. }
  210. .system-md-semibold {
  211. font-size: 14px;
  212. font-weight: 600;
  213. line-height: 20px;
  214. }
  215. .system-md-semibold-uppercase {
  216. font-size: 14px;
  217. font-weight: 600;
  218. text-transform: uppercase;
  219. line-height: 20px;
  220. }
  221. .system-xl-regular {
  222. font-size: 16px;
  223. font-weight: 400;
  224. line-height: 24px;
  225. }
  226. .system-xl-medium {
  227. font-size: 16px;
  228. font-weight: 500;
  229. line-height: 24px;
  230. }
  231. .system-xl-semibold {
  232. font-size: 16px;
  233. font-weight: 600;
  234. line-height: 24px;
  235. }
  236. .code-xs-regular {
  237. font-size: 12px;
  238. font-weight: 400;
  239. line-height: 1.5;
  240. }
  241. .code-xs-semibold {
  242. font-size: 12px;
  243. font-weight: 600;
  244. line-height: 1.5;
  245. }
  246. .code-sm-regular {
  247. font-size: 13px;
  248. font-weight: 400;
  249. line-height: 1.5;
  250. }
  251. .code-sm-semibold {
  252. font-size: 13px;
  253. font-weight: 600;
  254. line-height: 1.5;
  255. }
  256. .code-md-regular {
  257. font-size: 14px;
  258. font-weight: 400;
  259. line-height: 1.5;
  260. }
  261. .code-md-semibold {
  262. font-size: 14px;
  263. font-weight: 600;
  264. line-height: 1.5;
  265. }
  266. .body-xs-light {
  267. font-size: 12px;
  268. font-weight: 300;
  269. line-height: 16px;
  270. }
  271. .body-xs-regular {
  272. font-size: 12px;
  273. font-weight: 400;
  274. line-height: 16px;
  275. }
  276. .body-xs-medium {
  277. font-size: 12px;
  278. font-weight: 500;
  279. line-height: 16px;
  280. }
  281. .body-sm-light {
  282. font-size: 13px;
  283. font-weight: 300;
  284. line-height: 16px;
  285. }
  286. .body-sm-regular {
  287. font-size: 13px;
  288. font-weight: 400;
  289. line-height: 16px;
  290. }
  291. .body-sm-medium {
  292. font-size: 13px;
  293. font-weight: 500;
  294. line-height: 16px;
  295. }
  296. .body-md-light {
  297. font-size: 14px;
  298. font-weight: 300;
  299. line-height: 20px;
  300. }
  301. .body-md-regular {
  302. font-size: 14px;
  303. font-weight: 400;
  304. line-height: 20px;
  305. }
  306. .body-md-medium {
  307. font-size: 14px;
  308. font-weight: 500;
  309. line-height: 20px;
  310. }
  311. .body-lg-light {
  312. font-size: 15px;
  313. font-weight: 300;
  314. line-height: 20px;
  315. }
  316. .body-lg-regular {
  317. font-size: 15px;
  318. font-weight: 400;
  319. line-height: 20px;
  320. }
  321. .body-lg-medium {
  322. font-size: 15px;
  323. font-weight: 500;
  324. line-height: 20px;
  325. }
  326. .body-xl-regular {
  327. font-size: 16px;
  328. font-weight: 400;
  329. line-height: 24px;
  330. }
  331. .body-xl-medium {
  332. font-size: 16px;
  333. font-weight: 500;
  334. line-height: 24px;
  335. }
  336. .body-xl-light {
  337. font-size: 16px;
  338. font-weight: 300;
  339. line-height: 24px;
  340. }
  341. .body-2xl-light {
  342. font-size: 18px;
  343. font-weight: 300;
  344. line-height: 1.5;
  345. }
  346. .body-2xl-regular {
  347. font-size: 18px;
  348. font-weight: 400;
  349. line-height: 1.5;
  350. }
  351. .body-2xl-medium {
  352. font-size: 18px;
  353. font-weight: 500;
  354. line-height: 1.5;
  355. }
  356. .title-xs-semi-bold {
  357. font-size: 12px;
  358. font-weight: 600;
  359. line-height: 16px;
  360. }
  361. .title-xs-bold {
  362. font-size: 12px;
  363. font-weight: 700;
  364. line-height: 16px;
  365. }
  366. .title-sm-semi-bold {
  367. font-size: 13px;
  368. font-weight: 600;
  369. line-height: 16px;
  370. }
  371. .title-sm-bold {
  372. font-size: 13px;
  373. font-weight: 700;
  374. line-height: 16px;
  375. }
  376. .title-md-semi-bold {
  377. font-size: 14px;
  378. font-weight: 600;
  379. line-height: 20px;
  380. }
  381. .title-md-bold {
  382. font-size: 14px;
  383. font-weight: 700;
  384. line-height: 20px;
  385. }
  386. .title-lg-semi-bold {
  387. font-size: 15px;
  388. font-weight: 600;
  389. line-height: 1.2;
  390. }
  391. .title-lg-bold {
  392. font-size: 15px;
  393. font-weight: 700;
  394. line-height: 1.2;
  395. }
  396. .title-xl-semi-bold {
  397. font-size: 16px;
  398. font-weight: 600;
  399. line-height: 1.2;
  400. }
  401. .title-xl-bold {
  402. font-size: 16px;
  403. font-weight: 700;
  404. line-height: 1.2;
  405. }
  406. .title-2xl-semi-bold {
  407. font-size: 18px;
  408. font-weight: 600;
  409. line-height: 1.2;
  410. }
  411. .title-2xl-bold {
  412. font-size: 18px;
  413. font-weight: 700;
  414. line-height: 1.2;
  415. }
  416. .title-3xl-semi-bold {
  417. font-size: 20px;
  418. font-weight: 600;
  419. line-height: 1.2;
  420. }
  421. .title-3xl-bold {
  422. font-size: 20px;
  423. font-weight: 700;
  424. line-height: 1.2;
  425. }
  426. .title-4xl-semi-bold {
  427. font-size: 24px;
  428. font-weight: 600;
  429. line-height: 1.2;
  430. }
  431. .title-4xl-bold {
  432. font-size: 24px;
  433. font-weight: 700;
  434. line-height: 1.2;
  435. }
  436. .title-5xl-semi-bold {
  437. font-size: 30px;
  438. font-weight: 600;
  439. line-height: 1.2;
  440. }
  441. .title-5xl-bold {
  442. font-size: 30px;
  443. font-weight: 700;
  444. line-height: 1.2;
  445. }
  446. .title-6xl-semi-bold {
  447. font-size: 36px;
  448. font-weight: 600;
  449. line-height: 1.2;
  450. }
  451. .title-6xl-bold {
  452. font-size: 36px;
  453. font-weight: 700;
  454. line-height: 1.2;
  455. }
  456. .title-7xl-semi-bold {
  457. font-size: 48px;
  458. font-weight: 600;
  459. line-height: 1.2;
  460. }
  461. .title-7xl-bold {
  462. font-size: 48px;
  463. font-weight: 700;
  464. line-height: 1.2;
  465. }
  466. .title-8xl-semi-bold {
  467. font-size: 60px;
  468. font-weight: 600;
  469. line-height: 1.2;
  470. }
  471. .title-8xl-bold {
  472. font-size: 60px;
  473. font-weight: 700;
  474. line-height: 1.2;
  475. }
  476. /* font define end */
  477. /* border radius start */
  478. .radius-2xs {
  479. border-radius: 2px;
  480. }
  481. .radius-xs {
  482. border-radius: 4px;
  483. }
  484. .radius-sm {
  485. border-radius: 6px;
  486. }
  487. .radius-md {
  488. border-radius: 8px;
  489. }
  490. .radius-lg {
  491. border-radius: 10px;
  492. }
  493. .radius-xl {
  494. border-radius: 12px;
  495. }
  496. .radius-2xl {
  497. border-radius: 16px;
  498. }
  499. .radius-3xl {
  500. border-radius: 20px;
  501. }
  502. .radius-4xl {
  503. border-radius: 24px;
  504. }
  505. .radius-5xl {
  506. border-radius: 24px;
  507. }
  508. .radius-6xl {
  509. border-radius: 28px;
  510. }
  511. .radius-7xl {
  512. border-radius: 32px;
  513. }
  514. .radius-8xl {
  515. border-radius: 40px;
  516. }
  517. .radius-9xl {
  518. border-radius: 48px;
  519. }
  520. .radius-full {
  521. border-radius: 64px;
  522. }
  523. /* border radius end */
  524. .link {
  525. @apply text-blue-600 cursor-pointer hover:opacity-80 transition-opacity duration-200 ease-in-out;
  526. }
  527. .text-gradient {
  528. background: linear-gradient(91.58deg, #2250F2 -29.55%, #0EBCF3 75.22%);
  529. -webkit-background-clip: text;
  530. -webkit-text-fill-color: transparent;
  531. background-clip: text;
  532. text-fill-color: transparent;
  533. }
  534. /* overwrite paging active dark model style */
  535. [class*=style_paginatio] li .text-primary-600 {
  536. color: rgb(28 100 242);
  537. background-color: rgb(235 245 255);
  538. }
  539. /* support safari 14 and below */
  540. .inset-0 {
  541. left: 0;
  542. right: 0;
  543. top: 0;
  544. bottom: 0;
  545. }
  546. @import '../components/base/button/index.css';
  547. @import '../components/base/modal/index.css';
  548. @tailwind utilities;