@enovaui/web-tokens 0.6.0 → 0.8.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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  The following is a curated list of changes in the web tokens module, newest changes on the top.
4
4
 
5
+ ## [0.8.0] - 2025-07-14
6
+
7
+ - No significant changes
8
+
9
+ ## [0.7.0] - 2025-07-04
10
+
11
+ - No significant changes
12
+
5
13
  ## [0.6.0] - 2025-06-11
6
14
 
7
15
  - Initial release
package/README.md CHANGED
@@ -1,14 +1,20 @@
1
- # Web Tokens
1
+ # @enovaui/web-tokens
2
+ [![npm (scoped)](https://img.shields.io/npm/v/%40enovaui%2Fweb-tokens)](https://www.npmjs.com/package/@enovaui/web-tokens) [![license](https://img.shields.io/github/license/enovaui/design-tokens)](http://www.apache.org/licenses/LICENSE-2.0)
2
3
 
3
- Design tokens for web platforms.
4
+ Semantic design tokens for web applications in the LG UI Kit design system.
4
5
 
5
6
  ## Overview
6
7
 
7
- This package contains design tokens that define visual attributes for web applications. Design tokens help maintain consistency and enable theming across the ecosystem.
8
+ This package contains semantic design tokens specifically crafted for web applications. These tokens map primitive values from `@enovaui/core-tokens` to meaningful, context-specific design properties.
8
9
 
9
10
  ### What are Semantic Tokens?
10
11
 
11
- Semantic tokens are design tokens that define the intended meaning or purpose of a design element, rather than its raw value. By abstracting the design intent, semantic tokens enable consistent styling across different components.
12
+ Semantic tokens translate primitive values into purpose-driven design tokens. They provide:
13
+
14
+ * **Meaningful Names**: Tokens are named by their purpose (e.g., `on-background-main`) rather than their value
15
+ * **Context-Aware Values**: Values are appropriate for specific UI contexts in web applications
16
+ * **Consistent Theming**: A standardized token structure for web theming
17
+ * **Platform Optimization**: Values are optimized for web browsers and responsive layouts
12
18
 
13
19
  ## Installation
14
20
 
@@ -31,6 +37,13 @@ To incorporate these design tokens into your project, follow these simple steps:
31
37
  1. Import the desired token values from this repository.
32
38
  2. Apply the imported tokens to your components and styles.
33
39
 
40
+ ### Token Categories
41
+
42
+ * `color-semantic-lg-brand`: Semantic color tokens optimized for LG brand identity, featuring warm grays and accent reds
43
+ * `color-semantic-mobile`: Mobile-specific color tokens with cobalt blue as the primary accent color
44
+ * `color-semantic-mono-black`: Dark theme color tokens with mist gray variations for a monochromatic look
45
+ * `color-semantic-mono-white`: Light theme color tokens with a clean, minimalist white-based design
46
+ * `color-semantic-web`: Web-specific color tokens using blue-gray and blue-green combinations for a modern web interface
34
47
 
35
48
  ## Copyright and License Information
36
49
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * SPDX-FileCopyrightText: Copyright 2025 LG Electronics Inc.
3
- * SPDX-License-Identifier: LicenseRef-LGE-Proprietary
3
+ * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
 
6
6
  @import "@enovaui/core-tokens/css/color-primitive.css";
@@ -19,7 +19,7 @@ Semantic Color Tokens
19
19
 
20
20
  /* surface */
21
21
  --semantic-color-surface-default-handle: var(--primitive-color-black);
22
- --semantic-color-surface-default-indicator: var(--primitive-color-pink-40);
22
+ --semantic-color-surface-default-indicator: var(--primitive-color-heritage-red-40);
23
23
  --semantic-color-surface-default-notification: var(--primitive-color-active-red-50);
24
24
  --semantic-color-surface-default-placeholder: var(--primitive-color-warm-gray-60);
25
25
  --semantic-color-surface-default-track: var(--primitive-color-warm-gray-75);
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * SPDX-FileCopyrightText: Copyright 2025 LG Electronics Inc.
3
- * SPDX-License-Identifier: LicenseRef-LGE-Proprietary
3
+ * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
 
6
6
  @import "@enovaui/core-tokens/css/color-primitive.css";
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * SPDX-FileCopyrightText: Copyright 2025 LG Electronics Inc.
3
- * SPDX-License-Identifier: LicenseRef-LGE-Proprietary
3
+ * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
 
6
6
  @import "@enovaui/core-tokens/css/color-primitive.css";
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * SPDX-FileCopyrightText: Copyright 2025 LG Electronics Inc.
3
- * SPDX-License-Identifier: LicenseRef-LGE-Proprietary
3
+ * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
 
6
6
  @import "@enovaui/core-tokens/css/color-primitive.css";
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * SPDX-FileCopyrightText: Copyright 2025 LG Electronics Inc.
3
- * SPDX-License-Identifier: LicenseRef-LGE-Proprietary
3
+ * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
 
6
6
  @import "@enovaui/core-tokens/css/color-primitive.css";
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * SPDX-FileCopyrightText: Copyright 2025 LG Electronics Inc.
3
- * SPDX-License-Identifier: LicenseRef-LGE-Proprietary
3
+ * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
 
6
6
  // This space intentionally left blank
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "surface": {
25
25
  "default-handle": {"$ref": "core-tokens/json/color-primitive.json#/primitive/color/black"},
26
- "default-indicator": {"$ref": "core-tokens/json/color-primitive.json#/primitive/color/pink-40"},
26
+ "default-indicator": {"$ref": "core-tokens/json/color-primitive.json#/primitive/color/heritage-red-40"},
27
27
  "default-notification": {"$ref": "core-tokens/json/color-primitive.json#/primitive/color/active-red-50"},
28
28
  "default-placeholder": {"$ref": "core-tokens/json/color-primitive.json#/primitive/color/warm-gray-60"},
29
29
  "default-track": {"$ref": "core-tokens/json/color-primitive.json#/primitive/color/warm-gray-75"},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enovaui/web-tokens",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Theme design tokens for web",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
@@ -10,6 +10,6 @@
10
10
  "web"
11
11
  ],
12
12
  "dependencies": {
13
- "@enovaui/core-tokens": "^0.6.0"
13
+ "@enovaui/core-tokens": "^0.8.0"
14
14
  }
15
15
  }