You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
692 B

const config = require('./config.json');
const themes = require('./themes.json');
// Resolve colors from a named theme in themes.json when specified,
// otherwise fall back to inline colors in config.json
const colors =
(config.theme && themes[config.theme]) ? themes[config.theme] : config.colors;
module.exports = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class', // dark enforced via <Html className="dark"> in _document
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
...colors,
},
extend: {},
},
variants: {
extend: {},
},
plugins: [],
};