tailwind.config.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977
  1. /** @type {import('tailwindcss').Config} */
  2. module.exports = {
  3. content: [],
  4. presets: [],
  5. purge: [
  6. ...process.env.NODE_ENV === 'production'
  7. // 只在production环境使用,节省dev环境时间
  8. ? ['./view/**/*.html', './view/**/*.vue', './view/**/*.jsx']
  9. : [],
  10. ],
  11. darkMode: 'media', // or 'class'
  12. theme: {
  13. screens: {
  14. sm: '640px',
  15. md: '768px',
  16. lg: '1024px',
  17. xl: '1280px',
  18. '2xl': '1536px',
  19. },
  20. supports: {},
  21. colors: ({ colors }) => ({
  22. inherit: colors.inherit,
  23. current: colors.current,
  24. transparent: colors.transparent,
  25. black: colors.black,
  26. white: colors.white,
  27. slate: colors.slate,
  28. gray: colors.gray,
  29. zinc: colors.zinc,
  30. neutral: colors.neutral,
  31. stone: colors.stone,
  32. red: colors.red,
  33. orange: colors.orange,
  34. amber: colors.amber,
  35. yellow: colors.yellow,
  36. lime: colors.lime,
  37. green: colors.green,
  38. emerald: colors.emerald,
  39. teal: colors.teal,
  40. cyan: colors.cyan,
  41. sky: colors.sky,
  42. blue: colors.blue,
  43. indigo: colors.indigo,
  44. violet: colors.violet,
  45. purple: colors.purple,
  46. fuchsia: colors.fuchsia,
  47. pink: colors.pink,
  48. rose: colors.rose,
  49. }),
  50. columns: {
  51. auto: 'auto',
  52. 1: '1',
  53. 2: '2',
  54. 3: '3',
  55. 4: '4',
  56. 5: '5',
  57. 6: '6',
  58. 7: '7',
  59. 8: '8',
  60. 9: '9',
  61. 10: '10',
  62. 11: '11',
  63. 12: '12',
  64. '3xs': '16rem',
  65. '2xs': '18rem',
  66. xs: '20rem',
  67. sm: '24rem',
  68. md: '28rem',
  69. lg: '32rem',
  70. xl: '36rem',
  71. '2xl': '42rem',
  72. '3xl': '48rem',
  73. '4xl': '56rem',
  74. '5xl': '64rem',
  75. '6xl': '72rem',
  76. '7xl': '80rem',
  77. },
  78. spacing: {
  79. px: '1px',
  80. 0: '0px',
  81. 0.5: '0.125rem',
  82. 1: '0.25rem',
  83. 1.5: '0.375rem',
  84. 2: '0.5rem',
  85. 2.5: '0.625rem',
  86. 3: '0.75rem',
  87. 3.5: '0.875rem',
  88. 4: '1rem',
  89. 5: '1.25rem',
  90. 6: '1.5rem',
  91. 7: '1.75rem',
  92. 8: '2rem',
  93. 9: '2.25rem',
  94. 10: '2.5rem',
  95. 11: '2.75rem',
  96. 12: '3rem',
  97. 14: '3.5rem',
  98. 16: '4rem',
  99. 20: '5rem',
  100. 24: '6rem',
  101. 28: '7rem',
  102. 32: '8rem',
  103. 36: '9rem',
  104. 40: '10rem',
  105. 44: '11rem',
  106. 48: '12rem',
  107. 52: '13rem',
  108. 56: '14rem',
  109. 60: '15rem',
  110. 64: '16rem',
  111. 72: '18rem',
  112. 80: '20rem',
  113. 96: '24rem',
  114. },
  115. animation: {
  116. none: 'none',
  117. spin: 'spin 1s linear infinite',
  118. ping: 'ping 1s cubic-bezier(0, 0, 0.2, 1) infinite',
  119. pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
  120. bounce: 'bounce 1s infinite',
  121. },
  122. aria: {
  123. checked: 'checked="true"',
  124. disabled: 'disabled="true"',
  125. expanded: 'expanded="true"',
  126. hidden: 'hidden="true"',
  127. pressed: 'pressed="true"',
  128. readonly: 'readonly="true"',
  129. required: 'required="true"',
  130. selected: 'selected="true"',
  131. },
  132. aspectRatio: {
  133. auto: 'auto',
  134. square: '1 / 1',
  135. video: '16 / 9',
  136. },
  137. backdropBlur: ({ theme }) => theme('blur'),
  138. backdropBrightness: ({ theme }) => theme('brightness'),
  139. backdropContrast: ({ theme }) => theme('contrast'),
  140. backdropGrayscale: ({ theme }) => theme('grayscale'),
  141. backdropHueRotate: ({ theme }) => theme('hueRotate'),
  142. backdropInvert: ({ theme }) => theme('invert'),
  143. backdropOpacity: ({ theme }) => theme('opacity'),
  144. backdropSaturate: ({ theme }) => theme('saturate'),
  145. backdropSepia: ({ theme }) => theme('sepia'),
  146. backgroundColor: ({ theme }) => theme('colors'),
  147. backgroundImage: {
  148. none: 'none',
  149. 'gradient-to-t': 'linear-gradient(to top, var(--tw-gradient-stops))',
  150. 'gradient-to-tr': 'linear-gradient(to top right, var(--tw-gradient-stops))',
  151. 'gradient-to-r': 'linear-gradient(to right, var(--tw-gradient-stops))',
  152. 'gradient-to-br': 'linear-gradient(to bottom right, var(--tw-gradient-stops))',
  153. 'gradient-to-b': 'linear-gradient(to bottom, var(--tw-gradient-stops))',
  154. 'gradient-to-bl': 'linear-gradient(to bottom left, var(--tw-gradient-stops))',
  155. 'gradient-to-l': 'linear-gradient(to left, var(--tw-gradient-stops))',
  156. 'gradient-to-tl': 'linear-gradient(to top left, var(--tw-gradient-stops))',
  157. },
  158. backgroundOpacity: ({ theme }) => theme('opacity'),
  159. backgroundPosition: {
  160. bottom: 'bottom',
  161. center: 'center',
  162. left: 'left',
  163. 'left-bottom': 'left bottom',
  164. 'left-top': 'left top',
  165. right: 'right',
  166. 'right-bottom': 'right bottom',
  167. 'right-top': 'right top',
  168. top: 'top',
  169. },
  170. backgroundSize: {
  171. auto: 'auto',
  172. cover: 'cover',
  173. contain: 'contain',
  174. },
  175. blur: {
  176. 0: '0',
  177. none: '0',
  178. sm: '4px',
  179. DEFAULT: '8px',
  180. md: '12px',
  181. lg: '16px',
  182. xl: '24px',
  183. '2xl': '40px',
  184. '3xl': '64px',
  185. },
  186. brightness: {
  187. 0: '0',
  188. 50: '.5',
  189. 75: '.75',
  190. 90: '.9',
  191. 95: '.95',
  192. 100: '1',
  193. 105: '1.05',
  194. 110: '1.1',
  195. 125: '1.25',
  196. 150: '1.5',
  197. 200: '2',
  198. },
  199. borderColor: ({ theme }) => ({
  200. ...theme('colors'),
  201. DEFAULT: theme('colors.gray.200', 'currentColor'),
  202. }),
  203. borderOpacity: ({ theme }) => theme('opacity'),
  204. borderRadius: {
  205. none: '0px',
  206. sm: '0.125rem',
  207. DEFAULT: '0.25rem',
  208. md: '0.375rem',
  209. lg: '0.5rem',
  210. xl: '0.75rem',
  211. '2xl': '1rem',
  212. '3xl': '1.5rem',
  213. full: '9999px',
  214. },
  215. borderSpacing: ({ theme }) => ({
  216. ...theme('spacing'),
  217. }),
  218. borderWidth: {
  219. DEFAULT: '1px',
  220. 0: '0px',
  221. 2: '2px',
  222. 4: '4px',
  223. 8: '8px',
  224. },
  225. boxShadow: {
  226. sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
  227. DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
  228. md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
  229. lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
  230. xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
  231. '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
  232. inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
  233. none: 'none',
  234. },
  235. boxShadowColor: ({ theme }) => theme('colors'),
  236. caretColor: ({ theme }) => theme('colors'),
  237. accentColor: ({ theme }) => ({
  238. ...theme('colors'),
  239. auto: 'auto',
  240. }),
  241. contrast: {
  242. 0: '0',
  243. 50: '.5',
  244. 75: '.75',
  245. 100: '1',
  246. 125: '1.25',
  247. 150: '1.5',
  248. 200: '2',
  249. },
  250. container: {},
  251. content: {
  252. none: 'none',
  253. },
  254. cursor: {
  255. auto: 'auto',
  256. default: 'default',
  257. pointer: 'pointer',
  258. wait: 'wait',
  259. text: 'text',
  260. move: 'move',
  261. help: 'help',
  262. 'not-allowed': 'not-allowed',
  263. none: 'none',
  264. 'context-menu': 'context-menu',
  265. progress: 'progress',
  266. cell: 'cell',
  267. crosshair: 'crosshair',
  268. 'vertical-text': 'vertical-text',
  269. alias: 'alias',
  270. copy: 'copy',
  271. 'no-drop': 'no-drop',
  272. grab: 'grab',
  273. grabbing: 'grabbing',
  274. 'all-scroll': 'all-scroll',
  275. 'col-resize': 'col-resize',
  276. 'row-resize': 'row-resize',
  277. 'n-resize': 'n-resize',
  278. 'e-resize': 'e-resize',
  279. 's-resize': 's-resize',
  280. 'w-resize': 'w-resize',
  281. 'ne-resize': 'ne-resize',
  282. 'nw-resize': 'nw-resize',
  283. 'se-resize': 'se-resize',
  284. 'sw-resize': 'sw-resize',
  285. 'ew-resize': 'ew-resize',
  286. 'ns-resize': 'ns-resize',
  287. 'nesw-resize': 'nesw-resize',
  288. 'nwse-resize': 'nwse-resize',
  289. 'zoom-in': 'zoom-in',
  290. 'zoom-out': 'zoom-out',
  291. },
  292. divideColor: ({ theme }) => theme('borderColor'),
  293. divideOpacity: ({ theme }) => theme('borderOpacity'),
  294. divideWidth: ({ theme }) => theme('borderWidth'),
  295. dropShadow: {
  296. sm: '0 1px 1px rgb(0 0 0 / 0.05)',
  297. DEFAULT: ['0 1px 2px rgb(0 0 0 / 0.1)', '0 1px 1px rgb(0 0 0 / 0.06)'],
  298. md: ['0 4px 3px rgb(0 0 0 / 0.07)', '0 2px 2px rgb(0 0 0 / 0.06)'],
  299. lg: ['0 10px 8px rgb(0 0 0 / 0.04)', '0 4px 3px rgb(0 0 0 / 0.1)'],
  300. xl: ['0 20px 13px rgb(0 0 0 / 0.03)', '0 8px 5px rgb(0 0 0 / 0.08)'],
  301. '2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
  302. none: '0 0 #0000',
  303. },
  304. fill: ({ theme }) => ({
  305. none: 'none',
  306. ...theme('colors'),
  307. }),
  308. grayscale: {
  309. 0: '0',
  310. DEFAULT: '100%',
  311. },
  312. hueRotate: {
  313. 0: '0deg',
  314. 15: '15deg',
  315. 30: '30deg',
  316. 60: '60deg',
  317. 90: '90deg',
  318. 180: '180deg',
  319. },
  320. invert: {
  321. 0: '0',
  322. DEFAULT: '100%',
  323. },
  324. flex: {
  325. 1: '1 1 0%',
  326. auto: '1 1 auto',
  327. initial: '0 1 auto',
  328. none: 'none',
  329. },
  330. flexBasis: ({ theme }) => ({
  331. auto: 'auto',
  332. ...theme('spacing'),
  333. '1/2': '50%',
  334. '1/3': '33.333333%',
  335. '2/3': '66.666667%',
  336. '1/4': '25%',
  337. '2/4': '50%',
  338. '3/4': '75%',
  339. '1/5': '20%',
  340. '2/5': '40%',
  341. '3/5': '60%',
  342. '4/5': '80%',
  343. '1/6': '16.666667%',
  344. '2/6': '33.333333%',
  345. '3/6': '50%',
  346. '4/6': '66.666667%',
  347. '5/6': '83.333333%',
  348. '1/12': '8.333333%',
  349. '2/12': '16.666667%',
  350. '3/12': '25%',
  351. '4/12': '33.333333%',
  352. '5/12': '41.666667%',
  353. '6/12': '50%',
  354. '7/12': '58.333333%',
  355. '8/12': '66.666667%',
  356. '9/12': '75%',
  357. '10/12': '83.333333%',
  358. '11/12': '91.666667%',
  359. full: '100%',
  360. }),
  361. flexGrow: {
  362. 0: '0',
  363. DEFAULT: '1',
  364. },
  365. flexShrink: {
  366. 0: '0',
  367. DEFAULT: '1',
  368. },
  369. fontFamily: {
  370. sans: [
  371. 'ui-sans-serif',
  372. 'system-ui',
  373. '-apple-system',
  374. 'BlinkMacSystemFont',
  375. '"Segoe UI"',
  376. 'Roboto',
  377. '"Helvetica Neue"',
  378. 'Arial',
  379. '"Noto Sans"',
  380. 'sans-serif',
  381. '"Apple Color Emoji"',
  382. '"Segoe UI Emoji"',
  383. '"Segoe UI Symbol"',
  384. '"Noto Color Emoji"',
  385. ],
  386. serif: ['ui-serif', 'Georgia', 'Cambria', '"Times New Roman"', 'Times', 'serif'],
  387. mono: [
  388. 'ui-monospace',
  389. 'SFMono-Regular',
  390. 'Menlo',
  391. 'Monaco',
  392. 'Consolas',
  393. '"Liberation Mono"',
  394. '"Courier New"',
  395. 'monospace',
  396. ],
  397. },
  398. fontSize: {
  399. xs: ['0.75rem', { lineHeight: '1rem' }],
  400. sm: ['0.875rem', { lineHeight: '1.25rem' }],
  401. base: ['1rem', { lineHeight: '1.5rem' }],
  402. lg: ['1.125rem', { lineHeight: '1.75rem' }],
  403. xl: ['1.25rem', { lineHeight: '1.75rem' }],
  404. '2xl': ['1.5rem', { lineHeight: '2rem' }],
  405. '3xl': ['1.875rem', { lineHeight: '2.25rem' }],
  406. '4xl': ['2.25rem', { lineHeight: '2.5rem' }],
  407. '5xl': ['3rem', { lineHeight: '1' }],
  408. '6xl': ['3.75rem', { lineHeight: '1' }],
  409. '7xl': ['4.5rem', { lineHeight: '1' }],
  410. '8xl': ['6rem', { lineHeight: '1' }],
  411. '9xl': ['8rem', { lineHeight: '1' }],
  412. },
  413. fontWeight: {
  414. thin: '100',
  415. extralight: '200',
  416. light: '300',
  417. normal: '400',
  418. medium: '500',
  419. semibold: '600',
  420. bold: '700',
  421. extrabold: '800',
  422. black: '900',
  423. },
  424. gap: ({ theme }) => theme('spacing'),
  425. gradientColorStops: ({ theme }) => theme('colors'),
  426. gridAutoColumns: {
  427. auto: 'auto',
  428. min: 'min-content',
  429. max: 'max-content',
  430. fr: 'minmax(0, 1fr)',
  431. },
  432. gridAutoRows: {
  433. auto: 'auto',
  434. min: 'min-content',
  435. max: 'max-content',
  436. fr: 'minmax(0, 1fr)',
  437. },
  438. gridColumn: {
  439. auto: 'auto',
  440. 'span-1': 'span 1 / span 1',
  441. 'span-2': 'span 2 / span 2',
  442. 'span-3': 'span 3 / span 3',
  443. 'span-4': 'span 4 / span 4',
  444. 'span-5': 'span 5 / span 5',
  445. 'span-6': 'span 6 / span 6',
  446. 'span-7': 'span 7 / span 7',
  447. 'span-8': 'span 8 / span 8',
  448. 'span-9': 'span 9 / span 9',
  449. 'span-10': 'span 10 / span 10',
  450. 'span-11': 'span 11 / span 11',
  451. 'span-12': 'span 12 / span 12',
  452. 'span-full': '1 / -1',
  453. },
  454. gridColumnEnd: {
  455. auto: 'auto',
  456. 1: '1',
  457. 2: '2',
  458. 3: '3',
  459. 4: '4',
  460. 5: '5',
  461. 6: '6',
  462. 7: '7',
  463. 8: '8',
  464. 9: '9',
  465. 10: '10',
  466. 11: '11',
  467. 12: '12',
  468. 13: '13',
  469. },
  470. gridColumnStart: {
  471. auto: 'auto',
  472. 1: '1',
  473. 2: '2',
  474. 3: '3',
  475. 4: '4',
  476. 5: '5',
  477. 6: '6',
  478. 7: '7',
  479. 8: '8',
  480. 9: '9',
  481. 10: '10',
  482. 11: '11',
  483. 12: '12',
  484. 13: '13',
  485. },
  486. gridRow: {
  487. auto: 'auto',
  488. 'span-1': 'span 1 / span 1',
  489. 'span-2': 'span 2 / span 2',
  490. 'span-3': 'span 3 / span 3',
  491. 'span-4': 'span 4 / span 4',
  492. 'span-5': 'span 5 / span 5',
  493. 'span-6': 'span 6 / span 6',
  494. 'span-full': '1 / -1',
  495. },
  496. gridRowStart: {
  497. auto: 'auto',
  498. 1: '1',
  499. 2: '2',
  500. 3: '3',
  501. 4: '4',
  502. 5: '5',
  503. 6: '6',
  504. 7: '7',
  505. },
  506. gridRowEnd: {
  507. auto: 'auto',
  508. 1: '1',
  509. 2: '2',
  510. 3: '3',
  511. 4: '4',
  512. 5: '5',
  513. 6: '6',
  514. 7: '7',
  515. },
  516. gridTemplateColumns: {
  517. none: 'none',
  518. 1: 'repeat(1, minmax(0, 1fr))',
  519. 2: 'repeat(2, minmax(0, 1fr))',
  520. 3: 'repeat(3, minmax(0, 1fr))',
  521. 4: 'repeat(4, minmax(0, 1fr))',
  522. 5: 'repeat(5, minmax(0, 1fr))',
  523. 6: 'repeat(6, minmax(0, 1fr))',
  524. 7: 'repeat(7, minmax(0, 1fr))',
  525. 8: 'repeat(8, minmax(0, 1fr))',
  526. 9: 'repeat(9, minmax(0, 1fr))',
  527. 10: 'repeat(10, minmax(0, 1fr))',
  528. 11: 'repeat(11, minmax(0, 1fr))',
  529. 12: 'repeat(12, minmax(0, 1fr))',
  530. },
  531. gridTemplateRows: {
  532. none: 'none',
  533. 1: 'repeat(1, minmax(0, 1fr))',
  534. 2: 'repeat(2, minmax(0, 1fr))',
  535. 3: 'repeat(3, minmax(0, 1fr))',
  536. 4: 'repeat(4, minmax(0, 1fr))',
  537. 5: 'repeat(5, minmax(0, 1fr))',
  538. 6: 'repeat(6, minmax(0, 1fr))',
  539. },
  540. height: ({ theme }) => ({
  541. auto: 'auto',
  542. ...theme('spacing'),
  543. '1/2': '50%',
  544. '1/3': '33.333333%',
  545. '2/3': '66.666667%',
  546. '1/4': '25%',
  547. '2/4': '50%',
  548. '3/4': '75%',
  549. '1/5': '20%',
  550. '2/5': '40%',
  551. '3/5': '60%',
  552. '4/5': '80%',
  553. '1/6': '16.666667%',
  554. '2/6': '33.333333%',
  555. '3/6': '50%',
  556. '4/6': '66.666667%',
  557. '5/6': '83.333333%',
  558. full: '100%',
  559. screen: '100vh',
  560. min: 'min-content',
  561. max: 'max-content',
  562. fit: 'fit-content',
  563. }),
  564. inset: ({ theme }) => ({
  565. auto: 'auto',
  566. ...theme('spacing'),
  567. '1/2': '50%',
  568. '1/3': '33.333333%',
  569. '2/3': '66.666667%',
  570. '1/4': '25%',
  571. '2/4': '50%',
  572. '3/4': '75%',
  573. full: '100%',
  574. }),
  575. keyframes: {
  576. spin: {
  577. to: {
  578. transform: 'rotate(360deg)',
  579. },
  580. },
  581. ping: {
  582. '75%, 100%': {
  583. transform: 'scale(2)',
  584. opacity: '0',
  585. },
  586. },
  587. pulse: {
  588. '50%': {
  589. opacity: '.5',
  590. },
  591. },
  592. bounce: {
  593. '0%, 100%': {
  594. transform: 'translateY(-25%)',
  595. animationTimingFunction: 'cubic-bezier(0.8,0,1,1)',
  596. },
  597. '50%': {
  598. transform: 'none',
  599. animationTimingFunction: 'cubic-bezier(0,0,0.2,1)',
  600. },
  601. },
  602. },
  603. letterSpacing: {
  604. tighter: '-0.05em',
  605. tight: '-0.025em',
  606. normal: '0em',
  607. wide: '0.025em',
  608. wider: '0.05em',
  609. widest: '0.1em',
  610. },
  611. lineHeight: {
  612. none: '1',
  613. tight: '1.25',
  614. snug: '1.375',
  615. normal: '1.5',
  616. relaxed: '1.625',
  617. loose: '2',
  618. 3: '.75rem',
  619. 4: '1rem',
  620. 5: '1.25rem',
  621. 6: '1.5rem',
  622. 7: '1.75rem',
  623. 8: '2rem',
  624. 9: '2.25rem',
  625. 10: '2.5rem',
  626. },
  627. listStyleType: {
  628. none: 'none',
  629. disc: 'disc',
  630. decimal: 'decimal',
  631. },
  632. margin: ({ theme }) => ({
  633. auto: 'auto',
  634. ...theme('spacing'),
  635. }),
  636. maxHeight: ({ theme }) => ({
  637. ...theme('spacing'),
  638. full: '100%',
  639. screen: '100vh',
  640. min: 'min-content',
  641. max: 'max-content',
  642. fit: 'fit-content',
  643. }),
  644. maxWidth: ({ theme, breakpoints }) => ({
  645. none: 'none',
  646. 0: '0rem',
  647. xs: '20rem',
  648. sm: '24rem',
  649. md: '28rem',
  650. lg: '32rem',
  651. xl: '36rem',
  652. '2xl': '42rem',
  653. '3xl': '48rem',
  654. '4xl': '56rem',
  655. '5xl': '64rem',
  656. '6xl': '72rem',
  657. '7xl': '80rem',
  658. full: '100%',
  659. min: 'min-content',
  660. max: 'max-content',
  661. fit: 'fit-content',
  662. prose: '65ch',
  663. ...breakpoints(theme('screens')),
  664. }),
  665. minHeight: {
  666. 0: '0px',
  667. full: '100%',
  668. screen: '100vh',
  669. min: 'min-content',
  670. max: 'max-content',
  671. fit: 'fit-content',
  672. },
  673. minWidth: {
  674. 0: '0px',
  675. full: '100%',
  676. min: 'min-content',
  677. max: 'max-content',
  678. fit: 'fit-content',
  679. },
  680. objectPosition: {
  681. bottom: 'bottom',
  682. center: 'center',
  683. left: 'left',
  684. 'left-bottom': 'left bottom',
  685. 'left-top': 'left top',
  686. right: 'right',
  687. 'right-bottom': 'right bottom',
  688. 'right-top': 'right top',
  689. top: 'top',
  690. },
  691. opacity: {
  692. 0: '0',
  693. 5: '0.05',
  694. 10: '0.1',
  695. 20: '0.2',
  696. 25: '0.25',
  697. 30: '0.3',
  698. 40: '0.4',
  699. 50: '0.5',
  700. 60: '0.6',
  701. 70: '0.7',
  702. 75: '0.75',
  703. 80: '0.8',
  704. 90: '0.9',
  705. 95: '0.95',
  706. 100: '1',
  707. },
  708. order: {
  709. first: '-9999',
  710. last: '9999',
  711. none: '0',
  712. 1: '1',
  713. 2: '2',
  714. 3: '3',
  715. 4: '4',
  716. 5: '5',
  717. 6: '6',
  718. 7: '7',
  719. 8: '8',
  720. 9: '9',
  721. 10: '10',
  722. 11: '11',
  723. 12: '12',
  724. },
  725. padding: ({ theme }) => theme('spacing'),
  726. placeholderColor: ({ theme }) => theme('colors'),
  727. placeholderOpacity: ({ theme }) => theme('opacity'),
  728. outlineColor: ({ theme }) => theme('colors'),
  729. outlineOffset: {
  730. 0: '0px',
  731. 1: '1px',
  732. 2: '2px',
  733. 4: '4px',
  734. 8: '8px',
  735. },
  736. outlineWidth: {
  737. 0: '0px',
  738. 1: '1px',
  739. 2: '2px',
  740. 4: '4px',
  741. 8: '8px',
  742. },
  743. ringColor: ({ theme }) => ({
  744. DEFAULT: theme('colors.blue.500', '#3b82f6'),
  745. ...theme('colors'),
  746. }),
  747. ringOffsetColor: ({ theme }) => theme('colors'),
  748. ringOffsetWidth: {
  749. 0: '0px',
  750. 1: '1px',
  751. 2: '2px',
  752. 4: '4px',
  753. 8: '8px',
  754. },
  755. ringOpacity: ({ theme }) => ({
  756. DEFAULT: '0.5',
  757. ...theme('opacity'),
  758. }),
  759. ringWidth: {
  760. DEFAULT: '3px',
  761. 0: '0px',
  762. 1: '1px',
  763. 2: '2px',
  764. 4: '4px',
  765. 8: '8px',
  766. },
  767. rotate: {
  768. 0: '0deg',
  769. 1: '1deg',
  770. 2: '2deg',
  771. 3: '3deg',
  772. 6: '6deg',
  773. 12: '12deg',
  774. 45: '45deg',
  775. 90: '90deg',
  776. 180: '180deg',
  777. },
  778. saturate: {
  779. 0: '0',
  780. 50: '.5',
  781. 100: '1',
  782. 150: '1.5',
  783. 200: '2',
  784. },
  785. scale: {
  786. 0: '0',
  787. 50: '.5',
  788. 75: '.75',
  789. 90: '.9',
  790. 95: '.95',
  791. 100: '1',
  792. 105: '1.05',
  793. 110: '1.1',
  794. 125: '1.25',
  795. 150: '1.5',
  796. },
  797. scrollMargin: ({ theme }) => ({
  798. ...theme('spacing'),
  799. }),
  800. scrollPadding: ({ theme }) => theme('spacing'),
  801. sepia: {
  802. 0: '0',
  803. DEFAULT: '100%',
  804. },
  805. skew: {
  806. 0: '0deg',
  807. 1: '1deg',
  808. 2: '2deg',
  809. 3: '3deg',
  810. 6: '6deg',
  811. 12: '12deg',
  812. },
  813. space: ({ theme }) => ({
  814. ...theme('spacing'),
  815. }),
  816. stroke: ({ theme }) => ({
  817. none: 'none',
  818. ...theme('colors'),
  819. }),
  820. strokeWidth: {
  821. 0: '0',
  822. 1: '1',
  823. 2: '2',
  824. },
  825. textColor: ({ theme }) => theme('colors'),
  826. textDecorationColor: ({ theme }) => theme('colors'),
  827. textDecorationThickness: {
  828. auto: 'auto',
  829. 'from-font': 'from-font',
  830. 0: '0px',
  831. 1: '1px',
  832. 2: '2px',
  833. 4: '4px',
  834. 8: '8px',
  835. },
  836. textUnderlineOffset: {
  837. auto: 'auto',
  838. 0: '0px',
  839. 1: '1px',
  840. 2: '2px',
  841. 4: '4px',
  842. 8: '8px',
  843. },
  844. textIndent: ({ theme }) => ({
  845. ...theme('spacing'),
  846. }),
  847. textOpacity: ({ theme }) => theme('opacity'),
  848. transformOrigin: {
  849. center: 'center',
  850. top: 'top',
  851. 'top-right': 'top right',
  852. right: 'right',
  853. 'bottom-right': 'bottom right',
  854. bottom: 'bottom',
  855. 'bottom-left': 'bottom left',
  856. left: 'left',
  857. 'top-left': 'top left',
  858. },
  859. transitionDelay: {
  860. 75: '75ms',
  861. 100: '100ms',
  862. 150: '150ms',
  863. 200: '200ms',
  864. 300: '300ms',
  865. 500: '500ms',
  866. 700: '700ms',
  867. 1000: '1000ms',
  868. },
  869. transitionDuration: {
  870. DEFAULT: '150ms',
  871. 75: '75ms',
  872. 100: '100ms',
  873. 150: '150ms',
  874. 200: '200ms',
  875. 300: '300ms',
  876. 500: '500ms',
  877. 700: '700ms',
  878. 1000: '1000ms',
  879. },
  880. transitionProperty: {
  881. none: 'none',
  882. all: 'all',
  883. DEFAULT:
  884. 'color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
  885. colors: 'color, background-color, border-color, text-decoration-color, fill, stroke',
  886. opacity: 'opacity',
  887. shadow: 'box-shadow',
  888. transform: 'transform',
  889. },
  890. transitionTimingFunction: {
  891. DEFAULT: 'cubic-bezier(0.4, 0, 0.2, 1)',
  892. linear: 'linear',
  893. in: 'cubic-bezier(0.4, 0, 1, 1)',
  894. out: 'cubic-bezier(0, 0, 0.2, 1)',
  895. 'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
  896. },
  897. translate: ({ theme }) => ({
  898. ...theme('spacing'),
  899. '1/2': '50%',
  900. '1/3': '33.333333%',
  901. '2/3': '66.666667%',
  902. '1/4': '25%',
  903. '2/4': '50%',
  904. '3/4': '75%',
  905. full: '100%',
  906. }),
  907. width: ({ theme }) => ({
  908. auto: 'auto',
  909. ...theme('spacing'),
  910. '1/2': '50%',
  911. '1/3': '33.333333%',
  912. '2/3': '66.666667%',
  913. '1/4': '25%',
  914. '2/4': '50%',
  915. '3/4': '75%',
  916. '1/5': '20%',
  917. '2/5': '40%',
  918. '3/5': '60%',
  919. '4/5': '80%',
  920. '1/6': '16.666667%',
  921. '2/6': '33.333333%',
  922. '3/6': '50%',
  923. '4/6': '66.666667%',
  924. '5/6': '83.333333%',
  925. '1/12': '8.333333%',
  926. '2/12': '16.666667%',
  927. '3/12': '25%',
  928. '4/12': '33.333333%',
  929. '5/12': '41.666667%',
  930. '6/12': '50%',
  931. '7/12': '58.333333%',
  932. '8/12': '66.666667%',
  933. '9/12': '75%',
  934. '10/12': '83.333333%',
  935. '11/12': '91.666667%',
  936. full: '100%',
  937. screen: '100vw',
  938. min: 'min-content',
  939. max: 'max-content',
  940. fit: 'fit-content',
  941. }),
  942. willChange: {
  943. auto: 'auto',
  944. scroll: 'scroll-position',
  945. contents: 'contents',
  946. transform: 'transform',
  947. },
  948. zIndex: {
  949. auto: 'auto',
  950. 0: '0',
  951. 10: '10',
  952. 20: '20',
  953. 30: '30',
  954. 40: '40',
  955. 50: '50',
  956. },
  957. },
  958. variantOrder: [
  959. 'first',
  960. 'last',
  961. 'odd',
  962. 'even',
  963. 'visited',
  964. 'checked',
  965. 'empty',
  966. 'read-only',
  967. 'group-hover',
  968. 'group-focus',
  969. 'focus-within',
  970. 'hover',
  971. 'focus',
  972. 'focus-visible',
  973. 'active',
  974. 'disabled',
  975. ],
  976. plugins: [],
  977. }