Skip to content
/ TUIkit Public

Commit 0712d9e

Browse files
committed
Docs: Update DocC fonts to Barlow
1 parent 02719e6 commit 0712d9e

3 files changed

Lines changed: 41 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,19 @@ jobs:
127127
128128
- name: Add routing support for GitHub Pages
129129
run: |
130+
cp Sources/TUIkit/TUIkit.docc/theme-overrides.css docc-output/theme-overrides.css
131+
132+
python3 - <<'PY'
133+
from pathlib import Path
134+
135+
link = '<link rel="stylesheet" href="/theme-overrides.css">'
136+
for path in Path("docc-output").rglob("*.html"):
137+
content = path.read_text(encoding="utf-8")
138+
if link in content or "</head>" not in content:
139+
continue
140+
path.write_text(content.replace("</head>", f" {link}\n</head>"), encoding="utf-8")
141+
PY
142+
130143
# 404.html = copy of SPA index so all deep-link paths route through DocC
131144
cp docc-output/index.html docc-output/404.html
132145
# Root redirect: docs.tuikit.dev/ -> docs.tuikit.dev/documentation/tuikit/
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');
2+
3+
html,
4+
body,
5+
input,
6+
textarea,
7+
select,
8+
button {
9+
font-family: 'Barlow', system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
10+
}
11+
12+
h1,
13+
h2,
14+
h3,
15+
h4,
16+
h5,
17+
h6,
18+
.hero .title,
19+
.hero h1,
20+
.documentation-topic h1,
21+
.documentation-topic h2,
22+
.documentation-topic h3,
23+
.tutorial-hero h1,
24+
.tutorial-hero h2 {
25+
font-family: 'Barlow Condensed', 'Barlow', system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
26+
letter-spacing: 0.01em;
27+
}

Sources/TUIkit/TUIkit.docc/theme-settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
"generic-modal-background": { "dark": "#050905ee", "light": "#ffffffee" }
193193
},
194194
"typography": {
195-
"html-font": "'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif",
195+
"html-font": "'Barlow', system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif",
196196
"html-font-mono": "'SF Mono', SFMono-Regular, ui-monospace, 'Cascadia Code', Menlo, Monaco, Consolas, monospace"
197197
},
198198
"icons": { "technology": "/images/TUIkit/tuikit-logo.png" }

0 commit comments

Comments
 (0)