trousers

hooks-first CSS-in-JS library, focused on semantics and runtime performance

MIT License

Downloads
558
Stars
302
Committers
4

Bot releases are visible (Hide)

trousers - https://github.com/danieldelcore/trousers/releases/tag/[email protected] Latest Release

Published by github-actions[bot] over 4 years ago

Patch Changes

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Patch Changes

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Patch Changes

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Patch Changes

  • 16fd640: Style collector instances with differing expressions will now be mounted separately
trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Patch Changes

  • 16fd640: Style collector instances with differing expressions will now be mounted separately
  • Updated dependencies [16fd640]
trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Patch Changes

  • 635f6fc: Registry no longer remounts style tags on every register. Fixes an issue with prod-mode where styles registered from the same component are overridden
trousers - https://github.com/danieldelcore/trousers/releases/tag/[email protected]

Published by github-actions[bot] over 4 years ago

Patch Changes

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Patch Changes

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Patch Changes

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Patch Changes

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Patch Changes

  • c2853fb: Object styles containing mixed value types (string/number) will now be parsed correectly
trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

Patch Changes

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

Patch Changes

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

Patch Changes

  • Updated dependencies [e6a3323]
  • Updated dependencies [c9c8187]
trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

Patch Changes

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

Patch Changes

  • Updated dependencies [e6a3323]
  • Updated dependencies [c9c8187]
trousers - https://github.com/danieldelcore/trousers/releases/tag/@trousers/[email protected]

Published by github-actions[bot] over 4 years ago

Major Changes

  • e6a3323: # Version 3 🎉

    This is Trousers' biggest update yet!

    Including:

    • Support for the CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • insertRule 🏹
    • Smaller bundles 🐭
    • Custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Removed

    • withStyles HOC (please use css prop for class components)

    Developer experience

  • c9c8187: Trousers v3!

    • CSS prop 👩‍🎤
    • Mono-repo setup and decomposition 📦
    • Object notation CSS 🍞
    • Theme CSS var package 🎨
    • prod mode support for insertRule 🏹
    • Smaller bundles 🐭
    • Support for custom style collectors 🕺
    • Trousers package with all exports for backwards compatibility

    Dev

trousers -

Published by github-actions[bot] over 4 years ago

Version 3 🎉 [e6a3323]:

79283770-2cff2b00-7efc-11ea-96af-216d246052df

Our biggest update yet!

Including:

  • Support for the CSS prop 👩‍🎤
  • Mono-repo setup and decomposition 📦
  • Object notation CSS 🍞
  • Theme CSS var package 🎨
  • insertRule 🏹
  • Smaller bundles 🐭
  • Custom style collectors 🕺
  • Trousers package with all exports for backwards compatibility

Breaking

  • withStyles HOC (please use css prop for class components)
  • styleCollector no longer accepts props and state.

You must now wrap it in a function and pass the props manually like so:

const buttonStyles = (props: ButtonProps) => 
  styleCollector('button')
    .element`
        background-color: #b3cde8;
    `.modifier(!!props.primary)`
        background-color: #f95b5b;
    `.modifier(!!props.disabled)`
        background-color: #efefef;
    `;

Developer experience