@transcodes/design-tokens 0.2.0 → 0.3.1
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 +52 -0
- package/README.md +81 -40
- package/build/components.css +1 -501
- package/build/index.d.ts +210 -0
- package/build/index.js +407 -0
- package/build/tokens-dark.css +1 -27
- package/build/tokens.css +1 -187
- package/build/tokens.d.ts +16 -0
- package/build/tokens.json +8 -0
- package/package.json +15 -4
package/build/tokens.d.ts
CHANGED
|
@@ -117,16 +117,32 @@ export const paperWarm: string;
|
|
|
117
117
|
export const semanticWarning: string;
|
|
118
118
|
/** Warning hover. WCAG AA: 5.8:1 on paper-white */
|
|
119
119
|
export const semanticWarningHover: string;
|
|
120
|
+
/** Warning background tint for callouts/notifications */
|
|
121
|
+
export const semanticWarningBg: string;
|
|
122
|
+
/** Warning light background */
|
|
123
|
+
export const semanticWarningLight: string;
|
|
124
|
+
/** Success background tint for status indicators */
|
|
125
|
+
export const semanticSuccessBg: string;
|
|
120
126
|
/** Info state. WCAG AA: 4.8:1 on paper-white */
|
|
121
127
|
export const semanticInfo: string;
|
|
122
128
|
/** Info hover. WCAG AA: 5.8:1 on paper-white */
|
|
123
129
|
export const semanticInfoHover: string;
|
|
130
|
+
/** Info background tint */
|
|
131
|
+
export const semanticInfoBg: string;
|
|
124
132
|
export const buttonHeight: string;
|
|
125
133
|
export const buttonHeightSecondary: string;
|
|
126
134
|
export const buttonRadius: string;
|
|
127
135
|
export const buttonFontSize: string;
|
|
128
136
|
export const buttonFontWeight: string;
|
|
129
137
|
export const buttonLetterSpacing: string;
|
|
138
|
+
/** Dark button background (console, signin) */
|
|
139
|
+
export const buttonDark: string;
|
|
140
|
+
/** Dark button hover state */
|
|
141
|
+
export const buttonDarkHover: string;
|
|
142
|
+
/** Light gray secondary button background */
|
|
143
|
+
export const buttonLight: string;
|
|
144
|
+
/** Light button hover state */
|
|
145
|
+
export const buttonLightHover: string;
|
|
130
146
|
/** Text button height */
|
|
131
147
|
export const buttonTextHeight: string;
|
|
132
148
|
/** Text button font size */
|
package/build/tokens.json
CHANGED
|
@@ -75,14 +75,22 @@
|
|
|
75
75
|
"PaperWarm": "#ebe9f0",
|
|
76
76
|
"SemanticWarning": "#b45309",
|
|
77
77
|
"SemanticWarningHover": "#92400e",
|
|
78
|
+
"SemanticWarningBg": "#fff8e1",
|
|
79
|
+
"SemanticWarningLight": "#fef3c7",
|
|
80
|
+
"SemanticSuccessBg": "#d1fae5",
|
|
78
81
|
"SemanticInfo": "#0369a1",
|
|
79
82
|
"SemanticInfoHover": "#075985",
|
|
83
|
+
"SemanticInfoBg": "#e0f2fe",
|
|
80
84
|
"ButtonHeight": "3.25rem",
|
|
81
85
|
"ButtonHeightSecondary": "3rem",
|
|
82
86
|
"ButtonRadius": "0.625rem",
|
|
83
87
|
"ButtonFontSize": "0.9375rem",
|
|
84
88
|
"ButtonFontWeight": "500",
|
|
85
89
|
"ButtonLetterSpacing": "0.02em",
|
|
90
|
+
"ButtonDark": "#1a1a1a",
|
|
91
|
+
"ButtonDarkHover": "#2a2a2a",
|
|
92
|
+
"ButtonLight": "#f5f4f8",
|
|
93
|
+
"ButtonLightHover": "#ebe9f0",
|
|
86
94
|
"ButtonTextHeight": "2.5rem",
|
|
87
95
|
"ButtonTextFontSize": "0.875rem",
|
|
88
96
|
"ButtonTextPaddingSm": "clamp(0.25rem, 0.23rem + 0.11vw, 0.3125rem) clamp(0.5rem, 0.46rem + 0.22vw, 0.625rem)",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transcodes/design-tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Style Dictionary based design tokens with dark mode support for consistent, beautiful interfaces",
|
|
6
6
|
"keywords": [
|
|
@@ -29,8 +29,16 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"type": "module",
|
|
32
|
+
"sideEffects": [
|
|
33
|
+
"./build/*.css",
|
|
34
|
+
"./build/index.js"
|
|
35
|
+
],
|
|
32
36
|
"exports": {
|
|
33
|
-
".":
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./build/index.d.ts",
|
|
39
|
+
"import": "./build/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./css": "./build/tokens.css",
|
|
34
42
|
"./tokens.css": "./build/tokens.css",
|
|
35
43
|
"./tokens-dark.css": "./build/tokens-dark.css",
|
|
36
44
|
"./components.css": "./build/components.css",
|
|
@@ -43,14 +51,17 @@
|
|
|
43
51
|
},
|
|
44
52
|
"files": [
|
|
45
53
|
"build/",
|
|
46
|
-
"README.md"
|
|
54
|
+
"README.md",
|
|
55
|
+
"CHANGELOG.md",
|
|
56
|
+
"LICENSE"
|
|
47
57
|
],
|
|
48
58
|
"scripts": {
|
|
49
|
-
"build": "bun --bun style-dictionary build --config sd.config.ts && bun --bun style-dictionary build --config sd.config.dark.ts && bun run scripts/build-components-js.ts",
|
|
59
|
+
"build": "bun --bun style-dictionary build --config sd.config.ts && bun --bun style-dictionary build --config sd.config.dark.ts && bun run scripts/build-dark-css.ts && bun run scripts/build-components-js.ts && bun run scripts/build-index.ts && bun run scripts/minify-css.ts",
|
|
50
60
|
"clean": "rm -rf build"
|
|
51
61
|
},
|
|
52
62
|
"devDependencies": {
|
|
53
63
|
"@types/bun": "^1.3.4",
|
|
64
|
+
"lightningcss": "^1.30.2",
|
|
54
65
|
"style-dictionary": "^5.1.1"
|
|
55
66
|
}
|
|
56
67
|
}
|