ST

Styled System

styled-system

Responsive, theme-based style props for building design systems with React

Animation
react
css-in-js
styled-components
emotion
styled-system
Animation
javascript
npm
frontend
open source
Stars
300
Weekly
793k
Open issues
4
Bundle
~25 kB

Installation

npm install styled-system

Code example

import { motion } from "styled-system";

export function Example() {
  return (
    <motion.div
      initial={{ opacity: 0, y: 12 }}
      animate={{ opacity: 1, y: 0 }}
      transition={{ duration: 0.35 }}
    >
      <h2>Animated with Styled System</h2>
    </motion.div>
  );
}

Pros & cons

Pros

  • Actively maintained by Brent Jackson
  • 793k weekly downloads. Battle tested
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 4 open issues on GitHub

FAQs

Alternatives & similar libraries