New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

klassco

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

klassco

Minify/Auto-replace/Abstract all CSS classnames in your components and create high level utilities

latest
Source
npmnpm
Version
1.0.6-2
Version published
Maintainers
1
Created
Source

Klassco

Just as components helps developpers abstract and avoid repetition, Klassco does the same to your css classnames inside your components.


How Does Klassco Work?

There are three available modes, each independent of the others. This means that if you're only interested in reducing the bundle size, you can use Klassco solely for that purpose.

  • Build: It optimizes the build size by removing all duplicate combos.

  • Dev: It scans all of your HTML files, JavaScript components, and other templates for classname combo duplications to help you reuse styles and create higher abstractions.

  • Watch: It automatically replaces classname combinations with new utilities as you type, using the ones you have created or loaded.


Klassco uses mathematical combinations to thoroughly explore and analyze every imaginable combination of your CSS classnames, to help you identify subtle patterns, spot redundancies, and create a carefully curated selection of higher level utilities — designed to save you time and effort.


Documentation

For full documentation, visit klassco.cipherlogs.com


Installation

The simplest and fastest way is to use npm

$ npm install -g klassco

If you want to compile from source, you’ll need to have a Haskell compiler installed (or stack). Once you have the compiler, you can run the following commands to build and execute the program

$ stack build
$ stack exec Klassco-exe

Contribution

If you're passionate about clarity and want to make the project more accessible to everyone, contributing to the documentation is a fantastic way to get involved.

See the CONTRIBUTING file for details.


License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.

Keywords

design-system

FAQs

Package last updated on 02 Feb 2024

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