tailwind.config.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /** @type {import('tailwindcss').Config} */
  2. module.exports = {
  3. // 哪些文件中包含tailwind的类名,tailwind会扫描这些文件来生成对应的CSS
  4. content: [
  5. "./src/Resources/**/*.blade.php",
  6. "./src/Resources/**/*.js",
  7. "./src/Resources/**/*.vue",
  8. "../../Longyi/Core/src/Resources/**/*.blade.php"
  9. ],
  10. theme: {
  11. container: {
  12. center: true,
  13. screens: {
  14. "2xl": "1920px",
  15. },
  16. padding: {
  17. DEFAULT: "16px",
  18. },
  19. },
  20. screens: {
  21. sm: "525px",
  22. md: "768px",
  23. lg: "1024px",
  24. xl: "1240px",
  25. "2xl": "1920px",
  26. },
  27. extend: {
  28. colors: {
  29. darkGreen: '#40994A',
  30. darkBlue: '#0044F2',
  31. darkPink: '#F85156',
  32. },
  33. fontFamily: {
  34. inter: ['Inter'],
  35. icon: ['icomoon']
  36. },
  37. fontSize: {
  38. '12': ['0.75rem'],
  39. '14': ['0.875rem'],
  40. '16': ['1rem'],
  41. '18': ['1.125rem'],
  42. '20': ['1.25rem'],
  43. '22': ['1.375rem'],
  44. '24': ['1.5rem'],
  45. '26': ['1.625rem'],
  46. '28': ['1.75rem'],
  47. '30': ['1.875rem'],
  48. '32': ['2rem'],
  49. '34': ['2.125rem'],
  50. '36': ['2.25rem'],
  51. '38': ['2.375rem'],
  52. '40': ['2.5rem'],
  53. }
  54. },
  55. },
  56. darkMode: 'class',
  57. plugins: [],
  58. safelist: [
  59. {
  60. pattern: /icon-/,
  61. }
  62. ]
  63. };