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

Remove hardcoded colors from frontend #810

Open
Isti01 opened this issue Oct 2, 2024 · 1 comment
Open

Remove hardcoded colors from frontend #810

Isti01 opened this issue Oct 2, 2024 · 1 comment

Comments

@Isti01
Copy link
Collaborator

Isti01 commented Oct 2, 2024

There are a lot of instances where gray.500 or gray.600 are used instead of the colors set in the style component

There should be a border color setting on the admin panel

@albi005
Copy link
Member

albi005 commented Oct 4, 2024

How about adopting Google's material color system? https://m3.material.io/styles/color/system/overview

This would replace every color reference with a CSS variable, for example var(--md-sys-color-primary). These are the roles that are defined by default:

We could either set every color on the backend or let the clients generate them from a seed color and a style.

npm package: https://www.npmjs.com/package/@material/material-color-utilities

We could also have a page where admins can try out different seed colors like here or here

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

2 participants