J
J
Javarast Skriptovich2019-03-24 16:53:12
css
Javarast Skriptovich, 2019-03-24 16:53:12

How to compose a color palette in CSS?

I want to create a palette in variables that I will use when designing the site, but all I know is: there are primary, secondary and accent colors .. but, as I see it, shades are needed for them, then +6 colors are obtained:

:root{
   --c-ma:/*осн*/;
   --c-mi:/*втор*/;
   --c-ac:/*акц*/;
   --cl-ma:/*св осн*/;
   --cl-mi:/*св втор*/;
   --cl-ac:/*св акц*/;
   --cd-ma:/*тем осн*/;
   --cd-mi:/*тем втор*/;
   --cd-ac:/*тем акц*/;
}

Sobsna, questions: Do I think correctly? Is not it too much? What else to add?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2019-03-24
@mrusklon

one question: why ?
if there is a layout / design, take the colors from it, if not, do whatever you like so that it doesn’t rip out
there is no such rule that you need only 3 colors, it came from designers or from lazy typesetters, that’s not the point, it’s important that this is not a verdict

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question