From 220c23e842d96cd01d7a2ecd7bdcdbdbc3336ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Manteaux?= Date: Wed, 3 Nov 2021 15:09:01 +0100 Subject: [PATCH] Fix roboto usage with bold --- templates/admin/assets/scss/app.scss | 3 +++ templates/admin/src/index.tsx | 1 - templates/front/assets/scss/app.scss | 3 +++ templates/front/src/index.tsx | 1 - 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/admin/assets/scss/app.scss b/templates/admin/assets/scss/app.scss index 7c629c42..6fa7d36d 100644 --- a/templates/admin/assets/scss/app.scss +++ b/templates/admin/assets/scss/app.scss @@ -1,4 +1,7 @@ @import 'variables'; +@import '@fontsource/roboto/latin-100.css'; +@import '@fontsource/roboto/latin-400.css'; +@import '@fontsource/roboto/latin-700.css'; @import 'root'; @import 'popin'; @import 'forms'; diff --git a/templates/admin/src/index.tsx b/templates/admin/src/index.tsx index efbc7b61..37b7e743 100644 --- a/templates/admin/src/index.tsx +++ b/templates/admin/src/index.tsx @@ -2,7 +2,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; // eslint-disable-next-line @typescript-eslint/no-unused-vars import { CssBaseline } from '@mui/material'; -import '@fontsource/roboto'; import 'react-toastify/dist/ReactToastify.css'; import 'micro-observables/batchingForReactDom'; import { BrowserRouter as Router } from 'react-router-dom'; diff --git a/templates/front/assets/scss/app.scss b/templates/front/assets/scss/app.scss index 073cb3b1..ba664b56 100644 --- a/templates/front/assets/scss/app.scss +++ b/templates/front/assets/scss/app.scss @@ -1,4 +1,7 @@ @import 'variables'; +@import '@fontsource/roboto/latin-100.css'; +@import '@fontsource/roboto/latin-400.css'; +@import '@fontsource/roboto/latin-700.css'; @import 'root'; @import 'popin'; @import 'forms'; diff --git a/templates/front/src/index.tsx b/templates/front/src/index.tsx index 3667bdef..8a0a98b8 100644 --- a/templates/front/src/index.tsx +++ b/templates/front/src/index.tsx @@ -1,6 +1,5 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import '@fontsource/roboto'; import 'micro-observables/batchingForReactDom'; import { BrowserRouter as Router } from 'react-router-dom'; import { Logger } from 'simple-logging-system';