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

[WIP] typography: added color variables #129

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scss/atoms/typography/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,20 @@ h6 {

hr {
border: 0;
border-bottom: 1px solid #999;
border-bottom: 1px solid $hr-border-color;
}

blockquote {
margin: 0;
padding-left: 1em;
position: relative;
border-left: 4px solid #eee; // TODO replace with color variable
border-left: 4px solid $blockquote-color;
font-style: italic;
}

pre {
padding: 16px 20px;
background: #f7f7f7;
background: $pre-bgcolor;
font: normal 12px/1.4 $monospace;
}

Expand Down Expand Up @@ -121,7 +121,7 @@ strong {
}

code {
background: #f2f2f2; // TODO replace with color variable
background: $code-background;
font-size: em( 16px );
padding: em( 4px, 16px ) em( 8px, 16px );
border-radius: 3px;
Expand Down
16 changes: 16 additions & 0 deletions scss/variables/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,22 @@ chassis.typography = {
sans: {
name: "Font Family - Sans",
value: "Helvetica, Arial, sans-serif"
},
"blockquote-color": {
name: "blockquote color",
value: "#eee"
},
"code-background": {
name: "Code Background Color",
value: "#F2F2F2"
},
"pre-bgcolor": {
name: "Pre Background Color",
value: "#f7f7f7"
},
"hr-border-color": {
name: "Horizontal Rule Border Color",
value: "#999"
}
};

Expand Down