Skip to content

Releases: siddharthkp/css-constructor

Full CSS support πŸ’„πŸ’ͺ

12 Dec 19:51
Compare
Choose a tag to compare

πŸ’„ now supports

βœ… props
βœ… pseudo selectors
βœ… media queries
βœ… nested elements
βœ… auto vendor prefix

All these new features at the same size of 1.2K!

@css`
    font-size: 16px;
    text-align: center;

    /* Use props in your CSS */
    color: {this.props.color};

    /* Pseudo selectors */
    &:hover {
        color: #FFF;
    }

    /* Nested elements */
    img {
        border-radius: 50%;
    }
    #handle {
        margin-top: 20px;
    }

    /* Media queries */
    @media (max-width: 600px) {
        & {font-size: 18px;}
    }
`

Updated features chart:

πŸŽ€ Supports real css

πŸ”₯ use props in css

πŸ”Ό Attaches styles to the highest element in your component

πŸ™‹ Uses classes instead of inline styles

πŸ‘Ά Super tiny: only 1.2K gzipped

πŸŒ€ pseudo selectors

πŸ“± media queries support

πŸ‘ͺ nested css

πŸ’» vendor prefixes

πŸ’„ Official library emoji

Thanks to thysultan for stylis

Inline styles replaced by classes πŸ’„πŸŽ‰

11 Dec 20:55
Compare
Choose a tag to compare

πŸ’„ now generates classes and attaches them as className to the component

Bonus: It's 0.2K smaller now! Standing at just 1.2K

Updated features chart:

πŸŽ€ Supports real css

πŸ”₯ use props in css

πŸ”Ό Attaches styles to the highest element in your component

πŸ™‹ Uses classes instead of inline styles

πŸ‘Ά Super tiny: only 1.4K1.2K gzipped

πŸ’„ Offical library emoji

Coming soon

πŸŒ€ pseudo selectors

πŸ“± media queries support

πŸ’» vendor prefixes

πŸ‘ͺ nested css

πŸ’„ πŸŽ‰

11 Dec 16:04
Compare
Choose a tag to compare

Features:

πŸŽ€ Supports real css

πŸ”₯ use props in css

πŸ”Ό Attaches inline styles to the highest element in your component

πŸ‘Ά Super tiny: only 1.4K gzipped

πŸ’„ Offical library emoji

Coming soon

πŸ™‹ classes instead of inline styles

πŸŒ€ pseudo selectors

πŸ“± media queries support

πŸ’» vendor prefixes

πŸ‘ͺ nested css