Skip to content

Commit

Permalink
feat(frontend): add heading styles (#77)
Browse files Browse the repository at this point in the history
According to this file structure...

```
|-- semantic/
|   |-- src/
|       |-- elements/
|           |-- _headings.scss
|           |-- ...
|-- utilities-class/
|   |-- src/
|       |-- components/
|           |-- _typography.scss
|           |-- ...
```

I think that styles related to headings in the `_typography.scss`
partial should be removed in order to avoid style duplication (#75).
  • Loading branch information
ehmenzala authored Apr 29, 2024
2 parents 7e3defa + 4b425a0 commit 31756e0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/semantic/src/elements/_headings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
h1 {
font-size: px-to-rem(24px);
}

h2 {
font-size: px-to-rem(22px);
}

h3 {
font-size: px-to-rem(18px);
}

h4 {
font-size: px-to-rem(16px);
}

h5 {
font-size: px-to-rem(12px);
}

h6 {
font-size: px-to-rem(10px);
}

0 comments on commit 31756e0

Please sign in to comment.