Make CSS exciting again!
Yes, this is pure CSS

Tailwind CSS alternative for custom websites and creative coding

Key features

This is a framework for enthusiasts who are as passionate about CSS and front-end development as we are!

Why choose mlut?

Strong naming

Shorter class names and convenient syntax

Shorter class names

Tailwind CSS

<div class="relative -bottom-px col-span-full col-start-1 row-start-2 h-px bg-(--cardBg)"></div>

mlut

<div class="Ps B-1 Gc1/-1 Gcs1 Grs2 H1 Bgc-$cardBg"></div>

Convenient syntax

Tailwind

  • [@media(any-hover:hover){&:hover}]:opacity-100>
  • text-[length:var(--myVar,1.3rem)]>
  • supports-[margin:1svw]:ml-[1svw]

mlut

  • @:ah_O1_h
  • Fns-$myVar?1.3>
  • @s_Ml1svw>

See how much more code you need in handwritten CSS to reproduce the same styles written in mlut

Almost all power of CSS in one utility class

Handwritten CSS

<div class="parent">
  <div class="child1">...</div>
  <div class="child2">...</div>
</div>

<style>
  .parent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
  }
  .child1 {
    padding: 0.5rem 0;
    justify-self: flex-end;
  }
  .child2 {
    color:#fff;
  }
  .parent:hover {
    background-color: rgba(0,0,0,0.5);
  }
  .parent:hover .child1 {
    justify-self: flex-start;
  }
  .parent:hover .child2 {
    color: red;
  }
</style>

mlut

<div class="-Ctx Bgc#000 Bgc#000*50p_h D-f Fld-c Jc-c Ai-c">
  <div class="P2u;0 Js-fe ^:h_Js-fs">...</div>
  <div class="C-#fff ^:h_C-red">...</div>
</div>

Installation

Installation type

  • Install via NPM
    npm i mlut -D
  • And run
    npx mlut -o output.css -w --content index.html
  • Add configuration if you need
    // style.scss
    @use 'mlut' with (
      // your config
    );
  • And run
    npx mlut -i input.scss -o output.css -w --content index.html