Last active
September 29, 2019 20:31
-
-
Save tgmarinho/0022665c69c2b1089f6dc1c98fe0df10 to your computer and use it in GitHub Desktop.
polished for manipulating colors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled from 'styled-components'; | |
import { darken } from 'polished'; | |
button { | |
background: #7169c1; | |
color: #fff; | |
border: 0; | |
border-radius: 4px; | |
overflow: hidden; | |
margin-top: auto; | |
display: flex; | |
align-items: center; | |
&:hover { | |
background: ${darken(0.03, '#7169c1')}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment