globals.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  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. [class*='code-'] {
  237. @apply font-mono;
  238. }
  239. .code-xs-regular {
  240. font-size: 12px;
  241. font-weight: 400;
  242. line-height: 1.5;
  243. }
  244. .code-xs-semibold {
  245. font-size: 12px;
  246. font-weight: 600;
  247. line-height: 1.5;
  248. }
  249. .code-sm-regular {
  250. font-size: 13px;
  251. font-weight: 400;
  252. line-height: 1.5;
  253. }
  254. .code-sm-semibold {
  255. font-size: 13px;
  256. font-weight: 600;
  257. line-height: 1.5;
  258. }
  259. .code-md-regular {
  260. font-size: 14px;
  261. font-weight: 400;
  262. line-height: 1.5;
  263. }
  264. .code-md-semibold {
  265. font-size: 14px;
  266. font-weight: 600;
  267. line-height: 1.5;
  268. }
  269. .body-xs-light {
  270. font-size: 12px;
  271. font-weight: 300;
  272. line-height: 16px;
  273. }
  274. .body-xs-regular {
  275. font-size: 12px;
  276. font-weight: 400;
  277. line-height: 16px;
  278. }
  279. .body-xs-medium {
  280. font-size: 12px;
  281. font-weight: 500;
  282. line-height: 16px;
  283. }
  284. .body-sm-light {
  285. font-size: 13px;
  286. font-weight: 300;
  287. line-height: 16px;
  288. }
  289. .body-sm-regular {
  290. font-size: 13px;
  291. font-weight: 400;
  292. line-height: 16px;
  293. }
  294. .body-sm-medium {
  295. font-size: 13px;
  296. font-weight: 500;
  297. line-height: 16px;
  298. }
  299. .body-md-light {
  300. font-size: 14px;
  301. font-weight: 300;
  302. line-height: 20px;
  303. }
  304. .body-md-regular {
  305. font-size: 14px;
  306. font-weight: 400;
  307. line-height: 20px;
  308. }
  309. .body-md-medium {
  310. font-size: 14px;
  311. font-weight: 500;
  312. line-height: 20px;
  313. }
  314. .body-lg-light {
  315. font-size: 15px;
  316. font-weight: 300;
  317. line-height: 20px;
  318. }
  319. .body-lg-regular {
  320. font-size: 15px;
  321. font-weight: 400;
  322. line-height: 20px;
  323. }
  324. .body-lg-medium {
  325. font-size: 15px;
  326. font-weight: 500;
  327. line-height: 20px;
  328. }
  329. .body-xl-regular {
  330. font-size: 16px;
  331. font-weight: 400;
  332. line-height: 24px;
  333. }
  334. .body-xl-medium {
  335. font-size: 16px;
  336. font-weight: 500;
  337. line-height: 24px;
  338. }
  339. .body-xl-light {
  340. font-size: 16px;
  341. font-weight: 300;
  342. line-height: 24px;
  343. }
  344. .body-2xl-light {
  345. font-size: 18px;
  346. font-weight: 300;
  347. line-height: 1.5;
  348. }
  349. .body-2xl-regular {
  350. font-size: 18px;
  351. font-weight: 400;
  352. line-height: 1.5;
  353. }
  354. .body-2xl-medium {
  355. font-size: 18px;
  356. font-weight: 500;
  357. line-height: 1.5;
  358. }
  359. .title-xs-semi-bold {
  360. font-size: 12px;
  361. font-weight: 600;
  362. line-height: 16px;
  363. }
  364. .title-xs-bold {
  365. font-size: 12px;
  366. font-weight: 700;
  367. line-height: 16px;
  368. }
  369. .title-sm-semi-bold {
  370. font-size: 13px;
  371. font-weight: 600;
  372. line-height: 16px;
  373. }
  374. .title-sm-bold {
  375. font-size: 13px;
  376. font-weight: 700;
  377. line-height: 16px;
  378. }
  379. .title-md-semi-bold {
  380. font-size: 14px;
  381. font-weight: 600;
  382. line-height: 20px;
  383. }
  384. .title-md-bold {
  385. font-size: 14px;
  386. font-weight: 700;
  387. line-height: 20px;
  388. }
  389. .title-lg-semi-bold {
  390. font-size: 15px;
  391. font-weight: 600;
  392. line-height: 1.2;
  393. }
  394. .title-lg-bold {
  395. font-size: 15px;
  396. font-weight: 700;
  397. line-height: 1.2;
  398. }
  399. .title-xl-semi-bold {
  400. font-size: 16px;
  401. font-weight: 600;
  402. line-height: 1.2;
  403. }
  404. .title-xl-bold {
  405. font-size: 16px;
  406. font-weight: 700;
  407. line-height: 1.2;
  408. }
  409. .title-2xl-semi-bold {
  410. font-size: 18px;
  411. font-weight: 600;
  412. line-height: 1.2;
  413. }
  414. .title-2xl-bold {
  415. font-size: 18px;
  416. font-weight: 700;
  417. line-height: 1.2;
  418. }
  419. .title-3xl-semi-bold {
  420. font-size: 20px;
  421. font-weight: 600;
  422. line-height: 1.2;
  423. }
  424. .title-3xl-bold {
  425. font-size: 20px;
  426. font-weight: 700;
  427. line-height: 1.2;
  428. }
  429. .title-4xl-semi-bold {
  430. font-size: 24px;
  431. font-weight: 600;
  432. line-height: 1.2;
  433. }
  434. .title-4xl-bold {
  435. font-size: 24px;
  436. font-weight: 700;
  437. line-height: 1.2;
  438. }
  439. .title-5xl-semi-bold {
  440. font-size: 30px;
  441. font-weight: 600;
  442. line-height: 1.2;
  443. }
  444. .title-5xl-bold {
  445. font-size: 30px;
  446. font-weight: 700;
  447. line-height: 1.2;
  448. }
  449. .title-6xl-semi-bold {
  450. font-size: 36px;
  451. font-weight: 600;
  452. line-height: 1.2;
  453. }
  454. .title-6xl-bold {
  455. font-size: 36px;
  456. font-weight: 700;
  457. line-height: 1.2;
  458. }
  459. .title-7xl-semi-bold {
  460. font-size: 48px;
  461. font-weight: 600;
  462. line-height: 1.2;
  463. }
  464. .title-7xl-bold {
  465. font-size: 48px;
  466. font-weight: 700;
  467. line-height: 1.2;
  468. }
  469. .title-8xl-semi-bold {
  470. font-size: 60px;
  471. font-weight: 600;
  472. line-height: 1.2;
  473. }
  474. .title-8xl-bold {
  475. font-size: 60px;
  476. font-weight: 700;
  477. line-height: 1.2;
  478. }
  479. /* font define end */
  480. /* border radius start */
  481. .radius-2xs {
  482. border-radius: 2px;
  483. }
  484. .radius-xs {
  485. border-radius: 4px;
  486. }
  487. .radius-sm {
  488. border-radius: 6px;
  489. }
  490. .radius-md {
  491. border-radius: 8px;
  492. }
  493. .radius-lg {
  494. border-radius: 10px;
  495. }
  496. .radius-xl {
  497. border-radius: 12px;
  498. }
  499. .radius-2xl {
  500. border-radius: 16px;
  501. }
  502. .radius-3xl {
  503. border-radius: 20px;
  504. }
  505. .radius-4xl {
  506. border-radius: 24px;
  507. }
  508. .radius-5xl {
  509. border-radius: 24px;
  510. }
  511. .radius-6xl {
  512. border-radius: 28px;
  513. }
  514. .radius-7xl {
  515. border-radius: 32px;
  516. }
  517. .radius-8xl {
  518. border-radius: 40px;
  519. }
  520. .radius-9xl {
  521. border-radius: 48px;
  522. }
  523. .radius-full {
  524. border-radius: 64px;
  525. }
  526. /* border radius end */
  527. .link {
  528. @apply text-blue-600 cursor-pointer hover:opacity-80 transition-opacity duration-200 ease-in-out;
  529. }
  530. .text-gradient {
  531. background: linear-gradient(91.58deg, #2250F2 -29.55%, #0EBCF3 75.22%);
  532. -webkit-background-clip: text;
  533. -webkit-text-fill-color: transparent;
  534. background-clip: text;
  535. text-fill-color: transparent;
  536. }
  537. /* overwrite paging active dark model style */
  538. [class*=style_paginatio] li .text-primary-600 {
  539. color: rgb(28 100 242);
  540. background-color: rgb(235 245 255);
  541. }
  542. /* support safari 14 and below */
  543. .inset-0 {
  544. left: 0;
  545. right: 0;
  546. top: 0;
  547. bottom: 0;
  548. }
  549. @import '../components/base/button/index.css';
  550. @import '../components/base/action-button/index.css';
  551. @import '../components/base/modal/index.css';
  552. @tailwind utilities;