@octane-xplat/bamboo 0.9.0 → 0.10.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 +18 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,13 +14,15 @@ pnpm add -D @octane-xplat/bamboo
|
|
|
14
14
|
Two entry points:
|
|
15
15
|
|
|
16
16
|
```ts
|
|
17
|
-
// bamboo.config.ts
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
// bamboo.config.ts
|
|
18
|
+
import { defineConfig } from '@bamboocss/dev'
|
|
19
|
+
import { xplatBambooConfig } from '@octane-xplat/bamboo'
|
|
20
|
+
|
|
21
|
+
export default defineConfig({
|
|
22
|
+
...xplatBambooConfig,
|
|
23
|
+
include: ['src/**/*.ts'],
|
|
24
|
+
outdir: 'src/styled',
|
|
25
|
+
})
|
|
24
26
|
```
|
|
25
27
|
|
|
26
28
|
Preflight is off by default and tokens land on `:root, .ns-root`. The
|
|
@@ -28,4 +30,12 @@ xplat NativeScript CSS transform unwraps the emitted `@layer` blocks for
|
|
|
28
30
|
native builds (the NS parser drops unknown at-rules); browsers keep the
|
|
29
31
|
layers, which is what lets app CSS stay unlayered on top.
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
```ts
|
|
34
|
+
// Add this plugin alongside your app's existing renderer plugins.
|
|
35
|
+
import { xplatBamboo } from '@octane-xplat/bamboo/vite'
|
|
36
|
+
|
|
37
|
+
const webPlugins = xplatBamboo()
|
|
38
|
+
const nativePlugins = xplatBamboo({ native: true })
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Guide: [Styling screens](../../docs/app/styling.md).
|