Last active
July 23, 2019 17:40
-
-
Save vzaidman/683b56cce4056a4f850120878281036e to your computer and use it in GitHub Desktop.
CSS Theme Organization Best Practices from the article https://medium.com/@vzaidman/css-theme-organization-best-practices-a8e375d92c7c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html.colors { | |
... | |
--red: #d47c7c; | |
--purple: #9e42f5; | |
} | |
html.entities { | |
/* ... 50 more enteties */ | |
--action-button-background-color: var(--red); | |
--action-button-shadow-color: var(--red); | |
--radio-box-background-color: var(--red); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.action-button { | |
... | |
background-color: var(--action-button-background-color); | |
box-shadow: 10px 10px 5px 0px var(--action-button-shadow-color); | |
} | |
.radio-box{ | |
... | |
background-color: var(--radio-box-background-color); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment