uniss

0.0.7 • Public • Published

uniss 🎓

Universal utility-first CSS library for writing less CSS

Inspiration 💡

Tahyons and Tailwindcss

Also, Rebass which is not a CSS only library, but was a nice inspiration for me 💡.

Motivation ❤️

Tailwinds and tachyons are nice, but I almost always have to look-up names for css classes (even-more-so with tailwinds).

So I want UNISS to be more strict in terms of naming conventions.

Conventions

CSS class format: <property-name>=<property-value>[:<hover|active|focus|visited|focus-within>][@<sm|md|lg|xl>]

That's it! You can use UNICSS.

Examples

.display=block { display: block }

.font-weight=bold { font-weight: bold }

.padding=50px { padding: 50px }

.width=100% { width: 100% }

.background=red:hover {
  backround: red; /* applied only on hover */
}
.background=blue@lg {
  backround: blue; /* applied starting with large breakpoint */
}
.background=orange@lg:hover {
  backround: orange; /* applied starting with large breakpoint, but only on hover */
}

Try it out

$ npm i
$ npm run dev

THIS IS IN VERY ALPHA STAGE - help is welcomed 💪

Readme

Keywords

none

Package Sidebar

Install

npm i uniss

Weekly Downloads

1

Version

0.0.7

License

ISC

Unpacked Size

6.38 kB

Total Files

4

Last publish

Collaborators

  • radubrehar