philipbelesky / inter-ui

A npm package for distributing the Inter font family created by Rasmus Andersson.
https://github.com/rsms/inter/
SIL Open Font License 1.1
111 stars 6 forks source link

Add possibility to set the `font-family: "Inter"` for variable font #42

Open emattias opened 3 months ago

emattias commented 3 months ago

We want to be able to do font-family: "Inter" to use the variable font instead of having to do font-family: "InterVariable"

Something like:

@use "~inter-ui/variable" with (
  $inter-font-family: "Inter"
);
philipbelesky commented 1 month ago

Hi @emattias, thanks for the feedback and sorry for my very delayed reply. I would like to get to this eventually, but - in the meantime - I'd be happy to accept a PR for it.