tailwind.config.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /** @type {import('tailwindcss').Config} */
  2. import tailwindThemeVarDefine from './themes/tailwind-theme-var-define'
  3. module.exports = {
  4. content: [
  5. './app/**/*.{js,ts,jsx,tsx}',
  6. './components/**/*.{js,ts,jsx,tsx}',
  7. './context/**/*.{js,ts,jsx,tsx}',
  8. ],
  9. theme: {
  10. typography: require('./typography'),
  11. extend: {
  12. colors: {
  13. gray: {
  14. 25: '#fcfcfd',
  15. 50: '#f9fafb',
  16. 100: '#f2f4f7',
  17. 200: '#eaecf0',
  18. 300: '#d0d5dd',
  19. 400: '#98a2b3',
  20. 500: '#667085',
  21. 700: '#475467',
  22. 600: '#344054',
  23. 800: '#1d2939',
  24. 900: '#101828',
  25. },
  26. primary: {
  27. 25: '#f5f8ff',
  28. 50: '#eff4ff',
  29. 100: '#d1e0ff',
  30. 200: '#b2ccff',
  31. 300: '#84adff',
  32. 400: '#528bff',
  33. 500: '#2970ff',
  34. 600: '#155eef',
  35. 700: '#004eeb',
  36. 800: '#0040c1',
  37. 900: '#00359e',
  38. },
  39. blue: {
  40. 500: '#E1EFFE',
  41. },
  42. green: {
  43. 50: '#F3FAF7',
  44. 100: '#DEF7EC',
  45. 800: '#03543F',
  46. },
  47. yellow: {
  48. 100: '#FDF6B2',
  49. 800: '#723B13',
  50. },
  51. purple: {
  52. 50: '#F6F5FF',
  53. 200: '#DCD7FE',
  54. },
  55. indigo: {
  56. 25: '#F5F8FF',
  57. 50: '#EEF4FF',
  58. 100: '#E0EAFF',
  59. 300: '#A4BCFD',
  60. 400: '#8098F9',
  61. 600: '#444CE7',
  62. 800: '#2D31A6',
  63. },
  64. ...tailwindThemeVarDefine,
  65. },
  66. screens: {
  67. mobile: '100px',
  68. // => @media (min-width: 100px) { ... }
  69. tablet: '640px', // 391
  70. // => @media (min-width: 600px) { ... }
  71. pc: '769px',
  72. // => @media (min-width: 769px) { ... }
  73. },
  74. boxShadow: {
  75. 'xs': '0px 1px 2px 0px rgba(16, 24, 40, 0.05)',
  76. 'sm': '0px 1px 2px 0px rgba(16, 24, 40, 0.06), 0px 1px 3px 0px rgba(16, 24, 40, 0.10)',
  77. 'md': '0px 2px 4px -2px rgba(16, 24, 40, 0.06), 0px 4px 8px -2px rgba(16, 24, 40, 0.10)',
  78. 'lg': '0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08)',
  79. 'xl': '0px 8px 8px -4px rgba(16, 24, 40, 0.03), 0px 20px 24px -4px rgba(16, 24, 40, 0.08)',
  80. '2xl': '0px 24px 48px -12px rgba(16, 24, 40, 0.18)',
  81. '3xl': '0px 32px 64px -12px rgba(16, 24, 40, 0.14)',
  82. },
  83. opacity: {
  84. 2: '0.02',
  85. 8: '0.08',
  86. },
  87. fontSize: {
  88. '2xs': '0.625rem',
  89. },
  90. backgroundImage: {
  91. 'chatbot-bg': 'var(--color-chatbot-bg)',
  92. 'chat-bubble-bg': 'var(--color-chat-bubble-bg)',
  93. 'workflow-process-bg': 'var(--color-workflow-process-bg)',
  94. },
  95. },
  96. },
  97. plugins: [
  98. require('@tailwindcss/typography'),
  99. ],
  100. // https://github.com/tailwindlabs/tailwindcss/discussions/5969
  101. corePlugins: {
  102. preflight: false,
  103. },
  104. }