Help forum

Global font?

  • Dark Yellow

    1 year ago

    Is there a way to set global fonts? For the whole project instead of per page?
  • Dark Yellow

    1 year ago

    admin Team toddle
  • Tod

    1 year ago

    Great energy @Dark Yellow! Your continuous contribution to the toddle Community just made you advance to Community Level 1!
  • Lucas G

    1 year ago

    No
  • Setting things at page level is the highest level you can set right now
    🥲1
  • needtheanswers

    1 year ago

    Not sure if that was a good idea but for that reason I have a text component
  • Dark Yellow

    1 year ago

    Sounds like a bad idea @needtheanswers how do u do it for a WHOLE site
  • needtheanswers

    1 year ago

    @Dark Yellow Actually it´s working fine for me (at least for now lol). The component has attributes including pre defined sizes for h1,h2, etc.that change on mobile. Also all of my text looks the same now and I don´t set a font weight of 400 here and a font weight of 500 there as I did before. Before creating the component I got really frustrated by having to manually set up things like line clamp now I just set the attribute for that to true when I need it
    1328784658166448209-image.png
  • needtheanswers

    1 year ago

    it really saves me a lot of work. Also if I want to change the font I only have to do that once and don´t need to go to every page and component
    1328785420808618144-image.png
  • Lucas G

    1 year ago

    Does it actually display an H1 tag here or just update the size
  • Lucas G

    1 year ago

    Also, if we just set the font on the top element of a page, the entire page will use that font and we only have to set it in one place
  • needtheanswers

    1 year ago

    It just updates the size. Should I change the name in this case?
  • Lucas G

    1 year ago

    Oh the naming is not an issue per se
  • Since it’s for your attribute. But for semantic HTML, you’ll want things to have appropriate tags whenever possible
  • Otherwise it’s just all paragraphs/spans
  • Lucas G

    1 year ago

    Important if you care about SEO or even a11y stuff
  • needtheanswers

    1 year ago

    Noted! Thank you Lucas 🙂
    👍1