Pricing Blog

Global css rules

  • immaculate_tiger_15139-1407036797946560703

    Kai

    10 days ago

    Hi!
    Can I create a CSS file and include it so that it globally defines, for example, all h tags in my pages?
  • jacobkofoed-1407039544959832065

    Jacob Kofoed

    10 days ago

    You can just insert a <style> tag with a text node inside anywhere to do that. If you want it on <head> then you can add it in page settings. Either write the content yourself or link to a src.
  • andreasmoller-1407040596740407357

    Andreas Møller

    10 days ago

    You can also create a component with a single h1 and a slot inside
  • immaculate_tiger_15139-1407075311027355709

    Kai

    9 days ago

    Thanks for the possible solutions!
  • jacobkofoed-1407076444063924255

    Jacob Kofoed

    9 days ago

    Definitely go with Andrea’s solution if it solves your problem. Higher order components over global along any day.
  • andreasmoller-1407262907435057234

    Andreas Møller

    9 days ago

    My experience is that every time I write css rules like

    h1 {...}

    I end up having to override those styles later 🙂