burne-ui 1.5.9 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -69,6 +69,40 @@ export function AppProviders({ children }: { children: React.ReactNode }) {
69
69
 
70
70
  Scaffold (`create-burne-app` / `burne-ui init`) уже кладёт `burne-theme.ts` с **`tokens`** (shared), **`colors.light` / `colors.dark`** и **`motion`**.
71
71
 
72
+ Проектные CSS-переменные можно описать в том же конфиге. Они применяются Provider и автоматически
73
+ появляются в `burne-ui-devtools`:
74
+
75
+ ```ts
76
+ const burneTheme = {
77
+ // tokens, colors, motion...
78
+ customTokens: {
79
+ "--app-brand": "#38bdf8",
80
+ "--app-sidebar-width": {
81
+ value: 320,
82
+ unit: "px",
83
+ label: "Sidebar width",
84
+ control: "slider",
85
+ min: 240,
86
+ max: 480,
87
+ step: 4,
88
+ },
89
+ },
90
+ } satisfies BurneThemeConfig;
91
+ ```
92
+
93
+ ### Devtools темы
94
+
95
+ Интерактивный редактор устанавливается отдельно и подключается только в development:
96
+
97
+ ```bash
98
+ npm install -D burne-ui-devtools
99
+ ```
100
+
101
+ Он показывает плавающую кнопку, позволяет менять токены и пресеты в браузере, а затем скопировать
102
+ или скачать готовый `burne-theme.ts`. Полная интеграция для Vite и Next.js описана в
103
+ [`burne-ui-devtools`](https://www.npmjs.com/package/burne-ui-devtools) и
104
+ [docs/SETUP.md](./docs/SETUP.md).
105
+
72
106
 
73
107
  Только переключение `data-theme`: `ThemeProvider` + `useBurneTheme()`. Подробности — [docs/SETUP.md](./docs/SETUP.md).
74
108