Skip to content

Commit

Permalink
Heading: cambio updates (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvuerings committed Mar 25, 2024
1 parent 3715437 commit 150afae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/healthy-kangaroos-happen.md
@@ -0,0 +1,5 @@
---
"@cambly/syntax-core": minor
---

Heading: use bold for 600
2 changes: 1 addition & 1 deletion packages/syntax-core/src/Heading/Heading.tsx
Expand Up @@ -9,7 +9,7 @@ function cambioWeight({
fontStyle: "serif" | "sans-serif";
size: 400 | 500 | 600 | 700 | 800 | 900 | 1000 | 1100;
}): "bold" | "medium" | "regular" {
if (fontStyle === "serif" && [400, 500].includes(size)) {
if (fontStyle === "serif" && [400, 500, 600].includes(size)) {
return "bold";
} else if (fontStyle === "serif") {
return "medium";
Expand Down

0 comments on commit 150afae

Please sign in to comment.