Skip to content

Commit

Permalink
feat: add font weight
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Aug 19, 2022
1 parent 5752c3d commit 5eba5c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugin.rs
Expand Up @@ -36,6 +36,7 @@ pub fn font(rest: &str, theme: &TailwindTheme) -> Option<ObjectLit> {
simple_lookup_map(&theme.font_family, rest, "fontFamily", |s| {
s.iter().join(", ")
})
.or_else(|| simple_lookup(&theme.font_weight, rest, "fontWeight"))
}

pub fn shadow(rest: &str, theme: &TailwindTheme) -> Option<ObjectLit> {
Expand Down

0 comments on commit 5eba5c8

Please sign in to comment.