rsnext/examples/with-tailwindcss-emotion/tailwind.config.js
irvile 53eb046790
fix(with-tailwindcss-emotion): 'theme' of undefined (#35588)
Closes [#26337](https://github.com/vercel/next.js/issues/26337).
This PR fixes #26337.

The issue is just the version of xwind basically.
Not compatible with newer versions and jit mode.



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
2022-05-22 04:42:51 +00:00

17 lines
341 B
JavaScript

const colors = require('tailwindcss/colors')
module.exports = {
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
extend: {
colors,
},
},
variants: {},
plugins: [require('tailwindcss-filters')],
// xwind options
xwind: {
mode: 'objectstyles',
},
}