453adc6864
Hello, this PR updates the with-tailwindcss-emotion example to be compatible with tailwindcss 2.0 Here is a summary of all the changes: - update `.babelrc` config - update `README.md` - delete `@emotion/css component` (makes the example simpler) - update `@emotion/react` component to use xwind - update `@emotion/styled` component to use xwind - Add global styles to `_app.js` - remove `_document.js` page - remove `base.css` global style files (global styles are added in _app.js) - update `tailwind.config.js` - update `package.json` dependencies + remove unnecessary `build:base-css` script
16 lines
231 B
JavaScript
16 lines
231 B
JavaScript
const colors = require('tailwindcss/colors')
|
|
|
|
module.exports = {
|
|
darkMode: 'class',
|
|
theme: {
|
|
extend: {
|
|
colors,
|
|
},
|
|
},
|
|
variants: {},
|
|
plugins: [],
|
|
// xwind options
|
|
xwind: {
|
|
mode: 'objectstyles',
|
|
},
|
|
}
|