@uwr/colors 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # @uwr/colors
2
+
3
+ Colors package for the unified workflow runtime.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install @uwr/colors
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ import { colors } from "@uwr/colors";
15
+
16
+ console.log(colors.primary); // "#0057B8"
17
+ console.log(colors.success); // "#22C55E"
18
+ ```
19
+
20
+ ### Tokens
21
+
22
+ | Token | Hex |
23
+ |-----------|-----------|
24
+ | `primary` | `#0057B8` |
25
+ | `success` | `#22C55E` |
26
+ | `warning` | `#F59E0B` |
27
+ | `error` | `#EF4444` |
28
+ | `neutral` | `#6B7280` |
29
+
30
+ ## Develop
31
+
32
+ ```sh
33
+ npm test # run the test suite (node --test)
34
+ npm run lint # oxlint
35
+ ```
36
+
37
+ ## Publish
38
+
39
+ The package is scoped and published publicly:
40
+
41
+ ```sh
42
+ npm publish
43
+ ```
44
+
45
+ `publishConfig.access` is set to `public`, so no extra flag is needed.
46
+
47
+ ## License
48
+
49
+ MIT
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@uwr/colors",
3
+ "version": "0.1.0",
4
+ "description": "colors for the unified workflow runtime",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "",
8
+ "engines": {
9
+ "node": ">=22"
10
+ },
11
+ "main": "./src/index.js",
12
+ "exports": {
13
+ ".": "./src/index.js"
14
+ },
15
+ "files": [
16
+ "src",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "scripts": {
21
+ "test": "node --test",
22
+ "lint": "oxlint",
23
+ "format": "oxfmt"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "keywords": [
29
+ "uwr",
30
+ "unified-workflow-runtime",
31
+ "colors"
32
+ ]
33
+ }
package/src/index.js ADDED
@@ -0,0 +1,15 @@
1
+ /** @type {string} */
2
+ export const name = "@uwr/colors";
3
+
4
+ /**
5
+ * Semantic color tokens for the unified workflow runtime.
6
+ *
7
+ * @type {Readonly<Record<string, string>>}
8
+ */
9
+ export const colors = Object.freeze({
10
+ primary: "#0057B8",
11
+ success: "#22C55E",
12
+ warning: "#F59E0B",
13
+ error: "#EF4444",
14
+ neutral: "#6B7280",
15
+ });