Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
func: add global.css for default fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mafrans committed Jan 26, 2021
1 parent fe2d1e6 commit 21bf5ea
Show file tree
Hide file tree
Showing 5 changed files with 4,141 additions and 572 deletions.
1 change: 0 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"plugins": [
"@babel/plugin-transform-runtime",
"macros",
"@babel/plugin-syntax-object-rest-spread",
"tailwind-components"
]
}
4 changes: 4 additions & 0 deletions modules/popup/src/assets/css/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body, * {
font-family: 'Roboto', sans-serif;
font-size: 16px;
}
12 changes: 3 additions & 9 deletions modules/popup/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import ReactDOM from 'react-dom';
import React from 'react';
import 'reset-css';
import './assets/css/global.css';
import 'tailwindcss/tailwind.css';
import '@fontsource/material-icons';
import '@fontsource/roboto';
import '@fontsource/roboto/500';
import App from './App';
import styled from 'styled-components';

const GlobalWrapper = styled('div')`
font-family: 'Roboto', sans-serif;
font-size: 16px;
`

ReactDOM.render(
<GlobalWrapper>
<App/>
</GlobalWrapper>,
<App/>,
document.getElementById('app')
);
Loading

0 comments on commit 21bf5ea

Please sign in to comment.