tailwind.config.js 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. const colors = {
  2. transparent: 'transparent',
  3. primary: 'var(--color-primary)',
  4. primary_accent: 'var(--color-primary-accent)',
  5. black: '#000000',
  6. 'grey-90': '#0c0c0d',
  7. 'grey-80': '#2a2a2e',
  8. 'grey-70': '#38383d',
  9. 'grey-60': '#4a4a4f',
  10. 'grey-50': '#737373',
  11. grey: '#b1b1b3',
  12. 'grey-40': '#b1b1b3',
  13. 'grey-30': '#d7d7db',
  14. 'grey-banner': '#f0f0f4',
  15. 'grey-transparent': 'hsla(250, 13%, 9%, .2)',
  16. 'grey-20': '#ededf0',
  17. 'grey-10': '#f9f9fa',
  18. white: '#ffffff',
  19. cloud: 'rgba(255, 255, 255, 0.8)',
  20. violet: 'hsl(258, 57%, 35%)'
  21. };
  22. module.exports = {
  23. purge: false,
  24. theme: {
  25. colors: colors,
  26. screens: {
  27. sm: '576px',
  28. md: '768px',
  29. lg: '992px',
  30. xl: '1200px',
  31. dark: { raw: '(prefers-color-scheme: dark)' }
  32. },
  33. fontFamily: {
  34. sans: [
  35. 'Inter',
  36. 'system-ui',
  37. 'BlinkMacSystemFont',
  38. '-apple-system',
  39. 'Segoe UI',
  40. 'Roboto',
  41. 'Oxygen',
  42. 'Ubuntu',
  43. 'Cantarell',
  44. 'Fira Sans',
  45. 'Droid Sans',
  46. 'Helvetica Neue',
  47. 'sans-serif'
  48. ],
  49. serif: [
  50. 'Constantia',
  51. 'Lucida Bright',
  52. 'Lucidabright',
  53. 'Lucida Serif',
  54. 'Lucida',
  55. 'DejaVu Serif',
  56. 'Bitstream Vera Serif',
  57. 'Liberation Serif',
  58. 'Georgia',
  59. 'serif'
  60. ],
  61. mono: [
  62. 'Menlo',
  63. 'Monaco',
  64. 'Consolas',
  65. 'Liberation Mono',
  66. 'Courier New',
  67. 'monospace'
  68. ]
  69. },
  70. fontSize: {
  71. xs: '.75rem', // 12px
  72. sm: '.875rem', // 14px
  73. base: '1rem', // 16px
  74. lg: '1.125rem', // 18px
  75. xl: '1.25rem', // 20px
  76. '2xl': '1.5rem', // 24px
  77. '3xl': '2rem', // 32px
  78. '4xl': '2.25rem', // 36px
  79. '5xl': '3rem' // 48px
  80. },
  81. fontWeight: {
  82. hairline: 100,
  83. thin: 200,
  84. light: 300,
  85. normal: 400,
  86. medium: 500,
  87. semibold: 600,
  88. bold: 700,
  89. extrabold: 800,
  90. black: 900
  91. },
  92. lineHeight: {
  93. none: 1,
  94. tight: 1.25,
  95. normal: 1.5,
  96. loose: 1.75
  97. },
  98. letterSpacing: {
  99. tight: '-0.05em',
  100. normal: '0',
  101. wide: '0.05em'
  102. },
  103. textColor: colors,
  104. backgroundColor: colors,
  105. backgroundSize: {
  106. auto: 'auto',
  107. cover: 'cover',
  108. contain: 'contain'
  109. },
  110. borderWidth: {
  111. default: '1px',
  112. '0': '0',
  113. '2': '2px',
  114. '4': '4px',
  115. '8': '8px'
  116. },
  117. borderColor: global.Object.assign({ default: colors['grey-30'] }, colors),
  118. borderRadius: {
  119. none: '0',
  120. sm: '.125rem',
  121. default: '.25rem',
  122. lg: '.5rem',
  123. xl: '1rem',
  124. full: '9999px'
  125. },
  126. width: {
  127. auto: 'auto',
  128. px: '1px',
  129. '0': '0',
  130. '1': '0.25rem',
  131. '2': '0.5rem',
  132. '3': '0.75rem',
  133. '4': '1rem',
  134. '5': '1.25rem',
  135. '6': '1.5rem',
  136. '8': '2rem',
  137. '10': '2.5rem',
  138. '12': '3rem',
  139. '16': '4rem',
  140. '24': '6rem',
  141. '32': '8rem',
  142. '48': '12rem',
  143. '64': '16rem',
  144. '128': '32rem',
  145. '1/2': '50%',
  146. '1/3': '33.33333%',
  147. '2/3': '66.66667%',
  148. '1/4': '25%',
  149. '3/4': '75%',
  150. '1/5': '20%',
  151. '2/5': '40%',
  152. '3/5': '60%',
  153. '4/5': '80%',
  154. '1/6': '16.66667%',
  155. '5/6': '83.33333%',
  156. full: '100%',
  157. screen: '100vw'
  158. },
  159. height: {
  160. auto: 'auto',
  161. px: '1px',
  162. '0': '0',
  163. '1': '0.25rem',
  164. '2': '0.5rem',
  165. '3': '0.75rem',
  166. '4': '1rem',
  167. '5': '1.25rem',
  168. '6': '1.5rem',
  169. '8': '2rem',
  170. '10': '2.5rem',
  171. '12': '3rem',
  172. '16': '4rem',
  173. '24': '6rem',
  174. '32': '8rem',
  175. '48': '12rem',
  176. '64': '16rem',
  177. full: '100%',
  178. screen: '100vh'
  179. },
  180. minWidth: {
  181. '0': '0',
  182. full: '100%'
  183. },
  184. minHeight: {
  185. '0': '0',
  186. full: '100%',
  187. screen: '100vh'
  188. },
  189. maxWidth: {
  190. xs: '20rem',
  191. sm: '30rem',
  192. md: '40rem',
  193. lg: '50rem',
  194. xl: '60rem',
  195. '2xl': '70rem',
  196. '3xl': '80rem',
  197. '4xl': '90rem',
  198. '5xl': '100rem',
  199. full: '100%'
  200. },
  201. maxHeight: {
  202. full: '100%',
  203. 'half-screen': '50vh',
  204. screen: '100vh'
  205. },
  206. padding: {
  207. px: '1px',
  208. '0': '0',
  209. '1': '0.25rem',
  210. '2': '0.5rem',
  211. '3': '0.75rem',
  212. '4': '1rem',
  213. '5': '1.25rem',
  214. '6': '1.5rem',
  215. '8': '2rem',
  216. '10': '2.5rem',
  217. '12': '3rem',
  218. '16': '4rem',
  219. '20': '5rem',
  220. '24': '6rem',
  221. '32': '8rem'
  222. },
  223. margin: {
  224. auto: 'auto',
  225. px: '1px',
  226. '0': '0',
  227. '1': '0.25rem',
  228. '2': '0.5rem',
  229. '3': '0.75rem',
  230. '4': '1rem',
  231. '5': '1.25rem',
  232. '6': '1.5rem',
  233. '8': '2rem',
  234. '10': '2.5rem',
  235. '12': '3rem',
  236. '16': '4rem',
  237. '20': '5rem',
  238. '24': '6rem',
  239. '32': '8rem',
  240. '-px': '-1px',
  241. '-1': '-0.25rem',
  242. '-2': '-0.5rem',
  243. '-3': '-0.75rem',
  244. '-4': '-1rem',
  245. '-5': '-1.25rem',
  246. '-6': '-1.5rem',
  247. '-8': '-2rem',
  248. '-10': '-2.5rem',
  249. '-12': '-3rem',
  250. '-16': '-4rem',
  251. '-20': '-5rem',
  252. '-24': '-6rem',
  253. '-32': '-8rem'
  254. },
  255. boxShadow: {
  256. default: '0 2px 4px 0 rgba(0,0,0,0.10)',
  257. md: '0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08)',
  258. lg: '0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08)',
  259. inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
  260. outline: '0 0 0 3px rgba(52,144,220,0.5)',
  261. none: 'none',
  262. cloud: '0 0 5rem 5rem white',
  263. btn:
  264. 'inset 0 -6px 12px 0 rgba(0,70,144,0.25), 0 4px 6px 0 rgba(34,0,51,0.04), 0 1px 10px 0 rgba(7,48,114,0.12), 0 2px 8px -1px rgba(14,13,26,0.08)'
  265. },
  266. opacity: {
  267. '0': '0',
  268. '25': '.25',
  269. '50': '.5',
  270. '75': '.75',
  271. '100': '1'
  272. },
  273. fill: {
  274. current: 'currentColor'
  275. },
  276. stroke: {
  277. current: 'currentColor'
  278. },
  279. zIndex: {
  280. auto: 'auto',
  281. '0': 0,
  282. '10': 10,
  283. '20': 20,
  284. '30': 30,
  285. '40': 40,
  286. '50': 50
  287. }
  288. },
  289. variants: {
  290. appearance: ['responsive'],
  291. backgroundAttachment: ['responsive'],
  292. backgroundColor: ['responsive', 'hover', 'focus'],
  293. backgroundPosition: ['responsive'],
  294. backgroundRepeat: ['responsive'],
  295. backgroundSize: ['responsive'],
  296. borderCollapse: [],
  297. borderColor: ['responsive', 'hover', 'focus'],
  298. borderRadius: ['responsive'],
  299. borderStyle: ['responsive'],
  300. borderWidth: ['responsive'],
  301. cursor: ['responsive'],
  302. display: ['responsive'],
  303. flexDirection: ['responsive'],
  304. flexWrap: ['responsive'],
  305. alignItems: ['responsive'],
  306. alignSelf: ['responsive'],
  307. alignContent: ['responsive'],
  308. justifyContent: ['responsive'],
  309. flex: ['responsive'],
  310. flexGrow: ['responsive'],
  311. flexShrink: ['responsive'],
  312. float: ['responsive'],
  313. fontFamily: ['responsive'],
  314. fontWeight: ['responsive', 'hover', 'focus'],
  315. height: ['responsive'],
  316. lineHeight: ['responsive'],
  317. listStylePosition: ['responsive'],
  318. listStyleType: ['responsive'],
  319. margin: ['responsive'],
  320. maxHeight: ['responsive'],
  321. maxWidth: ['responsive'],
  322. minHeight: ['responsive'],
  323. minWidth: ['responsive'],
  324. negativeMargin: ['responsive'],
  325. opacity: ['responsive', 'hover'],
  326. outline: ['focus'],
  327. overflow: ['responsive'],
  328. padding: ['responsive'],
  329. pointerEvents: ['responsive'],
  330. position: ['responsive'],
  331. inset: ['responsive'],
  332. resize: ['responsive'],
  333. boxShadow: ['responsive', 'hover', 'focus'],
  334. fill: [],
  335. stroke: [],
  336. tableLayout: ['responsive'],
  337. textAlign: ['responsive'],
  338. textColor: ['responsive', 'hover', 'focus'],
  339. fontSize: ['responsive'],
  340. fontStyle: ['responsive', 'hover', 'focus'],
  341. fontSmoothing: ['responsive', 'hover', 'focus'],
  342. textDecoration: ['responsive', 'hover', 'focus'],
  343. textTransform: ['responsive', 'hover', 'focus'],
  344. letterSpacing: ['responsive'],
  345. userSelect: ['responsive'],
  346. verticalAlign: ['responsive'],
  347. visibility: ['responsive'],
  348. whitespace: ['responsive'],
  349. wordBreak: ['responsive'],
  350. width: ['responsive'],
  351. zIndex: ['responsive']
  352. },
  353. corePlugins: {
  354. container: false
  355. },
  356. plugins: []
  357. };