1
0

tailwind.config.js 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. /**
  2. *
  3. * Note. For now only UNA core, Artificer and Messenger modules were included in minifying process.
  4. *
  5. */
  6. module.exports = {
  7. future: {
  8. hoverOnlyWhenSupported: true, // hover: utilities only on devices with a hover pointer, so a tap never leaves a stuck hover state
  9. },
  10. content: [
  11. './inc/js/*.js',
  12. './inc/js/classes/*.js',
  13. './modules/base/**/js/*.js',
  14. './modules/base/**/template/*.html',
  15. './modules/boonex/**/js/*.js',
  16. './modules/boonex/**/template/*.html',
  17. './modules/boonex/**/data/template/**/*.html',
  18. './studio/template/*.html',
  19. './studio/template/scripts/*.php',
  20. './studio/template/scripts_templ/*.php',
  21. './template/*.html',
  22. './template/scripts/*.php',
  23. './template/scripts_templ/*.php',
  24. './src/**/*.{ts,tsx}'
  25. ],
  26. safelist: [
  27. 'w-8', 'w-10', 'w-16', 'w-24', 'w-48', 'w-4/6',
  28. 'h-8', 'h-10', 'h-24', 'h-48',
  29. '-m-2',
  30. 'text-red-400',
  31. 'ring-blue-500', 'ring-opacity-20',
  32. 'focus:ring-blue-500', 'focus:ring-opacity-20',
  33. 'border-blue-500', 'border-opacity-70',
  34. 'focus:border-blue-500', 'focus:border-opacity-70',
  35. 'lg:block', 'lg:hidden',
  36. 'dark:block', 'dark:hidden', 'dark:lg:block', 'dark:lg:hidden',
  37. 'aspect-w-1', 'aspect-w-3', 'aspect-w-4', 'aspect-w-9', 'aspect-w-16',
  38. 'aspect-h-1', 'aspect-h-3', 'aspect-h-4', 'aspect-h-9', 'aspect-h-16',
  39. 'aspect-none',
  40. 'col-red1', 'col-red1-dark', 'col-red2', 'col-red2-dark', 'col-red3', 'col-red3-dark',
  41. 'bg-col-red1', 'bg-col-red1-dark', 'bg-col-red2', 'bg-col-red2-dark', 'bg-co3-red1', 'bg-col-red3-dark',
  42. 'col-green1', 'col-green1-dark', 'col-green2', 'col-green2-dark', 'col-green3', 'col-green3-dark',
  43. 'bg-col-green1', 'bg-col-green1-dark', 'bg-col-green2', 'bg-col-green2-dark', 'bg-co3-green1', 'bg-col-green3-dark',
  44. 'col-blue1', 'col-blue1-dark', 'col-blue2', 'col-blue2-dark', 'col-blue3', 'col-blue3-dark',
  45. 'bg-col-blue1', 'bg-col-blue1-dark', 'bg-col-blue2', 'bg-col-blue2-dark', 'bg-co3-blue1', 'bg-col-blue3-dark',
  46. 'col-gray', 'col-gray-dark',
  47. 'bg-col-gray', 'bg-col-gray-dark',
  48. 'bx-def-box-sizing', 'bx-def-align-center', 'bx-def-valign-center', 'bx-def-centered',
  49. 'bx-def-margin', 'bx-def-margin-neg', 'bx-def-margin-left', 'bx-def-margin-left-auto', 'bx-def-margin-right', 'bx-def-margin-top', 'bx-def-margin-top-auto', 'bx-def-margin-bottom', 'bx-def-margin-leftright', 'bx-def-margin-leftright-neg', 'bx-def-margin-topbottom', 'bx-def-margin-topbottom-neg', 'bx-def-margin-lefttopright', 'bx-def-margin-rightbottomleft',
  50. 'bx-def-margin-sec', 'bx-def-margin-sec-neg', 'bx-def-margin-sec-left', 'bx-def-margin-sec-left-auto', 'bx-def-margin-sec-right', 'bx-def-margin-sec-top', 'bx-def-margin-sec-top-auto', 'bx-def-margin-sec-bottom', 'bx-def-margin-sec-leftright', 'bx-def-margin-sec-leftright-neg', 'bx-def-margin-sec-topbottom', 'bx-def-margin-sec-topbottom-neg', 'bx-def-margin-sec-lefttopright', 'bx-def-margin-sec-rightbottomleft',
  51. 'bx-def-margin-thd', 'bx-def-margin-thd-neg', 'bx-def-margin-thd-left', 'bx-def-margin-thd-left-auto', 'bx-def-margin-thd-right', 'bx-def-margin-thd-top', 'bx-def-margin-thd-top-auto', 'bx-def-margin-thd-bottom', 'bx-def-margin-thd-leftright', 'bx-def-margin-thd-leftright-neg', 'bx-def-margin-thd-topbottom', 'bx-def-margin-thd-topbottom-neg', 'bx-def-margin-thd-lefttopright', 'bx-def-margin-thd-rightbottomleft',
  52. 'bx-def-padding', 'bx-def-padding-left', 'bx-def-padding-left-auto', 'bx-def-padding-right', 'bx-def-padding-top', 'bx-def-padding-top-auto', 'bx-def-padding-bottom', 'bx-def-padding-leftright', 'bx-def-padding-topbottom', 'bx-def-padding-lefttopright', 'bx-def-padding-rightbottomleft',
  53. 'bx-def-padding-sec', 'bx-def-padding-sec-left', 'bx-def-padding-sec-left-auto', 'bx-def-padding-sec-right', 'bx-def-padding-sec-top', 'bx-def-padding-sec-top-auto', 'bx-def-padding-sec-bottom', 'bx-def-padding-sec-leftright', 'bx-def-padding-sec-topbottom', 'bx-def-padding-sec-lefttopright', 'bx-def-padding-sec-rightbottomleft',
  54. 'bx-def-padding-thd', 'bx-def-padding-thd-left', 'bx-def-padding-thd-left-auto', 'bx-def-padding-thd-right', 'bx-def-padding-thd-top', 'bx-def-padding-thd-top-auto', 'bx-def-padding-thd-bottom', 'bx-def-padding-thd-leftright', 'bx-def-padding-thd-topbottom', 'bx-def-padding-thd-lefttopright', 'bx-def-padding-thd-rightbottomleft',
  55. 'bx-def-font-small', 'bx-def-font-middle', 'bx-def-font-large', 'bx-def-font-h3', 'bx-def-font-h2', 'bx-def-font-h1',
  56. 'bx-def-a-colored',
  57. 'bx-def-unit-alert', 'bx-def-unit-alert-small', 'bx-def-unit-alert-middle',
  58. 'bx-def-label',
  59. 'bx-def-icon-size', 'bx-def-thumb-size', 'bx-def-ava-size', 'bx-def-ava-big-size',
  60. 'bx-def-icon-badge-size', 'bx-def-thumb-badge-size', 'bx-def-ava-badge-size', 'bx-def-ava-big-badge-size',
  61. 'bx-def-color-bg-box-active',
  62. 'bx-form-caption', 'bx-form-value', 'bx-form-required', 'bx-form-warn',
  63. 'bx-form-input-wrapper-checkbox', 'bx-form-input-wrapper-radio', 'bx-form-input-wrapper-checkbox_set', 'bx-form-input-wrapper-radio_set',
  64. 'bx-form-input-slider', 'bx-form-input-doublerange', 'bx-form-input-select_multiple', 'bx-form-input-select', 'bx-form-input-radio_set', 'bx-form-input-checkbox_set', 'bx-form-input-number', 'bx-form-input-time', 'bx-form-input-datepicker', 'bx-form-input-datetime', 'bx-form-input-textarea', 'bx-form-input-text', 'bx-form-input-price', 'bx-form-input-checkbox', 'bx-form-input-radio',
  65. 'bx-switcher-cont',
  66. 'bx-popup-full-screen', 'bx-popup-fog',
  67. 'bx-stl-mil', 'bx-stl-mii', 'bx-stl-mit', 'bx-stl-mia',
  68. 'bx-informer-msg-info', 'bx-informer-msg-alert', 'bx-informer-msg-error',
  69. 'bx-btn-mini', 'bx-btn-small', 'bx-btn-large', 'bx-btn-xlarge',
  70. 'sys-action-counter', 'sys-ac-only', 'sys-ac-link',
  71. 'bx-vote-bls-submenu-cnt',
  72. 'bx-base-general-unit-meta-username', 'bx-base-text-unit-gallery-wrapper', 'aspect-video',
  73. 'bx-tl-overflow',
  74. 'sys-auth-block', 'sys-auth-compact-container',
  75. 'flickity-button',
  76. 'ql-editor', 'space-x-4', 'filepond--drop-label',
  77. 'bg-slate-600','bg-gray-600','bg-zinc-600','bg-neutral-600','bg-stone-600','bg-red-600','bg-orange-600','bg-amber-600','bg-yellow-600','bg-lime-600','bg-green-600','bg-emerald-600','bg-teal-600','bg-cyan-600','bg-sky-600','bg-indigo-600','bg-violet-600','bg-blue-600','bg-purple-600','bg-fuchsia-600','bg-pink-600','bg-rose-600',
  78. 'text-slate-600','text-gray-600','text-zinc-600','text-neutral-600','text-stone-600','text-red-600','text-orange-600','text-amber-600','text-yellow-600','text-lime-600','text-green-600','text-emerald-600','text-teal-600','text-cyan-600','text-sky-600','text-indigo-600','text-violet-600','text-blue-600','text-purple-600','text-fuchsia-600','text-pink-600', 'text-rose-600'
  79. ],
  80. darkMode: 'class', // false or 'media' or 'class'
  81. theme: {
  82. fontFamily: {
  83. '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"'],
  84. },
  85. extend: {
  86. width: {
  87. '21': '5.25rem',
  88. '46': '11.5rem',
  89. '50': '12.5rem',
  90. '112': '28rem',
  91. '128': '32rem',
  92. '144': '36rem',
  93. '1/10': '10%',
  94. '2/10': '20%',
  95. '3/10': '30%',
  96. '4/10': '40%',
  97. '5/10': '50%',
  98. '6/10': '60%',
  99. '7/10': '70%',
  100. '8/10': '80%',
  101. '9/10': '90%'
  102. },
  103. minWidth: {
  104. 4: '1rem',
  105. 6: '1.5rem',
  106. 48: '12rem',
  107. 88: '22rem'
  108. },
  109. maxWidth: {
  110. 32: '8rem',
  111. },
  112. height: {
  113. 46: '11.5rem',
  114. 50: '12.5rem',
  115. 112: '28rem',
  116. 128: '32rem',
  117. 144: '36rem'
  118. },
  119. maxHeight: {
  120. 128: '32rem',
  121. },
  122. lineHeight: {
  123. 11: '2.75rem',
  124. 12: '3rem',
  125. 13: '3.25rem',
  126. 14: '3.5rem',
  127. 15: '3.75rem',
  128. 16: '4rem',
  129. },
  130. zIndex: {
  131. 1: 1,
  132. 2: 2,
  133. 3: 3,
  134. 4: 4,
  135. 5: 5,
  136. },
  137. flex: {
  138. 2: '2 2 0%',
  139. },
  140. translate: {
  141. '5/4': '125%',
  142. },
  143. animation: {
  144. goo: "goo 8s infinite",
  145. },
  146. aspectRatio: {
  147. auto: 'auto',
  148. square: '1 / 1',
  149. video: '16 / 9',
  150. portrait: '9 / 16',
  151. 1: '1',
  152. 2: '2',
  153. 3: '3',
  154. 4: '4',
  155. 5: '5',
  156. 6: '6',
  157. 7: '7',
  158. 8: '8',
  159. 9: '9',
  160. 10: '10',
  161. 11: '11',
  162. 12: '12',
  163. 13: '13',
  164. 14: '14',
  165. 15: '15',
  166. 16: '16',
  167. },
  168. keyframes: {
  169. goo: {
  170. "0%": {
  171. transform: "translate(0px, 0px) scale(1)",
  172. },
  173. "33%": {
  174. transform: "translate(30px, -50px) scale(1.2)",
  175. },
  176. "66%": {
  177. transform: "translate(-20px, 20px) scale(0.8)",
  178. },
  179. "100%": {
  180. transform: "translate(0px, 0px) scale(1)",
  181. },
  182. },
  183. },
  184. },
  185. },
  186. variants: {
  187. aspectRatio: ['responsive', 'hover']
  188. },
  189. corePlugins: {
  190. aspectRatio: true,
  191. },
  192. plugins: [
  193. require('@tailwindcss/typography'),
  194. require('@tailwindcss/aspect-ratio'),
  195. require('@tailwindcss/container-queries'),
  196. require('./tailwind.smooth-shadow.js'),
  197. ],
  198. }