Name things modularly, from a generic to specific. https://webdesign.tutsplus.com/articles/quick-tip-name-your-sass-variables-modularly--webdesign-13364
- Don't use values as names - if the value changes, then the name becomes misleading. ie. red, green, blue.
- Don't use linear values - it can be difficult to add new variables into the range. ie. small, medium, large. (Try not to anyway)
Use any non-linear list of related words
text Text that typically appears in paragraphs.
code Text that is used to display a block of code.
display Text that will be displayed at large sizes, as a headline for example.
headline/heading A display text that is used for headlines text.
light
regular
bold
Heading text - aligns with h1-6
- alpha
- beta
- gamma
- delta
- epsilon
- zeta
Display text - ie headlines
- giga
- mega
- kilo
Small text - smaller than body copy
- milli
- micro
- nano
icon An image that belongs to a set of images. They are visually similar and are cut to align vertically and horizontally.
symbol An unique image that conveys some meaning, for example a logo.
$mobile-small 240 $mobile-large 320 $tablet-small 480 $tablet-large 768 $screen-small 1024 $screen-large 1280
card
alert . These messages need immediate attention. The window/container is usually locked, meaning you can't dismiss the box or continue with what you want to do until you explicitly acknowledge the content, this usually done by clicking a button inside the container. The buttons on this window are usually "OK" or "Cancel". (If you're showing a lot of these it's usually a failure of design because your user's expectations don't match the UI expectations.)
modal/dialog . These are for getting work done. (Example: a button that says "Invite Friends" will open such a container with a list friends you can then invite). These let you do more work without having to show all the information on the main screen. These messages are not locked and you can click anywhere to dismiss the container.
popup . You don't need to deal with these messages right away, yet at some point you will need to take action since these won't go away until explicitly say say you don't want them around anymore.
flash notice/notification . These notifications have a time associated with them. You can choose to deal with them right away, or if you don't do anything, after a certain time they will dismiss themselves.
lightbox/theatre . These are used to enlarge and bring one part of screen to focus. These containers are most commonly used to view images. Usually you are then able to navigate through similar content (the next photo in the gallery) without dismissing and clicking on another thumbnail. These can be locked or not. Depends on if you want people to return the context they were in or to continue on a new context thread.
popover/tooltip/hovercard . These are passive approaches to showing more information. These are used to add simple instructions or explanations or foreshadow what will happen if you click a link. Lightbox/Theatres - These are used to enlarge and bring one part of screen to focus. These containers are most commonly used to view images. Usually you are then able to navigate through similar content (the next photo in the gallery) without dismissing and clicking on another thumbnail. These can be locked or not. Depends on if you want people to return the context they were in or to continue on a new context thread
References