Skip to content

Colors and gradients #451

Discussion options

You must be logged in to vote

Hi @cristianvogel - welcome & nice to see you here!

I'm sorry about this issue you're having, there're a few things going on here, but mainly it's because I somehow forgot to update these code snippets in the readme (and that seemingly for at least a few years). I've just gone through all the readme examples and fixed several of them. Also pushing a new release in a few minutes (incl. a minor bug fix I uncovered just too now...)

To your actual example:

  1. The srgba is a typo (or rather ancient naming) and should be srgb instead (without the a). For your use case (WebGL) that transform is also not really required...
  2. The .map(css) part is also needing a minor update to .map((x) => css(x)). Th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@cristianvogel
Comment options

@postspectacular
Comment options

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