tailwind.config.js.twig 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. const { colors } = require('tailwindcss/defaultTheme');
  2. module.exports = {
  3. purge: [
  4. '../../config/**/*.yaml',
  5. '../../pages/**/*.md',
  6. './blueprints/**/*.yaml',
  7. './js/**/*.js',
  8. './templates/**/*.twig',
  9. './{{ component.name|hyphenize }}.yaml',
  10. './{{ component.name|hyphenize }}.php'
  11. ],
  12. darkMode: 'class', //false or 'media' or 'class'
  13. theme: {
  14. extend: {
  15. screens: {
  16. sm: '640px',
  17. md: '768px',
  18. lg: '1024px',
  19. xl: '1280px',
  20. '2xl': '1536px'
  21. }
  22. },
  23. colors: {
  24. 'primary': {
  25. 'lighter': colors.yellow['300'],
  26. DEFAULT: colors.yellow['400'],
  27. 'darker' : colors.yellow['500'],
  28. },
  29. black: colors.black,
  30. white: colors.white,
  31. red: colors.red,
  32. green: colors.green,
  33. blue: colors.blue,
  34. orange: colors.orange,
  35. indigo: colors.indigo,
  36. transparent: 'transparent',
  37. 'inherit': 'inherit',
  38. },
  39. typography: (theme) => ({
  40. DEFAULT: {
  41. css: {
  42. color: 'inherit',
  43. lineHeight: 'inherit',
  44. maxWidth: 'inherit',
  45. a: {
  46. transition: 'all 500ms',
  47. color: theme('colors.primary.DEFAULT'),
  48. '&:hover': {
  49. color: theme('colors.primary.darker')
  50. },
  51. textDecoration: 'none'
  52. },
  53. strong: {
  54. color: 'inherit'
  55. },
  56. }
  57. }
  58. }),
  59. },
  60. variants: {
  61. extend: {},
  62. },
  63. plugins: [
  64. require('@tailwindcss/typography'),
  65. require('@tailwindcss/forms'),
  66. require('tailwindcss-debug-screens'),
  67. ],
  68. important: false,
  69. }