tailwind.config.full.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. module.exports = {
  2. future: {
  3. hoverOnlyWhenSupported: true, // hover: utilities only on devices with a hover pointer, so a tap never leaves a stuck hover state
  4. },
  5. content: [
  6. './inc/js/*.js',
  7. './inc/js/classes/*.js',
  8. './modules/base/**/js/*.js',
  9. './modules/base/**/template/*.html',
  10. './modules/boonex/**/js/*.js',
  11. './modules/boonex/**/template/*.html',
  12. './modules/boonex/**/data/template/**/*.html',
  13. './studio/template/*.html',
  14. './studio/template/scripts/*.php',
  15. './studio/template/scripts_templ/*.php',
  16. './template/*.html',
  17. './template/scripts/*.php',
  18. './template/scripts_templ/*.php',
  19. './src/**/*.{ts,tsx}'
  20. ],
  21. safelist: [
  22. {
  23. pattern: /.*/
  24. }
  25. ],
  26. darkMode: 'class', // false or 'media' or 'class'
  27. theme: {
  28. fontFamily: {
  29. 'inter': ['ui-sans-serif', 'system-ui', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', '"Noto Sans"', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Noto Color Emoji"'],
  30. },
  31. extend: {
  32. width: {
  33. '21': '5.25rem',
  34. '46': '11.5rem',
  35. '50': '12.5rem',
  36. '112': '28rem',
  37. '128': '32rem',
  38. '144': '36rem',
  39. '1/10': '10%',
  40. '2/10': '20%',
  41. '3/10': '30%',
  42. '4/10': '40%',
  43. '5/10': '50%',
  44. '6/10': '60%',
  45. '7/10': '70%',
  46. '8/10': '80%',
  47. '9/10': '90%'
  48. },
  49. minWidth: {
  50. 4: '1rem',
  51. 6: '1.5rem',
  52. 48: '12rem',
  53. 88: '22rem'
  54. },
  55. maxWidth: {
  56. 32: '8rem',
  57. },
  58. height: {
  59. 46: '11.5rem',
  60. 50: '12.5rem',
  61. 112: '28rem',
  62. 128: '32rem',
  63. 144: '36rem'
  64. },
  65. maxHeight: {
  66. 128: '32rem',
  67. },
  68. lineHeight: {
  69. 11: '2.75rem',
  70. 12: '3rem',
  71. 13: '3.25rem',
  72. 14: '3.5rem',
  73. 15: '3.75rem',
  74. 16: '4rem',
  75. },
  76. zIndex: {
  77. 1: 1,
  78. 2: 2,
  79. 3: 3,
  80. 4: 4,
  81. 5: 5,
  82. },
  83. flex: {
  84. 2: '2 2 0%',
  85. },
  86. translate: {
  87. '5/4': '125%',
  88. },
  89. animation: {
  90. goo: "goo 8s infinite",
  91. },
  92. aspectRatio: {
  93. auto: 'auto',
  94. square: '1 / 1',
  95. video: '16 / 9',
  96. portrait: '9 / 16',
  97. 1: '1',
  98. 2: '2',
  99. 3: '3',
  100. 4: '4',
  101. 5: '5',
  102. 6: '6',
  103. 7: '7',
  104. 8: '8',
  105. 9: '9',
  106. 10: '10',
  107. 11: '11',
  108. 12: '12',
  109. 13: '13',
  110. 14: '14',
  111. 15: '15',
  112. 16: '16',
  113. },
  114. keyframes: {
  115. goo: {
  116. "0%": {
  117. transform: "translate(0px, 0px) scale(1)",
  118. },
  119. "33%": {
  120. transform: "translate(30px, -50px) scale(1.2)",
  121. },
  122. "66%": {
  123. transform: "translate(-20px, 20px) scale(0.8)",
  124. },
  125. "100%": {
  126. transform: "translate(0px, 0px) scale(1)",
  127. },
  128. },
  129. },
  130. },
  131. },
  132. variants: {
  133. aspectRatio: ['responsive', 'hover']
  134. },
  135. corePlugins: {
  136. aspectRatio: true,
  137. },
  138. plugins: [
  139. require('@tailwindcss/typography'),
  140. require('@tailwindcss/aspect-ratio'),
  141. require('@tailwindcss/container-queries'),
  142. require('./tailwind.smooth-shadow.js'),
  143. ],
  144. }