This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Button): Icon support and default style updates (#51)
- Loading branch information
1 parent
9d18867
commit dc7809d
Showing
19 changed files
with
522 additions
and
262 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
import React, { Component } from 'react'; | ||
import React from 'react'; | ||
import { createGlobalStyle } from 'styled-components'; | ||
import { ThemeProvider } from '../src'; | ||
|
||
const GlobalStyle = createGlobalStyle ` | ||
* { | ||
box-sizing: border-box; | ||
} | ||
` | ||
const GlobalStyle = createGlobalStyle` | ||
@font-face { | ||
font-family: "Tiempos"; | ||
font-weight: 500; | ||
font-style: normal; | ||
src: url(//cdn.heydoctor.com/fonts/TiemposHeadlineWeb-Semibold.woff2) format('woff2'); | ||
} | ||
class App extends Component { | ||
render() { | ||
return ( | ||
<> | ||
<GlobalStyle /> | ||
<ThemeProvider>{this.props.children}</ThemeProvider> | ||
</> | ||
); | ||
} | ||
} | ||
* { | ||
font-family: "Avenir", sans-serif !important; | ||
} | ||
export default App; | ||
h1 { | ||
font-family: "Tiempos", serif !important; | ||
font-size: 38px; | ||
} | ||
`; | ||
|
||
export default ({ children }) => ( | ||
<ThemeProvider> | ||
<> | ||
<GlobalStyle /> | ||
{children} | ||
</> | ||
</ThemeProvider> | ||
); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.