Skip to content

Commit a5d29ca

Browse files
committed
feat(styles): introduce heading and subheading colors and vars
1 parent 2de53a6 commit a5d29ca

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

static/styles/_readme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
border-bottom: 1px solid var(--border-color);
44
margin: 1em 0;
55
padding-bottom: 0.5rem;
6+
color: var(--subheading-color);
67

78
& + h3 {
89
margin-top: 0;

static/styles/_typography.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
h1 {
2-
font-size: 2rem;
2+
font-size: 2rem;
3+
color: var(--heading-color);
34
}
45

56
h5 {
@@ -26,7 +27,7 @@ h5 {
2627
.subtitle {
2728
font-weight: 600;
2829
font-size: 1.5em;
29-
color: var(--text-color);
30+
color: var(--subheading-color);
3031
margin: 1em 0;
3132
padding: 0.4em 0;
3233
border-bottom: 1px solid var(--border-color);
@@ -45,7 +46,7 @@ h5 {
4546
font-size: 1.4rem;
4647
font-family: var(--code-font);
4748
font-weight: 600;
48-
color: var(--secondary-color);
49+
color: var(--primary-color);
4950

5051
.return-type-signature {
5152
color: #aaa;

static/styles/_vars.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
--text-color: #4a4a4a;
1111
--light-font-color: #999;
1212
--supporting-color: #7097b5;
13+
--heading-color: var(--text-color);
14+
--subheading-color: var(--secondary-color);
1315
--heading-background: #f7f7f7;
1416
--code-bg-color: #f8f8f8;
1517

0 commit comments

Comments
 (0)