No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tailwind.config.js 24KB

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