Skip to content

Commit ae6f49b

Browse files
committed
change color on gauge
1 parent c47f30c commit ae6f49b

4 files changed

Lines changed: 25 additions & 17 deletions

File tree

control-station/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
type="image/svg+xml"
88
href="/vite.svg"
99
/>
10+
<link rel="preconnect" href="https://fonts.googleapis.com">
11+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12+
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
1013
<meta
1114
name="viewport"
1215
content="width=device-width, initial-scale=1.0"

control-station/src/components/GaugeTag/Gauge/Gauge.module.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
.rainbowArc {
1010
background: conic-gradient(
1111
from 220deg,
12-
#7295ef,
13-
60deg,
14-
#7aefcc,
15-
130deg,
16-
#efe84a,
17-
190deg,
18-
#ffab2c,
19-
240deg,
20-
#ff1e1e,
21-
330deg,
22-
#7295ef
12+
#91e473,
13+
40deg,
14+
#9BF37C,
15+
80deg,
16+
#F4E55E,
17+
120deg,
18+
#F4E55E,
19+
220deg,
20+
#F3785C,
21+
310deg,
22+
#F3785C
2323
);
2424
}
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../../../styles/fonts.scss";
2+
13
.textData {
24
display: flex;
35
flex-direction: column;
@@ -10,20 +12,22 @@
1012

1113
.name {
1214
font-weight: inherit;
13-
font-size: 0.7em;
14-
font-weight: 400;
15+
font-family: map-get($map: fonts.$font-families, $key: roboto);
16+
font-size: map-get($map: fonts.$font-sizes, $key: x-small);
17+
font-weight: map-get($map: fonts.$font-weights, $key: light);
1518
font-style: italic;
1619
}
1720

1821
.value {
19-
font-family: var(--font-mono);
22+
font-family: map-get($map: fonts.$font-families, $key: roboto);
2023
font-size: 1.8em;
21-
font-weight: 600;
24+
font-weight: map-get($map: fonts.$font-weights, $key: bold);
2225
}
2326

2427
.units {
2528
font-weight: inherit;
26-
font-size: 1em;
27-
font-weight: 400;
29+
font-family: map-get($map: fonts.$font-families, $key: roboto);
30+
font-size: map-get($map: fonts.$font-sizes, $key: small);
31+
font-weight: map-get($map: fonts.$font-weights, $key: normal);
2832
}
2933
}

control-station/src/styles/fonts.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
$font-families: (
44
sans: "Inter",
55
mono: "JetBrains Mono, IBM Plex Mono, monospace",
6+
roboto: "Roboto"
67
);
78

89
$font-sizes: (

0 commit comments

Comments
 (0)