Skip to content

How to change color in custom theme [vuetify 3.0.0-beta.15][vue 3.2.37] #16045

Answered by KaelWD
AniaKru95 asked this question in Q&A
Discussion options

You must be logged in to vote

Theme colors don't support transparency, it's being parsed as #C78EFF

@nekosaur #15667 removed the warning for this, but colorToRGB only uses the 3 smallest bytes. Just checking for > 0xffffff wouldn't work either because #00123456 and #123456 are both 0x123456 even though the first is #001234 with transparency. This also isn't symmetric: colorToHex('#00123456') === '#123456'

Replies: 1 comment 1 reply

Comment options

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

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