1.0.0-next.1 • Published 2 years ago
@twind/preset-mini v1.0.0-next.1
@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;
}
1.0.0-next.9
2 years ago
1.0.0-next.8
2 years ago
1.0.0-next.7
2 years ago
1.0.0-next.6
2 years ago
1.0.0-next.5
2 years ago
1.0.0-next.4
2 years ago
1.0.0-next.3
2 years ago
1.0.0-next.2
2 years ago
1.0.0-next.1
2 years ago