Skip to content

Commit 4ad5406

Browse files
Switch from Roboto to Open Sans for main text, to echo quarkus.io (quarkiverse#23)
1 parent 5c8d526 commit 4ad5406

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

docs/modules/ROOT/pages/inline-text-styles.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ A bold <strong>word</strong>, or a bold <strong>phrase of text</strong>.
2222
Since `<strong>` is a semantic HTML element, it automatically inherits default styling (`font-weight: bold`) from the browser.
2323
If you want to override the browser styles, you'll need to define properties on the `strong` selector in the stylesheet for your UI.
2424

25-
In the default UI, the `<strong>` element is styled in the 500 font weight of the current typeface (Roboto).
25+
In the default UI, the `<strong>` element is styled in the 500 font weight of the current typeface (Open Sans).
2626
For example:
2727

2828
[example]
@@ -41,7 +41,7 @@ An italic <em>word</em>, or an italic <em>phrase of text</em>.
4141
Since `<em>` is a semantic HTML element, it automatically inherits default styling (`font-style: italic`) from the browser.
4242
If you want to override the browser styles, you'll need to define properties on the `em` selector in the stylesheet for your UI.
4343

44-
In the default UI, the `em` element is styled in the italic font variant of the current typeface (Roboto).
44+
In the default UI, the `em` element is styled in the italic font variant of the current typeface (Open Sans).
4545
For example:
4646

4747
[example]

package-lock.json

Lines changed: 7 additions & 7 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"devDependencies": {
1717
"@asciidoctor/core": "~2.2",
18-
"@fontsource/roboto": "~4.5",
18+
"@fontsource/open-sans": "^5.0.3",
1919
"@fontsource/roboto-mono": "~4.5",
2020
"autoprefixer": "~9.7",
2121
"browser-pack-flat": "~3.4",

src/css/site.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "typeface-roboto.css";
1+
@import "typeface-open-sans.css";
22
@import "typeface-roboto-mono.css";
33
@import "vars.css";
44
@import "base.css";
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
@font-face {
2-
font-family: "Roboto";
2+
font-family: "Open Sans";
33
font-style: normal;
44
font-weight: 400;
55
src:
6-
url(~@fontsource/roboto/files/roboto-latin-400-normal.woff2) format("woff2"),
7-
url(~@fontsource/roboto/files/roboto-latin-400-normal.woff) format("woff");
6+
url(~@fontsource/open-sans/files/open-sans-latin-400-normal.woff2) format("woff2"),
7+
url(~@fontsource/open-sans/files/open-sans-latin-400-normal.woff) format("woff");
88
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
99
}
1010

1111
@font-face {
12-
font-family: "Roboto";
12+
font-family: "Open Sans";
1313
font-style: italic;
1414
font-weight: 400;
1515
src:
16-
url(~@fontsource/roboto/files/roboto-latin-400-italic.woff2) format("woff2"),
17-
url(~@fontsource/roboto/files/roboto-latin-400-italic.woff) format("woff");
16+
url(~@fontsource/open-sans/files/open-sans-latin-400-italic.woff2) format("woff2"),
17+
url(~@fontsource/open-sans/files/open-sans-latin-400-italic.woff) format("woff");
1818
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
1919
}
2020

2121
@font-face {
22-
font-family: "Roboto";
22+
font-family: "Open Sans";
2323
font-style: normal;
2424
font-weight: 500;
2525
src:
26-
url(~@fontsource/roboto/files/roboto-latin-500-normal.woff2) format("woff2"),
27-
url(~@fontsource/roboto/files/roboto-latin-500-normal.woff) format("woff");
26+
url(~@fontsource/open-sans/files/open-sans-latin-500-normal.woff2) format("woff2"),
27+
url(~@fontsource/open-sans/files/open-sans-latin-500-normal.woff) format("woff");
2828
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
2929
}
3030

3131
@font-face {
32-
font-family: "Roboto";
32+
font-family: "Open Sans";
3333
font-style: italic;
3434
font-weight: 500;
3535
src:
36-
url(~@fontsource/roboto/files/roboto-latin-500-italic.woff2) format("woff2"),
37-
url(~@fontsource/roboto/files/roboto-latin-500-italic.woff) format("woff");
36+
url(~@fontsource/open-sans/files/open-sans-latin-500-italic.woff2) format("woff2"),
37+
url(~@fontsource/open-sans/files/open-sans-latin-500-italic.woff) format("woff");
3838
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
3939
}

src/css/vars.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
--body-font-size--print: 0.9375em; /* 15px */
2525
--body-line-height: 1.15;
2626
--body-font-color: var(--color-jet-70);
27-
--body-font-family: "Roboto", sans-serif;
27+
--body-font-family: "Open Sans", sans-serif;
2828
--body-font-weight-bold: 500;
2929
--monospace-font-family: "Roboto Mono", monospace;
3030
--monospace-font-weight-bold: 500;

0 commit comments

Comments
 (0)