tailwind.config.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /** @type {import('tailwindcss').Config} */
  2. export default {
  3. content: [
  4. "./index.html",
  5. "./src/**/*.{js,ts,jsx,tsx}",
  6. ],
  7. theme: {
  8. extend: {
  9. colors: {
  10. // 科技感主题颜色
  11. 'tech-primary': '#0f172a',
  12. 'tech-surface': '#1e293b',
  13. 'tech-card': 'rgba(30, 41, 59, 0.8)',
  14. 'tech-accent': '#8b5cf6',
  15. 'tech-cyan': '#06b6d4',
  16. 'tech-green': '#10b981',
  17. 'tech-orange': '#f59e0b',
  18. 'tech-red': '#ef4444',
  19. 'tech-purple': '#a855f7',
  20. 'tech-blue': '#3b82f6',
  21. },
  22. backgroundImage: {
  23. 'tech-gradient': 'linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%)',
  24. 'card-glow': 'linear-gradient(145deg, rgba(30, 27, 75, 0.8), rgba(15, 23, 42, 0.6))',
  25. 'grid-pattern': "url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(139 92 246 / 0.1)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e\")",
  26. },
  27. boxShadow: {
  28. 'tech-glow': '0 0 20px rgba(139, 92, 246, 0.3)',
  29. 'card-shadow': '0 8px 32px rgba(0, 0, 0, 0.3)',
  30. 'neon-purple': '0 0 10px rgba(139, 92, 246, 0.5)',
  31. 'neon-cyan': '0 0 10px rgba(6, 182, 212, 0.5)',
  32. },
  33. animation: {
  34. 'pulse-glow': 'pulse-glow 2s ease-in-out infinite alternate',
  35. 'float': 'float 6s ease-in-out infinite',
  36. 'spin-slow': 'spin 3s linear infinite',
  37. 'glow': 'glow 2s ease-in-out infinite',
  38. },
  39. backdropBlur: {
  40. xs: '2px',
  41. },
  42. keyframes: {
  43. 'pulse-glow': {
  44. 'from': { boxShadow: '0 0 20px rgba(139, 92, 246, 0.3)' },
  45. 'to': { boxShadow: '0 0 40px rgba(139, 92, 246, 0.6)' }
  46. },
  47. 'float': {
  48. '0%, 100%': { transform: 'translateY(0px)' },
  49. '50%': { transform: 'translateY(-20px)' }
  50. },
  51. 'glow': {
  52. '0%, 100%': { opacity: '0.8' },
  53. '50%': { opacity: '1' }
  54. }
  55. }
  56. },
  57. },
  58. plugins: [],
  59. }