We use the names to communicate about Tokens
, Elements
, Patterns
and Templates
. Hence, they must be short, meaningful and pronounceable. Each name must be:
* annotation-xml * color-profile * font-face * font-face-src * font-face-uri * font-face-format * font-face-name * missing-glyph
There are a few rules around prefixing things, that you’ll want to follow to keep the system consistent:
color-
or space-
. If you have subcategories, include them in the naming as well and separate with hyphen, Example: color-primary-
or color-secondary-
.Vue Design System uses the following convention:
medium (m)
.medium
it should be named either small (s)
, x-small (xs)
, xx-small (xxs)
and so on.medium
we use large (l)
, x-large (xl)
, xx-large (xxl)
and so on. A concrete example of this looks like:size_xxl:
value: "64px"
size_xl:
value: "48px"
size_l:
value: "24px"
size_m:
value: "16px"
size_s:
value: "13px"
size_xs:
value: "11px"
size_xxs:
value: "8px"
Vue Design System uses the following convention:
color-{name}
.color-{name}-dark
, color-{name}-darker
or color-{name}-darkest
.color-{name}-light
, color-{name}-lighter
, color-{name}-lightest
and so on. A concrete example of this looks like:color_red_darker:
value: "hsla(7, 83%, 33%, 1)"
color_red_dark:
value: "hsla(7, 83%, 43%, 1)"
color_red:
value: "hsla(7, 83%, 53%, 1)"
color_red_light:
value: "hsla(7, 83%, 63%, 1)"
color_red_lighter:
value: "hsla(7, 83%, 73%, 1)"
Read also Terminology section which is closely tied to “Naming of Things”.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4