react-code-dataset / next.js /test /development /acceptance-app /fixtures /app-hmr-changes /tailwind.config.js
| const plugin = require('tailwindcss/plugin') | |
| /** @type {import('tailwindcss').Config} */ | |
| module.exports = { | |
| darkMode: 'class', | |
| content: ['./app/**/*.{js,ts,jsx,tsx}'], | |
| theme: { | |
| extend: {}, | |
| }, | |
| plugins: [ | |
| plugin(function ({ addVariant }) { | |
| // this class is applied to `html` by `app/theme-efect.ts`, similar | |
| // to how `dark:` gets enabled | |
| addVariant('theme-system', '.theme-system &') | |
| }), | |
| ], | |
| future: { | |
| hoverOnlyWhenSupported: true, | |
| }, | |
| } | |