Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme.scss won't let me use @font-face #70

Open
exzizt opened this issue Jan 19, 2020 · 3 comments
Open

theme.scss won't let me use @font-face #70

exzizt opened this issue Jan 19, 2020 · 3 comments

Comments

@exzizt
Copy link

exzizt commented Jan 19, 2020

For example, adding this to my theme.scss won't let it compile due to a generic "SASS error". Any help is appreciated.

@font-face { font-family: 'BC Sans'; src: url('../assets/fonts/BCSans-Regular.woff'); }

The error:

Module build failed (from ./node_modules/antd-scss-theme-plugin/build/dist/lib/antdLessLoader.js):
Could not compile the SCSS theme file "C:\Users\Luke\source\repos\bcgov\mds\services\minespace-web\src\styles\settings\theme.scss" for the purpose of variable extraction. This is likely because it contains a Sass error.

@refucktor
Copy link

Hi @exzizt

Are you sure the error is on that line? Can you share the whole content of your theme.scss file

@aproskurnov
Copy link

I have the same problem, but i found solution. You can use in your theme.scss only $font-family variable. Your font you can load by @font-face in other scss file in project

@meishier
Copy link

@aproskurnov
the $font-family in theme.scss does not support japanese word.

$font-family: "ヒラギノ角ゴ ProN W3";

same error as @exzizt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants