Socket
Socket
Sign inDemoInstall

@pzlr/stylus-inheritance

Package Overview
Dependencies
187
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @pzlr/stylus-inheritance

Replacer for Monic which makes magic of inheritance for Stylus


Version published
Weekly downloads
17
increased by54.55%
Maintainers
6
Install size
2.30 MB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 24 Aug 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc