Created
May 5, 2018 12:22
-
-
Save DeMoorJasper/b99a8e19b37990221a218bddbe826398 to your computer and use it in GitHub Desktop.
Stylish extending
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 { stylish } from 'tiny-stylish-components'; | |
const Button = stylish.button` | |
background: #ffffff; | |
color: #a2a2a2; | |
border: 1px solid #a2a2a2; | |
border-radius: 5px; | |
width: 100px; | |
padding: 5px 10px; | |
`; | |
const ExtendedButton = Button.extend` | |
color: pink; | |
`; | |
const SuperExtendedButton = ExtendedButton.extend` | |
border-radius: 50px; | |
`; | |
const MegaExtendedButton = SuperExtendedButton.extend` | |
display: block; | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment