@wtasnorg/candi 0.0.36 → 0.0.38

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 (2) hide show
  1. package/README.md +19 -21
  2. package/package.json +10 -6
package/README.md CHANGED
@@ -20,6 +20,8 @@ Candi provides a unified system for colors using the OKLCH color space, synchron
20
20
  | GNOME | Full | GTK3 & GTK4 themes for X11 and Wayland |
21
21
  | Obsidian | Full | Light & Dark themes with 60+ CSS variables |
22
22
  | Showcase App | Full | Interactive Flutter gallery & playground |
23
+ | TypeScript Core | Full | Color science, OKLCH, and derivation engine APIs |
24
+ | Dart Core | Full | OKLCH and semantic color derivation for Dart |
23
25
 
24
26
  ---
25
27
 
@@ -71,33 +73,26 @@ Candi uses OKLCH as its primary color space instead of Hex codes:
71
73
  candi/
72
74
  ├── ARCHITECTURE.md # System architecture and SSOT design
73
75
  ├── Knowledge.md # Lessons learned and development notes
76
+ ├── dart/ # Dart core utilities library
77
+ ├── flutter/ # Flutter package
78
+ ├── gnome/ # GTK3/GTK4 themes
79
+ ├── kde/ # KDE Plasma color schemes
80
+ ├── obsidian/ # Obsidian theme
81
+ ├── schemas/ # JSON Schemas for token validation
82
+ ├── scripts/ # Build, test, and utility scripts
83
+ ├── showcase_flutter/ # Flutter showcase application
74
84
  ├── src/ # Source files for npm package
75
85
  │ ├── css/ # CSS files (base, components, utilities)
76
86
  │ ├── data/ # Source of truth (colors.js)
77
- │ ├── v4/ # Tailwind v4 @theme
78
87
  │ ├── index.js # Main entry point
79
88
  │ ├── plugin.js # Tailwind v3 plugin
80
89
  │ ├── theme.js # Tailwind v3 theme extension
81
- └── types.d.ts # TypeScript type definitions
82
- ├── scripts/ # Build, test, and utility scripts
83
- ├── build.js # Main npm package build
84
- │ ├── build-*.js # Platform-specific builds
85
- │ ├── test-*.js # Platform-specific tests
86
- │ ├── sync-colors.js # Color synchronization
87
- │ ├── color-conv.js # Color conversion utilities
88
- │ ├── gen-oklch-primitives.js # Derivation engine
89
- │ └── package-artifacts.js # Release packaging script
90
- ├── schemas/ # JSON Schemas for token validation
91
- ├── dist/ # Built output (git-ignored)
92
- ├── docs/ # Documentation guides
93
- ├── website/ # Documentation site (Vite + React)
94
- ├── flutter/ # Flutter package
95
- ├── vscode/ # VS Code extension
90
+ ├── types.d.ts # TypeScript type definitions
91
+ │ └── v4/ # Tailwind v4 @theme
92
+ ├── ts/ # TypeScript core utilities library
96
93
  ├── vim/ # Vim colorschemes
97
- ├── kde/ # KDE Plasma color schemes
98
- ├── gnome/ # GTK3/GTK4 themes
99
- ├── obsidian/ # Obsidian theme
100
- └── showcase_flutter/ # Flutter showcase application
94
+ ├── vscode/ # VS Code extension
95
+ └── website/ # Documentation site (Vite + React)
101
96
  ```
102
97
 
103
98
  ---
@@ -109,7 +104,8 @@ candi/
109
104
  | Command | Description |
110
105
  | :--- | :--- |
111
106
  | `npm run build` | Build npm package (CSS, JS, TypeScript declarations) |
112
- | `npm run build:all` | Build all platforms (Web, Flutter, VS Code, Vim, KDE, GNOME, Obsidian) |
107
+ | `npm run build:all` | Build all platforms (Web, Flutter, VS Code, Vim, KDE, GNOME, Obsidian, TS) |
108
+ | `npm run build:ts` | Build TypeScript core package only |
113
109
  | `npm run build:flutter` | Build Flutter package only |
114
110
  | `npm run build:vscode` | Build VS Code extension only |
115
111
  | `npm run build:vim` | Build Vim colorschemes only |
@@ -133,6 +129,8 @@ candi/
133
129
  | `npm run test:guard-semantics` | Validate palette integrity |
134
130
  | `npm run test:scripts` | Regression test all build outputs |
135
131
  | `npm run test:package-artifacts` | Test artifact generation |
132
+ | `npm run test:ts` | Test TypeScript core package |
133
+ | `npm run test:dart` | Test Dart core utilities package |
136
134
  | `npm run test:flutter` | Test Flutter package |
137
135
  | `npm run test:vscode` | Test VS Code extension |
138
136
  | `npm run test:vim` | Test Vim colorschemes |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wtasnorg/candi",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "A Tailwind CSS theme inspired by Nordic/Scandinavian Hygge & Lagom design principles",
5
5
  "keywords": [
6
6
  "tailwindcss",
@@ -55,6 +55,7 @@
55
55
  ],
56
56
  "scripts": {
57
57
  "build": "npm run lint:tokens && node scripts/build.js",
58
+ "build:ts": "cd ts && npm run build",
58
59
  "build:flutter": "node scripts/build-flutter.js && npm run format:flutter",
59
60
  "build:vscode": "node scripts/build-vscode.js",
60
61
  "build:vim": "node scripts/build-vim.js",
@@ -64,7 +65,7 @@
64
65
  "build:obsidian": "node scripts/build-obsidian.js",
65
66
  "build:showcase": "cd showcase_flutter && flutter build web --no-wasm-dry-run > /dev/null",
66
67
  "build:docs": "node scripts/build-docs.js",
67
- "build:all": "echo 'Building Core...' && npm run build -s && echo 'Building Flutter...' && npm run build:flutter -s && echo 'Building VS Code...' && npm run build:vscode -s && echo 'Building Vim...' && npm run build:vim -s && echo 'Building KDE...' && npm run build:kde -s && echo 'Building Konsole...' && npm run build:konsole -s && echo 'Building Gnome...' && npm run build:gnome -s && echo 'Building Obsidian...' && npm run build:obsidian -s && echo 'Building Docs...' && npm run build:docs -s && echo 'Building Showcase...' && npm run build:showcase -s",
68
+ "build:all": "echo 'Building Core...' && npm run build -s && echo 'Building TS...' && npm run build:ts -s && echo 'Building Flutter...' && npm run build:flutter -s && echo 'Building VS Code...' && npm run build:vscode -s && echo 'Building Vim...' && npm run build:vim -s && echo 'Building KDE...' && npm run build:kde -s && echo 'Building Konsole...' && npm run build:konsole -s && echo 'Building Gnome...' && npm run build:gnome -s && echo 'Building Obsidian...' && npm run build:obsidian -s && echo 'Building Docs...' && npm run build:docs -s && echo 'Building Showcase...' && npm run build:showcase -s",
68
69
  "format:flutter": "cd flutter && dart format lib > /dev/null",
69
70
  "prepublishOnly": "npm run build:all",
70
71
  "test:color": "node scripts/test-color.js",
@@ -86,7 +87,9 @@
86
87
  "test:build-docs": "node scripts/test-build-docs.js",
87
88
  "test:package-artifacts": "node scripts/test-package-artifacts.js",
88
89
  "test:guard-semantics": "node scripts/test-guard-semantics.js",
89
- "test:all": "echo 'Testing Core...' && npm run test:src -s && npm run test:color -s && npm run test:colors -s && npm run test:conv -s && npm run test:sync -s && npm run test:lint-tokens -s && npm run test:gen-primitives -s && npm run test:build-docs -s && npm run test:guard-semantics -s && echo 'Testing Flutter...' && npm run test:flutter -s && echo 'Testing VS Code...' && npm run test:vscode -s && echo 'Testing Vim...' && npm run test:vim -s && echo 'Testing KDE...' && npm run test:kde -s && echo 'Testing Konsole...' && npm run test:konsole -s && echo 'Testing Gnome...' && npm run test:gnome -s && echo 'Testing Obsidian...' && npm run test:obsidian -s && echo 'Testing Showcase...' && npm run test:showcase -s && echo 'Testing Scripts...' && npm run test:scripts -s && echo 'Testing Packaging...' && npm run test:package-artifacts -s",
90
+ "test:ts": "cd ts && npm run test",
91
+ "test:dart": "cd dart && dart test",
92
+ "test:all": "echo 'Testing Core...' && npm run test:src -s && npm run test:color -s && npm run test:colors -s && npm run test:conv -s && npm run test:sync -s && npm run test:lint-tokens -s && npm run test:gen-primitives -s && npm run test:build-docs -s && npm run test:guard-semantics -s && echo 'Testing TS...' && npm run test:ts -s && echo 'Testing Dart...' && npm run test:dart -s && echo 'Testing Flutter...' && npm run test:flutter -s && echo 'Testing VS Code...' && npm run test:vscode -s && echo 'Testing Vim...' && npm run test:vim -s && echo 'Testing KDE...' && npm run test:kde -s && echo 'Testing Konsole...' && npm run test:konsole -s && echo 'Testing Gnome...' && npm run test:gnome -s && echo 'Testing Obsidian...' && npm run test:obsidian -s && echo 'Testing Showcase...' && npm run test:showcase -s && echo 'Testing Scripts...' && npm run test:scripts -s && echo 'Testing Packaging...' && npm run test:package-artifacts -s",
90
93
  "test": "npm run test:all",
91
94
  "vscode:package": "cd vscode && npx -y @vscode/vsce package",
92
95
  "flutter:pub": "cd flutter && flutter pub get",
@@ -96,10 +99,11 @@
96
99
  "flutter:pub-publish-dry-run": "cd flutter && flutter pub publish --dry-run",
97
100
  "artifact": "node scripts/package-artifacts.js",
98
101
  "lint:dart": "node scripts/lint-dart.js",
102
+ "lint:ts": "cd ts && npm run typecheck",
99
103
  "lint:tokens": "node scripts/lint-tokens.js",
100
- "lint:md": "markdownlint-cli2 \"**/*.md\" \"!node_modules\" \"!website/node_modules\" \"!**/.dart_tool\"",
101
- "lint:md:fix": "markdownlint-cli2 --fix \"**/*.md\" \"!node_modules\" \"!website/node_modules\"",
102
- "lint:all": "echo 'Linting Tokens...' && npm run lint:tokens -s && echo 'Linting Dart...' && npm run lint:dart -s && echo 'Linting Markdown...' && npm run lint:md -s",
104
+ "lint:md": "markdownlint-cli2 \"**/*.md\" \"!node_modules\" \"!website/node_modules\" \"!ts/node_modules\" \"!**/.dart_tool\"",
105
+ "lint:md:fix": "markdownlint-cli2 --fix \"**/*.md\" \"!node_modules\" \"!website/node_modules\" \"!ts/node_modules\"",
106
+ "lint:all": "echo 'Linting Tokens...' && npm run lint:tokens -s && echo 'Linting TS...' && npm run lint:ts -s && echo 'Linting Dart...' && npm run lint:dart -s && echo 'Linting Markdown...' && npm run lint:md -s",
103
107
  "install:local": "bash scripts/install-local.sh",
104
108
  "prepublish:all": "npm run build:all && npm run test:all && npm run lint:all && npm run artifact",
105
109
  "publish:gh": "npm run prepublish:all && cd website && npm run build && npx gh-pages -d dist"