Skip to content

Commit 336b7a3

Browse files
authored
Merge pull request #34 from Johnsoct/typography
Added global override functionality for type variables
2 parents a3a28de + 5c14cf4 commit 336b7a3

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

lib/index.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/modules/typography/_constants.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
@use "../constants/breakpoints.scss" as *;
22

3-
$base-font-size: 16px; // DOCS: basefontsize
4-
$base-line-height: 1.5; // DOCS: lineheight
3+
// DOCS: overrides
4+
$base-font-size: 16px !default; // DOCS: basefontsize
5+
$base-line-height: 1.5 !default; // DOCS: lineheight
56
$heading-letter-spacing: calc($base-font-size * -0.03); // DOCS: letterspacing
6-
$heading-line-height: 1.25; // DOCS: lineheight
7+
$heading-line-height: 1.25 !default; // DOCS: lineheight
78
$perfect-fifth: 1.5;
89
$ru: $base-font-size * $perfect-fifth;
910
$weights: (

0 commit comments

Comments
 (0)