Socket
Socket
Sign inDemoInstall

void-css

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

void-css

A JIT & statically compiled CSS processor


Version published
Weekly downloads
1
decreased by-91.67%
Maintainers
1
Weekly downloads
 
Created
Source

Void CSS

Void CSS is a powerful, pre and JIT compiled css processor. Void CSS uses sass (scss) inspired syntax to process css into two parts: static (unchanging) and dynamic (updates using JavaScript). This split compilation process preserves the high performance of static css and flexibility of dynamic css.

Installation

Features

  • JIT compilation
  • Scoped css by default (randomized class names)
  • High performance
  • Plugin/extension support
  • Inline media queries

Examples

Static example

.my-class {
    color: blue;
    .nested-class {
        background: red;
    }
    &.conjoined-class {
        font-size: 1.2rem;
    }
}

compiles to:

.vcss-my-class-71c3a172f5 {
    color: blue;
}
.vcss-my-class-71c3a172f5 .nested-class {
    background: red;
}
.vcss-my-class-71c3a172f5.conjoined-class {
    font-size: 1.2rem;
}
{
    myClass: 'vcss-my-class-4f70cededb'
}

How the compiler works

Compiler flow chart

FAQs

Package last updated on 30 Jan 2022

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

  • 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