# @plumeria/wind

Source: https://plumeria.dev/docs/api/packages/wind

The values are compiled into your styles at build time, so the package adds nothing to your bundle.

## Installation [#installation]

```sh title="Terminal"
pnpm i -D @plumeria/wind
```

## Usage [#usage]

```tsx title="Button.tsx"
import * as css from '@plumeria/core';
import * as t from '@plumeria/wind';

const styles = css.create({
  button: {
    paddingInline: t.spacing[4],
    fontSize: t.text.sm,
    color: t.slate[50],
    backgroundColor: t.blue[600],
    borderRadius: t.radius.md,
  },
});
```

The namespace name is up to you, and named imports work the same way.

A token passed as an argument to a [function key](/docs/api/javascript/create#dynamic-values) is not compiled, so read it inside `css.create` instead.

---

## Colors [#colors]

<Palettes />

### color [#color]
<Scale name="color" />

## Typography [#typography]

### font [#font]
<Scale name="font" />

### text [#text]
<Scale name="text" />

### textLineHeight [#textlineheight]
<Scale name="textLineHeight" />

### fontWeight [#fontweight]
<Scale name="fontWeight" />

### tracking [#tracking]
<Scale name="tracking" />

### leading [#leading]
<Scale name="leading" />

## Spacing [#spacing]

<Scale name="spacing" />

## Borders and Effects [#borders-and-effects]

### radius [#radius]
<Scale name="radius" />

### shadow [#shadow]
<Scale name="shadow" />

### insetShadow [#insetshadow]
<Scale name="insetShadow" />

### dropShadow [#dropshadow]
<Scale name="dropShadow" />

### textShadow [#textshadow]
<Scale name="textShadow" />

### blur [#blur]
<Scale name="blur" />

## Layout [#layout]

### breakpoint [#breakpoint]
<Scale name="breakpoint" />

A breakpoint is a length, so write the query around it:

```tsx title="Grid.tsx"
const styles = css.create({
  grid: {
    gap: t.spacing[2],
    [`@media (width >= ${t.breakpoint.md})`]: {
      gap: t.spacing[4],
    },
  },
});
```

### container [#container]
<Scale name="container" />

### aspect [#aspect]
<Scale name="aspect" />

### perspective [#perspective]
<Scale name="perspective" />

## Motion [#motion]

### ease [#ease]
<Scale name="ease" />

### transition [#transition]
<Scale name="transition" />

### animate [#animate]
<Scale name="animate" />

Animations pair a keyframes export (`t.spin`, `t.ping`, `t.pulse`, `t.bounce`) with its timing.

```tsx title="Spinner.tsx"
import * as css from '@plumeria/core';
import * as t from '@plumeria/wind';

const styles = css.create({
  spinner: {
    animation: `${t.spin} ${t.animate.spin}`,
  },
});
```

---

The values are taken from Tailwind CSS V4 under the MIT License.
