Skip to content

Commit 549b2cc

Browse files
committed
defines font monospace in theme
1 parent 23d9317 commit 549b2cc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const fonts = {
2+
monospace:
3+
"SFMono-Regular, Consolas, 'Roboto Mono', 'Droid Sans Mono', 'Liberation Mono', Menlo, Courier, monospace",
4+
}
5+
6+
export default fonts

src/@chakra-ui/gatsby-plugin/foundations/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import colors from "./colors"
2+
import fonts from "./fonts"
23
import shadows from "./shadows"
34

45
// Check the following link to see all the possible options:
56
// https://github.com/chakra-ui/chakra-ui/blob/main/packages/theme/src/foundations/index.ts
67
const foundations = {
78
colors,
9+
fonts,
810
shadows,
911
}
1012

0 commit comments

Comments
 (0)