@kbach/react 1.0.0-beta.1 → 1.0.0-beta.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbach/react",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.11",
4
4
  "description": "A utility-first styling engine for React, powered by a real Rust/WASM core — Tailwind CSS v4 feature parity with Kbach's own color palette.",
5
5
  "keywords": ["css", "react", "tailwind", "utility-first", "wasm", "styling"],
6
6
  "license": "MIT",
@@ -46,6 +46,12 @@
46
46
  "source": "./src/vite-plugin/index.ts",
47
47
  "import": "./dist/vite-plugin.mjs",
48
48
  "require": "./dist/vite-plugin.js"
49
+ },
50
+ "./postcss": {
51
+ "types": "./dist/postcss-plugin.d.ts",
52
+ "source": "./src/postcss-plugin/index.ts",
53
+ "import": "./dist/postcss-plugin.mjs",
54
+ "require": "./dist/postcss-plugin.js"
49
55
  }
50
56
  },
51
57
  "scripts": {
@@ -56,21 +62,26 @@
56
62
  "generate:colors": "node ../core-engine/scripts/generate-palette.mjs src/generatedPalette.ts"
57
63
  },
58
64
  "dependencies": {
59
- "@kbach/core-engine": "1.0.0-beta.2"
65
+ "@kbach/core-engine": "1.0.0-beta.6"
60
66
  },
61
67
  "devDependencies": {
62
68
  "@types/react": "^19.2.0",
63
69
  "jsdom": "^30.0.1",
70
+ "postcss": "^8.4.0",
64
71
  "tsup": "^8.0.0",
65
72
  "typescript": "^6.0.0",
66
73
  "vite": "^5.4.21",
67
74
  "vitest": "^1.0.0"
68
75
  },
69
76
  "peerDependencies": {
77
+ "postcss": "^8.0.0",
70
78
  "react": ">=18.0.0",
71
79
  "vite": ">=4.0.0"
72
80
  },
73
81
  "peerDependenciesMeta": {
82
+ "postcss": {
83
+ "optional": true
84
+ },
74
85
  "vite": {
75
86
  "optional": true
76
87
  }
@@ -1,20 +0,0 @@
1
- /** A plain hex color, or a mode-aware pair auto-expanded into a light/dark class pair by the Rust engine. */
2
- type ColorEntry = string | {
3
- light: string;
4
- dark: string;
5
- };
6
- type DarkModeStrategy = 'attribute' | 'class' | 'media';
7
- interface ThemeConfig {
8
- /** e.g. "blue-6" -> "#2563eb", or "surface" -> { light, dark } */
9
- colors: Record<string, ColorEntry>;
10
- /** e.g. "4" -> 16 (px) */
11
- spacing: Record<string, number>;
12
- /** e.g. "sm" -> 640 (min-width px) */
13
- screens: Record<string, number>;
14
- darkMode: DarkModeStrategy;
15
- }
16
- declare const defaultTheme: ThemeConfig;
17
- declare function setTheme(theme: ThemeConfig): void;
18
- declare function getTheme(): ThemeConfig;
19
-
20
- export { type ThemeConfig as T, defaultTheme as d, getTheme as g, setTheme as s };
@@ -1,20 +0,0 @@
1
- /** A plain hex color, or a mode-aware pair auto-expanded into a light/dark class pair by the Rust engine. */
2
- type ColorEntry = string | {
3
- light: string;
4
- dark: string;
5
- };
6
- type DarkModeStrategy = 'attribute' | 'class' | 'media';
7
- interface ThemeConfig {
8
- /** e.g. "blue-6" -> "#2563eb", or "surface" -> { light, dark } */
9
- colors: Record<string, ColorEntry>;
10
- /** e.g. "4" -> 16 (px) */
11
- spacing: Record<string, number>;
12
- /** e.g. "sm" -> 640 (min-width px) */
13
- screens: Record<string, number>;
14
- darkMode: DarkModeStrategy;
15
- }
16
- declare const defaultTheme: ThemeConfig;
17
- declare function setTheme(theme: ThemeConfig): void;
18
- declare function getTheme(): ThemeConfig;
19
-
20
- export { type ThemeConfig as T, defaultTheme as d, getTheme as g, setTheme as s };