😉

Styled-componentで優先度(Specificity)はあげたいけど!importantは使いたくない

2024/03/12に公開

TL;DR

const Title = styled.h1`
&&& {
    margin: 24px;
}
`

参考文献

https://styled-components.com/docs/faqs#how-can-i-override-styles-with-higher-specificity

https://udomomo.hatenablog.com/entry/2019/11/06/145717

Discussion