@bolerish/tokens 0.10.0 → 0.11.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/package.json +2 -2
- package/src/density.stylex.ts +2 -2
- package/src/semantic.stylex.ts +32 -32
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolerish/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/
|
|
7
|
+
"url": "https://github.com/myjeong19/ui.git"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"exports": {
|
package/src/density.stylex.ts
CHANGED
|
@@ -2,6 +2,6 @@ import * as stylex from "@stylexjs/stylex";
|
|
|
2
2
|
|
|
3
3
|
/** Keep focus strokes, 24px icon-xs controls and touch targets independent of density. */
|
|
4
4
|
export const densityStyles = stylex.create({
|
|
5
|
-
default: { "--
|
|
6
|
-
compact: { "--
|
|
5
|
+
default: { "--bolerish-density": 1 },
|
|
6
|
+
compact: { "--bolerish-density": 0.875 },
|
|
7
7
|
});
|
package/src/semantic.stylex.ts
CHANGED
|
@@ -63,16 +63,16 @@ export const colorVars = stylex.defineVars({
|
|
|
63
63
|
|
|
64
64
|
export const spacingVars = stylex.defineVars({
|
|
65
65
|
space0: "0",
|
|
66
|
-
space0_5: "calc(0.125 * var(--
|
|
67
|
-
space1: "calc(0.25 * var(--
|
|
68
|
-
space2: "calc(0.5 * var(--
|
|
69
|
-
space3: "calc(0.75 * var(--
|
|
70
|
-
space4: "calc(1 * var(--
|
|
71
|
-
space5: "calc(1.25 * var(--
|
|
72
|
-
space6: "calc(1.5 * var(--
|
|
73
|
-
space8: "calc(2 * var(--
|
|
74
|
-
space10: "calc(2.5 * var(--
|
|
75
|
-
space12: "calc(3 * var(--
|
|
66
|
+
space0_5: "calc(0.125 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
67
|
+
space1: "calc(0.25 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
68
|
+
space2: "calc(0.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
69
|
+
space3: "calc(0.75 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
70
|
+
space4: "calc(1 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
71
|
+
space5: "calc(1.25 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
72
|
+
space6: "calc(1.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
73
|
+
space8: "calc(2 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
74
|
+
space10: "calc(2.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
75
|
+
space12: "calc(3 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
export const spacingRoleVars = stylex.defineVars({
|
|
@@ -93,24 +93,24 @@ export const spacingRoleVars = stylex.defineVars({
|
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
export const layoutVars = stylex.defineVars({
|
|
96
|
-
contentMaxWidth: "calc(65 * var(--
|
|
96
|
+
contentMaxWidth: "calc(65 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
export const sizeVars = stylex.defineVars({
|
|
100
100
|
controlXs: "1.5rem",
|
|
101
|
-
controlSm: "calc(2 * var(--
|
|
102
|
-
controlMd: "calc(2.25 * var(--
|
|
103
|
-
controlLg: "calc(2.5 * var(--
|
|
104
|
-
controlXl: "calc(3 * var(--
|
|
105
|
-
iconXs: "calc(0.75 * var(--
|
|
106
|
-
iconSm: "calc(0.875 * var(--
|
|
107
|
-
iconMd: "calc(1 * var(--
|
|
108
|
-
iconLg: "calc(1.25 * var(--
|
|
109
|
-
contentXs: "calc(18 * var(--
|
|
110
|
-
contentSm: "calc(24 * var(--
|
|
111
|
-
contentMd: "calc(32 * var(--
|
|
112
|
-
trackSm: "calc(0.375 * var(--
|
|
113
|
-
trackMd: "calc(0.5 * var(--
|
|
101
|
+
controlSm: "calc(2 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
102
|
+
controlMd: "calc(2.25 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
103
|
+
controlLg: "calc(2.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
104
|
+
controlXl: "calc(3 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
105
|
+
iconXs: "calc(0.75 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
106
|
+
iconSm: "calc(0.875 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
107
|
+
iconMd: "calc(1 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
108
|
+
iconLg: "calc(1.25 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
109
|
+
contentXs: "calc(18 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
110
|
+
contentSm: "calc(24 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
111
|
+
contentMd: "calc(32 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
112
|
+
trackSm: "calc(0.375 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
113
|
+
trackMd: "calc(0.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
114
114
|
touchTarget: "2.75rem",
|
|
115
115
|
stroke: "0.0625rem",
|
|
116
116
|
focusRing: "0.125rem",
|
|
@@ -140,16 +140,16 @@ export const layerVars = stylex.defineVars({
|
|
|
140
140
|
export const typo = stylex.defineVars({
|
|
141
141
|
/** @deprecated Use fontFamilyBody or fontFamilyHeading instead. */
|
|
142
142
|
fontFamily:
|
|
143
|
-
'var(--
|
|
143
|
+
'var(--bolerish-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif)',
|
|
144
144
|
fontFamilyBody:
|
|
145
|
-
'var(--
|
|
145
|
+
'var(--bolerish-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif)',
|
|
146
146
|
fontFamilyHeading:
|
|
147
|
-
'var(--
|
|
148
|
-
fontSizeXs: "calc(0.75 * var(--
|
|
149
|
-
fontSizeSm: "calc(0.875 * var(--
|
|
150
|
-
fontSizeMd: "calc(1 * var(--
|
|
151
|
-
fontSizeLg: "calc(1.125 * var(--
|
|
152
|
-
fontSizeXl: "calc(1.5 * var(--
|
|
147
|
+
'var(--bolerish-font-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif)',
|
|
148
|
+
fontSizeXs: "calc(0.75 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
149
|
+
fontSizeSm: "calc(0.875 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
150
|
+
fontSizeMd: "calc(1 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
151
|
+
fontSizeLg: "calc(1.125 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
152
|
+
fontSizeXl: "calc(1.5 * var(--bolerish-unit, 1rem) * var(--bolerish-density, 1))",
|
|
153
153
|
lineHeightTight: "1.25",
|
|
154
154
|
lineHeightNormal: "1.5",
|
|
155
155
|
fontWeightRegular: "400",
|