Skip to main content
General
Troubleshooting

Customization

Learn about customization troubles and their solutions.

Tailwind configuration isn't reflected in my new package

Add the package to the include array in tooling/tailwind-config/index.js:

tooling/tailwind-config/index.js
const config = {
  darkMode: ['class'],
  content: [
    '../../apps/dashboard/**/*.{ts,tsx}',
    '../../apps/marketing/**/*.{ts,tsx}',
    // [\!code highlight:1]
    '../../packages/my-package/**/*.{ts,tsx}',
    '../../packages/ui/**/*.{ts,tsx}',
    '!**/.next',
    '!**/.cache',
    '!**/.content-collections',
    '!**/.turbo',
    '!**/node_modules',
    '!**/build',
    '!**/dist'
  ]
  // ...
};