Module

Submodule

Layout

Utilities

Utility example

Example SOLUTION: .u-small

Headings

Following classes are also some sort of utility class, but they also help to prevent breaking the title hierarchy.


<h3 class="heading-1">
I'm a H3 with the styling of a H1
</h3>

Style them always side by side with the tag:

h1, .heading-1 {
// YOUR STYLING GOES HERE
}

Modifier

States

Sidenote:
CSS Property ordering (borrowed from idiomatic CSS)

.m-module {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 5rem;
	height: 2.5rem;
	margin: 1rem;
	padding: 1rem;
	font-family: system-ui;
	font-size: 2rem;
	line-height: 1.3;
	color: salmon;
	transform: scale(2);
	opacity: 0;
	transition: transform .25s ease-in-out, opacity .25s ease-in-out;
}