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

nscss

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nscss - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

2

package.json
{
"name": "nscss",
"version": "0.1.10",
"version": "0.1.11",
"description": "CSS for Components",

@@ -5,0 +5,0 @@ "main": "dist/src/nscss.js",

@@ -481,2 +481,78 @@ # NSCSS - CSS for Components

## CSS Syntax proposal
```css
/*************************************/
/*button.ns.css*/
.Button {
/* define root class*/
-ns-root: true;
/* auto state and mapped state*/
-ns-states: floating, loading("[data-Button-loading]");
/* grab color from global theme */
color: theme(BGColor);
}
.Icon {}
/*************************************/
/*************************************/
/*toggle-button.ns.css*/
.ToggleButton {
-ns-root: true;
/* imports the root type of button */
-ns-type: './button';
/* extend states */
-ns-states: toggled, focus;
/*mixin multiple mixins*/
-ns-mixin: shitmix("Yoo!!"), beatmix("Yoo!!");
/* mixin short hand */
-ns-mixin-gridmix: 1, 2, 3;
/* mixin long hand */
-ns-mixin-gridmix-gutter: 1;
color: green;
}
/* target inner part*/
.ToggleButton::Icon {
color: gold;
}
/* native states */
.ToggleButton:hover { color: black }
/* state from button */
.ToggleButton:loading { color: black }
.ToggleButton:floating { color: red }
/* state from toggle button */
.ToggleButton:toggled { color: green }
.ToggleButton:focus { color: blue }
/*************************************/
/*************************************/
/*gallery.ns.css*/
.Gallery {
-ns-root: true;
}
.GalleryToggleButton {
/* used on inner class */
-ns-type: './toggle-button';
}
/*************************************/
```
### TBD

@@ -483,0 +559,0 @@

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