Closed alex-jitbit closed 2 months ago
@alex-jitbit I'm not able to reproduce this issue - could you please send your tailwind.config.js
file and the affected HTML file content and type (i.e. .razor
, .html
, etc.)? Thanks.
Sure
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./Views/**/*.cshtml"],
theme: {
extend: {
fontFamily: {
sans: ['InterVariable, sans-serif'],
},
colors: {
'new-color': 'rgb(var(--new-color) / <alpha-value>)',
'new-color-dark': 'rgb(var(--new-color-dark) / <alpha-value>)',
'tech-color': 'rgb(var(--tech-color) / <alpha-value>)',
'tech-color-dark': 'rgb(var(--tech-color-dark) / <alpha-value>)',
'cust-color': 'rgb(var(--cust-color) / <alpha-value>)',
'cust-color-dark': 'rgb(var(--cust-color-dark) / <alpha-value>)',
'fortech-color': 'rgb(var(--fortech-color) / <alpha-value>)',
'fortech-color-dark': 'rgb(var(--fortech-color-dark) / <alpha-value>)',
}
},
borderColor: ({ theme }) => ({
...theme('colors'),
DEFAULT: theme('colors.zinc.200', 'currentColor'),
}),
},
darkMode: 'selector',
plugins: [],
safelist: ["rotate-90"] //do not purge this class from CSS (used in js)
}
Any html/cshtml file is affected.
I just realized that the extension breaks becasue I added some custom borderColors.
This:
borderColor: ({ theme }) => ({
...theme('colors'),
DEFAULT: theme('colors.zinc.200', 'currentColor'),
}),
Thanks! I don’t think the extension is handling DEFAULT
correctly at the moment, so I’ll try to get a fix for that soon.
Sorry about the delayed fix; this should be fixed in 1.4.7. Thanks!
Thanks!
Sorry about the delay; thanks for reporting! I'll take a look into this and hopefully get a bug fix soon.