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

Commit 1fd40d8

Browse files
committed
Typography: Use color variables and palette
1 parent e147a19 commit 1fd40d8

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

scss/atoms/typography/_typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ h6 {
6565

6666
hr {
6767
border: 0;
68-
border-bottom: 1px solid #999; //TODO replace with color variable
68+
border-bottom: map-get($hr, thickness) map-get($hr, style) map-get($hr, color);
6969
}
7070

7171
blockquote {

scss/variables/typography.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
}
99
}( this, function( chassis ) {
1010

11-
var color = "#222",
11+
var color = "map-get($text, base)",
1212
fontSize = "20px",
1313
lineHeight = 1.5,
14-
linkColor = "#4078c0";
14+
linkColor = "map-get($primary, light)";
1515

1616
chassis.typography = {
1717
normal: {
@@ -57,7 +57,7 @@ chassis.typography = {
5757
link: {
5858
name: "Link",
5959
value: {
60-
color: linkColor, // TODO replace with a color from the color-palette
60+
color: linkColor,
6161
decoration: "none"
6262
}
6363
},
@@ -81,6 +81,14 @@ chassis.typography = {
8181
color: linkColor,
8282
decoration: "none"
8383
}
84+
},
85+
"hr": {
86+
name: "HR style",
87+
value: {
88+
color: "#999",
89+
thickness: "1px",
90+
style: "solid",
91+
}
8492
}
8593
};
8694

0 commit comments

Comments
 (0)