tailwind.config.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. screens: {
  35. print: {raw: 'print'},
  36. }
  37. },
  38. },
  39. plugins: [
  40. require('@tailwindcss/typography'),
  41. require('daisyui'),
  42. require('@tailwindcss/aspect-ratio'),
  43. ],
  44. daisyui: {
  45. utils: false,
  46. logs: false,
  47. themes: [
  48. {
  49. lofi: {
  50. ...require("daisyui/src/theming/themes")["[data-theme=lofi]"],
  51. primary: 'white',
  52. info: '#0284c7',
  53. success: '#4e9a06',
  54. error: '#cc0000',
  55. 'base-100': 'black',
  56. "--rounded-badge": "1rem",
  57. "--animation-input": "0.1s",
  58. }
  59. }
  60. ]
  61. }
  62. }