Socket
Book a DemoInstallSign in
Socket

@pzlr/stylus-inheritance

Package Overview
Dependencies
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pzlr/stylus-inheritance

Replacer for Monic which makes magic of inheritance for Stylus

3.3.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

stylus-inheritance-loader

Preloader for *.styl files to reduce LOC number needed for inheritance.

Examples

Block

/b-button.styl

@import "super/i-block/i-block.styl"

$p = {
 size: (xxs 0.6) (xs 0.8) (s 0.9) (m 1) (l 1.2) (xl 1.4) (xxl 1.8)
 background: transparent
 color: #000
}

b-button extends i-block
  &__content
    background $p.background
    color $p.color

Modifier

/b-button_theme_light.styl

$p = {
 color: #CCC
}

b-button_theme_light extends b-button
  /theme &__content
    color $p.color

Keywords

pzlr

FAQs

Package last updated on 24 Aug 2023

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.