1.0.0-next.1 • Published 3 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
3 years ago
1.0.0-next.8
3 years ago
1.0.0-next.7
4 years ago
1.0.0-next.6
4 years ago
1.0.0-next.5
4 years ago
1.0.0-next.4
4 years ago
1.0.0-next.3
4 years ago
1.0.0-next.2
4 years ago
1.0.0-next.1
4 years ago