Skip to content

Commit 313a305

Browse files
committed
feat: autoscale based on screen size
1 parent 1490e46 commit 313a305

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

src/index.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
color: rgba(255, 255, 255, 0.87);
66
background-color: #242424;
77

8+
font-size: 1em;
89
font-synthesis: none;
910
text-rendering: optimizeLegibility;
1011
-webkit-font-smoothing: antialiased;
@@ -13,7 +14,6 @@
1314

1415
body {
1516
font-family: 'Montserrat', sans-serif;
16-
font-size: 1em;
1717
}
1818

1919
@media (prefers-color-scheme: light) {
@@ -24,8 +24,30 @@ body {
2424
}
2525

2626
@media (max-width: 1023px) {
27+
:root {
28+
font-size: 1em;
29+
}
30+
2731
#root {
2832
min-width: 400px;
2933
width: 400px;
3034
}
35+
}
36+
37+
@media (min-width: 1472px) {
38+
:root {
39+
font-size: 1.25em;
40+
}
41+
}
42+
43+
@media (min-width: 1920px) {
44+
:root {
45+
font-size: 1.5em;
46+
}
47+
}
48+
49+
@media (min-width: 2368px) {
50+
:root {
51+
font-size: 2em;
52+
}
3153
}

0 commit comments

Comments
 (0)