fix(typography): properly pass Google font options (#1825)
This commit is contained in:
		
							parent
							
								
									270a5dc14a
								
							
						
					
					
						commit
						580c1bd608
					
				| @ -108,3 +108,25 @@ Some plugins are included by default in the [`quartz.config.ts`](https://github. | ||||
| You can see a list of all plugins and their configuration options [[tags/plugin|here]]. | ||||
| 
 | ||||
| If you'd like to make your own plugins, see the [[making plugins|making custom plugins]] guide. | ||||
| 
 | ||||
| ## Fonts | ||||
| 
 | ||||
| Fonts can be specified as a `string` or a `FontSpecification`: | ||||
| 
 | ||||
| ```ts | ||||
| // string | ||||
| typography: { | ||||
|   header: "Schibsted Grotesk", | ||||
|   ... | ||||
| } | ||||
| 
 | ||||
| // FontSpecification | ||||
| typography: { | ||||
|   header: { | ||||
|     name: "Schibsted Grotesk", | ||||
|     weights: [400, 700], | ||||
|     includeItalic: true, | ||||
|   }, | ||||
|   ... | ||||
| } | ||||
| ``` | ||||
|  | ||||
| @ -105,9 +105,9 @@ ${stylesheet.join("\n\n")} | ||||
|   --highlight: ${theme.colors.lightMode.highlight}; | ||||
|   --textHighlight: ${theme.colors.lightMode.textHighlight}; | ||||
| 
 | ||||
|   --headerFont: "${theme.typography.header}", ${DEFAULT_SANS_SERIF}; | ||||
|   --bodyFont: "${theme.typography.body}", ${DEFAULT_SANS_SERIF}; | ||||
|   --codeFont: "${theme.typography.code}", ${DEFAULT_MONO}; | ||||
|   --headerFont: "${getFontSpecificationName(theme.typography.header)}", ${DEFAULT_SANS_SERIF}; | ||||
|   --bodyFont: "${getFontSpecificationName(theme.typography.body)}", ${DEFAULT_SANS_SERIF}; | ||||
|   --codeFont: "${getFontSpecificationName(theme.typography.code)}", ${DEFAULT_MONO}; | ||||
| } | ||||
| 
 | ||||
| :root[saved-theme="dark"] { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user