Skip to content

Commit

Permalink
Slider typing (#23)
Browse files Browse the repository at this point in the history
* fix(slider): add typings of rheostat as a dependency

* refactor(styles): apply styling to whole website
  • Loading branch information
ritz078 authored Jul 17, 2018
1 parent a94324a commit dddd09c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/generateIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ const anarockFonts = `
font-style: normal;
font-weight: bold;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Anarock", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
`;

fs.readdir(path.resolve(__dirname, "../svgs"), (err, data) => {
Expand Down
12 changes: 12 additions & 0 deletions src/theme/initStyles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
import { injectGlobal } from "react-emotion";
import { initIconStyles } from "./icons";

export function initStyles() {
initIconStyles();

injectGlobal`
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Anarock", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
`;
}

0 comments on commit dddd09c

Please sign in to comment.