0.0.7 • Published 4 years ago

uniss v0.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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 💪

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago