Giter Club home page Giter Club logo

css's Introduction



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.

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.

Developer Tools

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.

Related

css's People

Contributors

0joy0 avatar 0miles avatar 1aron avatar benseage avatar brycetsao avatar jacoblincool avatar ruila avatar serkodev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.