tailwind.desktop.js 2.5 KB

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