Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit a6f6f01

Browse files
Christina ThompsonChristina Thompson
Christina Thompson
authored and
Christina Thompson
committed
typography: added color variables
1 parent 72ad168 commit a6f6f01

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

scss/atoms/typography/_typography.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,20 @@ h6 {
6565

6666
hr {
6767
border: 0;
68-
border-bottom: 1px solid #999;
68+
border-bottom: 1px solid $hr-border-color;
6969
}
7070

7171
blockquote {
7272
margin: 0;
7373
padding-left: 1em;
7474
position: relative;
75-
border-left: 4px solid #eee; // TODO replace with color variable
75+
border-left: 4px solid $blockquote-color;
7676
font-style: italic;
7777
}
7878

7979
pre {
8080
padding: 16px 20px;
81-
background: #f7f7f7;
81+
background: $pre-bgcolor;
8282
font: normal 12px/1.4 $monospace;
8383
}
8484

@@ -121,7 +121,7 @@ strong {
121121
}
122122

123123
code {
124-
background: #f2f2f2; // TODO replace with color variable
124+
background: $code-background;
125125
font-size: em( 16px );
126126
padding: em( 4px, 16px ) em( 8px, 16px );
127127
border-radius: 3px;

scss/variables/typography.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ chassis.typography = {
5252
sans: {
5353
name: "Font Family - Sans",
5454
value: "Helvetica, Arial, sans-serif"
55+
},
56+
"blockquote-color": {
57+
name: "blockquote color",
58+
value: "#eee"
59+
},
60+
"code-background": {
61+
name: "Code Background Color",
62+
value: "#F2F2F2"
63+
},
64+
"pre-bgcolor": {
65+
name: "Pre Background Color",
66+
value: "#f7f7f7"
67+
},
68+
"hr-border-color": {
69+
name: "Horizontal Rule Border Color",
70+
value: "#999"
5571
}
5672
};
5773

0 commit comments

Comments
 (0)