@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 +8 -0
- package/README.md +17 -4
- package/css/color-semantic-lg-brand.css +2 -2
- package/css/color-semantic-mobile.css +1 -1
- package/css/color-semantic-mono-black.css +1 -1
- package/css/color-semantic-mono-white.css +1 -1
- package/css/color-semantic-web.css +1 -1
- package/index.js +1 -1
- package/json/color-semantic-lg-brand.json +1 -1
- package/package.json +2 -2
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
|
-
#
|
|
1
|
+
# @enovaui/web-tokens
|
|
2
|
+
[](https://www.npmjs.com/package/@enovaui/web-tokens) [](http://www.apache.org/licenses/LICENSE-2.0)
|
|
2
3
|
|
|
3
|
-
|
|
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
|
|
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
|
|
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:
|
|
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-
|
|
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);
|
package/index.js
CHANGED
|
@@ -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/
|
|
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.
|
|
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.
|
|
13
|
+
"@enovaui/core-tokens": "^0.8.0"
|
|
14
14
|
}
|
|
15
15
|
}
|