Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More ā†’
Socket
Sign inDemoInstall
Socket

@master/css

Package Overview
Dependencies
Maintainers
2
Versions
430
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master/css

A Virtual CSS language with enhanced syntax. ( ~13KB )

  • 1.35.15
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1K
increased by71.48%
Maintainers
2
Weekly downloads
Ā 
Created
Source



logo

CSS

A Virtual CSS language with enhanced syntax. ~13KB

MIT License Latest Release Bundle Size Package Size Documentation Github Discord CI

image

On this page

Features

Let's have a quick overview of the groundbreaking features of Master CSS:

  • šŸ”„ A whole new CSS language instead of utilities/libraries.
  • šŸ”“ Write CSS properties, functions, selectors and even media queries directly in class="...".
  • šŸ§  Automatically generate corresponding CSS rules based on class names.
  • šŸ’– With enhanced CSS syntax, you can build UIs with less code.
  • āš”ļø Directly use performant JIT in production. ~13KB
  • šŸ§¬ An enhanced and structured CSS syntax for class names.
  • šŸŒˆ A forerunner to syntax highlighting for class names.
  • āœØ Hybrid Rendering that allows you to pre-generate CSS from HTML on the server side, and then continue to use JIT on the client side.
  • āœØ Group Styles that allows you to extract the same selectors and media query styles and make it short.
  • āœØ Reactive Styles that allows you to style an element based on parent/sibling state.

To learn more, check out the documentation.

Why Master CSS

A brief introduction starts by giving you an understanding of markup-driven CSS.

šŸ˜ Traditional

<style>
    .home-section {
        background-color: blue;
        padding: 2rem;
        text-align: center;
    }

    .home-section:hover {
        background-color: red;
    }

    @media (min-width: 1024px) {
        .home-section {
            padding: 3rem;
        }
    }
</style>

<section class="home-section">...</section>

šŸ¤© Now, refactor it with a whole new CSS language to make it easier. ā†“ 86% code

<section class="bg:blue bg:red:hover p:32 p:48@md text:center">...</section>

To learn more, check out the Why Master CSS documentation.

Quick Start

This is a quick start guide, check out the full setup guide to integrate with your build tools and frameworks.

npm install @master/css
import '@master/css';

or use a CDN

<script src="https://cdn.master.co/css"></script>

Now, start styling HTML with Master CSS. šŸŽ‰

<h1 class="font:40 font:heavy italic m:50 text:center">Hello World</h1>

To learn more, check out the Syntax tutorial documentation.

Inspiration

Some of our core concepts and designs are inspired by these giants.

  • Language - Master is a language, but it was originally inspired by ACSS's concept of atomic classes.
  • Virtual CSS - Difference algorithms, virtual models, etc. are inspired by Virtual DOM.

Developer tools

Keywords

FAQs

Package last updated on 20 Aug 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