You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your bug report is not 100% accurate, the CSS variables like bg-(--ui-orange) work as expected so you should have no issue when upgrading from 3.0.2 to 3.1.0.
However, there was an issue with the new utilities when colors are defined with the same name as Tailwind CSS default colors.
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
v3.1.0
Reproduction
https://codesandbox.io/p/devbox/vigorous-cerf-pnrc3g
// app.config.ts
export default defineAppConfig({
ui: {
colors: {
primary: 'emerald',
neutral: 'zinc',
red: 'red',
orange: 'orange',
yellow: 'yellow',
green: 'green',
blue: 'blue',
purple: 'purple',
gray: 'gray',
},
}
}
// nuxt.config.ts
ui: {
theme: {
colors: [ 'primary', 'secondary', 'success', 'info', 'warning', 'error', 'red', 'orange', 'yellow', 'green', 'blue', 'purple', 'gray' ],
},
},
Description
Yesterday everything was working fine, no code was changed, after the upgrade it broke.
For example:
Or
Both not work
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: