Skip to content

Commit 329d89c

Browse files
authored
design tweaks (#1591)
* revert to normal font-weight * consolidate fonts, colors
1 parent 513dba4 commit 329d89c

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

docs/index.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@ index: false
1111

1212
.hero h1 {
1313
font-size: 56px;
14-
max-width: fit-content;
14+
max-width: none;
1515
line-height: 1;
1616
margin: 2rem 0;
1717
}
1818

19-
.phosphate {
20-
color: var(--theme-phosphate);
21-
}
22-
2319
.hero h2 {
2420
font-style: normal;
2521
font-size: 18px;
@@ -103,11 +99,11 @@ index: false
10399
</style>
104100

105101
<div class="hero">
106-
<h1>The best dashboards are built with <span class="phosphate">code.</span></h1>
102+
<h1>The best dashboards are built with <span style="color: var(--theme-foreground-focus);">code.</span></h1>
107103
<h2>Create fast, beautiful data apps, dashboards, and reports from the command line. Write Markdown, JavaScript, SQL, Python, R… and any language you like. Free and open-source.</h2>
108104
<div class="cta">
109105
<pre data-copy>npx <span class="win">"</span>@observablehq/framework@latest<span class="win">"</span> create</pre>
110-
<a href="./getting-started" class="small arrow" style="color: var(--theme-red);">Get started</a>
106+
<a href="./getting-started" class="small arrow" style="color: var(--theme-foreground-focus);">Get started</a>
111107
</div>
112108
</div>
113109

docs/style.css

+13-9
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@
33
@import url("observablehq:theme-near-midnight.css") (prefers-color-scheme: dark);
44

55
:root {
6-
--sans-mono: "Spline Sans Mono", var(--monospace);
7-
--sans-text: Inter, var(--sans-serif);
8-
--theme-phosphate: #148576;
6+
--sans-serif: Inter, -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto,
7+
noto, "segoe ui", arial, sans-serif;
8+
--monospace: "Spline Sans Mono", Menlo, Consolas, monospace;
9+
--theme-foreground-focus: #148576;
10+
}
11+
12+
code,
13+
tt {
14+
font-size: inherit;
915
}
1016

1117
@media (prefers-color-scheme: dark) {
1218
:root {
1319
--theme-foreground: #f5f5f5;
14-
--theme-phosphate: #37d5be;
20+
--theme-foreground-focus: #37d5be;
1521
}
1622
}
1723

@@ -53,10 +59,8 @@
5359
color: var(--theme-foreground-focus);
5460
}
5561

56-
#observablehq-main {
57-
font-family: var(--sans-text);
58-
font-size: 16px;
59-
font-weight: 500;
62+
body {
63+
font: 16px/1.5 var(--sans-serif);
6064
}
6165

6266
#observablehq-main {
@@ -69,7 +73,7 @@
6973
}
7074

7175
h1 {
72-
font-family: var(--sans-mono);
76+
font-family: var(--monospace);
7377
font-weight: 500;
7478
}
7579

0 commit comments

Comments
 (0)