tailwind.config.cjs
Rama main · réplica de lectura del repositorio original.
const colors = require('tailwindcss/colors');
const { createThemes } = require('tw-colors');
module.exports = {
mode: 'jit',
content: ['./index.html', './src/**/*.{js,jsx,ts,tsx,vue,html}'],
darkMode: 'class',
theme: {
extend: {
colors: {
neutral: {
750: '#333333',
},
},
container: {
center: true,
padding: {
DEFAULT: '1rem',
sm: '2rem',
},
},
},
},
variants: {
extend: {},
},
plugins: [
function ({ addVariant }) {
addVariant('mobile', '.runtime-mobile &');
addVariant('tablet', '.runtime-tablet &');
},
require('@tailwindcss/typography'),
require('@eioluseyi/tailwind-fade')({
prefix: 'eio-',
}),
createThemes({
light: {
primary: colors.amber['400'],
secondary: colors.amber['300'],
},
dark: {
primary: colors.amber['400'],
secondary: colors.amber['300'],
},
purple: {
primary: colors.purple['400'],
secondary: colors.purple['300'],
},
pink: {
primary: colors.pink['400'],
secondary: colors.pink['300'],
},
red: {
primary: colors.red['500'],
secondary: colors.red['400'],
},
blue: {
primary: colors.blue['400'],
secondary: colors.blue['300'],
},
neutral: {
primary: colors.neutral['400'],
secondary: colors.neutral['300'],
},
green: {
primary: colors.emerald['500'],
secondary: colors.emerald['400'],
},
}),
],
};