Skip to content

--un-text-opacity is not defined by default -> some css boken in mode: 'shadow-dom' #4941

@dinwwwh

Description

@dinwwwh

UnoCSS version

^66.5.2

Describe the bug

Image

Because of this, the color-text-700 class has no effect until I manually define the variable. I noticed that this only happens when using mode: 'shadow-dom'.

:host {
  --un-text-opacity: 100%;
}

My config:

export default defineConfig({
  presets: [
    presetWind4({
      preflights: {
        theme: {
          process: createRemToPxProcessor(),
        },
      },
    }),
  ],
})

Reproduction

https://github.com/unnoq/unocss-color-mix-issue

System Info

No response

Validations

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpreset-wind4Align with Tailwind4 preset

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions