Skip to content

@utility - Functional Utility: How can I use theme colors as the argument value #15892

Answered by wongjn
isaacgarc-dev asked this question in Help
Discussion options

You must be logged in to vote

You could consider using @custom-variant instead:

@custom-variant scroll-thumb (&::-webkit-scrollbar-thumb);

Which then allows you to use the existing colors that exist:

<div class="scroll-thumb:bg-sky-500/50">

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by isaacgarc-dev
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