@seanyeh77/tokens 0.52.0 → 0.53.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/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/dist/tailwind.css +1 -0
- package/dist/tokens.css +6 -0
- package/package.json +1 -1
- package/tokens.json +6 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Generated from tokens.json by scripts/build.ts. Do not edit by hand. */
|
|
2
2
|
|
|
3
3
|
export type ColorToken = 'bg' | 'surface' | 'surface-sub' | 'surface-chrome' | 'surface-input' | 'ink' | 'ink-muted' | 'line' | 'line-strong' | 'graph-edge' | 'graph-node' | 'code-keyword' | 'code-constant' | 'accent' | 'accent-hover' | 'accent-press' | 'accent-text' | 'accent-soft' | 'on-accent' | 'focus' | 'focus-ring' | 'success' | 'success-text' | 'success-soft' | 'warning' | 'warning-text' | 'warning-soft' | 'danger' | 'on-danger' | 'danger-text' | 'danger-soft' | 'info-text' | 'info-soft' | 'on-solid' | 'danger-ring' | 'mark' | 'scrim' | 'scrim-strong' | 'edge-shadow' | 'file-other' | 'file-pdf' | 'file-video' | 'file-audio' | 'file-slides' | 'file-doc' | 'file-sheet' | 'file-image' | 'file-code' | 'neutral-0' | 'neutral-50' | 'neutral-100' | 'neutral-200' | 'neutral-300' | 'neutral-400' | 'neutral-500' | 'neutral-600' | 'neutral-700' | 'neutral-800' | 'neutral-900' | 'neutral-950' | 'chart-1' | 'chart-2' | 'chart-3' | 'chart-4' | 'heat-1' | 'heat-2' | 'heat-3' | 'heat-4' | 'heat-5' | 'heat-6' | 'heat-7' | 'diverge-neg-strong' | 'diverge-neg' | 'diverge-zero' | 'diverge-pos' | 'diverge-pos-strong' | 'forecast-stripe';
|
|
4
|
-
export type SpaceToken = 'space-1' | 'space-2' | 'space-3' | 'space-4' | 'space-5' | 'space-6' | 'space-8' | 'space-12';
|
|
4
|
+
export type SpaceToken = 'space-1' | 'space-2' | 'space-3' | 'space-4' | 'space-5' | 'space-6' | 'space-8' | 'block-gap' | 'space-12';
|
|
5
5
|
export type RadiusToken = 'radius-xs' | 'radius-sm' | 'radius-chip' | 'radius-md' | 'radius-lg' | 'radius-full';
|
|
6
6
|
export type ShadowToken = 'shadow-sm' | 'shadow-chip' | 'shadow-card' | 'shadow-card-hover' | 'shadow-overlay';
|
|
7
7
|
export type SizeToken = 'control-height' | 'chip-height' | 'touch-target' | 'header-height' | 'sidebar-width' | 'sidebar-collapsed' | 'tabbar-height' | 'icon-stroke' | 'alert-bar' | 'bp-tablet' | 'bp-desktop' | 'bp-wide';
|
package/dist/index.js
CHANGED
package/dist/tailwind.css
CHANGED
package/dist/tokens.css
CHANGED
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
--space-5: 20px;
|
|
89
89
|
--space-6: 24px;
|
|
90
90
|
--space-8: 32px;
|
|
91
|
+
--block-gap: 32px;
|
|
91
92
|
--space-12: 48px;
|
|
92
93
|
--radius-xs: 4px;
|
|
93
94
|
--radius-sm: 6px;
|
|
@@ -234,4 +235,9 @@
|
|
|
234
235
|
--shadow-card: none;
|
|
235
236
|
--shadow-card-hover: none;
|
|
236
237
|
}
|
|
238
|
+
@media (max-width: 599px) {
|
|
239
|
+
:root {
|
|
240
|
+
--block-gap: 16px;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
237
243
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanyeh77/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "Design tokens of SeanYeh's design system: CSS variables for light, dark and the teaching preset, a Tailwind v4 theme, typed token names and self-hosted fonts.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hsiu-An Yeh",
|
package/tokens.json
CHANGED
|
@@ -835,6 +835,12 @@
|
|
|
835
835
|
"value": "32px",
|
|
836
836
|
"usage": "Gap between page sections (compact)."
|
|
837
837
|
},
|
|
838
|
+
{
|
|
839
|
+
"name": "block-gap",
|
|
840
|
+
"value": "32px",
|
|
841
|
+
"phone": "16px",
|
|
842
|
+
"usage": "The one vertical distance between blocks stacked on a page (cards, KPI rows, alerts, tables): Page, the rows of a Grid, a Page inside a Grid and the settings sections all use it, so two neighbouring blocks are always the same distance apart. 32 px; 16 px on phones (under 600 px)."
|
|
843
|
+
},
|
|
838
844
|
{
|
|
839
845
|
"name": "space-12",
|
|
840
846
|
"value": "48px",
|