Hi! Can I create a CSS file and include it so that it globally defines, for example, all h tags in my pages?
Jacob Kofoed
10 months 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.
Andreas Møller
10 months ago
You can also create a component with a single h1 and a slot inside
Kai
10 months ago
Thanks for the possible solutions!
Jacob Kofoed
10 months ago
Definitely go with Andrea’s solution if it solves your problem. Higher order components over global along any day.
Andreas Møller
10 months ago
My experience is that every time I write css rules like h1 {...} I end up having to override those styles later 🙂