Skip to content

Instantly share code, notes, and snippets.

@octoxan
Created June 12, 2019 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save octoxan/1c0c24a75417f06096356e07d56be3c6 to your computer and use it in GitHub Desktop.
Save octoxan/1c0c24a75417f06096356e07d56be3c6 to your computer and use it in GitHub Desktop.
Stylelint Order
{
"order/properties-order": [
"position",
"top",
"right",
"bottom",
"left",
"z-index",
"float",
"clear",
"display",
"box-sizing",
"overflow",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
{
order: "flexible",
properties: [
"border",
"border-top",
"border-right",
"border-bottom",
"border-left",
"border-width",
"border-style",
"border-color",
"outline"
]
},
{
order: "flexible",
properties: [
"font-size",
"font-weight",
"font-style",
"font-family",
"line-height"
]
},
{
order: "flexible",
properties: [
"text-align",
"text-transform",
"text-decoration",
"text-indent"
]
},
{
order: "flexible",
properties: [
"color",
"background",
"background-color",
"background-image",
"background-size"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment