tailwind.config.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. const defaultTheme = require('tailwindcss/defaultTheme');
  2. const headerFont = {
  3. fontFamily: 'Oswald',
  4. fontWeight: '400',
  5. };
  6. module.exports = {
  7. content: [
  8. './assets/**/*.{vue,js,css}',
  9. './components/**/*.{vue,js}',
  10. './layouts/**/*.vue',
  11. './pages/**/*.vue',
  12. './plugins/**/*.{js,ts}',
  13. // './nuxt.config.{js,ts}',
  14. ],
  15. theme: {
  16. extend: {
  17. fontFamily: {
  18. sans: 'Open Sans'
  19. },
  20. typography: theme => ({
  21. DEFAULT: {
  22. css: {
  23. h1: { ...headerFont, fontSize: defaultTheme.fontSize['4xl'], lineHeight: '0.7778em' },
  24. h2: { ...headerFont, fontSize: defaultTheme.fontSize['3xl'], lineHeight: '0.7778em' },
  25. h3: { ...headerFont, fontSize: defaultTheme.fontSize['2xl'], lineHeight: '0.9333em' },
  26. h4: { ...headerFont, fontSize: defaultTheme.fontSize[ 'xl'], lineHeight: '1.1667em' },
  27. a: {
  28. textDecoration: 'none',
  29. color: theme('colors.sky.600'),
  30. }
  31. }
  32. }
  33. })
  34. },
  35. },
  36. plugins: [
  37. require('@tailwindcss/typography'),
  38. require('daisyui'),
  39. require('@tailwindcss/aspect-ratio'),
  40. ],
  41. daisyui: {
  42. utils: false,
  43. logs: false,
  44. themes: [
  45. {
  46. lofi: {
  47. ...require("daisyui/src/colors/themes")["[data-theme=lofi]"],
  48. primary: 'white',
  49. info: '#0284c7',
  50. success: '#4e9a06',
  51. error: '#cc0000',
  52. 'base-100': 'black',
  53. "--rounded-badge": "1rem",
  54. "--animation-input": "0.1s",
  55. }
  56. }
  57. ]
  58. }
  59. }