@tac-ui/tokens 1.0.2 → 1.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/dist/{chunk-7I7QJ2NP.mjs → chunk-I2PXRTYK.mjs} +54 -51
- package/dist/index.d.mts +75 -48
- package/dist/index.d.ts +75 -48
- package/dist/index.js +54 -51
- package/dist/index.mjs +1 -1
- package/dist/{motion-DrXQxG6N.d.mts → motion-BRcQTpE0.d.mts} +24 -7
- package/dist/{motion-DrXQxG6N.d.ts → motion-BRcQTpE0.d.ts} +24 -7
- package/dist/native/index.d.mts +1 -1
- package/dist/native/index.d.ts +1 -1
- package/dist/native/index.js +48 -51
- package/dist/native/index.mjs +2 -2
- package/dist/web/css-variables.js +63 -50
- package/dist/web/css-variables.mjs +24 -8
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { px, rem, unitless, ms } from '../chunk-GLCF64BD.mjs';
|
|
2
|
-
import { semanticTokens, chart, elevation, motion, typography, component, zIndex, radius, spacing } from '../chunk-
|
|
2
|
+
import { semanticTokens, chart, elevation, motion, typography, component, zIndex, radius, spacing } from '../chunk-I2PXRTYK.mjs';
|
|
3
3
|
|
|
4
4
|
// src/web/css-variables.ts
|
|
5
5
|
function generateCSSVariables(mode) {
|
|
@@ -11,6 +11,7 @@ function generateCSSVariables(mode) {
|
|
|
11
11
|
"--font-primary": `'${typography.fontFamily.primary}', -apple-system, BlinkMacSystemFont, system-ui, sans-serif`,
|
|
12
12
|
"--font-secondary": `'${typography.fontFamily.secondary}', sans-serif`,
|
|
13
13
|
"--font-display": `'${typography.fontFamily.display}', '${typography.fontFamily.primary}', sans-serif`,
|
|
14
|
+
"--font-mono": `'${typography.fontFamily.mono}', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,
|
|
14
15
|
// Colors
|
|
15
16
|
"--background": colors.background,
|
|
16
17
|
"--background-subtle": colors.backgroundSubtle,
|
|
@@ -204,13 +205,28 @@ function generateCSSVariables(mode) {
|
|
|
204
205
|
"--btn-lg-radius": px(component.button.lg.borderRadius),
|
|
205
206
|
"--btn-icon-size": px(component.button.md.iconSize),
|
|
206
207
|
// Component: Input
|
|
207
|
-
"--input-height": rem(component.input.height),
|
|
208
|
-
"--input-px": rem(component.input.paddingX),
|
|
209
|
-
"--input-
|
|
210
|
-
"--input-
|
|
211
|
-
"--input-
|
|
212
|
-
"--input-icon-
|
|
213
|
-
"--input-
|
|
208
|
+
"--input-sm-height": rem(component.input.sm.height),
|
|
209
|
+
"--input-sm-px": rem(component.input.sm.paddingX),
|
|
210
|
+
"--input-sm-font-size": rem(component.input.sm.fontSize),
|
|
211
|
+
"--input-sm-radius": px(component.input.sm.borderRadius),
|
|
212
|
+
"--input-sm-icon-size": px(component.input.sm.iconSize),
|
|
213
|
+
"--input-sm-icon-padding": rem(component.input.sm.iconPadding),
|
|
214
|
+
"--input-md-height": rem(component.input.md.height),
|
|
215
|
+
"--input-md-px": rem(component.input.md.paddingX),
|
|
216
|
+
"--input-md-font-size": rem(component.input.md.fontSize),
|
|
217
|
+
"--input-md-radius": px(component.input.md.borderRadius),
|
|
218
|
+
"--input-md-icon-size": px(component.input.md.iconSize),
|
|
219
|
+
"--input-md-icon-padding": rem(component.input.md.iconPadding),
|
|
220
|
+
"--input-lg-height": rem(component.input.lg.height),
|
|
221
|
+
"--input-lg-px": rem(component.input.lg.paddingX),
|
|
222
|
+
"--input-lg-font-size": rem(component.input.lg.fontSize),
|
|
223
|
+
"--input-lg-radius": px(component.input.lg.borderRadius),
|
|
224
|
+
"--input-lg-icon-size": px(component.input.lg.iconSize),
|
|
225
|
+
"--input-lg-icon-padding": rem(component.input.lg.iconPadding),
|
|
226
|
+
// Component: Input (md aliases for backward compat)
|
|
227
|
+
"--input-height": rem(component.input.md.height),
|
|
228
|
+
"--input-radius": px(component.input.md.borderRadius),
|
|
229
|
+
"--input-font-size": rem(component.input.md.fontSize),
|
|
214
230
|
// Component: Card
|
|
215
231
|
"--card-padding": rem(component.card.padding),
|
|
216
232
|
"--card-gap": rem(component.card.gap),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tac-ui/tokens",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Design tokens for Tac UI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tac-ui/shared": "^1.0
|
|
35
|
+
"@tac-ui/shared": "^1.1.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"tsup": "^8.3.0",
|