fix(ui): Nautiline theme font path (#4983)
* fix: Nautiline theme font path * refactor font path
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
// ============================================
|
// ============================================
|
||||||
|
|
||||||
const ACCENT_COLOR = '#009688' // Material teal
|
const ACCENT_COLOR = '#009688' // Material teal
|
||||||
|
const UNBOUNDED_FONT_PATH = 'fonts/Unbounded-Variable.woff2'
|
||||||
|
|
||||||
// ============================================
|
// ============================================
|
||||||
// DESIGN TOKENS
|
// DESIGN TOKENS
|
||||||
@@ -69,7 +70,7 @@ const tokens = {
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 300 800;
|
font-weight: 300 800;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url('/fonts/Unbounded-Variable.woff2') format('woff2');
|
src: url('${UNBOUNDED_FONT_PATH}') format('woff2');
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
@@ -275,7 +276,7 @@ const NautilineTheme = {
|
|||||||
fontStyle: 'normal',
|
fontStyle: 'normal',
|
||||||
fontWeight: '300 800',
|
fontWeight: '300 800',
|
||||||
fontDisplay: 'swap',
|
fontDisplay: 'swap',
|
||||||
src: "url('/fonts/Unbounded-Variable.woff2') format('woff2')",
|
src: `url('${UNBOUNDED_FONT_PATH}') format('woff2')`,
|
||||||
},
|
},
|
||||||
body: {
|
body: {
|
||||||
backgroundColor: colors.background.primary,
|
backgroundColor: colors.background.primary,
|
||||||
@@ -794,7 +795,7 @@ const NautilineTheme = {
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 300 800;
|
font-weight: 300 800;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url('/fonts/Unbounded-Variable.woff2') format('woff2');
|
src: url('${UNBOUNDED_FONT_PATH}') format('woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-jinke-music-player-main {
|
.react-jinke-music-player-main {
|
||||||
|
|||||||
Reference in New Issue
Block a user