konstaui / konstaui.com

Konsta UI website
https://konstaui.com
30 stars 13 forks source link

Default font change steps are incorrect #10

Open erangac opened 2 years ago

erangac commented 2 years ago

Configuration is not correct to change default font. Refer document link https://konstaui.com/react/fonts

The currently in the document are below. There aren't properties called ios & material

You can override them in tailwind.config.js in the following way:

const konstaConfig = require('konsta/config');

module.exports = konstaConfig({
  theme: {
    fontFamily: {
      ios: 'my-ios-font',
      material: 'my-material-font',
    }
  }
  ...
});