@kbach/react-native 1.0.0-beta.56 → 1.0.0-beta.58
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 -4
- package/README.md +40 -0
- package/android/src/main/jniLibs/arm64-v8a/libkbach_core_engine.so +0 -0
- package/android/src/main/jniLibs/x86_64/libkbach_core_engine.so +0 -0
- package/dist/chunk-APVTYFEK.mjs +623 -0
- package/dist/{chunk-YDA2XA35.mjs → chunk-PLSCNADJ.mjs} +1 -1
- package/dist/{chunk-VWGUF2NB.mjs → chunk-T6YWFA2C.mjs} +1 -1
- package/dist/index.js +210 -43
- package/dist/index.web.js +1 -1
- package/dist/index.web.mjs +2 -2
- package/dist/jsx-dev-runtime.js +924 -757
- package/dist/jsx-dev-runtime.web.js +1 -1
- package/dist/jsx-dev-runtime.web.mjs +3 -3
- package/dist/jsx-runtime.js +924 -757
- package/dist/jsx-runtime.web.js +1 -1
- package/dist/jsx-runtime.web.mjs +2 -2
- package/dist/theme.js +48 -0
- package/llms.txt +37 -0
- package/package.json +2 -1
- package/dist/chunk-4WQ2DOOC.mjs +0 -575
package/dist/jsx-runtime.web.mjs
CHANGED
package/dist/theme.js
CHANGED
|
@@ -143,6 +143,30 @@ var PALETTE = {
|
|
|
143
143
|
"lime-7": "#65a30d",
|
|
144
144
|
"lime-8": "#4d7c0f",
|
|
145
145
|
"lime-9": "#3f6212",
|
|
146
|
+
"mauve-1": "#fafafa",
|
|
147
|
+
"mauve-10": "#1d161e",
|
|
148
|
+
"mauve-11": "#0c090c",
|
|
149
|
+
"mauve-12": "#070507",
|
|
150
|
+
"mauve-2": "#f3f1f3",
|
|
151
|
+
"mauve-3": "#e7e4e7",
|
|
152
|
+
"mauve-4": "#d7d0d7",
|
|
153
|
+
"mauve-5": "#a89ea9",
|
|
154
|
+
"mauve-6": "#79697b",
|
|
155
|
+
"mauve-7": "#594c5b",
|
|
156
|
+
"mauve-8": "#463947",
|
|
157
|
+
"mauve-9": "#2a212c",
|
|
158
|
+
"mist-1": "#f9fbfb",
|
|
159
|
+
"mist-10": "#161b1d",
|
|
160
|
+
"mist-11": "#090b0c",
|
|
161
|
+
"mist-12": "#050607",
|
|
162
|
+
"mist-2": "#f1f3f3",
|
|
163
|
+
"mist-3": "#e3e7e8",
|
|
164
|
+
"mist-4": "#d0d6d8",
|
|
165
|
+
"mist-5": "#9ca8ab",
|
|
166
|
+
"mist-6": "#67787c",
|
|
167
|
+
"mist-7": "#4b585b",
|
|
168
|
+
"mist-8": "#394447",
|
|
169
|
+
"mist-9": "#22292b",
|
|
146
170
|
"neutral-1": "#fafafa",
|
|
147
171
|
"neutral-10": "#171717",
|
|
148
172
|
"neutral-11": "#0a0a0a",
|
|
@@ -155,6 +179,18 @@ var PALETTE = {
|
|
|
155
179
|
"neutral-7": "#525252",
|
|
156
180
|
"neutral-8": "#404040",
|
|
157
181
|
"neutral-9": "#262626",
|
|
182
|
+
"olive-1": "#fbfbf9",
|
|
183
|
+
"olive-10": "#1d1d16",
|
|
184
|
+
"olive-11": "#0c0c09",
|
|
185
|
+
"olive-12": "#070705",
|
|
186
|
+
"olive-2": "#f4f4f0",
|
|
187
|
+
"olive-3": "#e8e8e3",
|
|
188
|
+
"olive-4": "#d8d8d0",
|
|
189
|
+
"olive-5": "#abab9c",
|
|
190
|
+
"olive-6": "#7c7c67",
|
|
191
|
+
"olive-7": "#5b5b4b",
|
|
192
|
+
"olive-8": "#474739",
|
|
193
|
+
"olive-9": "#2b2b22",
|
|
158
194
|
"orange-1": "#fff7ed",
|
|
159
195
|
"orange-10": "#7c2d12",
|
|
160
196
|
"orange-11": "#431407",
|
|
@@ -252,6 +288,18 @@ var PALETTE = {
|
|
|
252
288
|
"stone-7": "#57534e",
|
|
253
289
|
"stone-8": "#44403c",
|
|
254
290
|
"stone-9": "#292524",
|
|
291
|
+
"taupe-1": "#fbfaf9",
|
|
292
|
+
"taupe-10": "#1d1816",
|
|
293
|
+
"taupe-11": "#0c0a09",
|
|
294
|
+
"taupe-12": "#070605",
|
|
295
|
+
"taupe-2": "#f3f1f1",
|
|
296
|
+
"taupe-3": "#e8e4e3",
|
|
297
|
+
"taupe-4": "#d8d2d0",
|
|
298
|
+
"taupe-5": "#aba09c",
|
|
299
|
+
"taupe-6": "#7c6d67",
|
|
300
|
+
"taupe-7": "#5b4f4b",
|
|
301
|
+
"taupe-8": "#473c39",
|
|
302
|
+
"taupe-9": "#2b2422",
|
|
255
303
|
"teal-1": "#f0fdfa",
|
|
256
304
|
"teal-10": "#134e4a",
|
|
257
305
|
"teal-11": "#042f2e",
|
package/llms.txt
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @kbach/react-native
|
|
2
|
+
|
|
3
|
+
> React Native and Expo: class names turned into React Native styles when each element renders. Part of Kbach.
|
|
4
|
+
|
|
5
|
+
## Rules for AI assistants
|
|
6
|
+
|
|
7
|
+
Kbach rules. Follow them in every class you write.
|
|
8
|
+
|
|
9
|
+
1. Color shades go from 1 (lightest) to 12 (darkest). Never use 50 to 950.
|
|
10
|
+
Convert: 50→1 100→2 200→3 300→4 400→5 500→6 600→7 700→8 800→9 900→10 950→11.
|
|
11
|
+
Write bg-blue-6, text-gray-11, border-slate-3. Never bg-blue-500.
|
|
12
|
+
2. Color families: amber blue cyan emerald fuchsia gray green indigo lime
|
|
13
|
+
mauve mist neutral olive orange pink purple red rose sky slate stone taupe
|
|
14
|
+
teal violet yellow zinc. Single colors: white black transparent current
|
|
15
|
+
gold silver bronze copper coal.
|
|
16
|
+
3. Every other class follows Tailwind CSS v4.3 names and values: spacing in
|
|
17
|
+
steps of 4px (p-4 is 16px), variants such as hover:, md: and dark:,
|
|
18
|
+
values in square brackets, a slash for opacity (bg-black/50).
|
|
19
|
+
Gradients: bg-linear-to-r from-* via-* to-*.
|
|
20
|
+
4. There is no tailwind.config.js, no @tailwind, no @import "tailwindcss",
|
|
21
|
+
no @theme and no @apply. Settings go in kbach.config.js
|
|
22
|
+
(export default { darkMode, theme, extend }).
|
|
23
|
+
5. Plain HTML page: put <script>window.kbachConfig = { ... }</script> BEFORE
|
|
24
|
+
<script src="https://cdn.jsdelivr.net/npm/@kbach/browser"></script>.
|
|
25
|
+
A theme button calls Kbach.toggle() and needs darkMode: 'class' or
|
|
26
|
+
'attribute' in that config.
|
|
27
|
+
6. React with Vite: import { kbach } from '@kbach/react/vite' and add kbach()
|
|
28
|
+
to plugins; import './kbach.css' once in the entry file. Write every class
|
|
29
|
+
in full: never build one from pieces like 'bg-' + color.
|
|
30
|
+
7. React Native: '@kbach/react-native/babel-plugin' must be in
|
|
31
|
+
babel.config.js. On a phone there is no grid, no gradients, no filters, no
|
|
32
|
+
transitions or animations, no group-*, peer-*, before: or after:. Use
|
|
33
|
+
flex-row for rows (a View is a column). Values in brackets: px or rem only.
|
|
34
|
+
8. Dark mode switches use useTheme() from '@kbach/react' or
|
|
35
|
+
'@kbach/react-native': { mode, isDark, setMode, toggle }.
|
|
36
|
+
|
|
37
|
+
Full documentation: https://github.com/semsakadanupol/kbach
|
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.58",
|
|
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",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"dist",
|
|
32
|
+
"llms.txt",
|
|
32
33
|
"src/babel-plugin.js",
|
|
33
34
|
"android/build.gradle",
|
|
34
35
|
"android/src",
|