Sass and clamp

font-size: clamp(1rem, 1.333vw, 1.5rem);
font-size: clamp(1rem, 0.5rem + 0.666vw, 1.5rem);
font-size: clamp(1rem, 1rem + 0.333vw, 1.5rem);
font-size: min(1.rem + 0.333vw, 1.5rem);
:root {
font-size: clamp(100%, 50% + 0.666vw, 150%);
}

--

--

--

A web developer and author living and working in Brighton, England. Everything I post on Medium is a copy — the originals are on my own website, adactio.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How I “found” the database of the Donald Daters App

PHP ile Html Tablo’yu Excel Çıktı Alma

Docker for Data Science

AWS Case Study : Dish TV

How Merge Content in Apache NiFi works

Write Bangla Easily on Debian 9 Xfce

What makes AWS cloud computing so valuable?

Revit + Dynamo + Python: Clash Detection BIM Automation for interference correction between MEP…

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
Jeremy Keith

Jeremy Keith

A web developer and author living and working in Brighton, England. Everything I post on Medium is a copy — the originals are on my own website, adactio.com

More from Medium

Evaluating design system adoption using custom CSS

An abstract representation of elements on a page. Rectangles, highlighted purple, green, and some with red borders.

How Storybook helps designers & developers stay in sync

All You Should Know About Design Tokens

Media queries with display-mode