Skip to content

Commit 78eae63

Browse files
authored
Type tweaks (#632)
* reduce width a smidge * bump up font size, paragraph margins * related tweaks * bump sizes for low res screens * use same text colours on low and hi res screens
1 parent cf89cfc commit 78eae63

File tree

4 files changed

+24
-31
lines changed

4 files changed

+24
-31
lines changed

apps/svelte.dev/src/routes/_home/Community.svelte

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<h2>join our friendly community</h2>
77
<p>
88
Our sister organisation, <a href="https://www.sveltesociety.dev/">Svelte Society</a>, organises
9-
events around the globe.
9+
events around the globe. Find your chapter and join us in
10+
<a href="/chat">our Discord server</a>.
1011
</p>
11-
<p>Find your chapter and join us in <a href="/chat">our Discord server</a>.</p>
1212

1313
<figure>
1414
<enhanced:img
@@ -49,4 +49,10 @@
4949
p {
5050
text-align: center;
5151
}
52+
53+
p {
54+
max-width: 28em;
55+
margin-left: auto;
56+
margin-right: auto;
57+
}
5258
</style>

apps/svelte.dev/src/routes/_home/Testimonials.svelte

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,12 @@
188188
width: auto;
189189
}
190190
191-
.adjective::after {
192-
content: 'adjective';
191+
.adjective {
192+
margin-right: 0.5rem;
193+
194+
&::after {
195+
content: 'adjective';
196+
}
193197
}
194198
}
195199
}
@@ -211,22 +215,8 @@
211215
}
212216
213217
@media (min-width: 1140px) {
214-
.outer {
215-
grid-template-areas:
216-
'definition screenshots'
217-
'blurb screenshots';
218-
}
219-
220-
.definition {
221-
grid-area: definition;
222-
}
223-
224-
.blurb {
225-
grid-area: blurb;
226-
}
227-
228218
.screenshots {
229-
grid-area: screenshots;
219+
top: -7em;
230220
}
231221
}
232222
</style>

packages/site-kit/src/lib/styles/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ p,
4545
ul,
4646
ol {
4747
font: var(--sk-font-body);
48-
margin: 1em 0;
48+
margin: 1lh 0;
4949

5050
&:first-child {
5151
margin-top: 0;

packages/site-kit/src/lib/styles/tokens.css

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
--sk-page-padding-side: 1.6rem;
2020
--sk-thick-border-width: 0.3rem;
2121
--sk-border-radius: 0.4rem;
22-
--sk-page-content-width: 84rem;
22+
--sk-page-content-width: 76rem;
2323
--sk-banner-height: 0px;
2424
--sk-pane-controls-height: 4.2rem;
2525

@@ -32,8 +32,8 @@
3232
--sk-font-size-h1: 3.6rem;
3333
--sk-font-size-h2: 3rem;
3434
--sk-font-size-h3: 2.4rem;
35-
--sk-font-size-body: 1.8rem;
36-
--sk-font-size-body-small: 1.6rem;
35+
--sk-font-size-body: 2rem;
36+
--sk-font-size-body-small: 1.8rem;
3737
--sk-font-size-ui-small: 1.3rem;
3838
--sk-font-size-ui-medium: 1.6rem;
3939
--sk-font-size-ui-large: 3rem;
@@ -65,9 +65,9 @@
6565
--sk-back-5: hsl(0, 0%, 92%);
6666
--sk-back-6: hsl(0, 0%, 86%);
6767

68-
--sk-text-1: hsl(0, 0%, 12%);
69-
--sk-text-2: hsl(0, 0%, 20%);
70-
--sk-text-3: hsl(0, 0%, 30%);
68+
--sk-text-1: hsl(0, 0%, 5%);
69+
--sk-text-2: hsl(0, 0%, 12%);
70+
--sk-text-3: hsl(0, 0%, 27%);
7171
--sk-text-4: hsl(0, 0%, 45%);
7272
--sk-scrollbar: rgba(0, 0, 0, 0.3);
7373
--sk-shadow: drop-shadow(0px 0px 14px rgba(0, 0, 0, 0.1));
@@ -122,12 +122,9 @@
122122

123123
@media (resolution: 2x) {
124124
--sk-font-family-body: 'EB Garamond', Georgia, serif;
125-
--sk-font-size-body: 2.1rem;
126-
--sk-font-size-body-small: 1.8rem;
125+
--sk-font-size-body: 2.2rem;
126+
--sk-font-size-body-small: 2rem;
127127
--sk-line-height-body: 1.5;
128-
--sk-text-1: hsl(0, 0%, 5%);
129-
--sk-text-2: hsl(0, 0%, 12%);
130-
--sk-text-3: hsl(0, 0%, 27%);
131128
}
132129

133130
&.dark {

0 commit comments

Comments
 (0)