@csszyx/core 0.1.2 → 0.1.3
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 +4 -2
- package/package.json +1 -1
- package/pkg/README.md +4 -2
- package/pkg/csszyx_core_bg.wasm +0 -0
- package/pkg-node/README.md +4 -2
- package/pkg-node/csszyx_core_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -39,12 +39,14 @@ Converts object-based Tailwind syntax into class strings.
|
|
|
39
39
|
```typescript
|
|
40
40
|
import { transform_sz } from "@csszyx/core";
|
|
41
41
|
|
|
42
|
+
// ❌ String slash opacity not supported: bg: 'blue-500/20'
|
|
43
|
+
// ✅ Use @csszyx/compiler with object form: { bg: { color: 'blue-500', op: 20 } }
|
|
42
44
|
transform_sz({
|
|
43
45
|
m: -4,
|
|
44
|
-
bg: "blue-500
|
|
46
|
+
bg: "blue-500",
|
|
45
47
|
hover: { scale: 110 },
|
|
46
48
|
});
|
|
47
|
-
// "-m-4 bg-blue-500
|
|
49
|
+
// "-m-4 bg-blue-500 hover:scale-110"
|
|
48
50
|
```
|
|
49
51
|
|
|
50
52
|
### Tiered Encoder
|
package/package.json
CHANGED
package/pkg/README.md
CHANGED
|
@@ -39,12 +39,14 @@ Converts object-based Tailwind syntax into class strings.
|
|
|
39
39
|
```typescript
|
|
40
40
|
import { transform_sz } from "@csszyx/core";
|
|
41
41
|
|
|
42
|
+
// ❌ String slash opacity not supported: bg: 'blue-500/20'
|
|
43
|
+
// ✅ Use @csszyx/compiler with object form: { bg: { color: 'blue-500', op: 20 } }
|
|
42
44
|
transform_sz({
|
|
43
45
|
m: -4,
|
|
44
|
-
bg: "blue-500
|
|
46
|
+
bg: "blue-500",
|
|
45
47
|
hover: { scale: 110 },
|
|
46
48
|
});
|
|
47
|
-
// "-m-4 bg-blue-500
|
|
49
|
+
// "-m-4 bg-blue-500 hover:scale-110"
|
|
48
50
|
```
|
|
49
51
|
|
|
50
52
|
### Tiered Encoder
|
package/pkg/csszyx_core_bg.wasm
CHANGED
|
Binary file
|
package/pkg-node/README.md
CHANGED
|
@@ -39,12 +39,14 @@ Converts object-based Tailwind syntax into class strings.
|
|
|
39
39
|
```typescript
|
|
40
40
|
import { transform_sz } from "@csszyx/core";
|
|
41
41
|
|
|
42
|
+
// ❌ String slash opacity not supported: bg: 'blue-500/20'
|
|
43
|
+
// ✅ Use @csszyx/compiler with object form: { bg: { color: 'blue-500', op: 20 } }
|
|
42
44
|
transform_sz({
|
|
43
45
|
m: -4,
|
|
44
|
-
bg: "blue-500
|
|
46
|
+
bg: "blue-500",
|
|
45
47
|
hover: { scale: 110 },
|
|
46
48
|
});
|
|
47
|
-
// "-m-4 bg-blue-500
|
|
49
|
+
// "-m-4 bg-blue-500 hover:scale-110"
|
|
48
50
|
```
|
|
49
51
|
|
|
50
52
|
### Tiered Encoder
|
|
Binary file
|