globals.css 10 KB

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