Skip to content

Commit 1e91f2e

Browse files
committed
added some flex helpers, added new folder for typography
1 parent ed988ad commit 1e91f2e

File tree

6 files changed

+28
-42
lines changed

6 files changed

+28
-42
lines changed

lib/flex.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
justify-content: center;
44
align-items: center;
55

6-
&-vertical {
6+
&-y {
77
align-items: center;
88
}
99

10-
&-hotizontal {
10+
&-x {
1111
justify-content: center;
1212
}
1313
}

lib/headings.css

-39
This file was deleted.

lib/index.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
/* helper imports */
55
@import './align.css';
66
@import './flex.css';
7-
@import './headings.css';
87

8+
/* typography helpers */
9+
@import './typography/index.css';
10+
11+
/* color helpers */
912
@import './colors/index.css';

lib/typography/headings.css

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.size-h1 { font-size: var(--h1) }
2+
.size-h2 { font-size: var(--h2) }
3+
.size-h3 { font-size: var(--h3) }
4+
.size-h4 { font-size: var(--h4) }
5+
.size-h5 { font-size: var(--h5) }
6+
.size-h6 { font-size: var(--h6) }
7+
.size-h7 { font-size: var(--h7) }
8+
.size-h8 { font-size: var(--h8) }
9+
.size-h9 { font-size: var(--h9) }
10+
.size-h10 { font-size: var(--h10) }

lib/typography/index.css

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import './headings.css';
2+
@import './styles.css';

lib/typography/styles.css

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* transform */
2+
.font-uppercase { text-transform: uppercase }
3+
4+
/* weight */
5+
.font-slim { font-weight: var(--font-slim) }
6+
.font-light { font-weight: var(--font-light) }
7+
.font-regular { font-weight: var(--font-regular) }
8+
.font-semibold { font-weight: var(--font-semibold) }
9+
.font-bold { font-weight: var(--font-bold) }
10+
.font-extrabold { font-weight: var(--font-extrabold) }

0 commit comments

Comments
 (0)