update fonts
This commit is contained in:
parent
efc4bac978
commit
e0c69209f7
1099
dist/index.js
vendored
1099
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -7,6 +7,7 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": "./dist/index.js"
|
".": "./dist/index.js"
|
||||||
},
|
},
|
||||||
|
"files": ["dist"],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build"
|
"build": "vite build"
|
||||||
},
|
},
|
||||||
|
|||||||
Binary file not shown.
@ -1,5 +1,6 @@
|
|||||||
import { extendTheme, withDefaultColorScheme } from "@chakra-ui/react";
|
import { extendTheme, withDefaultColorScheme } from "@chakra-ui/react";
|
||||||
import { Global } from "@emotion/react";
|
import { Global } from "@emotion/react";
|
||||||
|
import estedadFont from "../assets/fonts/estedad.woff2?url";
|
||||||
|
|
||||||
export const theme = extendTheme(
|
export const theme = extendTheme(
|
||||||
{
|
{
|
||||||
@ -11,12 +12,13 @@ export const theme = extendTheme(
|
|||||||
},
|
},
|
||||||
body: {
|
body: {
|
||||||
bg: "white",
|
bg: "white",
|
||||||
|
fontFamily: "'Estedad', sans-serif",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
fonts: {
|
fonts: {
|
||||||
heading: "Estedad",
|
heading: "'Estedad', sans-serif",
|
||||||
body: "Estedad",
|
body: "'Estedad', sans-serif",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
withDefaultColorScheme({ colorScheme: "facebook" }),
|
withDefaultColorScheme({ colorScheme: "facebook" }),
|
||||||
@ -26,9 +28,9 @@ export const Fonts = () => (
|
|||||||
<Global
|
<Global
|
||||||
styles={`
|
styles={`
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: Estedad;
|
font-family: 'Estedad';
|
||||||
src: url('/fonts/estedad.woff2') format('woff2');
|
src: url("${estedadFont}") format("woff2");
|
||||||
font-weight: 400;
|
font-weight: 100 900;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -63,11 +63,11 @@ export function BiProvider({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ChakraProvider theme={theme}>
|
<ChakraProvider theme={theme}>
|
||||||
|
<Fonts />
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
{updateChecker && <UpdateChecker {...updateCheckerProps} />}
|
{updateChecker && <UpdateChecker {...updateCheckerProps} />}
|
||||||
<KeycloakProvider config={config.keycloak} loading={loading}>
|
<KeycloakProvider config={config.keycloak} loading={loading}>
|
||||||
<PermissionProvider config={config.permission} loading={loading}>
|
<PermissionProvider config={config.permission} loading={loading}>
|
||||||
<Fonts />
|
|
||||||
{children}
|
{children}
|
||||||
</PermissionProvider>
|
</PermissionProvider>
|
||||||
</KeycloakProvider>
|
</KeycloakProvider>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user