This is Lee's living portfolio and exploratory playground.
I'm loosely following BEM Methodology.
-
is just a word separator__
is an element indicator--
is a modifier/state indicator_
has not yet been leveraged
Folder/Filename Prefixes
b-
Basic Stylesc-
Common Stylesh-
Helper Stylesjs-
Javascript (redundant, but reinforces the convention)m-
Media Query Style Overridest-
Theme Style Overridesv-
Design Exploration Version
Javascript Conventions
- In Javascript files I prefix everything with
js_[x]_
where[x]
is the first one or two letters of the filename. I do this so that if I reference a variable or function in a different file I know who is responsible for it. - In HMTL files I prefix things that are modified by Javascript with a
js_
.
Other Notes
- I'm using Design Tokenizer (a plugin I created for Figma) to almost directly integrate Figma content into my code base.