Skip to content

Full CSS support πŸ’„πŸ’ͺ

Latest
Compare
Choose a tag to compare
@siddharthkp siddharthkp released this 12 Dec 19:51
· 38 commits to master since this release

πŸ’„ 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