Closed acharlop closed 2 years ago
@rogden any feedback?
@acharlop Thanks for this! Taking a look now!
@rogden Any thoughts on how to handle fonts defined in the config that aren't provided? Checking them with something https://fontfaceobserver.com/ seems to be the nice thing to do, but for now I'm just adding a note to the readme
@acharlop I'm happy with a note in the readme for now.
What are your thoughts on handling local fonts vs fonts loaded from Google or another external source? In theory if a css url is specified to a local css file i.e. http://localhost:3333/customfonts.css and that file contains the @font-face rulesets, it should work. Though I'm not sure how the pathing to the font files would need to be configured. I'm fine with adding a note that only Google fonts have been tested thus far if getting local fonts to work is a pain. We can revisit local fonts in another release if necessary.
I think for now fonts from URLs is a good start. If there's a request for local files I'm happy to figure something out.
Fixed. Thanks for the great library glad I could help out 🙏
Thanks for this feature! Is it possible to make the config viewer actually use the provided font as the main font for all text on the page as well?
@fabis94 from what I understand the page doesn't really use the passed in tailwind config but it's own config so it would require some very different work to theme the internal config
Jumped straight into coding, kind of quick and dirty. Any changes you think of just let me know. Should I run
prepublish
version
also or do you want to do that?