@kbach/react-native 1.0.0-beta.48 → 1.0.0-beta.49
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/AGENTS.md +17 -5
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -255,11 +255,23 @@ colors.alpha(colors.blue[6], 30);
|
|
|
255
255
|
colors.get('brand'); // a custom color, typed as plain `string`
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
258
|
+
**Correction — no automatic shade-mirroring exists.** An earlier version
|
|
259
|
+
of this doc claimed `colors.blue[n]` auto-mirrors to shade `13 - n` in
|
|
260
|
+
dark mode; confirmed false against the actual code (`useColors.ts`'s own
|
|
261
|
+
doc comment: "fully manual, no automatic shade-shifting or other
|
|
262
|
+
assumption about what a 'dark variant' should be") — this was never
|
|
263
|
+
implemented in this package's history, not a regression. `colors.blue[6]`
|
|
264
|
+
returns the SAME value in both light and dark mode unless `blue-6` itself
|
|
265
|
+
is defined in the theme as a `{ light, dark }` pair (§4.1 of the root
|
|
266
|
+
AGENTS.md) — there is no built-in "flip the shade number" behavior at all.
|
|
267
|
+
If you want a color to differ by mode, define it as mode-aware in
|
|
268
|
+
`kbach.config.js`; reaching for a different numbered shade yourself is a
|
|
269
|
+
manual, app-level choice this hook has no opinion on.
|
|
270
|
+
|
|
271
|
+
`colors.brand` (a custom flat color) is typed `string | ColorScale`
|
|
272
|
+
because the same object also serves shade families and TS can't tell them
|
|
273
|
+
apart statically — use `colors.get(name)` when you need a guaranteed
|
|
274
|
+
`string`.
|
|
263
275
|
|
|
264
276
|
## 10. Unknown-class warnings
|
|
265
277
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kbach/react-native",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.49",
|
|
4
4
|
"description": "Kbach's utility-class styling engine for React Native — the same class names as @kbach/react, resolved to a StyleSheet-ready style object via a Kotlin/JNI TurboModule (native), the same WASM engine @kbach/react uses (Expo Web / react-native-web), or a pure-JS fallback engine (Expo Go). Ships its own native Android module — one npm install, no separate native package. Beta. Native is Android-only (no iOS bridge yet); works with the React Native CLI, an Expo dev client, AND Expo Go (a reduced-coverage pure-JS fallback, since Expo Go can't load any custom native module).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|