Skip to content

Commit

Permalink
Add injectGlobal and createGlobalStyle examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Poissonnier committed Sep 22, 2018
1 parent c0ecdc1 commit ac7a0b3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test.ts
Expand Up @@ -220,3 +220,20 @@ const Input = styled.input.attrs({
margin: ${props => props.margin};
padding: ${props => props.padding};
`;

injectGlobal`
@font-face {
font-family: "Operator Mono";
src: url("../fonts/Operator-Mono.ttf");
}
body {
margin: 0;
}
`;

const GlobalStyles = createGlobalStyle`
html {
color: 'red';
}
`;

0 comments on commit ac7a0b3

Please sign in to comment.