tailwind.config.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. const colors = {
  2. transparent: 'transparent',
  3. black: '#000000',
  4. 'grey-90': '#0c0c0d',
  5. 'grey-80': '#2a2a2e',
  6. 'grey-70': '#38383d',
  7. 'grey-60': '#4a4a4f',
  8. 'grey-50': '#737373',
  9. grey: '#b1b1b3',
  10. 'grey-40': '#b1b1b3',
  11. 'grey-30': '#d7d7db',
  12. 'grey-banner': '#f0f0f4',
  13. 'grey-transparent': 'hsla(250, 13%, 9%, .2)',
  14. 'grey-20': '#ededf0',
  15. 'grey-10': '#f9f9fa',
  16. white: '#ffffff',
  17. 'red-90': '#3e0200',
  18. 'red-80': '#5a0002',
  19. 'red-70': '#a4000f',
  20. 'red-60': '#d70022',
  21. red: '#d70022',
  22. 'red-50': '#ff0039',
  23. // unspec
  24. 'red-40': '#ff3363',
  25. 'red-30': '#ff99aa',
  26. 'orange-90': '#3e1300',
  27. 'orange-80': '#712b00',
  28. 'orange-70': '#a44900',
  29. 'orange-60': '#d76e00',
  30. 'orange-50': '#ff9400',
  31. // unspec
  32. 'orange-40': '#ffb24c',
  33. 'orange-30': '#ffd399',
  34. 'yellow-90': '#3e2800',
  35. 'yellow-80': '#715100',
  36. 'yellow-70': '#a47f00',
  37. 'yellow-60': '#d7b600',
  38. yellow: '#d7b600',
  39. 'yellow-50': '#ffe900',
  40. 'yellow-40': '#ffed4c',
  41. 'yellow-30': '#fff599',
  42. // 'green-darkest': '#003706',
  43. // 'green-darker': '#006504',
  44. // 'green-dark': '#058b00',
  45. // green: '#12bc00',
  46. // 'green-light': '#51d88a',
  47. // 'green-lighter': '#a2f5bf',
  48. // 'green-lightest': '#e3fcec',
  49. // 'teal-darkest': '#0d3331',
  50. // 'teal-darker': '#20504f',
  51. // 'teal-dark': '#38a89d',
  52. // teal: '#4dc0b5',
  53. // 'teal-light': '#64d5ca',
  54. // 'teal-lighter': '#a0f0ed',
  55. // 'teal-lightest': '#e8fffe',
  56. 'blue-90': '#000f40',
  57. 'blue-80': '#002275',
  58. 'blue-70': '#003eaa',
  59. 'blue-60': '#0060df',
  60. 'blue-50': '#0a84ff',
  61. blue: '#0a84ff',
  62. 'blue-40': '#45a1ff',
  63. 'blue-30': '#99ccff',
  64. 'blue-20': '#cce6ff',
  65. 'ink-90': '#0f1126',
  66. 'ink-80': '#202340',
  67. 'ink-70': '#363959',
  68. // 'indigo-darkest': '#191e38',
  69. // 'indigo-darker': '#2f365f',
  70. // 'indigo-dark': '#5661b3',
  71. // indigo: '#6574cd',
  72. // 'indigo-light': '#7886d7',
  73. // 'indigo-lighter': '#b2b7ff',
  74. // 'indigo-lightest': '#e6e8ff',
  75. 'purple-90': '#25003e',
  76. 'purple-80': '#440071',
  77. 'purple-70': '#6200a4',
  78. 'purple-60': '#8000d7',
  79. 'purple-50': '#9400ff',
  80. 'purple-40': '#ad3bff',
  81. 'purple-30': '#c069ff',
  82. 'purple-20': '#d7a3ff',
  83. // 'pink-darkest': '#451225',
  84. // 'pink-darker': '#6f213f',
  85. // 'pink-dark': '#eb5286',
  86. // pink: '#f66d9b',
  87. // 'pink-light': '#fa7ea8',
  88. // 'pink-lighter': '#ffbbca',
  89. // 'pink-lightest': '#ffebef',
  90. cloud: 'rgba(255, 255, 255, 0.8)',
  91. violet: 'hsl(258, 57%, 35%)'
  92. };
  93. module.exports = {
  94. theme: {
  95. colors: colors,
  96. screens: {
  97. sm: '576px',
  98. md: '768px',
  99. lg: '992px',
  100. xl: '1200px',
  101. dark: { raw: '(prefers-color-scheme: dark)' }
  102. },
  103. fontFamily: {
  104. sans: [
  105. 'Inter',
  106. 'system-ui',
  107. 'BlinkMacSystemFont',
  108. '-apple-system',
  109. 'Segoe UI',
  110. 'Roboto',
  111. 'Oxygen',
  112. 'Ubuntu',
  113. 'Cantarell',
  114. 'Fira Sans',
  115. 'Droid Sans',
  116. 'Helvetica Neue',
  117. 'sans-serif'
  118. ],
  119. serif: [
  120. 'Constantia',
  121. 'Lucida Bright',
  122. 'Lucidabright',
  123. 'Lucida Serif',
  124. 'Lucida',
  125. 'DejaVu Serif',
  126. 'Bitstream Vera Serif',
  127. 'Liberation Serif',
  128. 'Georgia',
  129. 'serif'
  130. ],
  131. mono: [
  132. 'Menlo',
  133. 'Monaco',
  134. 'Consolas',
  135. 'Liberation Mono',
  136. 'Courier New',
  137. 'monospace'
  138. ]
  139. },
  140. fontSize: {
  141. xs: '.75rem', // 12px
  142. sm: '.875rem', // 14px
  143. base: '1rem', // 16px
  144. lg: '1.125rem', // 18px
  145. xl: '1.25rem', // 20px
  146. '2xl': '1.5rem', // 24px
  147. '3xl': '2rem', // 32px
  148. '4xl': '2.25rem', // 36px
  149. '5xl': '3rem' // 48px
  150. },
  151. fontWeight: {
  152. hairline: 100,
  153. thin: 200,
  154. light: 300,
  155. normal: 400,
  156. medium: 500,
  157. semibold: 600,
  158. bold: 700,
  159. extrabold: 800,
  160. black: 900
  161. },
  162. lineHeight: {
  163. none: 1,
  164. tight: 1.25,
  165. normal: 1.5,
  166. loose: 1.75
  167. },
  168. letterSpacing: {
  169. tight: '-0.05em',
  170. normal: '0',
  171. wide: '0.05em'
  172. },
  173. textColor: colors,
  174. backgroundColor: colors,
  175. backgroundSize: {
  176. auto: 'auto',
  177. cover: 'cover',
  178. contain: 'contain'
  179. },
  180. borderWidth: {
  181. default: '1px',
  182. '0': '0',
  183. '2': '2px',
  184. '4': '4px',
  185. '8': '8px'
  186. },
  187. borderColor: global.Object.assign({ default: colors['grey-30'] }, colors),
  188. borderRadius: {
  189. none: '0',
  190. sm: '.125rem',
  191. default: '.25rem',
  192. lg: '.5rem',
  193. xl: '1rem',
  194. full: '9999px'
  195. },
  196. width: {
  197. auto: 'auto',
  198. px: '1px',
  199. '0': '0',
  200. '1': '0.25rem',
  201. '2': '0.5rem',
  202. '3': '0.75rem',
  203. '4': '1rem',
  204. '5': '1.25rem',
  205. '6': '1.5rem',
  206. '8': '2rem',
  207. '10': '2.5rem',
  208. '12': '3rem',
  209. '16': '4rem',
  210. '24': '6rem',
  211. '32': '8rem',
  212. '48': '12rem',
  213. '64': '16rem',
  214. '128': '32rem',
  215. '1/2': '50%',
  216. '1/3': '33.33333%',
  217. '2/3': '66.66667%',
  218. '1/4': '25%',
  219. '3/4': '75%',
  220. '1/5': '20%',
  221. '2/5': '40%',
  222. '3/5': '60%',
  223. '4/5': '80%',
  224. '1/6': '16.66667%',
  225. '5/6': '83.33333%',
  226. full: '100%',
  227. screen: '100vw'
  228. },
  229. height: {
  230. auto: 'auto',
  231. px: '1px',
  232. '0': '0',
  233. '1': '0.25rem',
  234. '2': '0.5rem',
  235. '3': '0.75rem',
  236. '4': '1rem',
  237. '5': '1.25rem',
  238. '6': '1.5rem',
  239. '8': '2rem',
  240. '10': '2.5rem',
  241. '12': '3rem',
  242. '16': '4rem',
  243. '24': '6rem',
  244. '32': '8rem',
  245. '48': '12rem',
  246. '64': '16rem',
  247. full: '100%',
  248. screen: '100vh'
  249. },
  250. flex: {
  251. '1': '1 1 0%',
  252. auto: '1 1 auto',
  253. initial: '0 1 auto',
  254. none: 'none',
  255. half: '0 0 50%',
  256. full: '0 0 100%'
  257. },
  258. minWidth: {
  259. '0': '0',
  260. full: '100%'
  261. },
  262. minHeight: {
  263. '0': '0',
  264. full: '100%',
  265. screen: '100vh'
  266. },
  267. maxWidth: {
  268. xs: '20rem',
  269. sm: '30rem',
  270. md: '40rem',
  271. lg: '50rem',
  272. xl: '60rem',
  273. '2xl': '70rem',
  274. '3xl': '80rem',
  275. '4xl': '90rem',
  276. '5xl': '100rem',
  277. full: '100%'
  278. },
  279. maxHeight: {
  280. full: '100%',
  281. 'half-screen': '50vh',
  282. screen: '100vh'
  283. },
  284. padding: {
  285. px: '1px',
  286. '0': '0',
  287. '1': '0.25rem',
  288. '2': '0.5rem',
  289. '3': '0.75rem',
  290. '4': '1rem',
  291. '5': '1.25rem',
  292. '6': '1.5rem',
  293. '8': '2rem',
  294. '10': '2.5rem',
  295. '12': '3rem',
  296. '16': '4rem',
  297. '20': '5rem',
  298. '24': '6rem',
  299. '32': '8rem'
  300. },
  301. margin: {
  302. auto: 'auto',
  303. px: '1px',
  304. '0': '0',
  305. '1': '0.25rem',
  306. '2': '0.5rem',
  307. '3': '0.75rem',
  308. '4': '1rem',
  309. '5': '1.25rem',
  310. '6': '1.5rem',
  311. '8': '2rem',
  312. '10': '2.5rem',
  313. '12': '3rem',
  314. '16': '4rem',
  315. '20': '5rem',
  316. '24': '6rem',
  317. '32': '8rem',
  318. '-px': '-1px',
  319. '-1': '-0.25rem',
  320. '-2': '-0.5rem',
  321. '-3': '-0.75rem',
  322. '-4': '-1rem',
  323. '-5': '-1.25rem',
  324. '-6': '-1.5rem',
  325. '-8': '-2rem',
  326. '-10': '-2.5rem',
  327. '-12': '-3rem',
  328. '-16': '-4rem',
  329. '-20': '-5rem',
  330. '-24': '-6rem',
  331. '-32': '-8rem'
  332. },
  333. boxShadow: {
  334. default: '0 2px 4px 0 rgba(0,0,0,0.10)',
  335. md: '0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08)',
  336. lg: '0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08)',
  337. inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
  338. outline: '0 0 0 3px rgba(52,144,220,0.5)',
  339. none: 'none',
  340. cloud: '0 0 5rem 5rem white',
  341. btn:
  342. '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)'
  343. },
  344. opacity: {
  345. '0': '0',
  346. '25': '.25',
  347. '50': '.5',
  348. '75': '.75',
  349. '100': '1'
  350. },
  351. fill: {
  352. current: 'currentColor'
  353. },
  354. stroke: {
  355. current: 'currentColor'
  356. },
  357. zIndex: {
  358. auto: 'auto',
  359. '0': 0,
  360. '10': 10,
  361. '20': 20,
  362. '30': 30,
  363. '40': 40,
  364. '50': 50
  365. }
  366. },
  367. variants: {
  368. appearance: ['responsive'],
  369. backgroundAttachment: ['responsive'],
  370. backgroundColor: ['responsive', 'hover', 'focus'],
  371. backgroundPosition: ['responsive'],
  372. backgroundRepeat: ['responsive'],
  373. backgroundSize: ['responsive'],
  374. borderCollapse: [],
  375. borderColor: ['responsive', 'hover', 'focus'],
  376. borderRadius: ['responsive'],
  377. borderStyle: ['responsive'],
  378. borderWidth: ['responsive'],
  379. cursor: ['responsive'],
  380. display: ['responsive'],
  381. flexDirection: ['responsive'],
  382. flexWrap: ['responsive'],
  383. alignItems: ['responsive'],
  384. alignSelf: ['responsive'],
  385. alignContent: ['responsive'],
  386. justifyContent: ['responsive'],
  387. flex: ['responsive'],
  388. flexGrow: ['responsive'],
  389. flexShrink: ['responsive'],
  390. float: ['responsive'],
  391. fontFamily: ['responsive'],
  392. fontWeight: ['responsive', 'hover', 'focus'],
  393. height: ['responsive'],
  394. lineHeight: ['responsive'],
  395. listStylePosition: ['responsive'],
  396. listStyleType: ['responsive'],
  397. margin: ['responsive'],
  398. maxHeight: ['responsive'],
  399. maxWidth: ['responsive'],
  400. minHeight: ['responsive'],
  401. minWidth: ['responsive'],
  402. negativeMargin: ['responsive'],
  403. opacity: ['responsive', 'hover'],
  404. outline: ['focus'],
  405. overflow: ['responsive'],
  406. padding: ['responsive'],
  407. pointerEvents: ['responsive'],
  408. position: ['responsive'],
  409. inset: ['responsive'],
  410. resize: ['responsive'],
  411. boxShadow: ['responsive', 'hover', 'focus'],
  412. fill: [],
  413. stroke: [],
  414. tableLayout: ['responsive'],
  415. textAlign: ['responsive'],
  416. textColor: ['responsive', 'hover', 'focus'],
  417. fontSize: ['responsive'],
  418. fontStyle: ['responsive', 'hover', 'focus'],
  419. fontSmoothing: ['responsive', 'hover', 'focus'],
  420. textDecoration: ['responsive', 'hover', 'focus'],
  421. textTransform: ['responsive', 'hover', 'focus'],
  422. letterSpacing: ['responsive'],
  423. userSelect: ['responsive'],
  424. verticalAlign: ['responsive'],
  425. visibility: ['responsive'],
  426. whitespace: ['responsive'],
  427. wordBreak: ['responsive'],
  428. width: ['responsive'],
  429. zIndex: ['responsive']
  430. },
  431. corePlugins: {
  432. container: false
  433. },
  434. plugins: []
  435. };