Skip to content

Extend colors not work after update to v3.1 #3977

Closed
@icarusion

Description

@icarusion

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:

<div class="bg-(--ui-orange)">

Or

<div class="bg-orange">

Both not work

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions