button.button.button--primary Primary
button.button.button--secondary Secondary
View Compiled
body
min-height 100vh
display flex
align-items center
justify-content center
.button
cursor pointer
padding 1rem 1.25rem
color white
font-weight bold
font-size 1.25rem
margin 1rem
transition background .1s ease
background 'hsl(%s, 100%, 50%)' % (var(--hue))
outline-color 'hsl(%s, 100%, 80%)' % (var(--hue))
&:hover
background 'hsl(%s, 100%, 40%)' % (var(--hue))
&:active
background 'hsl(%s, 100%, 30%)' % (var(--hue))
&--primary
--hue 233
&--secondary
--hue 200
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.