
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
A scss library for creating modular css
npm i ssuit -D
ssuit consists of several mixins and functions representing modular css structures, e.g. components, modifiers etc, thus it provides an abstraction layer which hides all the ugly shit from your source.
Note:
ssuitis intented for being used at application level and is currently not suited for being incorporated into a dedicated scss library
While being designed to be compliant with SUIT, it can be configured to match classic BEM as well. However, maintained support for BEM is currently not in scope of the project.
Here's how it works at a blush...
Apart from the component structure itself typically consists of so-called "modifiers", "descendents" as well as "states". All of these are represented by mixins that take a block of scss-code. Apart from that, with every structure, correspondent functions exist by which you retrieve the actual name containing its appropriate delimiters.
@include component(Button) {
-webkit-appearance: none;
cursor: pointer;
padding: 0.25rem 0.5rem;
border-width: 1px;
background: lightgray;
border-color: lightgray;
border-style: solid;
$self: &;
@include modifier(primary) {
background: yellow;
border-color: yellow;
}
@include modifier(secondary) {
background: peachpuff;
border-color: peachpuff;
}
&#{modifier(secondary)} {
background: peachpuff;
border-color: peachpuff;
}
@include modifier(outline) {
background: white;
border-color: lightgray;
&#{modifier(primary)} {
border-color: yellow;
}
&#{modifier(secondary)} {
border-color: peachpuff;
}
}
@include descendent(label) {
text-transform: uppercase;
}
@include state(disabled) {
border-style: groove;
}
&#{state(disabled)} {
background: pink;
}
}
Which compiles to:
.Button {
-webkit-appearance: none;
cursor: pointer;
padding: 0.25rem 0.5rem;
border-width: 1px;
background: lightgray;
border-color: lightgray;
border-style: solid;
}
.Button--primary {
background: yellow;
border-color: yellow;
}
.Button--secondary {
background: peachpuff;
border-color: peachpuff;
}
.Button--secondary {
background: peachpuff;
border-color: peachpuff;
}
.Button--outline {
background: white;
border-color: lightgray;
}
.Button--outline--primary {
border-color: yellow;
}
.Button--outline--secondary {
border-color: peachpuff;
}
.Button .Button-label {
text-transform: uppercase;
}
.Button.is-disabled {
border-style: groove;
}
.Button.is-disabled {
background: pink;
}
Utilities may optionally have a value as well as a breakpoint identifier, such as sm, md, lg. By default, a value identifier gets concatenated by camelizing while breakpoint is inserted within the utility prefix (typically u-) and the actual utility name. However, this may be configured.
@include utility('background', primary) {
background-color: yellow;
}
@include utility('background', secondary) {
background-color: peachpuff;
}
@include utility('background', secondary, $breakpoint: sm) {
background-color: peachpuff;
}
Compiles to:
.u-backgroundPrimary {
background-color: yellow;
}
.u-backgroundSecondary {
background-color: peachpuff;
}
.u-sm-backgroundSecondary {
background-color: peachpuff;
}
It is recommended to insert a namespace during further pre-compilation. This could be done by postcss-namespace, postcss-modules or whatever other tool of your preference. However, there's also a namespace-mixin provided by this package which wraps its content within the given selector.
@include namespace(ns) {
@include component(Button) {
font-size: 30px;
@include modifier(primary) {
background: yellow;
border-color: yellow;
outline: 2px solid peachpuff;
}
}
}
Which results in:
.ns-Button {
font-size: 30px;
}
.ns-Button--primary {
background: yellow;
border-color: yellow;
outline: 2px solid peachpuff;
}
ssuit can be configured by global variables. Please note that if you plan to build some scss-library on top of ssuit, you shouldn't touch variables but instead pass in all your specific parameters as arguments to the individual mixins and functions.
$namespace: '' !default;
$namespace-delimiter: '-' !default;
$modifier-delimiter: '--' !default;
$modifier-style: '' !default;
$modifier-value-delimiter: '' !default;
$state-prefix: 'is-' !default;
$descendent-delimiter: '-' !default;
$utility-prefix: 'u-' !default;
$utility-style: camelCase !default;
$utility-breakpoint-delimiter: '-' !default;
$utility-value-delimiter: '' !default;
In order to run specs, issue the following from your terminal:
npm test
Run dev-server
npm start
Create a build (for whatever purpose)
npm run build
FAQs
A scss library for creating modular css
We found that ssuit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.