Jekins / styled-kit

StyledKit is a library that provides convenient tools for working with Styled Components and Linaria.

Home Page:https://codesandbox.io/s/interesting-monad-c954o5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StyledKit

StyledKit is an innovative library designed specifically to make working with styled-components easier.

It provides convenient tools and features that allow developers to add modifiers to components quickly and efficiently, greatly speeding up the styling process.

Packages:

@styled-kit/mods - allows you to write modifiers for Styled Components and with autocomplete. As well as automatically generate for them typing.

export const StyledComponent = styled.div<Mod<'size'>>`
    ${mods.size.small`
        font-size: 14px;
    `};
    
    ${mods('size', 'small')`
        font-size: 14px;
    `};
`;

And many other options.

About

StyledKit is a library that provides convenient tools for working with Styled Components and Linaria.

https://codesandbox.io/s/interesting-monad-c954o5

License:MIT License


Languages

Language:TypeScript 94.6%Language:JavaScript 4.7%Language:HTML 0.7%