---
site: ui.zyx.tw
url: https://ui.zyx.tw/star-field
title: Star Field
description: "Far stars as square pixels behind the page, drifting slowly; optionally kept to the margins of a column of text."
---

# Star Field

Far stars as square pixels behind the page, drifting slowly; optionally kept to the margins of a column of text.

Group: Motion.

## Install

```bash
bunx shadcn@latest init https://ui.zyx.tw/r/base.json
bunx shadcn@latest add @zyx1121/star-field
```

The first line sets a project up on the base; skip it if the project already has it.

## Item

### Star Field (`star-field`)

Far stars as square pixels behind the page, drifting slowly; optionally kept to the margins of a column of text.

- Use when: A quiet sky behind a page or a reading column, mounted once in a layout.
- Not for: Data plots or charts; use chart.
- Related: [tv](https://ui.zyx.tw/tv.md)
- Categories: motion, background
- Install: `bunx shadcn@latest add https://ui.zyx.tw/r/star-field.json`
- JSON: [star-field.json](https://ui.zyx.tw/r/star-field.json)
- Page: [https://ui.zyx.tw/star-field](https://ui.zyx.tw/star-field) ([Markdown](https://ui.zyx.tw/star-field.md))
- Registry dependencies: `https://ui.zyx.tw/r/utils.json`

## More

- [Index](https://ui.zyx.tw/index.md): every item
- [Agent instructions](https://ui.zyx.tw/agent-instructions.md): the call order and the rules
- [DESIGN.md](https://github.com/zyx1121/www.zyx.tw/blob/main/apps/ui/DESIGN.md): the design contract
