A lib for generating Style Sheets with JavaScript. JSS is an authoring tool for CSS which allows you to use JavaScript to describe styles in a declarative, conflict-free and reusable way. It can compile in the browser, server-side or at build time in Node. JSS is framework agnostic. It consists of multiple packages, the core, plugins, framework integrations and others. If you’re interested in playing around with JSS, you can use an online code playground. Try a Hello World example on CodeSandbox. JSS generates actual CSS, not Inline Styles. It supports every existing CSS feature. CSS rules are created once and reused across the elements using its class name in contrary to Inline Styles. Also, when DOM elements get updated, previously created CSS rules are applied. JSS generates unique class names by default. It allows avoiding the typical CSS problem, where everything is global by default. It completely removes the need for naming conventions.
Features
- Collision-free selectors
- Ease of removal and modification
- User-controlled animations
- Expressive syntax
- Full isolation
- JavaScript build pipeline