Skip to content

feat: update layers.css to suggest correct placement for UnoCSS icons#8

Open
J-Sek wants to merge 1 commit intomainfrom
feat/support-uno-icons
Open

feat: update layers.css to suggest correct placement for UnoCSS icons#8
J-Sek wants to merge 1 commit intomainfrom
feat/support-uno-icons

Conversation

@J-Sek
Copy link
Contributor

@J-Sek J-Sek commented Mar 7, 2026

After adding UnoCSS icon preset, the uno-icons layer it landed in the wrong place, so I was not able to apply color to the icon.

@J-Sek J-Sek self-assigned this Mar 7, 2026
@J-Sek J-Sek marked this pull request as ready for review March 7, 2026 15:51
@J-Sek
Copy link
Contributor Author

J-Sek commented Mar 13, 2026

Leaving a workaround for the poor souls that find this PR looking for a hint when they cannot influence CSS layers for some reason:

initUnocssRuntime({
  defaults: {
    presets: [
      presetIcons({
        processor(props) {
          delete props.color // 👈 workaround for <icon color="..." /> not working
        },
      }),
    ],
  },
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant