Admonition Category Keys
admonition
The keys in the admonition category control the arrangement and style of admonition blocks and the icon used for each admonition type.
| Key | Value Type | Example |
|---|---|---|
background-color |
Color |
|
border-color |
Color |
|
border-radius |
Measurement |
|
border-style |
Border style |
|
border-width |
Measurement | Measurement[] |
|
column-rule-color |
Color |
|
column-rule-style |
|
|
column-rule-width |
Measurement |
|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Font size |
|
font-style |
Font style |
|
padding |
Measurement | Measurement[] |
|
text-transform |
Text transform |
|
admonition-label
The keys in the admonition-label category control the arrangement and style of the text-based labels on admonition blocks.
| Key | Value Type | Example |
|---|---|---|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Font size |
|
font-style |
Font style |
|
min-width |
Measurement |
|
Measurement | Measurement[top(n/a),right,bottom(n/a),left] |
|
|
text-align |
Text alignment |
|
text-transform |
Text transform |
|
vertical-align |
|
|
admonition-label-<name>
The keys in the admonition-label-<name> category control the arrangement and style of the text-based label that matches a built-in admonition name.
<name> can be note, tip, warning, important, or caution.
| Key | Value Type | Example |
|---|---|---|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Font size |
|
font-style |
Font style |
|
text-transform |
Text transform |
|
admonition-icon-<name>
The keys in the admonition-icon-<name> category control the arrangement and style of the specified icon associated with a built-in admonition name.
<name> can be note, tip, warning, important, or caution.
All icon types must be grouped under a single icons category.
In other words, do not declare the icons category multiple times.
The keys in the admonition-icon category can’t be flattened (e.g., tip-name: far-lightbulb is not valid syntax).
| Key | Value Type | Example |
|---|---|---|
<icon set>-<icon name> |
|
|
size |
Number |
|
stroke-color |
Color |
|
Identifying an icon
The name key assigned to a built-in admonition only accepts a value in the format of <icon set>-<icon name>`.
A value is always required when assigning an icon to a built-in admonition.
See the .yml files in the prawn-icon repository for a list of valid icon names.
The prefix (e.g., fas-) of the value determines which font set to use.
If the prefix is not specified, fa- is assumed.