Join the Webstudio community

Updated last year

Box component default

At a glance

The community member who created the post questions whether the font color of a box component should be set to black or left unset to inherit the color. In the comments, another community member explains that the default color is canvastext, which is black, and that the color property is inheritable, so the color can be changed by modifying the parent element. There is no explicitly marked answer to the original question.

Useful resources
When creating a box component, it has a defined (font) color of black. Shouldn't it be not set or inherit?
B
2 comments
inherit is not default in color. It's canvastext which is just black.
https://developer.mozilla.org/en-US/docs/Web/CSS/color#formal_definition
But the property is inheritable so you can change parent
Add a reply
Sign up and join the conversation on Discord