0.0.8 • Published 4 months ago

afterwind v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

afterwind

A utility library for writing composable Tailwind CSS. It elevates Tailwind CSS from primitive strings to something you can compose, override, extract, nest, conditionally apply, etc, without needing to resort to messy and unpleasant string manipulation.

Installation

Install with npm

  npm i afterwind # or yarn add afterwind or pnpm pnpm add afterwind

API Reference

.add(string, precedence?)

Adds the classes in the input string to the classes in the wind object while overriding classes that conflict.

.remove(string)

Filters out classes from the wind instance that are subtypes of the classes in the input string.

.toString()

Returns a string of Tailwind CSS classes.

Roadmap

  • Add CSS conflict detection
  • Add support for nesting classes
  • Enable specifying modifiers for a group of classes
  • Add caching

Documentation

Documentation

0.0.8

4 months ago

0.0.7

4 months ago

0.0.1

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.5

4 months ago

0.0.4

4 months ago

0.0.6

4 months ago

0.0.0

7 months ago