Atomic Styles. Semantic Markup.

A case for variables and mixins.

<div class="inline grid flex">Hello world</div>
<div class="justify-center">Hello world</div>
background-color: var(--color-blue-500);
font-weight: var(--font-bold);
padding-top: var(--spacing-6);
padding-bottom: var(--spacing-6);
// SCSS
@mixin font-regular {
font-family: var(--font-family-regular);
font-size: var(--font-2);
font-weight: var(--font-regular);
color: var(--color-primary);
}
p {
@include font-regular
}

--

--

🗽🇨🇦 | UI Engineer at New Visions for Public Schools | Engineering grad from uWaterloo

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Thompson

🗽🇨🇦 | UI Engineer at New Visions for Public Schools | Engineering grad from uWaterloo