1.0.0-next.1 • Published 2 years ago

@twind/preset-mini v1.0.0-next.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@twind/preset-mini


READ THIS FIRST!

Twind v1 is still in beta. Expect bugs!


Installation

Install from npm:

# Using npm
npm install @twind/preset-mini@next

# Using Yarn
yarn add @twind/preset-mini@next

Usage

import { defineConfig, twind, cssom, observe } from '@twind/core'
import mini from '@twind/preset-mini'

const config = defineConfig({
  presets: [mini()],
})

const tw = observe(twind(config, cssom()))

Documentation missing: Look at the source for now.

Short CSS

Allows any CSS properties to be added:

<div class="background-color[#1da1f1]" />

↓ ↓ ↓ ↓ ↓ ↓

.background-color\[\#1da1f1\] {
  background-color: #1da1f1;
}