File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed
Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -108,3 +108,25 @@ Some plugins are included by default in the [`quartz.config.ts`](https://github.
108108You can see a list of all plugins and their configuration options [[ tags/plugin|here]] .
109109
110110If you'd like to make your own plugins, see the [[ making plugins|making custom plugins]] guide.
111+
112+ ## Fonts
113+
114+ Fonts can be specified as a ` string ` or a ` FontSpecification ` :
115+
116+ ``` ts
117+ // string
118+ typography : {
119+ header : " Schibsted Grotesk" ,
120+ ...
121+ }
122+
123+ // FontSpecification
124+ typography : {
125+ header : {
126+ name : " Schibsted Grotesk" ,
127+ weights : [400 , 700 ],
128+ includeItalic : true ,
129+ },
130+ ...
131+ }
132+ ```
Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ ${stylesheet.join("\n\n")}
105105 --highlight: ${ theme . colors . lightMode . highlight } ;
106106 --textHighlight: ${ theme . colors . lightMode . textHighlight } ;
107107
108- --headerFont: "${ theme . typography . header } ", ${ DEFAULT_SANS_SERIF } ;
109- --bodyFont: "${ theme . typography . body } ", ${ DEFAULT_SANS_SERIF } ;
110- --codeFont: "${ theme . typography . code } ", ${ DEFAULT_MONO } ;
108+ --headerFont: "${ getFontSpecificationName ( theme . typography . header ) } ", ${ DEFAULT_SANS_SERIF } ;
109+ --bodyFont: "${ getFontSpecificationName ( theme . typography . body ) } ", ${ DEFAULT_SANS_SERIF } ;
110+ --codeFont: "${ getFontSpecificationName ( theme . typography . code ) } ", ${ DEFAULT_MONO } ;
111111}
112112
113113:root[saved-theme="dark"] {
You can’t perform that action at this time.
0 commit comments