exah / pss

Design system utils for component based CSS-in-JS libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Design system utils for component based CSS-in-JS libraries

πŸ“¦ Install

$ yarn add pss

πŸ€” Why?

Because css-in-js and design systems are all the hype right now! But seriously, we want to:

  • Define our styling system (grid, colors, fonts, sizes, breakpoints, etc.) once and reuse it throughout the project
  • Style our components using concise and easy-to-memorize props
  • Have a convenient way to define alternative styles for different screen sizes

πŸ“– API

πŸ”— Links

Sites

Packages

  • pss-components β€” Components created with pss
  • polished β€” "A lightweight toolset for writing styles in JavaScript"

Alternatives

  • styled-system β€” "Design system utilities for styled-components and other css-in-js libraries." Similiar project and probably better.
  • prop-styles β€” "Utility to create flexible React components which accept props to enable/disable certain styles."

MIT Β© John Grishin

About

Design system utils for component based CSS-in-JS libraries

License:MIT License


Languages

Language:JavaScript 98.6%Language:Handlebars 1.4%