@pikacss/core 0.0.46 → 0.0.48

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.
Files changed (4) hide show
  1. package/README.md +30 -0
  2. package/dist/index.d.mts +3565 -1817
  3. package/dist/index.mjs +2541 -208
  4. package/package.json +11 -5
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @pikacss/core
2
+
3
+ Zero-runtime atomic CSS-in-JS engine core. Transforms TypeScript style definitions into optimized atomic CSS at build time.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pnpm add @pikacss/core
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { createEngine, defineEngineConfig } from '@pikacss/core'
15
+
16
+ const engine = await createEngine({
17
+ prefix: 'pk-',
18
+ })
19
+
20
+ const ids = await engine.use({ display: 'flex', color: 'red' })
21
+ const css = engine.renderAtomicStyles(true, { atomicStyleIds: ids })
22
+ ```
23
+
24
+ ## Documentation
25
+
26
+ See the [full documentation](https://pikacss.com/guide/core-features/).
27
+
28
+ ## License
29
+
30
+ MIT