fix and simplify font settings
This commit is contained in:
parent
9f3c0ec60b
commit
34a7bf83b2
6 changed files with 15 additions and 15 deletions
|
|
@ -262,7 +262,7 @@ export const convertTheme2To3 = (data) => {
|
|||
Object.keys(data.fonts || {}).forEach((key) => {
|
||||
if (!fontsKeys.has(key)) return
|
||||
if (!data.fonts[key]) return
|
||||
const originalFont = data.fonts[key].family
|
||||
const originalFont = data.fonts[key]
|
||||
const rule = { source: '2to3' }
|
||||
|
||||
switch (key) {
|
||||
|
|
|
|||
|
|
@ -619,7 +619,7 @@ export const generateFonts = (input) => {
|
|||
rules: {
|
||||
fonts: Object.entries(fonts)
|
||||
.filter(([, v]) => v)
|
||||
.map(([k, v]) => `--${k}Font: ${v.family}`)
|
||||
.map(([k, v]) => `--${k}Font: ${v}`)
|
||||
.join(';'),
|
||||
},
|
||||
theme: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue