Socket
Socket
Sign inDemoInstall

jss-plugin-props-sort

Package Overview
Dependencies
6
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jss-plugin-props-sort

JSS plugin that ensures style properties extend each other instead of override


Version published
Weekly downloads
1.9M
decreased by-4.58%
Maintainers
1
Install size
1.92 MB
Created
Weekly downloads
 

Package description

What is jss-plugin-props-sort?

The jss-plugin-props-sort npm package is a plugin for JSS (JavaScript Style Sheets) that allows for sorting CSS properties in a predefined order. This can help in maintaining a consistent style in the stylesheet code, making it easier to read and manage.

What are jss-plugin-props-sort's main functionalities?

Sorting CSS properties

This feature allows developers to automatically sort CSS properties in their JSS stylesheets. The code sample demonstrates how to create a stylesheet with unsorted properties and apply the jss-plugin-props-sort to sort them according to a specific order.

{
  jss.createStyleSheet({
    button: {
      color: 'blue',
      margin: 5,
      background: 'red',
      border: '1px solid black'
    }
  }, {
    plugins: [jssPluginPropsSort()]
  }).attach();
}

Other packages similar to jss-plugin-props-sort

Changelog

Source

10.10.0 (2023-2-9)

Improvements

  • [jss] Added support for @container query 1637

Readme

Source

jss-plugin-props-sort

Version License Downlodas Size Dependencies

JSS plugin that ensures style properties extend each other instead of override

See our website jss-plugin-props-sort for more information.

Install

Using npm:

npm install jss-plugin-props-sort

or using yarn:

yarn add jss-plugin-props-sort

Keywords

FAQs

Last updated on 09 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc