Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jss-preset-default

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-preset-default

Default preset for JSS with selected plugins.

  • 10.9.1-alpha.2
  • next
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
128K
decreased by-56.61%
Maintainers
1
Weekly downloads
 
Created

What is jss-preset-default?

The jss-preset-default package provides a set of default plugins for JSS (JavaScript Style Sheets). It includes a collection of plugins that help with various aspects of styling in JavaScript, such as vendor prefixing, nested selectors, and more.

What are jss-preset-default's main functionalities?

Vendor Prefixing

Automatically adds vendor prefixes to CSS properties to ensure compatibility across different browsers.

const jss = create(preset());
const styles = {
  button: {
    display: 'flex',
    justifyContent: 'center'
  }
};
const { classes } = jss.createStyleSheet(styles).attach();

Nested Selectors

Allows the use of nested selectors within your styles, similar to how you would use them in Sass or Less.

const jss = create(preset());
const styles = {
  container: {
    '&:hover': {
      backgroundColor: 'blue'
    }
  }
};
const { classes } = jss.createStyleSheet(styles).attach();

Global Styles

Enables the definition of global styles that apply to the entire document.

const jss = create(preset());
const styles = {
  '@global': {
    body: {
      margin: 0,
      padding: 0
    }
  }
};
const { classes } = jss.createStyleSheet(styles).attach();

Other packages similar to jss-preset-default

Keywords

FAQs

Package last updated on 24 Apr 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc