Skip to content

Commit 3b892e0

Browse files
committed
Improves typography styling
(#4769, #4773, PLG-138)
1 parent fce517a commit 3b892e0

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

src/webviews/apps/welcome/welcome.css.ts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,24 @@ const section = css`
7171
align-items: center;
7272
text-align: center;
7373
}
74+
.section h1 {
75+
color: var(--em-color);
76+
}
77+
.section h2 {
78+
color: var(--em-color);
79+
font-weight: normal;
80+
font-size: var(--p-font-size);
81+
}
82+
.section p {
83+
color: var(--text-color);
84+
}
7485
.section .accent {
7586
color: var(--accent-color);
7687
}
88+
.section a {
89+
color: var(--link-color);
90+
text-decoration: none;
91+
}
7792
7893
.section.plain p {
7994
max-width: 30em;
@@ -122,12 +137,7 @@ const header = css`
122137
}
123138
.header h1 {
124139
margin-bottom: 0;
125-
126140
font-size: var(--h1-font-size);
127-
color: var(--em-text-color);
128-
}
129-
.header p {
130-
color: var(--text-color);
131141
}
132142
`;
133143

@@ -154,24 +164,17 @@ const carousel = css`
154164
gl-feature-carousel h1 {
155165
margin: 0;
156166
font-size: var(--card-font-size);
157-
color: var(--em-color);
158167
}
159168
160169
gl-feature-carousel p {
161170
margin: 0.4em 0 0;
162171
font-size: var(--card-font-size);
163-
color: var(--text-color);
164172
}
165173
166174
gl-feature-carousel img {
167175
max-width: 100%;
168176
height: auto;
169177
}
170-
171-
gl-feature-carousel a {
172-
color: var(--link-color);
173-
text-decoration: none;
174-
}
175178
`;
176179

177180
export const welcomeStyles = css`

src/webviews/apps/welcome/welcome.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class GlWelcomeApp extends GlAppHost<State> {
5656
</p>
5757
</div>
5858
<div class="section plain">
59-
<p>With <span class="accent">PRO</span> subscription you get more</p>
59+
<h2>With <span class="accent">PRO</span> subscription you get more</h2>
6060
</div>
6161
6262
<div class="section">

0 commit comments

Comments
 (0)