tailwind.desktop.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. 800: '#4A3300',
  85. 900: '#453914',
  86. },
  87. red: {
  88. 50: '#FAEFD6',
  89. 300: '#F35912',
  90. 400: '#E9613A',
  91. 500: '#E54011',
  92. 600: '#86270C',
  93. 900: '#220C06',
  94. },
  95. pink: {
  96. 100: '#EFD9D2',
  97. 300: '#EA4D84',
  98. 500: '#FF006B',
  99. },
  100. },
  101. extend: {
  102. width: {
  103. 150: '600px',
  104. },
  105. minWidth: {
  106. 58: '232px',
  107. 150: '600px',
  108. },
  109. maxWidth: {
  110. 150: '600px',
  111. },
  112. gridTemplateColumns: {
  113. '2-uneven': 'repeat(2, minmax(0, 1fr))',
  114. },
  115. },
  116. },
  117. }