2022-06-27 19:16:28 +00:00
|
|
|
const plugin = require('tailwindcss/plugin');
|
2022-06-28 07:42:42 +00:00
|
|
|
const defaultTheme = require('tailwindcss/defaultTheme');
|
2022-06-27 19:16:28 +00:00
|
|
|
const colors = require('./app/assets/css/colors.json');
|
|
|
|
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
2022-04-26 05:16:46 +00:00
|
|
|
module.exports = {
|
|
|
|
content: ['./app/**/*.{html,tsx}'],
|
|
|
|
corePlugins: {
|
|
|
|
preflight: false,
|
|
|
|
},
|
|
|
|
theme: {
|
2022-05-30 02:01:05 +00:00
|
|
|
colors: {
|
|
|
|
transparent: 'transparent',
|
|
|
|
current: 'currentColor',
|
2022-06-27 19:16:28 +00:00
|
|
|
inherit: 'inherit',
|
|
|
|
...colors,
|
|
|
|
|
|
|
|
'legacy-grey-3': 'var(--grey-3)',
|
|
|
|
'legacy-blue-2': 'var(--blue-2)',
|
|
|
|
'legacy-blue-9': 'var(--blue-9)',
|
2022-05-30 02:01:05 +00:00
|
|
|
},
|
2022-06-28 07:42:42 +00:00
|
|
|
extend: {
|
|
|
|
fontFamily: {
|
|
|
|
sans: ['Inter', ...defaultTheme.fontFamily.sans],
|
|
|
|
},
|
|
|
|
},
|
2022-04-26 05:16:46 +00:00
|
|
|
},
|
2022-06-27 19:16:28 +00:00
|
|
|
|
|
|
|
plugins: [
|
|
|
|
plugin(({ addVariant }) => {
|
2022-08-10 04:12:20 +00:00
|
|
|
addVariant('be', '&:is([data-edition="BE"] *)');
|
|
|
|
addVariant('th-highcontrast', '&:is([theme="highcontrast"] *)');
|
|
|
|
addVariant('th-dark', '&:is([theme="dark"] *)');
|
2022-06-27 19:16:28 +00:00
|
|
|
}),
|
|
|
|
],
|
2022-04-26 05:16:46 +00:00
|
|
|
};
|