Base Category Keys
base
The keys in the base category provide generic theme settings and are often referenced throughout the theme file as variables.
You can think of this category as roughly analogous to the body selector in CSS.
We recommended that you define this category after the page category and before all other categories.
While it’s common to define additional keys in this category (e.g., base-border-radius) to keep your theme DRY, we recommend using custom variables instead.
|
| Key | Value Type | Example |
|---|---|---|
border-color |
Color |
|
border-width |
Measurement |
|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Number |
|
font-size-min |
Number |
|
font-style |
Font style |
|
hyphens |
Boolean | Language code |
|
Number |
|
|
Number |
|
|
text-align |
Text alignment |
|
text-decoration |
Text decoration |
|
text-decoration-color |
Color |
|
text-decoration-width |
Measurement |
|
Implicitly set to |
Can’t be set on base. |
line-height and line-height-length
The line-height-length key is a utility property that’s internal to the theme.
It’s used as an intermediate property for computing the base-line-height from the base font size and the desired line height size.
For instance, if you set base-line-height-length, you can use $base-line-height-length / $base-font-size to set the value of base-line-height.
You don’t have to go about it this way in your own theme.