Revert docs body font to Inter (#790)
* Revert docs body font to Inter - Adds Inter V4 Beta variable font files - Main docs title in the nav retains Recursive as its typeface - Updates text styling to use app-aligned typography - Updates code blocks, now with distinct borders! - Cleans up code blocks, moves like parts together * font-weight fix - Aligns with app font weight for titles
This commit is contained in:
		
							parent
							
								
									f6dc26eeb5
								
							
						
					
					
						commit
						81e4b6c2cf
					
				
							
								
								
									
										
											BIN
										
									
								
								docs/assets/fonts/Inter-Italic.var.woff2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/assets/fonts/Inter-Italic.var.woff2
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								docs/assets/fonts/Inter.var.woff2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/assets/fonts/Inter.var.woff2
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -1,7 +1,4 @@ | |||||||
| /* :root { | /* Font style definitions */ | ||||||
|     --color-wr-lightred: #E3353F; |  | ||||||
|     --color-wr-darkred: #A2001D; |  | ||||||
| } */ |  | ||||||
| 
 | 
 | ||||||
| @font-face { | @font-face { | ||||||
|     font-family: 'Recursive'; |     font-family: 'Recursive'; | ||||||
| @ -11,39 +8,51 @@ | |||||||
|     font-feature-settings: "ss12"; |     font-feature-settings: "ss12"; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @font-face { | ||||||
|  |     font-family: 'Inter'; | ||||||
|  |     font-weight: 100 900; | ||||||
|  |     font-display: swap; | ||||||
|  |     font-style: normal; | ||||||
|  |     src: url('../assets/fonts/Inter.var.woff2') format('woff2'); | ||||||
|  |     font-feature-settings: "ss03"; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | @font-face { | ||||||
|  |     font-family: 'Inter'; | ||||||
|  |     font-weight: 100 900; | ||||||
|  |     font-display: swap; | ||||||
|  |     font-style: italic; | ||||||
|  |     src: url('../assets/fonts/Inter-Italic.var.woff2') format('woff2'); | ||||||
|  |     font-feature-settings: "ss03"; | ||||||
|  | } | ||||||
|  |    | ||||||
| :root { | :root { | ||||||
|     --md-code-font: "Recursive", monospace; |     --md-code-font: "Recursive", monospace; | ||||||
|     --md-text-font: "Recursive", "Helvetica", "Arial", sans-serif; |     --md-text-font: "Inter", "Helvetica", "Arial", sans-serif; | ||||||
| } |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| code, pre, kbd { |  | ||||||
|     font-variation-settings: "MONO" 1; |  | ||||||
|     font-feature-settings: "ss01", "ss02", "ss08"; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .md-typeset h1, h2, h3, h4, h5 { |  | ||||||
|     color: var(--md-primary-fg-color--dark); |  | ||||||
|     font-family: var(--md-code-font); |  | ||||||
|     font-variation-settings: "MONO" 0.51; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .md-typeset h1, h2, h3 { |  | ||||||
|     font-weight: 650 !important; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| [data-md-color-scheme="webrecorder"] { | [data-md-color-scheme="webrecorder"] { | ||||||
|     --md-primary-fg-color: #008873; |     --md-primary-fg-color: #008873; | ||||||
|     --md-primary-fg-color--light: #008873; |     --md-primary-fg-color--light: #008873; | ||||||
|     --md-primary-fg-color--dark: #003c32; |     --md-primary-fg-color--dark: #003c32; | ||||||
|     --md-default-bg-color--light: #f9f5eb; |     --md-typeset-color: black; | ||||||
|     --md-default-bg-color: #f9f5eb; |  | ||||||
|     --md-code-bg-color: #fff; |  | ||||||
|     --md-accent-fg-color: #01b297; |     --md-accent-fg-color: #01b297; | ||||||
|     --md-typeset-a-color: #005447; |     --md-typeset-a-color: #005447; | ||||||
|      |     --md-code-bg-color: #F9FAFB; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | /* Nav changes */ | ||||||
|  | 
 | ||||||
|  | .md-header__title { | ||||||
|  |     font-family: var(--md-code-font); | ||||||
|  |     font-variation-settings: "MONO" 0.51; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .md-header__title--active { | ||||||
|  |     font-family: var(--md-text-font); | ||||||
|  |     font-weight: 600; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| /* Custom menu item hover */ | /* Custom menu item hover */ | ||||||
| 
 | 
 | ||||||
| .md-tabs__link { | .md-tabs__link { | ||||||
| @ -53,11 +62,10 @@ code, pre, kbd { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .md-tabs__link:hover { | .md-tabs__link:hover { | ||||||
|     font-weight: 650; |     font-weight: 500; | ||||||
|      |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* Custom Typography Rules */ | /* Custom body typography rules */ | ||||||
| 
 | 
 | ||||||
| .md-typeset a { | .md-typeset a { | ||||||
|     text-decoration: underline; |     text-decoration: underline; | ||||||
| @ -66,3 +74,23 @@ code, pre, kbd { | |||||||
| .headerlink { | .headerlink { | ||||||
|     text-decoration: none!important; |     text-decoration: none!important; | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | code, pre, kbd { | ||||||
|  |     font-variation-settings: "MONO" 1; | ||||||
|  |     font-feature-settings: "ss01", "ss02", "ss08"; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | code { | ||||||
|  |     border-width: 1px; | ||||||
|  |     border-color: #D1D5DB; | ||||||
|  |     border-style: solid; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .md-typeset h1, h2, h3, h4, h5 { | ||||||
|  |     color: black; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .md-typeset h1, h2, h3 { | ||||||
|  |     font-weight: 650 !important; | ||||||
|  |     font-variation-settings: "OPSZ" 35; | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user