Skip to content

Commit 056e294

Browse files
author
ncpa0cpl
committed
feat: added typography classes
1 parent 300ed2a commit 056e294

5 files changed

Lines changed: 80 additions & 15 deletions

File tree

.editorconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ root = true
33
[*]
44
end_of_line = lf
55
insert_final_newline = true
6-
7-
[*.{js,json,yml}]
86
charset = utf-8
97
indent_style = space
108
indent_size = 2

docs/README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
## Components
44

55
1. [box](./components/box.md)
6-
2. [button](./components/button.md)
7-
3. [checkbox](./components/checkbox.md)
8-
4. [frame](./components/frame.md)
9-
5. [input](./components/input.md)
10-
6. [linked](./components/linked.md)
11-
7. [message](./components/message.md)
12-
8. [slider](./components/slider.md)
13-
9. [switch](./components/switch.md)
14-
10. [card](./components/card.md)
15-
11. [list](./components/list.md)
16-
12. [separator](./components/separator.md)
17-
13. [nav-sidebar](./components/nav-sidebar.md)
6+
2. [card](./components/card.md)
7+
3. [list](./components/list.md)
8+
4. [separator](./components/separator.md)
9+
5. [nav-sidebar](./components/nav-sidebar.md)
10+
6. [typography](./components/typography.md)
11+
7. [button](./components/button.md)
12+
8. [checkbox](./components/checkbox.md)
13+
9. [frame](./components/frame.md)
14+
10. [input](./components/input.md)
15+
11. [linked](./components/linked.md)
16+
12. [message](./components/message.md)
17+
13. [slider](./components/slider.md)
18+
14. [switch](./components/switch.md)
1819

1920
## Themes
2021

docs/components/typography.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[go back to Docs](../README.md)
2+
3+
# Typography
4+
5+
## Regular text
6+
7+
```html
8+
<p class="text">
9+
<!-- text -->
10+
</p>
11+
```
12+
13+
## Subtitle
14+
15+
Subtitle is slightly smaller than regular text and is dimmer.
16+
17+
```html
18+
<p class="subtitle">
19+
<!-- text -->
20+
</p>
21+
```
22+
23+
## Label
24+
25+
Label is slightly bigger and bolder than regular text and is bolder.
26+
27+
```html
28+
<p class="label">
29+
<!-- text -->
30+
</p>
31+
```
32+
33+
## Header
34+
35+
Header is much bigger than regular text and is bolder.
36+
37+
```html
38+
<p class="header">
39+
<!-- text -->
40+
</p>
41+
```

src/components/typography.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.text {
2+
font-size: 1em;
3+
font-family: "Ubuntu", sans-serif;
4+
font-weight: 500;
5+
}
6+
7+
.label {
8+
font-size: 1.1em;
9+
font-family: "Ubuntu", sans-serif;
10+
font-weight: bold;
11+
}
12+
13+
.subtitle {
14+
font-size: 0.9em;
15+
font-family: "Ubuntu", sans-serif;
16+
font-weight: 500;
17+
color: color("text-secondary");
18+
}
19+
20+
.header {
21+
font-size: 1.5em;
22+
font-family: "Ubuntu", sans-serif;
23+
font-weight: bold;
24+
}

src/main.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap");
1+
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans&family=Ubuntu:ital,wght@0,300;0,700;1,500&display=swap");
22

33
@import "variables";
44
@import "components/box";
@@ -14,6 +14,7 @@
1414
@import "components/separator";
1515
@import "components/slider";
1616
@import "components/switch";
17+
@import "components/typography";
1718

1819
* {
1920
font-family: "Ubuntu", sans-serif;

0 commit comments

Comments
 (0)