tailwind.desktop.js 2.6 KB

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