-
Notifications
You must be signed in to change notification settings - Fork 178
/
index.ts
40 lines (35 loc) · 1.02 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { createGlobalStyle } from 'styled-components'
import { COLORS, PRODUCT } from '@opentrons/components'
import 'typeface-open-sans'
import '@fontsource/dejavu-sans'
import '@fontsource/public-sans'
import '@fontsource/public-sans/600.css'
import '@fontsource/public-sans/700.css'
// TODO(ew, 06/19/23): The main font is Public Sans but it does not have subscript glyphs,
// needed to display chemical formulae on the liquids page. I've added DejaVu Sans, which
// does have the glyphs, as a fallback so subscripts will get displayed. Mel and the design
// team will want to revisit the fonts we use at some point in the future.
export const GlobalStyle = createGlobalStyle<{}>`
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: ${PRODUCT.TYPOGRAPHY.fontFamily}, 'DejaVu Sans', sans-serif;
}
html,
body {
width: 100%;
height: 100%;
color: ${COLORS.black90};
}
a {
text-decoration: none;
}
button {
border: none;
&:focus,
&:active {
outline: 0;
}
}
`