design: add roboto slab font
This commit is contained in:
8 files changed
+45
-11
No files matched your search
@@ -55,16 +55,19 @@
|
||||
$effect(() => {
|
||||
if (settings) {
|
||||
document.documentElement.classList.remove(
|
||||
'font-inter',
|
||||
'font-sans',
|
||||
'font-system',
|
||||
'font--inter',
|
||||
'font--sans',
|
||||
'font--system',
|
||||
)
|
||||
document.documentElement.classList.add(
|
||||
// i should be fired for nested ternaries
|
||||
settings.font == 'inter'
|
||||
? 'font-inter'
|
||||
? 'font--inter'
|
||||
: settings.font == 'system'
|
||||
? 'font-system'
|
||||
: 'font-sans',
|
||||
? 'font--system'
|
||||
: settings.font == 'serifs'
|
||||
? 'font--serifs'
|
||||
: 'font--sans',
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -287,6 +287,7 @@
|
||||
<Option value="inter">Inter</Option>
|
||||
<Option value="system">System UI</Option>
|
||||
<Option value="browser">Browser</Option>
|
||||
<Option value="serifs">Roboto Slab</Option>
|
||||
</Select>
|
||||
</Setting>
|
||||
<ToggleSetting
|
||||
|
||||
Reference in new issue
Block a user