Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

feat(web): validate if primary color and shade are available in mantine #737

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RrybaN
Copy link
Contributor

@RrybaN RrybaN commented Mar 19, 2025

If you misspell or enter an invalid mantine theme color, the UI will not render. Added validation to prevent this.

@LukeWasTakenn
Copy link
Member

Are custom colors also loaded into the default theme?

@RrybaN
Copy link
Contributor Author

RrybaN commented Mar 28, 2025

AFAIK, custom colors are not automatically added to DEFAULT_THEME. I think you need to define them in a custom theme and provide it to MantineProvider for them to be recognized. Correct me if I'm wrong.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants