Skip to content

Commit 4b920b4

Browse files
committed
Use Roboto font
1 parent aec8e48 commit 4b920b4

File tree

5 files changed

+27
-7
lines changed

5 files changed

+27
-7
lines changed

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"type": "module",
7171
"dependencies": {
7272
"@floating-ui/dom": "^1.6.7",
73+
"@fontsource/roboto": "^5.1.1",
7374
"@fortawesome/fontawesome-free": "^6.7.1",
7475
"d3": "^5.16.0",
7576
"d3-array": "^3.2.4",

src/app.postcss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ body {
1818
width: 100%;
1919
background-color: rgb(var(--color-surface-100));
2020
}
21+
22+
:root [data-theme='rmi_theme'] {
23+
--theme-font-family-base: 'Roboto', sans-serif;
24+
--theme-font-family-heading: 'Roboto', sans-serif;
25+
}

src/css/plot_styles.css

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
/* src/css/plot_styles.css */
22

3+
strong {
4+
font-weight: 700;
5+
}
6+
37
.d3chart > style {
48
display: none;
59
}
@@ -94,7 +98,7 @@
9498
/* styles for interactive charts ****************/
9599

96100
div.d3chart {
97-
font-family: sans-serif;
101+
font-family: 'Roboto', sans-serif;
98102
font-size: 0.9em;
99103
width: 100%;
100104
max-width: 1400px;
@@ -103,26 +107,26 @@ div.d3chart {
103107
}
104108

105109
div.d3chart .chart_title {
106-
font-family: sans-serif;
110+
font-family: 'Roboto', sans-serif;
107111
font-size: 1em;
108112
text-align: center;
109113
}
110114

111115
div.d3chart .chart_filters {
112-
font-family: sans-serif;
116+
font-family: 'Roboto', sans-serif;
113117
font-size: 0.9em;
114118
text-align: center;
115119
margin: 10px;
116120
}
117121

118122
div.d3chart .chart_caption {
119-
font-family: sans-serif;
123+
font-family: 'Roboto', sans-serif;
120124
font-size: 0.8em;
121125
text-align: center;
122126
}
123127

124128
div.d3chart .chart_source {
125-
font-family: sans-serif;
129+
font-family: 'Roboto', sans-serif;
126130
font-size: 0.7em;
127131
font-style: italic;
128132
padding-top: 5px;
@@ -145,13 +149,13 @@ div.d3chart div.d3tooltip {
145149
border-radius: 4px;
146150
padding: 10px;
147151
border: 1px solid;
148-
font-family: sans-serif;
152+
font-family: 'Roboto', sans-serif;
149153
/* position: absolute; */
150154
position: fixed; /* position must be fixed to work in Gitbook */
151155
}
152156

153157
div.d3chart svg text {
154-
font-family: sans-serif;
158+
font-family: 'Roboto', sans-serif;
155159
}
156160

157161
div.d3chart.tech_exposure {

src/routes/+layout.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
import { storePopup } from '@skeletonlabs/skeleton';
2323
storePopup.set({ computePosition, autoUpdate, flip, shift, offset, arrow });
2424
25+
//fonts
26+
import "@fontsource/roboto/400.css";
27+
import "@fontsource/roboto/700.css";
28+
2529
async function downloadArchive() {
2630
try {
2731
const response = await fetch('data/archive.zip');

0 commit comments

Comments
 (0)