Add color reference to css that alters with a new theme….
-
Hey
I am trying to create color references in my code snippets. Something like:
$color-base: #f9f9f9; /* TT4 - Cream */
$color-base-2: #ffffff; /* TT4 - White */
$color-contrast: #111111; /* TT4 - Almost Black */
$color-contrast-2: #636363; /* TT4 - Dark Grey */
$color-contrast-3: #A4A4A4; /* TT4 - Light Grey */
$color-accent: #EBECF0; /* TT4 - Light Sand */
$color-accent-2: #c2a990; /* TT4 - Sand */
$color-info: #b1c5a4; /* TT4 - Green */
$color-note: #d8613c; /* TT4 - Orange */
$color-black: #000000;
$color-white: #ffffff;Here I have map’ed them to match TT4 default style colors. The idea is that plugin corrections of color in custom css could reference to a single code line, hence, a later change of theme, could easily adopt the new colors this way.
I just realised it is scss code so it will not work in my css…. correct?
- So how can I create an SCSS snippet within a CSS file and reference the above anchors within CSS code?
- Or how can a I create such a reference in CSS to be used in CSS.
- Or how can I create an SCSS file and then reference to that from a CSS code
Something like this is the plan:
body {
background:$color-info;
}But not working css
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.