TY

Typed Styles

typed-styles

Typed styles for cssinjs

Utilities
jss
styled-jss
react
typed-styles
flowtype
Utilities
javascript
npm
frontend
open source
Stars
13
Weekly
1.0M
Open issues
1
Bundle
~25 kB

Installation

npm install typed-styles

Code example

import { useTypedStyles } from "typed-styles";

export function Example() {
  const value = useTypedStyles();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by lttb
  • 1.0M 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
  • 1 open issues on GitHub

FAQs

Alternatives & similar libraries