epicmaxco / vuestic-ui

Free and Open Source UI Library for Vue 3 🤘
https://vuestic.dev
MIT License
3.31k stars 321 forks source link

Font Family should inherit global font in case there is no Source Sans font installed by default #4218

Open m0ksem opened 1 month ago

m0ksem commented 1 month ago

In case if user want to install a different font we probably can react on it without any additional configuration from user.

Right now, user must set --va-font-familly css variable if Source Sans Pro is not installed.

:root {
  --va-font-family: Inter;
}

We can change --va-font-family default value to Source Sand Pro, inherit - I think what it must do is to use Source Sand Pro by default, but in case if font is not available, we need to inherit font from page. User still able to override font familly, but by default we will inherit it from body (most likely from body, if font wasn't overridden somewhere else).

I think it is much more human solution than setting to sans-serif if font is not installed.

More context: https://github.com/epicmaxco/vuestic-ui/issues/4213

In this task:

shuvrojit commented 1 month ago

Hey, assign me. I will do it.