tailwind.config.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. const defaultTheme = require('tailwindcss/defaultTheme')
  2. /** @type {import('tailwindcss').Config} */
  3. module.exports = {
  4. darkMode: "class",
  5. theme: {
  6. fontSize: {
  7. '2xs': ['0.75rem', { lineHeight: '1.25rem' }],
  8. xs: ['0.8125rem', { lineHeight: '1.5rem' }],
  9. sm: ['0.875rem', { lineHeight: '1.5rem' }],
  10. base: ['1rem', { lineHeight: '1.75rem' }],
  11. lg: ['1.125rem', { lineHeight: '1.75rem' }],
  12. xl: ['1.25rem', { lineHeight: '1.75rem' }],
  13. '2xl': ['1.5rem', { lineHeight: '2rem' }],
  14. '3xl': ['1.875rem', { lineHeight: '2.25rem' }],
  15. '4xl': ['2.25rem', { lineHeight: '2.5rem' }],
  16. '5xl': ['3rem', { lineHeight: '1' }],
  17. '6xl': ['3.75rem', { lineHeight: '1' }],
  18. '7xl': ['4.5rem', { lineHeight: '1' }],
  19. '8xl': ['6rem', { lineHeight: '1' }],
  20. '9xl': ['8rem', { lineHeight: '1' }],
  21. },
  22. typography: require('./typography'),
  23. extend: {
  24. boxShadow: {
  25. glow: '0 0 4px rgb(0 0 0 / 0.1)',
  26. },
  27. colors: {
  28. link: '#3B82F6'
  29. },
  30. fontFamily: {
  31. 'inter': ['Inter', 'sans-serif']
  32. },
  33. maxWidth: {
  34. lg: '33rem',
  35. '2xl': '40rem',
  36. '3xl': '50rem',
  37. '5xl': '66rem',
  38. },
  39. opacity: {
  40. 1: '0.01',
  41. 2.5: '0.025',
  42. 7.5: '0.075',
  43. 15: '0.15',
  44. }
  45. }
  46. },
  47. plugins: [],
  48. content: [
  49. `/components/**/*.{vue,js,ts}`,
  50. `/layouts/**/*.vue`,
  51. `/pages/**/*.vue`,
  52. `/composables/**/*.{js,ts}`,
  53. `/plugins/**/*.{js,ts}`,
  54. `/App.{js,ts,vue}`,
  55. `/app.{js,ts,vue}`,
  56. `/Error.{js,ts,vue}`,
  57. `/error.{js,ts,vue}`
  58. ],
  59. }