Join the Webstudio community

Updated 4 weeks ago

Default CSS

What's the best way to modify/remove some of the default CSS built into WS like <p> and <h#> elements? I would like to be able to set a global paragraph style without having to add a class to each paragraph.
Attachment
Screenshot_from_2024-09-17_10-02-13.jpg
p
J
B
3 comments
Set a token for the body. You give the token the global things such as font, size etc.. This is then applied to all elements in it
Paso is correct for the styles he mentioned but that wont remove default margin... those are actually browser default styles (Webstudio isn't setting them). I personally add this in my global css

Plain Text
* {
  margin: 0;
}


It says remove default margin from every single element
But it will not be reflected in style panel
Add a reply
Sign up and join the conversation on Discord