Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce small color palette module in frontend #8150

Open
MichaelBuessemeyer opened this issue Oct 25, 2024 · 0 comments
Open

Introduce small color palette module in frontend #8150

MichaelBuessemeyer opened this issue Oct 25, 2024 · 0 comments

Comments

@MichaelBuessemeyer
Copy link
Contributor

Detailed Description

In some parts of the frontend code we use the CSS color variables (and maybe also other CSS variables defined by antd). The constants could become its own module in the frontend so that one can use ColorPalette.PRIMARY_COLOR and so in the code without looking up the exact string of the variable "var(--ant-color-primary)".

Context

I just came up with this little refactoring idea while seeing @dieknolle3333 changes 9d829da

@MichaelBuessemeyer MichaelBuessemeyer changed the title Frontend: Introduce small color palette module Introduce small color palette module in frontend Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant