Skip to content

Instantly share code, notes, and snippets.

@tgmarinho tgmarinho/polished.js
Last active Sep 29, 2019

Embed
What would you like to do?
polished for manipulating colors
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
You can’t perform that action at this time.