When i use styled-components to develop my component library, how can i use one root style such as
box-sizing: border-box;
outline: 0;
margin: 0;
padding: 0;
border: 0;
in the whole libary.
I add the global style manual now, by use css like this:
export const global = css`
box-sizing: border-box;
outline: 0;
margin: 0;
padding: 0;
border: 0;
`
const RealButton = styled.button`
${global};
`
libary will export lots of components, am i must add the global style manual when export each component. or there's a simple way to achieve it.