tailwind.config.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // #4c5eb8
  2. const { colors, inset } = require('tailwindcss/defaultTheme');
  3. const themeColors = {
  4. mask: {
  5. light: 'rgba(255,255,255,0.3)',
  6. },
  7. primary: '#018ffb',
  8. success: '#55d187',
  9. warning: '#ffd164',
  10. danger: '#ed6f6f',
  11. };
  12. module.exports = {
  13. purge: {
  14. enabled: process.env.NODE_ENV === 'production',
  15. content: [
  16. './index.html',
  17. './src/**/*.vue',
  18. './src/**/*.js',
  19. './src/**/*.jsx',
  20. './src/**/*.ts',
  21. './src/**/*.tsx',
  22. ],
  23. },
  24. theme: {
  25. colors: {
  26. ...colors,
  27. ...themeColors,
  28. },
  29. inset: {
  30. ...inset,
  31. '1/2': '50%',
  32. },
  33. screens: {
  34. xs: '480px',
  35. sm: '576px',
  36. md: '768px',
  37. lg: '992px',
  38. xl: '1200px',
  39. xxl: '1600px',
  40. },
  41. fontSize: {
  42. xs: '.75rem', // 12px
  43. sm: '.875rem', // 14px
  44. base: '1rem', // 16px
  45. lg: '1.125rem', // 18px
  46. xl: '1.25rem', // 20px
  47. '2xl': '1.5rem', // 24px
  48. '3xl': '1.875rem', // 30px
  49. '4xl': '2.25rem', // 36px
  50. '5xl': '3rem', // 48px
  51. '6xl': '4rem', // 64px
  52. logo: '9rem', // 134px
  53. },
  54. fontWeight: {
  55. light: 300,
  56. normal: 400,
  57. medium: 500,
  58. semibold: 600,
  59. bold: 700,
  60. extrabold: 800,
  61. black: 900,
  62. },
  63. fontFamily: {
  64. logo: [' Georgia', 'serif'],
  65. },
  66. },
  67. future: {
  68. // 2.0 remove col-gap-{n}
  69. removeDeprecatedGapUtilities: true,
  70. purgeLayersByDefault: true,
  71. },
  72. };