tailwind.config.cjs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /** @type {import('tailwindcss').Config} */
  2. module.exports = {
  3. content: ['./src/**/*.{html,js,svelte}','./src/App.svelte', './node_modules/stdf/src/**/*.svelte', '../components/**/*.svelte'],
  4. theme: {
  5. colors: {
  6. // 主题色
  7. // Theme Color
  8. primary: '#0B24FB',
  9. dark: '#FFC043',
  10. blue: '#0B24FB', // primary 别名 alias
  11. yellow: '#FFC043', // dark 别名 alias
  12. // 扩展色
  13. // Extended Color
  14. purple: '#7356BF',
  15. green: '#05944F',
  16. orange: '#FF6937',
  17. // 功能色
  18. // Functional Color
  19. success: '#11BB8D',
  20. warning: '#B95000',
  21. error: '#DA1414',
  22. info: '#2E5AAC',
  23. // 中性色
  24. // Neutral Color
  25. black: '#000000',
  26. white: '#fff',
  27. gray1: '#23262B',
  28. gray2: '#2A2B2F',
  29. gray3: '#303239',
  30. gray4: '#373940',
  31. gray5: '#414249',
  32. gray6: '#747B84',
  33. gray7: '#DADEE3',
  34. gray8: '#EBEEF2',
  35. gray9: '#F4F6F9',
  36. gray10: '#FAFAFB',
  37. transparent: 'transparent',
  38. },
  39. extend: {
  40. keyframes: {
  41. wiggle: {
  42. '0%, 100%': { transform: 'rotate(-3deg)' },
  43. '50%': { transform: 'rotate(3deg)' },
  44. },
  45. path: {
  46. '0%': { 'stroke-dashoffset': 400, fill: 'transparent' },
  47. '30%': { 'stroke-dashoffset': 0, fill: 'transparent' },
  48. '32%': { 'stroke-dashoffset': 0, fill: 'currentColor' },
  49. '33%': { opacity: 0 },
  50. '35%': { opacity: 1 },
  51. '37%': { opacity: 0 },
  52. '39%': { opacity: 1 },
  53. '40%': { 'stroke-dashoffset': 0, fill: 'currentColor' },
  54. '99%': { 'stroke-dashoffset': 0, fill: 'currentColor' },
  55. '100%': { 'stroke-dashoffset': 400, fill: 'transparent' },
  56. },
  57. },
  58. animation: {
  59. wiggle: 'wiggle 1s ease-in-out infinite',
  60. path: 'path 3s linear infinite',
  61. },
  62. },
  63. },
  64. darkMode: 'class',
  65. plugins: [],
  66. };