#todayilearned

by @jm3 · aka John Manoogian3

Frequent, bite-size mini-milestone updates as I fast-forward merge* my front-end web development skills up to 2019 levels. Learn more

Create + reference a native CSS variable

Posted at — Jun 8, 2019
:root {
  --scale: scale(1.1);
  --primary-color: #00FF00;
}
.btn { transform: var(--scale); }
.foo { color: var(--primary-color); }
/* etc */