tailwind.config.ts 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import type { Config } from 'tailwindcss';
  2. const { nextui } = require('@nextui-org/react');
  3. const config = {
  4. darkMode: ['class'],
  5. content: [
  6. '**/*.{ts,tsx}',
  7. './pages/**/*.{ts,tsx}',
  8. './components/**/*.{ts,tsx}',
  9. './app/**/*.{ts,tsx}',
  10. './src/**/*.{ts,tsx}',
  11. './src/pages/**/*.{js,ts,jsx,tsx,mdx}',
  12. './src/components/**/*.{js,ts,jsx,tsx,mdx}',
  13. './src/app/**/*.{js,ts,jsx,tsx,mdx}',
  14. './node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}',
  15. ],
  16. prefix: '',
  17. theme: {
  18. container: {
  19. center: true,
  20. padding: '2rem',
  21. screens: {
  22. '2xl': '1400px',
  23. },
  24. },
  25. extend: {
  26. colors: {
  27. border: 'hsl(var(--border))',
  28. input: 'hsl(var(--input))',
  29. ring: 'hsl(var(--ring))',
  30. background: 'hsl(var(--background))',
  31. foreground: 'hsl(var(--foreground))',
  32. primary: {
  33. DEFAULT: 'hsl(var(--primary))',
  34. foreground: 'hsl(var(--primary-foreground))',
  35. },
  36. secondary: {
  37. DEFAULT: 'hsl(var(--secondary))',
  38. foreground: 'hsl(var(--secondary-foreground))',
  39. },
  40. destructive: {
  41. DEFAULT: 'hsl(var(--destructive))',
  42. foreground: 'hsl(var(--destructive-foreground))',
  43. },
  44. muted: {
  45. DEFAULT: 'hsl(var(--muted))',
  46. foreground: 'hsl(var(--muted-foreground))',
  47. },
  48. accent: {
  49. DEFAULT: 'hsl(var(--accent))',
  50. foreground: 'hsl(var(--accent-foreground))',
  51. },
  52. popover: {
  53. DEFAULT: 'hsl(var(--popover))',
  54. foreground: 'hsl(var(--popover-foreground))',
  55. },
  56. card: {
  57. DEFAULT: 'hsl(var(--card))',
  58. foreground: 'hsl(var(--card-foreground))',
  59. },
  60. },
  61. borderRadius: {
  62. lg: 'var(--radius)',
  63. md: 'calc(var(--radius) - 2px)',
  64. sm: 'calc(var(--radius) - 4px)',
  65. },
  66. backgroundImage: {
  67. 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
  68. 'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
  69. },
  70. },
  71. },
  72. plugins: [require('@tailwindcss/typography'),nextui()],
  73. } satisfies Config;
  74. export default config;