Skip to content

Commit 54e13f1

Browse files
feat(overmind-devtools): change font
1 parent 3df8b9e commit 54e13f1

File tree

8 files changed

+71
-46
lines changed

8 files changed

+71
-46
lines changed
Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,55 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
7+
<title>Document</title>
8+
<style>
9+
html,
10+
body {
11+
margin: 0;
12+
height: 100%;
13+
}
314

4-
<head>
5-
<meta charset="UTF-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
8-
<title>Document</title>
9-
<style>
10-
html,
11-
body {
12-
margin: 0;
13-
height: 100%;
14-
}
15+
.loading {
16+
display: flex;
17+
align-items: center;
18+
justify-content: center;
19+
height: 100%;
20+
padding: 30px;
21+
text-align: center;
22+
}
23+
</style>
1524

16-
.loading {
17-
display: flex;
18-
align-items: center;
19-
justify-content: center;
20-
height: 100%;
21-
padding: 30px;
22-
text-align: center;
23-
}
24-
</style>
25-
</head>
25+
<link
26+
href="https://fonts.googleapis.com/css?family=Source+Code+Pro"
27+
rel="stylesheet"
28+
/>
29+
<link
30+
href="https://fonts.googleapis.com/css?family=Nunito:400,700"
31+
rel="stylesheet"
32+
/>
33+
</head>
2634

27-
<body>
28-
<div class="loading">
29-
<h1>Waiting for webpack to load up...</h1>
30-
</div>
31-
<script>
32-
async function checkDev() {
33-
try {
34-
const response = await fetch('http://localhost:3000')
35+
<body>
36+
<div class="loading"><h1>Waiting for webpack to load up...</h1></div>
37+
<script>
38+
async function checkDev() {
39+
try {
40+
const response = await fetch('http://localhost:3000')
3541

36-
if (response.status >= 200 && response.status < 300) {
37-
location.href = 'http://localhost:3000'
38-
} else {
42+
if (response.status >= 200 && response.status < 300) {
43+
location.href = 'http://localhost:3000'
44+
} else {
45+
setTimeout(checkDev, 250)
46+
}
47+
} catch (_) {
3948
setTimeout(checkDev, 250)
4049
}
41-
} catch (_) {
42-
setTimeout(checkDev, 250)
4350
}
44-
}
45-
46-
setTimeout(checkDev, 1000)
47-
</script>
48-
</body>
4951

50-
</html>
52+
setTimeout(checkDev, 1000)
53+
</script>
54+
</body>
55+
</html>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
7+
<title>Document</title>
8+
<link
9+
href="https://fonts.googleapis.com/css?family=Source+Code+Pro"
10+
rel="stylesheet"
11+
/>
12+
<link
13+
href="https://fonts.googleapis.com/css?family=Nunito:400,700"
14+
rel="stylesheet"
15+
/>
16+
</head>
17+
<body></body>
18+
</html>

packages/node_modules/overmind-devtools/src/components/ConsoleRow/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export const wrapper = css`
1010

1111
export const type = css`
1212
font-weight: bold;
13-
font-family: monospace;
13+
font-family: 'Source Code Pro', monospace;
1414
margin-right: var(--padding-2);
1515
`

packages/node_modules/overmind-devtools/src/components/Inspector/styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { css } from 'emotion'
22

33
export const wrapper = css`
4-
font-family: monospace;
4+
font-family: 'Source Code Pro', monospace;
55
font-size: 16px;
66
line-height: 20px;
77
`
88

99
export const smallWrapper = css`
10-
font-family: monospace;
10+
font-family: 'Source Code Pro', monospace;
1111
font-size: 12px;
1212
line-height: 16px;
1313
`

packages/node_modules/overmind-devtools/src/components/common/Table/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const header = css`
1212
`
1313

1414
export const cellComponent = (mono: boolean, wordwrap: string) => css`
15-
font-family: ${mono ? 'monospace' : 'inherit'};
15+
font-family: ${mono ? '"Source Code Pro", monospace;' : 'inherit'};
16+
font-size: 12px;
1617
word-wrap: ${wordwrap || 'normal'};
1718
`

packages/node_modules/overmind-devtools/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ injectGlobal`
5656
}
5757
body {
5858
overflow: hidden;
59-
font-family: Helvetica Neue;
59+
font-family: Nunito, 'helvetica neue';
6060
background-color: var(--color-dark-2);
6161
color: var(--color-white-1);
6262
line-height: 24px;

packages/node_modules/overmind-devtools/src/styles/text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const black = css`
2828
`
2929

3030
export const monospace = css`
31-
font-family: monospace;
31+
font-family: 'Source Code Pro', monospace;
3232
line-height: 16px;
3333
`
3434

packages/node_modules/overmind-devtools/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ module.exports = {
3939
plugins: [
4040
new HtmlWebpackPlugin({
4141
title: 'Overmind Devtools',
42+
template: './index.html',
4243
}),
4344
],
4445
}

0 commit comments

Comments
 (0)