Skip to content

Commit abe7624

Browse files
committed
Add additional base styles
1 parent ead3aed commit abe7624

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

scss/base/base.scss

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
11
* {
22
box-sizing: border-box;
33
}
4+
5+
body {
6+
color: $font-color-default;
7+
font-family: $font-family-default;
8+
font-size: $font-size-default;
9+
line-height: 1.5;
10+
margin: 0;
11+
}
12+
13+
h1, h2, h3,
14+
h4, h5, h6,
15+
b, strong {
16+
font-weight: $font-weight-bold;
17+
}
18+
19+
@for $index from 1 through length($headings-sizes) {
20+
h#{$index} {
21+
font-size: nth($headings-sizes, $index);
22+
}
23+
}
24+
25+
code,
26+
kbd,
27+
pre,
28+
samp {
29+
font-family: $font-family-monospace;
30+
font-size: 1em;
31+
}

scss/variables.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,30 @@ $spacer-6: nth($spacers, 6);
3434

3535
// *** components ***
3636

37+
// ** base **
38+
39+
// font defaults
40+
$font-color-default: #333 !default;
41+
42+
$font-family-default: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
43+
$font-family-monospace: Consolas, "Liberation Mono", Menlo, Courier, monospace !default;
44+
45+
$font-size-default: 14px !default;
46+
47+
$font-weight-normal: normal !default;
48+
$font-weight-bold: 600 !default;
49+
50+
$line-height-default: 1.5 !default;
51+
52+
$headings-sizes: (
53+
2em,
54+
1.8em,
55+
1.6em,
56+
1.4em,
57+
1.2em,
58+
1em
59+
) !default;
60+
3761
// ** layout **
3862

3963
// responsive container

0 commit comments

Comments
 (0)