tailwind.config.js 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /**
  2. *
  3. * Note. For now only UNA core, Artificer and Messenger modules were included in minifying process.
  4. *
  5. */
  6. module.exports = {
  7. content: [
  8. './inc/js/*.js',
  9. './inc/js/classes/*.js',
  10. './modules/base/**/js/*.js',
  11. './modules/base/**/template/*.html',
  12. './modules/boonex/**/js/*.js',
  13. './modules/boonex/**/template/*.html',
  14. './modules/boonex/**/data/template/**/*.html',
  15. './studio/template/*.html',
  16. './template/*.html',
  17. ],
  18. safelist: [
  19. 'w-8', 'w-10', 'w-16', 'w-24', 'w-48', 'w-4/6',
  20. 'h-8', 'h-10', 'h-24', 'h-48',
  21. '-m-2',
  22. 'text-red-400',
  23. 'ring-blue-500', 'ring-opacity-20',
  24. 'focus:ring-blue-500', 'focus:ring-opacity-20',
  25. 'border-blue-500', 'border-opacity-70',
  26. 'focus:border-blue-500', 'focus:border-opacity-70',
  27. 'aspect-w-1', 'aspect-w-3', 'aspect-w-4', 'aspect-w-9', 'aspect-w-16',
  28. 'aspect-h-1', 'aspect-h-3', 'aspect-h-4', 'aspect-h-9', 'aspect-h-16',
  29. 'aspect-none',
  30. 'col-red1', 'col-red1-dark', 'col-red2', 'col-red2-dark', 'col-red3', 'col-red3-dark',
  31. 'bg-col-red1', 'bg-col-red1-dark', 'bg-col-red2', 'bg-col-red2-dark', 'bg-co3-red1', 'bg-col-red3-dark',
  32. 'col-green1', 'col-green1-dark', 'col-green2', 'col-green2-dark', 'col-green3', 'col-green3-dark',
  33. 'bg-col-green1', 'bg-col-green1-dark', 'bg-col-green2', 'bg-col-green2-dark', 'bg-co3-green1', 'bg-col-green3-dark',
  34. 'col-blue1', 'col-blue1-dark', 'col-blue2', 'col-blue2-dark', 'col-blue3', 'col-blue3-dark',
  35. 'bg-col-blue1', 'bg-col-blue1-dark', 'bg-col-blue2', 'bg-col-blue2-dark', 'bg-co3-blue1', 'bg-col-blue3-dark',
  36. 'col-gray', 'col-gray-dark',
  37. 'bg-col-gray', 'bg-col-gray-dark',
  38. 'bx-def-box-sizing', 'bx-def-align-center', 'bx-def-valign-center', 'bx-def-centered',
  39. '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',
  40. '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',
  41. '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',
  42. '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',
  43. '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',
  44. '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',
  45. 'bx-def-font-small', 'bx-def-font-middle', 'bx-def-font-large', 'bx-def-font-h3', 'bx-def-font-h2', 'bx-def-font-h1',
  46. 'bx-def-a-colored',
  47. 'bx-def-unit-alert', 'bx-def-unit-alert-small', 'bx-def-unit-alert-middle',
  48. 'bx-def-label',
  49. 'bx-def-icon-size', 'bx-def-thumb-size', 'bx-def-ava-size', 'bx-def-ava-big-size',
  50. 'bx-def-color-bg-box-active',
  51. 'bx-form-caption', 'bx-form-value', 'bx-form-required', 'bx-form-warn',
  52. 'bx-form-input-wrapper-checkbox_set', 'bx-form-input-wrapper-radio_set',
  53. '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',
  54. 'bx-switcher-cont',
  55. 'bx-popup-full-screen', 'bx-popup-fog',
  56. 'bx-stl-mil', 'bx-stl-mii', 'bx-stl-mit', 'bx-stl-mia',
  57. 'bx-informer-msg-info', 'bx-informer-msg-alert', 'bx-informer-msg-error',
  58. 'sys-action-counter', 'sys-ac-only', 'sys-ac-link',
  59. 'bx-base-general-unit-meta-username', 'bx-base-text-unit-gallery-wrapper', 'aspect-video',
  60. 'bx-tl-overflow',
  61. 'sys-auth-block', 'sys-auth-compact-container',
  62. 'flickity-button',
  63. 'ql-editor', 'space-x-4',
  64. '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',
  65. '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'
  66. ],
  67. darkMode: 'class', // false or 'media' or 'class'
  68. theme: {
  69. fontFamily: {
  70. 'inter': ['Inter var', '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"'],
  71. },
  72. extend: {
  73. width: {
  74. '21': '5.25rem',
  75. '46': '11.5rem',
  76. '50': '12.5rem',
  77. '112': '28rem',
  78. '128': '32rem',
  79. '144': '36rem',
  80. '1/10': '10%',
  81. '2/10': '20%',
  82. '3/10': '30%',
  83. '4/10': '40%',
  84. '5/10': '50%',
  85. '6/10': '60%',
  86. '7/10': '70%',
  87. '8/10': '80%',
  88. '9/10': '90%'
  89. },
  90. minWidth: {
  91. 4: '1rem',
  92. 6: '1.5rem',
  93. 48: '12rem',
  94. 88: '22rem'
  95. },
  96. maxWidth: {
  97. 32: '8rem',
  98. },
  99. height: {
  100. 46: '11.5rem',
  101. 50: '12.5rem',
  102. 112: '28rem',
  103. 128: '32rem',
  104. 144: '36rem'
  105. },
  106. maxHeight: {
  107. 128: '32rem',
  108. },
  109. lineHeight: {
  110. 11: '2.75rem',
  111. 12: '3rem',
  112. 13: '3.25rem',
  113. 14: '3.5rem',
  114. 15: '3.75rem',
  115. 16: '4rem',
  116. },
  117. zIndex: {
  118. 1: 1,
  119. 2: 2,
  120. 3: 3,
  121. 4: 4,
  122. 5: 5,
  123. },
  124. flex: {
  125. 2: '2 2 0%',
  126. },
  127. translate: {
  128. '5/4': '125%',
  129. },
  130. animation: {
  131. goo: "goo 8s infinite",
  132. },
  133. aspectRatio: {
  134. auto: 'auto',
  135. square: '1 / 1',
  136. video: '16 / 9',
  137. 1: '1',
  138. 2: '2',
  139. 3: '3',
  140. 4: '4',
  141. 5: '5',
  142. 6: '6',
  143. 7: '7',
  144. 8: '8',
  145. 9: '9',
  146. 10: '10',
  147. 11: '11',
  148. 12: '12',
  149. 13: '13',
  150. 14: '14',
  151. 15: '15',
  152. 16: '16',
  153. },
  154. keyframes: {
  155. goo: {
  156. "0%": {
  157. transform: "translate(0px, 0px) scale(1)",
  158. },
  159. "33%": {
  160. transform: "translate(30px, -50px) scale(1.2)",
  161. },
  162. "66%": {
  163. transform: "translate(-20px, 20px) scale(0.8)",
  164. },
  165. "100%": {
  166. transform: "translate(0px, 0px) scale(1)",
  167. },
  168. },
  169. },
  170. },
  171. },
  172. variants: {
  173. aspectRatio: ['responsive', 'hover']
  174. },
  175. corePlugins: {
  176. aspectRatio: true,
  177. },
  178. plugins: [
  179. require('@tailwindcss/typography'),
  180. require('@tailwindcss/aspect-ratio'),
  181. require('@tailwindcss/container-queries'),
  182. ],
  183. }