tailwind.js 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927
  1. /*
  2. Tailwind - The Utility-First CSS Framework
  3. A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink),
  4. David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger).
  5. Welcome to the Tailwind config file. This is where you can customize
  6. Tailwind specifically for your project. Don't be intimidated by the
  7. length of this file. It's really just a big JavaScript object and
  8. we've done our very best to explain each section.
  9. View the full documentation at https://tailwindcss.com.
  10. |-------------------------------------------------------------------------------
  11. | The default config
  12. |-------------------------------------------------------------------------------
  13. |
  14. | This variable contains the default Tailwind config. You don't have
  15. | to use it, but it can sometimes be helpful to have available. For
  16. | example, you may choose to merge your custom configuration
  17. | values with some of the Tailwind defaults.
  18. |
  19. */
  20. // let defaultConfig = require('tailwindcss/defaultConfig')()
  21. /*
  22. |-------------------------------------------------------------------------------
  23. | Colors https://tailwindcss.com/docs/colors
  24. |-------------------------------------------------------------------------------
  25. |
  26. | Here you can specify the colors used in your project. To get you started,
  27. | we've provided a generous palette of great looking colors that are perfect
  28. | for prototyping, but don't hesitate to change them for your project. You
  29. | own these colors, nothing will break if you change everything about them.
  30. |
  31. | We've used literal color names ("red", "blue", etc.) for the default
  32. | palette, but if you'd rather use functional names like "primary" and
  33. | "secondary", or even a numeric scale like "100" and "200", go for it.
  34. |
  35. */
  36. const colors = {
  37. transparent: 'transparent',
  38. black: '#22292f',
  39. 'grey-darkest': '#3d4852',
  40. 'grey-darker': '#606f7b',
  41. 'grey-dark': '#8795a1',
  42. grey: '#B1B1B3',
  43. 'grey-light': '#dae1e7',
  44. 'grey-lighter': '#f1f5f8',
  45. 'grey-lightest': '#F9F9FA',
  46. white: '#ffffff',
  47. 'red-darkest': '#3b0d0c',
  48. 'red-darker': '#621b18',
  49. 'red-dark': '#cc1f1a',
  50. red: '#e3342f',
  51. 'red-light': '#ef5753',
  52. 'red-lighter': '#f9acaa',
  53. 'red-lightest': '#fcebea',
  54. 'orange-darkest': '#462a16',
  55. 'orange-darker': '#613b1f',
  56. 'orange-dark': '#de751f',
  57. orange: '#f6993f',
  58. 'orange-light': '#faad63',
  59. 'orange-lighter': '#fcd9b6',
  60. 'orange-lightest': '#fff5eb',
  61. 'yellow-darkest': '#453411',
  62. 'yellow-darker': '#684f1d',
  63. 'yellow-dark': '#f2d024',
  64. yellow: '#ffed4a',
  65. 'yellow-light': '#fff382',
  66. 'yellow-lighter': '#fff9c2',
  67. 'yellow-lightest': '#fcfbeb',
  68. 'green-darkest': '#003706',
  69. 'green-darker': '#006504',
  70. 'green-dark': '#058b00',
  71. green: '#12bc00',
  72. 'green-light': '#51d88a',
  73. 'green-lighter': '#a2f5bf',
  74. 'green-lightest': '#e3fcec',
  75. 'teal-darkest': '#0d3331',
  76. 'teal-darker': '#20504f',
  77. 'teal-dark': '#38a89d',
  78. teal: '#4dc0b5',
  79. 'teal-light': '#64d5ca',
  80. 'teal-lighter': '#a0f0ed',
  81. 'teal-lightest': '#e8fffe',
  82. 'blue-darkest': '#002275',
  83. 'blue-darker': '#003eaa',
  84. 'blue-dark': '#0060df',
  85. blue: '#0a84ff',
  86. 'blue-light': '#6cb2eb',
  87. 'blue-lighter': '#bcdefa',
  88. 'blue-lightest': '#eff8ff',
  89. 'indigo-darkest': '#191e38',
  90. 'indigo-darker': '#2f365f',
  91. 'indigo-dark': '#5661b3',
  92. indigo: '#6574cd',
  93. 'indigo-light': '#7886d7',
  94. 'indigo-lighter': '#b2b7ff',
  95. 'indigo-lightest': '#e6e8ff',
  96. 'purple-darkest': '#21183c',
  97. 'purple-darker': '#382b5f',
  98. 'purple-dark': '#794acf',
  99. purple: '#9561e2',
  100. 'purple-light': '#a779e9',
  101. 'purple-lighter': '#d6bbfc',
  102. 'purple-lightest': '#f3ebff',
  103. 'pink-darkest': '#451225',
  104. 'pink-darker': '#6f213f',
  105. 'pink-dark': '#eb5286',
  106. pink: '#f66d9b',
  107. 'pink-light': '#fa7ea8',
  108. 'pink-lighter': '#ffbbca',
  109. 'pink-lightest': '#ffebef',
  110. cloud: 'rgba(255, 255, 255, 0.8)'
  111. };
  112. module.exports = {
  113. /*
  114. |-----------------------------------------------------------------------------
  115. | Colors https://tailwindcss.com/docs/colors
  116. |-----------------------------------------------------------------------------
  117. |
  118. | The color palette defined above is also assigned to the "colors" key of
  119. | your Tailwind config. This makes it easy to access them in your CSS
  120. | using Tailwind's config helper. For example:
  121. |
  122. | .error { color: config('colors.red') }
  123. |
  124. */
  125. colors: colors,
  126. /*
  127. |-----------------------------------------------------------------------------
  128. | Screens https://tailwindcss.com/docs/responsive-design
  129. |-----------------------------------------------------------------------------
  130. |
  131. | Screens in Tailwind are translated to CSS media queries. They define the
  132. | responsive breakpoints for your project. By default Tailwind takes a
  133. | "mobile first" approach, where each screen size represents a minimum
  134. | viewport width. Feel free to have as few or as many screens as you
  135. | want, naming them in whatever way you'd prefer for your project.
  136. |
  137. | Tailwind also allows for more complex screen definitions, which can be
  138. | useful in certain situations. Be sure to see the full responsive
  139. | documentation for a complete list of options.
  140. |
  141. | Class name: .{screen}:{utility}
  142. |
  143. */
  144. screens: {
  145. sm: '576px',
  146. md: '768px',
  147. lg: '992px',
  148. xl: '1200px'
  149. },
  150. /*
  151. |-----------------------------------------------------------------------------
  152. | Fonts https://tailwindcss.com/docs/fonts
  153. |-----------------------------------------------------------------------------
  154. |
  155. | Here is where you define your project's font stack, or font families.
  156. | Keep in mind that Tailwind doesn't actually load any fonts for you.
  157. | If you're using custom fonts you'll need to import them prior to
  158. | defining them here.
  159. |
  160. | By default we provide a native font stack that works remarkably well on
  161. | any device or OS you're using, since it just uses the default fonts
  162. | provided by the platform.
  163. |
  164. | Class name: .font-{name}
  165. |
  166. */
  167. fonts: {
  168. sans: [
  169. 'Inter',
  170. 'system-ui',
  171. 'BlinkMacSystemFont',
  172. '-apple-system',
  173. 'Segoe UI',
  174. 'Roboto',
  175. 'Oxygen',
  176. 'Ubuntu',
  177. 'Cantarell',
  178. 'Fira Sans',
  179. 'Droid Sans',
  180. 'Helvetica Neue',
  181. 'sans-serif'
  182. ],
  183. serif: [
  184. 'Constantia',
  185. 'Lucida Bright',
  186. 'Lucidabright',
  187. 'Lucida Serif',
  188. 'Lucida',
  189. 'DejaVu Serif',
  190. 'Bitstream Vera Serif',
  191. 'Liberation Serif',
  192. 'Georgia',
  193. 'serif'
  194. ],
  195. mono: [
  196. 'Menlo',
  197. 'Monaco',
  198. 'Consolas',
  199. 'Liberation Mono',
  200. 'Courier New',
  201. 'monospace'
  202. ]
  203. },
  204. /*
  205. |-----------------------------------------------------------------------------
  206. | Text sizes https://tailwindcss.com/docs/text-sizing
  207. |-----------------------------------------------------------------------------
  208. |
  209. | Here is where you define your text sizes. Name these in whatever way
  210. | makes the most sense to you. We use size names by default, but
  211. | you're welcome to use a numeric scale or even something else
  212. | entirely.
  213. |
  214. | By default Tailwind uses the "rem" unit type for most measurements.
  215. | This allows you to set a root font size which all other sizes are
  216. | then based on. That said, you are free to use whatever units you
  217. | prefer, be it rems, ems, pixels or other.
  218. |
  219. | Class name: .text-{size}
  220. |
  221. */
  222. textSizes: {
  223. xs: '.75rem', // 12px
  224. sm: '.875rem', // 14px
  225. base: '1rem', // 16px
  226. lg: '1.125rem', // 18px
  227. xl: '1.25rem', // 20px
  228. '2xl': '1.5rem', // 24px
  229. '3xl': '1.875rem', // 30px
  230. '4xl': '2.25rem', // 36px
  231. '5xl': '3rem' // 48px
  232. },
  233. /*
  234. |-----------------------------------------------------------------------------
  235. | Font weights https://tailwindcss.com/docs/font-weight
  236. |-----------------------------------------------------------------------------
  237. |
  238. | Here is where you define your font weights. We've provided a list of
  239. | common font weight names with their respective numeric scale values
  240. | to get you started. It's unlikely that your project will require
  241. | all of these, so we recommend removing those you don't need.
  242. |
  243. | Class name: .font-{weight}
  244. |
  245. */
  246. fontWeights: {
  247. hairline: 100,
  248. thin: 200,
  249. light: 300,
  250. normal: 400,
  251. medium: 500,
  252. semibold: 600,
  253. bold: 700,
  254. extrabold: 800,
  255. black: 900
  256. },
  257. /*
  258. |-----------------------------------------------------------------------------
  259. | Leading (line height) https://tailwindcss.com/docs/line-height
  260. |-----------------------------------------------------------------------------
  261. |
  262. | Here is where you define your line height values, or as we call
  263. | them in Tailwind, leadings.
  264. |
  265. | Class name: .leading-{size}
  266. |
  267. */
  268. leading: {
  269. none: 1,
  270. tight: 1.25,
  271. normal: 1.5,
  272. loose: 2
  273. },
  274. /*
  275. |-----------------------------------------------------------------------------
  276. | Tracking (letter spacing) https://tailwindcss.com/docs/letter-spacing
  277. |-----------------------------------------------------------------------------
  278. |
  279. | Here is where you define your letter spacing values, or as we call
  280. | them in Tailwind, tracking.
  281. |
  282. | Class name: .tracking-{size}
  283. |
  284. */
  285. tracking: {
  286. tight: '-0.05em',
  287. normal: '0',
  288. wide: '0.05em'
  289. },
  290. /*
  291. |-----------------------------------------------------------------------------
  292. | Text colors https://tailwindcss.com/docs/text-color
  293. |-----------------------------------------------------------------------------
  294. |
  295. | Here is where you define your text colors. By default these use the
  296. | color palette we defined above, however you're welcome to set these
  297. | independently if that makes sense for your project.
  298. |
  299. | Class name: .text-{color}
  300. |
  301. */
  302. textColors: colors,
  303. /*
  304. |-----------------------------------------------------------------------------
  305. | Background colors https://tailwindcss.com/docs/background-color
  306. |-----------------------------------------------------------------------------
  307. |
  308. | Here is where you define your background colors. By default these use
  309. | the color palette we defined above, however you're welcome to set
  310. | these independently if that makes sense for your project.
  311. |
  312. | Class name: .bg-{color}
  313. |
  314. */
  315. backgroundColors: colors,
  316. /*
  317. |-----------------------------------------------------------------------------
  318. | Background sizes https://tailwindcss.com/docs/background-size
  319. |-----------------------------------------------------------------------------
  320. |
  321. | Here is where you define your background sizes. We provide some common
  322. | values that are useful in most projects, but feel free to add other sizes
  323. | that are specific to your project here as well.
  324. |
  325. | Class name: .bg-{size}
  326. |
  327. */
  328. backgroundSize: {
  329. auto: 'auto',
  330. cover: 'cover',
  331. contain: 'contain'
  332. },
  333. /*
  334. |-----------------------------------------------------------------------------
  335. | Border widths https://tailwindcss.com/docs/border-width
  336. |-----------------------------------------------------------------------------
  337. |
  338. | Here is where you define your border widths. Take note that border
  339. | widths require a special "default" value set as well. This is the
  340. | width that will be used when you do not specify a border width.
  341. |
  342. | Class name: .border{-side?}{-width?}
  343. |
  344. */
  345. borderWidths: {
  346. default: '1px',
  347. '0': '0',
  348. '2': '2px',
  349. '4': '4px',
  350. '8': '8px'
  351. },
  352. /*
  353. |-----------------------------------------------------------------------------
  354. | Border colors https://tailwindcss.com/docs/border-color
  355. |-----------------------------------------------------------------------------
  356. |
  357. | Here is where you define your border colors. By default these use the
  358. | color palette we defined above, however you're welcome to set these
  359. | independently if that makes sense for your project.
  360. |
  361. | Take note that border colors require a special "default" value set
  362. | as well. This is the color that will be used when you do not
  363. | specify a border color.
  364. |
  365. | Class name: .border-{color}
  366. |
  367. */
  368. borderColors: global.Object.assign({ default: colors['grey-light'] }, colors),
  369. /*
  370. |-----------------------------------------------------------------------------
  371. | Border radius https://tailwindcss.com/docs/border-radius
  372. |-----------------------------------------------------------------------------
  373. |
  374. | Here is where you define your border radius values. If a `default` radius
  375. | is provided, it will be made available as the non-suffixed `.rounded`
  376. | utility.
  377. |
  378. | If your scale includes a `0` value to reset already rounded corners, it's
  379. | a good idea to put it first so other values are able to override it.
  380. |
  381. | Class name: .rounded{-side?}{-size?}
  382. |
  383. */
  384. borderRadius: {
  385. none: '0',
  386. sm: '.125rem',
  387. default: '.25rem',
  388. lg: '.5rem',
  389. full: '9999px'
  390. },
  391. /*
  392. |-----------------------------------------------------------------------------
  393. | Width https://tailwindcss.com/docs/width
  394. |-----------------------------------------------------------------------------
  395. |
  396. | Here is where you define your width utility sizes. These can be
  397. | percentage based, pixels, rems, or any other units. By default
  398. | we provide a sensible rem based numeric scale, a percentage
  399. | based fraction scale, plus some other common use-cases. You
  400. | can, of course, modify these values as needed.
  401. |
  402. |
  403. | It's also worth mentioning that Tailwind automatically escapes
  404. | invalid CSS class name characters, which allows you to have
  405. | awesome classes like .w-2/3.
  406. |
  407. | Class name: .w-{size}
  408. |
  409. */
  410. width: {
  411. auto: 'auto',
  412. px: '1px',
  413. '0': '0',
  414. '1': '0.25rem',
  415. '2': '0.5rem',
  416. '3': '0.75rem',
  417. '4': '1rem',
  418. '5': '1.25rem',
  419. '6': '1.5rem',
  420. '8': '2rem',
  421. '10': '2.5rem',
  422. '12': '3rem',
  423. '16': '4rem',
  424. '24': '6rem',
  425. '32': '8rem',
  426. '48': '12rem',
  427. '64': '16rem',
  428. '128': '32rem',
  429. '1/2': '50%',
  430. '1/3': '33.33333%',
  431. '2/3': '66.66667%',
  432. '1/4': '25%',
  433. '3/4': '75%',
  434. '1/5': '20%',
  435. '2/5': '40%',
  436. '3/5': '60%',
  437. '4/5': '80%',
  438. '1/6': '16.66667%',
  439. '5/6': '83.33333%',
  440. full: '100%',
  441. screen: '100vw'
  442. },
  443. /*
  444. |-----------------------------------------------------------------------------
  445. | Height https://tailwindcss.com/docs/height
  446. |-----------------------------------------------------------------------------
  447. |
  448. | Here is where you define your height utility sizes. These can be
  449. | percentage based, pixels, rems, or any other units. By default
  450. | we provide a sensible rem based numeric scale plus some other
  451. | common use-cases. You can, of course, modify these values as
  452. | needed.
  453. |
  454. | Class name: .h-{size}
  455. |
  456. */
  457. height: {
  458. auto: 'auto',
  459. px: '1px',
  460. '0': '0',
  461. '1': '0.25rem',
  462. '2': '0.5rem',
  463. '3': '0.75rem',
  464. '4': '1rem',
  465. '5': '1.25rem',
  466. '6': '1.5rem',
  467. '8': '2rem',
  468. '10': '2.5rem',
  469. '12': '3rem',
  470. '16': '4rem',
  471. '24': '6rem',
  472. '32': '8rem',
  473. '48': '12rem',
  474. '64': '16rem',
  475. full: '100%',
  476. screen: '100vh'
  477. },
  478. /*
  479. |-----------------------------------------------------------------------------
  480. | Minimum width https://tailwindcss.com/docs/min-width
  481. |-----------------------------------------------------------------------------
  482. |
  483. | Here is where you define your minimum width utility sizes. These can
  484. | be percentage based, pixels, rems, or any other units. We provide a
  485. | couple common use-cases by default. You can, of course, modify
  486. | these values as needed.
  487. |
  488. | Class name: .min-w-{size}
  489. |
  490. */
  491. minWidth: {
  492. '0': '0',
  493. full: '100%'
  494. },
  495. /*
  496. |-----------------------------------------------------------------------------
  497. | Minimum height https://tailwindcss.com/docs/min-height
  498. |-----------------------------------------------------------------------------
  499. |
  500. | Here is where you define your minimum height utility sizes. These can
  501. | be percentage based, pixels, rems, or any other units. We provide a
  502. | few common use-cases by default. You can, of course, modify these
  503. | values as needed.
  504. |
  505. | Class name: .min-h-{size}
  506. |
  507. */
  508. minHeight: {
  509. '0': '0',
  510. full: '100%',
  511. screen: '100vh'
  512. },
  513. /*
  514. |-----------------------------------------------------------------------------
  515. | Maximum width https://tailwindcss.com/docs/max-width
  516. |-----------------------------------------------------------------------------
  517. |
  518. | Here is where you define your maximum width utility sizes. These can
  519. | be percentage based, pixels, rems, or any other units. By default
  520. | we provide a sensible rem based scale and a "full width" size,
  521. | which is basically a reset utility. You can, of course,
  522. | modify these values as needed.
  523. |
  524. | Class name: .max-w-{size}
  525. |
  526. */
  527. maxWidth: {
  528. xs: '20rem',
  529. sm: '30rem',
  530. md: '40rem',
  531. lg: '50rem',
  532. xl: '60rem',
  533. '2xl': '70rem',
  534. '3xl': '80rem',
  535. '4xl': '90rem',
  536. '5xl': '100rem',
  537. full: '100%'
  538. },
  539. /*
  540. |-----------------------------------------------------------------------------
  541. | Maximum height https://tailwindcss.com/docs/max-height
  542. |-----------------------------------------------------------------------------
  543. |
  544. | Here is where you define your maximum height utility sizes. These can
  545. | be percentage based, pixels, rems, or any other units. We provide a
  546. | couple common use-cases by default. You can, of course, modify
  547. | these values as needed.
  548. |
  549. | Class name: .max-h-{size}
  550. |
  551. */
  552. maxHeight: {
  553. full: '100%',
  554. 'half-screen': '50vh',
  555. screen: '100vh'
  556. },
  557. /*
  558. |-----------------------------------------------------------------------------
  559. | Padding https://tailwindcss.com/docs/padding
  560. |-----------------------------------------------------------------------------
  561. |
  562. | Here is where you define your padding utility sizes. These can be
  563. | percentage based, pixels, rems, or any other units. By default we
  564. | provide a sensible rem based numeric scale plus a couple other
  565. | common use-cases like "1px". You can, of course, modify these
  566. | values as needed.
  567. |
  568. | Class name: .p{side?}-{size}
  569. |
  570. */
  571. padding: {
  572. px: '1px',
  573. '0': '0',
  574. '1': '0.25rem',
  575. '2': '0.5rem',
  576. '3': '0.75rem',
  577. '4': '1rem',
  578. '5': '1.25rem',
  579. '6': '1.5rem',
  580. '8': '2rem',
  581. '10': '2.5rem',
  582. '12': '3rem',
  583. '16': '4rem',
  584. '20': '5rem',
  585. '24': '6rem',
  586. '32': '8rem'
  587. },
  588. /*
  589. |-----------------------------------------------------------------------------
  590. | Margin https://tailwindcss.com/docs/margin
  591. |-----------------------------------------------------------------------------
  592. |
  593. | Here is where you define your margin utility sizes. These can be
  594. | percentage based, pixels, rems, or any other units. By default we
  595. | provide a sensible rem based numeric scale plus a couple other
  596. | common use-cases like "1px". You can, of course, modify these
  597. | values as needed.
  598. |
  599. | Class name: .m{side?}-{size}
  600. |
  601. */
  602. margin: {
  603. auto: 'auto',
  604. px: '1px',
  605. '0': '0',
  606. '1': '0.25rem',
  607. '2': '0.5rem',
  608. '3': '0.75rem',
  609. '4': '1rem',
  610. '5': '1.25rem',
  611. '6': '1.5rem',
  612. '8': '2rem',
  613. '10': '2.5rem',
  614. '12': '3rem',
  615. '16': '4rem',
  616. '20': '5rem',
  617. '24': '6rem',
  618. '32': '8rem'
  619. },
  620. /*
  621. |-----------------------------------------------------------------------------
  622. | Negative margin https://tailwindcss.com/docs/negative-margin
  623. |-----------------------------------------------------------------------------
  624. |
  625. | Here is where you define your negative margin utility sizes. These can
  626. | be percentage based, pixels, rems, or any other units. By default we
  627. | provide matching values to the padding scale since these utilities
  628. | generally get used together. You can, of course, modify these
  629. | values as needed.
  630. |
  631. | Class name: .-m{side?}-{size}
  632. |
  633. */
  634. negativeMargin: {
  635. px: '1px',
  636. '0': '0',
  637. '1': '0.25rem',
  638. '2': '0.5rem',
  639. '3': '0.75rem',
  640. '4': '1rem',
  641. '5': '1.25rem',
  642. '6': '1.5rem',
  643. '8': '2rem',
  644. '10': '2.5rem',
  645. '12': '3rem',
  646. '16': '4rem',
  647. '20': '5rem',
  648. '24': '6rem',
  649. '32': '8rem'
  650. },
  651. /*
  652. |-----------------------------------------------------------------------------
  653. | Shadows https://tailwindcss.com/docs/shadows
  654. |-----------------------------------------------------------------------------
  655. |
  656. | Here is where you define your shadow utilities. As you can see from
  657. | the defaults we provide, it's possible to apply multiple shadows
  658. | per utility using comma separation.
  659. |
  660. | If a `default` shadow is provided, it will be made available as the non-
  661. | suffixed `.shadow` utility.
  662. |
  663. | Class name: .shadow-{size?}
  664. |
  665. */
  666. shadows: {
  667. default: '0 2px 4px 0 rgba(0,0,0,0.10)',
  668. md: '0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08)',
  669. lg: '0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08)',
  670. inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
  671. outline: '0 0 0 3px rgba(52,144,220,0.5)',
  672. none: 'none',
  673. cloud: '0 0 5rem 5rem white'
  674. },
  675. /*
  676. |-----------------------------------------------------------------------------
  677. | Z-index https://tailwindcss.com/docs/z-index
  678. |-----------------------------------------------------------------------------
  679. |
  680. | Here is where you define your z-index utility values. By default we
  681. | provide a sensible numeric scale. You can, of course, modify these
  682. | values as needed.
  683. |
  684. | Class name: .z-{index}
  685. |
  686. */
  687. zIndex: {
  688. auto: 'auto',
  689. '0': 0,
  690. '10': 10,
  691. '20': 20,
  692. '30': 30,
  693. '40': 40,
  694. '50': 50
  695. },
  696. /*
  697. |-----------------------------------------------------------------------------
  698. | Opacity https://tailwindcss.com/docs/opacity
  699. |-----------------------------------------------------------------------------
  700. |
  701. | Here is where you define your opacity utility values. By default we
  702. | provide a sensible numeric scale. You can, of course, modify these
  703. | values as needed.
  704. |
  705. | Class name: .opacity-{name}
  706. |
  707. */
  708. opacity: {
  709. '0': '0',
  710. '25': '.25',
  711. '50': '.5',
  712. '75': '.75',
  713. '100': '1'
  714. },
  715. /*
  716. |-----------------------------------------------------------------------------
  717. | SVG fill https://tailwindcss.com/docs/svg
  718. |-----------------------------------------------------------------------------
  719. |
  720. | Here is where you define your SVG fill colors. By default we just provide
  721. | `fill-current` which sets the fill to the current text color. This lets you
  722. | specify a fill color using existing text color utilities and helps keep the
  723. | generated CSS file size down.
  724. |
  725. | Class name: .fill-{name}
  726. |
  727. */
  728. svgFill: {
  729. current: 'currentColor'
  730. },
  731. /*
  732. |-----------------------------------------------------------------------------
  733. | SVG stroke https://tailwindcss.com/docs/svg
  734. |-----------------------------------------------------------------------------
  735. |
  736. | Here is where you define your SVG stroke colors. By default we just provide
  737. | `stroke-current` which sets the stroke to the current text color. This lets
  738. | you specify a stroke color using existing text color utilities and helps
  739. | keep the generated CSS file size down.
  740. |
  741. | Class name: .stroke-{name}
  742. |
  743. */
  744. svgStroke: {
  745. current: 'currentColor'
  746. },
  747. /*
  748. |-----------------------------------------------------------------------------
  749. | Modules https://tailwindcss.com/docs/configuration#modules
  750. |-----------------------------------------------------------------------------
  751. |
  752. | Here is where you control which modules are generated and what variants are
  753. | generated for each of those modules.
  754. |
  755. | Currently supported variants:
  756. | - responsive
  757. | - hover
  758. | - focus
  759. | - active
  760. | - group-hover
  761. |
  762. | To disable a module completely, use `false` instead of an array.
  763. |
  764. */
  765. modules: {
  766. appearance: ['responsive'],
  767. backgroundAttachment: ['responsive'],
  768. backgroundColors: ['responsive', 'hover', 'focus'],
  769. backgroundPosition: ['responsive'],
  770. backgroundRepeat: ['responsive'],
  771. backgroundSize: ['responsive'],
  772. borderCollapse: [],
  773. borderColors: ['responsive', 'hover', 'focus'],
  774. borderRadius: ['responsive'],
  775. borderStyle: ['responsive'],
  776. borderWidths: ['responsive'],
  777. cursor: ['responsive'],
  778. display: ['responsive'],
  779. flexbox: ['responsive'],
  780. float: ['responsive'],
  781. fonts: ['responsive'],
  782. fontWeights: ['responsive', 'hover', 'focus'],
  783. height: ['responsive'],
  784. leading: ['responsive'],
  785. lists: ['responsive'],
  786. margin: ['responsive'],
  787. maxHeight: ['responsive'],
  788. maxWidth: ['responsive'],
  789. minHeight: ['responsive'],
  790. minWidth: ['responsive'],
  791. negativeMargin: ['responsive'],
  792. opacity: ['responsive', 'hover'],
  793. outline: ['focus'],
  794. overflow: ['responsive'],
  795. padding: ['responsive'],
  796. pointerEvents: ['responsive'],
  797. position: ['responsive'],
  798. resize: ['responsive'],
  799. shadows: ['responsive', 'hover', 'focus'],
  800. svgFill: [],
  801. svgStroke: [],
  802. tableLayout: ['responsive'],
  803. textAlign: ['responsive'],
  804. textColors: ['responsive', 'hover', 'focus'],
  805. textSizes: ['responsive'],
  806. textStyle: ['responsive', 'hover', 'focus'],
  807. tracking: ['responsive'],
  808. userSelect: ['responsive'],
  809. verticalAlign: ['responsive'],
  810. visibility: ['responsive'],
  811. whitespace: ['responsive'],
  812. width: ['responsive'],
  813. zIndex: ['responsive']
  814. },
  815. /*
  816. |-----------------------------------------------------------------------------
  817. | Plugins https://tailwindcss.com/docs/plugins
  818. |-----------------------------------------------------------------------------
  819. |
  820. | Here is where you can register any plugins you'd like to use in your
  821. | project. Tailwind's built-in `container` plugin is enabled by default to
  822. | give you a Bootstrap-style responsive container component out of the box.
  823. |
  824. | Be sure to view the complete plugin documentation to learn more about how
  825. | the plugin system works.
  826. |
  827. */
  828. plugins: [
  829. require('tailwindcss/plugins/container')({
  830. // center: true,
  831. // padding: '1rem',
  832. })
  833. ],
  834. /*
  835. |-----------------------------------------------------------------------------
  836. | Advanced Options https://tailwindcss.com/docs/configuration#options
  837. |-----------------------------------------------------------------------------
  838. |
  839. | Here is where you can tweak advanced configuration options. We recommend
  840. | leaving these options alone unless you absolutely need to change them.
  841. |
  842. */
  843. options: {
  844. prefix: '',
  845. important: false,
  846. separator: ':'
  847. }
  848. };