odaneau-astro commented on issue #53443:
URL: https://github.com/apache/airflow/issues/53443#issuecomment-3083974098

   I explored making these environment variables available again in AF 3, but I 
have not opened a PR for it yet.
   Due to the new Chakra UI library, text colors, button hover/click effects, 
and other contextual colors are assigned using a scale from 50 to 950. See 
https://chakra-ui.com/docs/theming/colors
   If we want to allow custom user input, we need a complete palette. It would 
be much simpler to ask the user to provide a single color, and then we compute 
the rest.
   To generate it dynamically, we would have to normalize the input color 
(lighten/darken it) and generate the scale.
   Google already does something similar with Material UI. See here: 
https://m3.material.io/styles/color/dynamic/choosing-a-source
   See this JS playground for how it could work: https://playcode.io/2464307 
(edited)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to