This allows other platforms such as Windows, macOS and iOS to use their system fonts rather than downloading a copy of Roboto. It also makes the app feel a little closer to native on those platforms!
render () {
const style = {
- fontFamily: 'Roboto',
+ fontFamily: 'inherit',
display: this.props.block ? 'block' : 'inline-block',
width: this.props.block ? '100%' : 'auto',
position: 'relative',
border: 'none',
padding: '10px',
paddingRight: '30px',
- fontFamily: 'Roboto',
+ fontFamily: 'inherit',
background: '#282c37',
color: '#9baec8',
fontSize: '14px',
}
h1 {
- font: 46px/52px 'Roboto', sans-serif;
+ font: 46px/52px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-weight: 600;
margin-bottom: 20px;
color: #2b90d9;
}
body {
- font-family: 'Roboto', sans-serif;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #282c37 image-url('background-photo.jpeg');
background-size: cover;
background-attachment: fixed;
.button {
background-color: #2b90d9;
- font-family: 'Roboto';
+ font-family: inherit;
display: inline-block;
position: relative;
box-sizing: border-box;
resize: none;
color: #282c37;
padding: 7px;
- font-family: 'Roboto';
+ font-family: inherit;
font-size: 14px;
margin: 0;
resize: vertical;
display: flex;
label {
- font-family: 'Roboto';
+ font-family: inherit;
font-size: 16px;
color: #fff;
width: 100px;
margin-bottom: 5px;
label {
- font-family: 'Roboto';
+ font-family: inherit;
font-size: 14px;
color: white;
display: block;
display: block;
width: 100%;
outline: 0;
- font-family: 'Roboto';
+ font-family: inherit;
&:invalid {
box-shadow: none;
<link href="https://fonts.googleapis.com/css?family=Roboto:400" rel="stylesheet">
<style>
body {
- font-family: 'Roboto', sans-serif;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #282c37;
color: #9baec8;
text-align: center;
}
.dialog h1 {
- font: 20px/28px 'Roboto', sans-serif;
+ font: 20px/28px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-weight: 400;
}
</style>
<link href="https://fonts.googleapis.com/css?family=Roboto:400" rel="stylesheet">
<style>
body {
- font-family: 'Roboto', sans-serif;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #282c37;
color: #9baec8;
text-align: center;
}
.dialog h1 {
- font: 20px/28px 'Roboto', sans-serif;
+ font: 20px/28px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-weight: 400;
}
</style>
@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,500);
#root {
- font-family: 'Roboto', sans-serif;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #282c37;
font-size: 13px;
line-height: 18px;