@sugarcube-org/core 0.0.1-alpha.5 → 0.0.1-alpha.6
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/LICENSE.md +9 -0
- package/README.md +28 -2
- package/dist/index.d.ts +1334 -415
- package/dist/index.js +32 -19
- package/package.json +6 -2
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Proprietary Software
|
|
2
|
+
|
|
3
|
+
This software is proprietary and confidential. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2025 Mark Tomlinson
|
|
6
|
+
|
|
7
|
+
This software is provided "as is" without warranty of any kind, either express or implied.
|
|
8
|
+
|
|
9
|
+
Unauthorized copying, distribution, or use of this software is strictly prohibited.
|
package/README.md
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
# @sugarcube-org/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Core functionality for sugarcube design token processing and CSS generation.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
- Processes W3C-compliant design tokens into CSS variables
|
|
8
|
+
- Generates utility classes from design tokens
|
|
9
|
+
- Validates token structure and references
|
|
10
|
+
- Provides the foundation for CLI and build tool integrations
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
This package is primarily used by:
|
|
15
|
+
- `@sugarcube-org/cli` for command-line operations
|
|
16
|
+
- `@sugarcube-org/vite` and `@sugarcube-org/postcss` for build tool integration
|
|
17
|
+
- `sugarcube.sh/validator` for online token validation
|
|
18
|
+
|
|
19
|
+
## API
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { loadConfig, cssVariablesPipeline, generateUtilityCSS } from '@sugarcube-org/core'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Development
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pnpm install
|
|
29
|
+
pnpm build
|
|
30
|
+
pnpm test
|
|
31
|
+
```
|
|
6
32
|
|
|
7
33
|
## Stay Tuned
|
|
8
34
|
|