The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

Asp.net Core Change Font


Dear Teams,

Actually, we download and follow your docs instructions about installing the Asp.net core theme, and we try to change the font from appsettings.json but it's not working!!
any advice? maybe we should gulp it (like standard HTML theme version?)

this what we did in appsettings.json
"Assets": {
"Favicon": "media/logos/favicon.ico",
"Fonts": [
"
],


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)

 
Deleted comment

Hi,

You just need to update the "Fonts" array and restart the server, all fonts from the array will be loaded automatically. We are including these fonts in file Starterkit/Views/Layout/Master.cshtml.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Thank you for your reply,

we actually did what you mentioned, but unfortunately the new font "google font" it's not displaying,
I also restart my Laptop as you mention.

please have a look at my array setting:

"Assets": {
"Favicon": "media/logos/favicon.ico",
"Fonts": [
"
],
"Css": [
"plugins/global/plugins.bundle.css",
"css/style.bundle.css",
"css/cz-style.css"
],



By updating the array the Fonts from the array will be included on your pages, if you want to use them you need to update SASS variable.

In file Starterkit/_keenthemes/src/metronic/demo1/sass/components/_variables.scss update $font-family-sans-serif variable and rebuild assets with Gulp or Webpack.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.