@odla-ai/brand 0.1.0 → 0.2.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 +4 -2
- package/dist/chunk-APLECQBR.js +1010 -0
- package/dist/chunk-APLECQBR.js.map +1 -0
- package/dist/index-bj73h3qo.d.cts +409 -0
- package/dist/index-bj73h3qo.d.ts +409 -0
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +3 -409
- package/dist/index.d.ts +3 -409
- package/dist/index.js +57 -957
- package/dist/index.js.map +1 -1
- package/dist/tokens/index.cjs +912 -0
- package/dist/tokens/index.cjs.map +1 -0
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +29 -0
- package/dist/tokens/index.js.map +1 -0
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -58,10 +58,12 @@ const persona = createBrandPersona({
|
|
|
58
58
|
const run = await runAgent(inference, persona, { input: userMessage });
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
Compile anywhere
|
|
61
|
+
Compile anywhere, including a host that wants only the zero-dependency token
|
|
62
|
+
engine. The `./tokens` subpath does not load the agent, routes, or brand-book
|
|
63
|
+
schema:
|
|
62
64
|
|
|
63
65
|
```ts
|
|
64
|
-
import { compileBrandTokens, renderTokensCss } from "@odla-ai/brand";
|
|
66
|
+
import { compileBrandTokens, renderTokensCss } from "@odla-ai/brand/tokens";
|
|
65
67
|
|
|
66
68
|
const { light, dark, warnings } = compileBrandTokens({ swatches });
|
|
67
69
|
const css = renderTokensCss(light, { dark }); // :root / [data-theme="dark"] / media guard
|