Zinkue commented on issue #53443:
URL: https://github.com/apache/airflow/issues/53443#issuecomment-3178944327

   > I explored making this environment variable 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
   
   @odaneau-astro Sorry to ask (I have little experience with web development) 
   I have seen that Chakra UI library has some predefined colors.
   At least I would expected to "colorize" the UI depending the environment 
(Default/Green for Dev, Yellow/Orange for Tst and Red for Prd) and Chakra's 
predefined colors fulfill this need.
   I mean, is not solving current issue 100% but is better than no 
personalization 😅
   How difficult do you think would be to enable navbar personalization based 
on Chakra's predefined colors? Thanks!


-- 
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