tailwind.desktop.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. /* eslint-disable @typescript-eslint/no-require-imports */
  3. const path = require('path')
  4. const formKitTailwind = require('@formkit/themes/tailwindcss')
  5. const containerQueriesTailwind = require('@tailwindcss/container-queries')
  6. const unimportantTailwind = require('tailwindcss-unimportant')
  7. const zammadTailwind = require('../../../build/zammadTailwindPlugin.js')
  8. /* eslint-enable @typescript-eslint/no-require-imports */
  9. const desktopDir = path.resolve(__dirname, '..')
  10. const sharedDir = path.resolve(__dirname, '../../../shared')
  11. /** @type {import('tailwindcss').Config} */
  12. module.exports = {
  13. darkMode: ['class', '[data-theme="dark"]'],
  14. content: [
  15. `${desktopDir}/**/*.{js,jsx,ts,tsx,vue,css}`,
  16. `${sharedDir}/**/*.{js,jsx,ts,tsx,vue,css}`,
  17. ],
  18. plugins: [
  19. containerQueriesTailwind,
  20. formKitTailwind,
  21. unimportantTailwind,
  22. zammadTailwind,
  23. ],
  24. theme: {
  25. colors: {
  26. alpha: {
  27. 900: '#00000080',
  28. },
  29. black: '#000000',
  30. white: '#FFFFFF',
  31. neutral: {
  32. 50: '#FAFAFA',
  33. 100: '#E5E5E5',
  34. 200: '#E3E3E3',
  35. 300: '#DCDCDC',
  36. 400: '#D1D1D1',
  37. 500: '#999999',
  38. 950: '#191919',
  39. },
  40. gray: {
  41. 100: '#585856',
  42. 200: '#535355',
  43. 300: '#434141',
  44. 400: '#3F3F41',
  45. 500: '#323234',
  46. 600: '#2C2C2D',
  47. 700: '#262627',
  48. 800: '#212122',
  49. 900: '#202021',
  50. },
  51. stone: {
  52. 200: '#A0A3A6',
  53. 400: '#6F7071',
  54. 500: '#4B5058',
  55. 700: '#383B41',
  56. },
  57. blue: {
  58. 50: '#F9FAFB',
  59. 100: '#E5F0F5',
  60. 200: '#EDF1F2',
  61. 300: '#D4E2E9',
  62. 400: '#C9E1EA',
  63. 500: '#C0DDE6',
  64. 600: '#7FD4F1',
  65. 700: '#49A9CA',
  66. 800: '#23A2CD',
  67. 900: '#045972',
  68. 950: '#063849',
  69. },
  70. green: {
  71. 100: '#EFF0F1',
  72. 200: '#BCCED2',
  73. 300: '#BBE0CB',
  74. 400: '#38AD69',
  75. 500: '#36AF6A',
  76. 900: '#07341A',
  77. },
  78. yellow: {
  79. 50: '#FFF6DA',
  80. 200: '#FFD44C',
  81. 300: '#FFCE33',
  82. 500: '#FAAB00',
  83. 600: '#F39804',
  84. 700: '#F38612',
  85. 800: '#4A3300',
  86. 900: '#453914',
  87. },
  88. red: {
  89. 50: '#FAEFD6',
  90. 300: '#F35912',
  91. 400: '#E9613A',
  92. 500: '#E54011',
  93. 600: '#86270C',
  94. 900: '#220C06',
  95. },
  96. pink: {
  97. 100: '#EFD9D2',
  98. 300: '#EA4D84',
  99. 500: '#FF006B',
  100. },
  101. },
  102. extend: {
  103. width: {
  104. 150: '600px',
  105. },
  106. minWidth: {
  107. 58: '232px',
  108. 150: '600px',
  109. },
  110. maxWidth: {
  111. 150: '600px',
  112. },
  113. gridTemplateColumns: {
  114. '2-uneven': 'repeat(2, minmax(0, 1fr))',
  115. },
  116. },
  117. },
  118. }