Skip to content

it there way to make utilities bg-* with custom theme property like --surface-* without generating --bg-* classes with --color-* theme.(v4) #16402

Answered by wongjn
YoonDongGeun asked this question in Help
Discussion options

You must be logged in to vote

You can do:

@theme {
  …
  /* token-2nd Surface-color */
  --background-color-primary: var(--color-primary-main);
  --background-color-primary-light: var(--color-primary-light);

And then:

<div class="bg-primary-light">

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@YoonDongGeun
Comment options

Answer selected by YoonDongGeun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants