# FAQ · JGuang UI

> 本页提供 JGuang UI 技术内容、中文导航与术语适配。

- 页面: https://jiguang132.com/zh/systems/jguang-ui/docs/registry/faq
- 改编自: shadcn/ui 文档 (MIT) @ bc0705384b51252af26dcc65425b216bf5eb063c
- 说明：正文保留英文原文。

## Frequently asked questions

### What does a complex component look like?

Here's an example of a complex component that installs a page, two components, a hook, a format-date utils and a config file.

```text
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
```

### How do I add a new Tailwind color?

To add a new color you need to add it to `cssVars` under `light` and `dark` keys.

```text
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
```

The CLI will update the project CSS file. Once updated, the new colors will be available to be used as utility classes: `bg-brand` and `text-brand-accent`.

### Why does `button` in `registryDependencies` not resolve to my GitHub repository?

Bare registry dependency names keep the existing JGuang UI behavior. `button`
means the built-in JGuang UI `button` item.

For a dependency from a GitHub repository, use the full GitHub item address.

```json title="registry-item.json" showLineNumbers
{
  "registryDependencies": ["acme/ui/button"]
}
```

### How do I pin a GitHub registry item?

Add `#ref` to the GitHub item address. The ref can be a branch, tag or full
commit SHA.

```text
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
```

For published registries, prefer tags or full commit SHAs.

### Can GitHub registry addresses use private repositories?

Not currently. GitHub registry addresses support public `github.com`
repositories. For private registries, use a namespace with authenticated URLs.

### How do I add or override a Tailwind theme variable?

To add or override a theme variable you add it to `cssVars.theme` under the key you want to add or override.

```text
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
```

---

JGuang 全部资源索引: https://jiguang132.com/llms.txt
