Skip to content

How to use single color array in theme? #6338

Answered by atareversei
engin-can asked this question in Q&A
Discussion options

You must be logged in to vote

You're welcome, if the answer helped you, please mark it as answered so it gets closed.
For the second part, it depends on the usage. For each color, Mantine is going to create CSS custom properties known as CSS variables for each shade.

/* for cayola */
--mantine-color-cayola-0: #something;
--mantine-color-cayola-1: #othercolor;
/* so on and so forth... */

For the primary color it is going to create some other custom properties like:

--mantine-primary-color-filled: var(--mantine-color-cayola-filled); /* because you have provided cayola as the primary color */
--mantine-primary-color-filled-hover: var(--mantine-color-cayola-filled-hover);
/* and so on... */

For the fun part, it creates tw…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@engin-can
Comment options

@atareversei
Comment options

@engin-can
Comment options

@atareversei
Comment options

Answer selected by engin-can
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants