Last active
March 23, 2018 19:51
-
-
Save d-asensio/3bdadea2be4053cb7834d4acf742081e to your computer and use it in GitHub Desktop.
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 { BaseTheme, Theme, ThemeManager } from 'styled-responsive-theming' | |
import Button from './Button' | |
const breakpoints = [ | |
480, | |
600, | |
840, | |
960, | |
1280, | |
1440, | |
1600, | |
1920 | |
] | |
const App = () => ( | |
<BaseTheme breakpoints={breakpoints}> | |
<Button>Default Button</Button> | |
<Theme overrideWith={{ | |
Button: { | |
backgroundColor: ['palevioletred', 'papayawhip',,, 'palevioletred'] | |
} | |
}}> | |
<Button>Reasponsive Background Button</Button> | |
</Theme> | |
<Theme overrideWith={{ | |
Button: ThemeManager.getTheme('Button.extraBordered') | |
}}> | |
<Button>Extra Bordered Button</Button> | |
</ThemeOverride> | |
</BaseTheme> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment