Skip to content

Commit 3808764

Browse files
committed
quote font names
it works better
1 parent 193b51c commit 3808764

File tree

8 files changed

+103
-103
lines changed

8 files changed

+103
-103
lines changed

Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -100,27 +100,27 @@ src/typescript_props/example-output.ts : example-figma-files/gov-uk-design-syste
100100

101101
example-figma-files/gov-uk-design-system-components/get-started-page.html : example-figma-files/gov-uk-design-system.json
102102
cargo run --release -- to-html 756:127 < $< \
103-
| sed 's/px GDS Transport Website/px GDS Transport Website,arial,sans-serif/g' > $@
103+
| sed 's/px "GDS Transport Website"/px "GDS Transport Website",arial,sans-serif/g' > $@
104104

105105
example-figma-files/gov-uk-design-system-components/button.html : example-figma-files/gov-uk-design-system.json
106106
cargo run --release -- to-html 213:6 < $< \
107-
| sed 's/px GDS Transport Website/px GDS Transport Website,arial,sans-serif/g' > $@
107+
| sed 's/px "GDS Transport Website"/px "GDS Transport Website",arial,sans-serif/g' > $@
108108

109109
example-figma-files/gov-uk-design-system-components/cookie-banner.html : example-figma-files/gov-uk-design-system.json
110110
cargo run --release -- to-html 18330:13859 < $< \
111-
| sed 's/px GDS Transport Website/px GDS Transport Website,arial,sans-serif/g' > $@
111+
| sed 's/px "GDS Transport Website"/px "GDS Transport Website",arial,sans-serif/g' > $@
112112

113113
example-figma-files/gov-uk-design-system-components/footer.html : example-figma-files/gov-uk-design-system.json
114114
cargo run --release -- to-html 19792:14489 < $< \
115-
| sed 's/px GDS Transport Website/px GDS Transport Website,arial,sans-serif/g' > $@
115+
| sed 's/px "GDS Transport Website"/px "GDS Transport Website",arial,sans-serif/g' > $@
116116

117117
example-figma-files/gov-uk-design-system-components/header.html : example-figma-files/gov-uk-design-system.json
118118
cargo run --release -- to-html 20226:12488 < $< \
119-
| sed 's/px GDS Transport Website/px GDS Transport Website,arial,sans-serif/g' > $@
119+
| sed 's/px "GDS Transport Website"/px "GDS Transport Website",arial,sans-serif/g' > $@
120120

121121
example-figma-files/gov-uk-design-system-components/tag.html : example-figma-files/gov-uk-design-system.json
122122
cargo run --release -- to-html 147:17 < $< \
123-
| sed 's/px GDS Transport Website/px GDS Transport Website,arial,sans-serif/g' > $@
123+
| sed 's/px "GDS Transport Website"/px "GDS Transport Website",arial,sans-serif/g' > $@
124124

125125
definitions.kt :
126126
typeshare . --lang=kotlin --output-file=$@

example-figma-files/gov-uk-design-system-components/button.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
--Focus-Default: #fd0;
99
--Focus-Text: #0b0c0c;
1010
--Error: #d4351c;
11-
--Desktop-Paragraph-Body: 300 19px / 25px GDS Transport Website,arial,sans-serif;
11+
--Desktop-Paragraph-Body: 300 19px / 25px "GDS Transport Website",arial,sans-serif;
1212
--Background: #fff;
1313
--Other-Green: #00703c;
1414
--Other-Light-Grey: #f3f2f1;
1515
--Other-Dark-Green: #005a30;
1616
--Other-Dark-Red: #aa2a16;
17-
--Overide-Font-Size-24---Bold: 700 24px / 32px GDS Transport Website,arial,sans-serif;
18-
--Mobile-Paragraph-Body: 300 16px / 20px GDS Transport Website,arial,sans-serif;
17+
--Overide-Font-Size-24---Bold: 700 24px / 32px "GDS Transport Website",arial,sans-serif;
18+
--Mobile-Paragraph-Body: 300 16px / 20px "GDS Transport Website",arial,sans-serif;
1919
margin: 0;
2020
}
2121
</style></head
@@ -624,7 +624,7 @@
624624
data-figma-id="30182:12488"
625625
style="
626626
color: var(--Background);
627-
font: 700 18px / 18px GDS Transport Website,arial,sans-serif;
627+
font: 700 18px / 18px GDS Transport Website;
628628
"
629629
>Button</div
630630
><div
@@ -733,7 +733,7 @@
733733
data-figma-id="30182:12530"
734734
style="
735735
color: var(--Background);
736-
font: 700 18px / 18px GDS Transport Website,arial,sans-serif;
736+
font: 700 18px / 18px GDS Transport Website;
737737
"
738738
>Button</div
739739
><div
@@ -846,7 +846,7 @@
846846
data-figma-id="30197:12542"
847847
style="
848848
color: var(--Background);
849-
font: 700 18px / 18px GDS Transport Website,arial,sans-serif;
849+
font: 700 18px / 18px GDS Transport Website;
850850
"
851851
>Button</div
852852
><div
@@ -955,7 +955,7 @@
955955
data-figma-id="30208:12552"
956956
style="
957957
color: var(--Focus-Text);
958-
font: 700 18px / 18px GDS Transport Website,arial,sans-serif;
958+
font: 700 18px / 18px GDS Transport Website;
959959
"
960960
>Button</div
961961
><div
@@ -1068,7 +1068,7 @@
10681068
data-figma-id="30208:12562"
10691069
style="
10701070
color: var(--Background);
1071-
font: 700 18px / 18px GDS Transport Website,arial,sans-serif;
1071+
font: 700 18px / 18px GDS Transport Website;
10721072
"
10731073
>Button</div
10741074
><div

example-figma-files/gov-uk-design-system-components/cookie-banner.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
body {
77
--Text-Primary: #0b0c0c;
88
--Link-Default: #1d70b8;
9-
--Desktop-Heading-Medium: 700 24px / 30px GDS Transport Website,arial,sans-serif;
10-
--Desktop-Paragraph-Body: 300 19px / 25px GDS Transport Website,arial,sans-serif;
9+
--Desktop-Heading-Medium: 700 24px / 30px "GDS Transport Website",arial,sans-serif;
10+
--Desktop-Paragraph-Body: 300 19px / 25px "GDS Transport Website",arial,sans-serif;
1111
--Background: #fff;
1212
--Other-Green: #00703c;
1313
--Other-Light-Grey: #f3f2f1;
@@ -146,7 +146,7 @@
146146
color: var(--Link-Default);
147147
flex-direction: row;
148148
align-items: center;
149-
font: 300 19px / 19px GDS Transport Website,arial,sans-serif;
149+
font: 300 19px / 19px GDS Transport Website;
150150
display: flex;
151151
box-shadow: inset 0 -1px #1d70b8;
152152
"

example-figma-files/gov-uk-design-system-components/footer.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
--Text-Primary: #0b0c0c;
88
--Text-Secondary: #505a5f;
99
--Border-Default: #b1b4b6;
10-
--Desktop-Heading-Medium: 700 24px / 30px GDS Transport Website,arial,sans-serif;
11-
--Desktop-Paragraph-Body-Small: 300 16px / 20px GDS Transport Website,arial,sans-serif;
10+
--Desktop-Heading-Medium: 700 24px / 30px "GDS Transport Website",arial,sans-serif;
11+
--Desktop-Paragraph-Body-Small: 300 16px / 20px "GDS Transport Website",arial,sans-serif;
1212
--Background: #fff;
1313
--Other-Light-Grey: #f3f2f1;
14-
--Desktop-Link-Body-Small: 300 16px / 20px GDS Transport Website,arial,sans-serif;
14+
--Desktop-Link-Body-Small: 300 16px / 20px "GDS Transport Website",arial,sans-serif;
1515
margin: 0;
1616
}
1717
</style></head

example-figma-files/gov-uk-design-system-components/get-started-page.html

+20-20
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
--Text-Secondary: #505a5f;
99
--Link-Default: #1d70b8;
1010
--Border-Default: #b1b4b6;
11-
--Desktop-Heading-Large: 700 36px / 40px GDS Transport Website,arial,sans-serif;
12-
--Desktop-Heading-Medium: 700 24px / 30px GDS Transport Website,arial,sans-serif;
13-
--Desktop-Paragraph-Body: 300 19px / 25px GDS Transport Website,arial,sans-serif;
14-
--Desktop-Paragraph-Body-Large: 400 24px / 32px GDS Transport Website,arial,sans-serif;
15-
--Desktop-Paragraph-Body-Small: 400 16px / 20px GDS Transport Website,arial,sans-serif;
11+
--Desktop-Heading-Large: 700 36px / 40px "GDS Transport Website",arial,sans-serif;
12+
--Desktop-Heading-Medium: 700 24px / 30px "GDS Transport Website",arial,sans-serif;
13+
--Desktop-Paragraph-Body: 300 19px / 25px "GDS Transport Website",arial,sans-serif;
14+
--Desktop-Paragraph-Body-Large: 400 24px / 32px "GDS Transport Website",arial,sans-serif;
15+
--Desktop-Paragraph-Body-Small: 400 16px / 20px "GDS Transport Website",arial,sans-serif;
1616
--Background: #fff;
17-
--Desktop-Paragraph-Body---Bold: 700 19px / 25px GDS Transport Website,arial,sans-serif;
18-
--Desktop-Paragraph-Body-Small---Bold: 700 16px / 20px GDS Transport Website,arial,sans-serif;
17+
--Desktop-Paragraph-Body---Bold: 700 19px / 25px "GDS Transport Website",arial,sans-serif;
18+
--Desktop-Paragraph-Body-Small---Bold: 700 16px / 20px "GDS Transport Website",arial,sans-serif;
1919
--Other-Blue: #1d70b8;
2020
--Other-Light-Grey: #f3f2f1;
21-
--Overide-Font-Size-48---Bold: 700 48px / 58px GDS Transport Website,arial,sans-serif;
21+
--Overide-Font-Size-48---Bold: 700 48px / 58px "GDS Transport Website",arial,sans-serif;
2222
--Link-Default: #1d70b8;
2323
margin: 0;
2424
}
@@ -117,7 +117,7 @@
117117
data-figma-id="863:122"
118118
style="
119119
color: var(--Link-Default);
120-
font: 300 19px / 24px GDS Transport Website,arial,sans-serif;
120+
font: 300 19px / 24px GDS Transport Website;
121121
text-decoration-line: underline;
122122
position: absolute;
123123
inset: 390px auto auto 0;
@@ -152,7 +152,7 @@
152152
data-figma-id="863:362"
153153
style="
154154
color: var(--Text-Primary);
155-
font: 300 20px / 26px GDS Transport Website,arial,sans-serif;
155+
font: 300 20px / 26px GDS Transport Website;
156156
position: absolute;
157157
inset: 2643px auto auto 210px;
158158
"
@@ -174,7 +174,7 @@
174174
color: var(--Text-Primary);
175175
white-space: pre-wrap;
176176
width: 712px;
177-
font: 400 19px / 26px GDS Transport Website,arial,sans-serif;
177+
font: 400 19px / 26px GDS Transport Website;
178178
position: absolute;
179179
inset: 1824px auto auto 160px;
180180
"
@@ -190,7 +190,7 @@
190190
color: var(--Text-Primary);
191191
white-space: pre-wrap;
192192
width: 712px;
193-
font: 400 19px / 26px GDS Transport Website,arial,sans-serif;
193+
font: 400 19px / 26px GDS Transport Website;
194194
position: absolute;
195195
inset: 2205px auto auto 160px;
196196
"
@@ -202,7 +202,7 @@
202202
color: var(--Text-Primary);
203203
white-space: pre-wrap;
204204
width: 712px;
205-
font: 300 19px / 26px GDS Transport Website,arial,sans-serif;
205+
font: 300 19px / 26px GDS Transport Website;
206206
position: absolute;
207207
inset: 2383px auto auto 160px;
208208
"
@@ -238,7 +238,7 @@
238238
color: var(--Text-Primary);
239239
flex-direction: column;
240240
padding: 2px 0 0;
241-
font: 300 19px / 22px GDS Transport Website,arial,sans-serif;
241+
font: 300 19px / 22px GDS Transport Website;
242242
display: flex;
243243
"
244244
></div
@@ -266,7 +266,7 @@
266266
color: var(--Text-Primary);
267267
flex-direction: column;
268268
padding: 2px 0 0;
269-
font: 300 19px / 22px GDS Transport Website,arial,sans-serif;
269+
font: 300 19px / 22px GDS Transport Website;
270270
display: flex;
271271
"
272272
></div
@@ -379,7 +379,7 @@
379379
style="
380380
color: var(--Text-Primary);
381381
width: 712px;
382-
font: 400 19px / 26px GDS Transport Website,arial,sans-serif;
382+
font: 400 19px / 26px GDS Transport Website;
383383
position: absolute;
384384
inset: 154px auto auto 0;
385385
"
@@ -391,7 +391,7 @@
391391
color: var(--Text-Primary);
392392
white-space: pre-wrap;
393393
width: 712px;
394-
font: 400 19px / 26px GDS Transport Website,arial,sans-serif;
394+
font: 400 19px / 26px GDS Transport Website;
395395
position: absolute;
396396
inset: 406px auto auto 0;
397397
"
@@ -403,7 +403,7 @@
403403
href="https://www.dropbox.com/sh/r505onxpqmgan0i/AABpCj5rAzK98eolXHYIifvXa?dl=0"
404404
style="
405405
color: var(--Link-Default);
406-
font: 400 19px / 24px GDS Transport Website,arial,sans-serif;
406+
font: 400 19px / 24px GDS Transport Website;
407407
text-decoration-line: underline;
408408
position: absolute;
409409
inset: 268px auto auto 0;
@@ -414,7 +414,7 @@
414414
data-figma-id="780:124"
415415
style="
416416
color: var(--Text-Secondary);
417-
font: 400 19px / 24px GDS Transport Website,arial,sans-serif;
417+
font: 400 19px / 24px GDS Transport Website;
418418
position: absolute;
419419
inset: 90px auto auto 0;
420420
"
@@ -424,7 +424,7 @@
424424
data-figma-id="780:125"
425425
style="
426426
color: var(--Text-Secondary);
427-
font: 400 19px / 24px GDS Transport Website,arial,sans-serif;
427+
font: 400 19px / 24px GDS Transport Website;
428428
position: absolute;
429429
inset: 342px auto auto 0;
430430
"

0 commit comments

Comments
 (0)