@bwui/tokens 0.0.0-stage → 0.1.2
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/LICENSE +21 -0
- package/dist/figma-variables.json +2440 -0
- package/dist/tailwind-preset.mjs +182 -0
- package/dist/tailwind-theme.css +125 -0
- package/dist/token-manifest.json +356 -0
- package/dist/tokens.css +724 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.dtcg.json +1861 -0
- package/dist/tokens.js +377 -0
- package/package.json +36 -3
- package/src/dtcg/breakpoint.tokens.json +20 -0
- package/src/dtcg/component.tokens.json +480 -0
- package/src/dtcg/density.comfortable.tokens.json +47 -0
- package/src/dtcg/density.compact.tokens.json +45 -0
- package/src/dtcg/density.spacious.tokens.json +45 -0
- package/src/dtcg/motion.tokens.json +39 -0
- package/src/dtcg/primitive.tokens.json +347 -0
- package/src/dtcg/semantic.dark.tokens.json +648 -0
- package/src/dtcg/semantic.light.tokens.json +677 -0
- package/src/dtcg/typography.tokens.json +99 -0
- package/README.md +0 -3
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
// GENERATED: brickwork token names as CSS custom-property references.
|
|
2
|
+
// Read a live value with getComputedStyle(el).getPropertyValue(tokens.X).
|
|
3
|
+
export const tokens = Object.freeze({
|
|
4
|
+
"breakpoint_lg": "var(--bw-breakpoint-lg)",
|
|
5
|
+
"breakpoint_md": "var(--bw-breakpoint-md)",
|
|
6
|
+
"breakpoint_sm": "var(--bw-breakpoint-sm)",
|
|
7
|
+
"breakpoint_xl": "var(--bw-breakpoint-xl)",
|
|
8
|
+
"color_accent": "var(--bw-color-accent)",
|
|
9
|
+
"color_accent_hover": "var(--bw-color-accent-hover)",
|
|
10
|
+
"color_accent_subtle": "var(--bw-color-accent-subtle)",
|
|
11
|
+
"color_action_disabled_bg": "var(--bw-color-action-disabled-bg)",
|
|
12
|
+
"color_action_disabled_border": "var(--bw-color-action-disabled-border)",
|
|
13
|
+
"color_action_disabled_text": "var(--bw-color-action-disabled-text)",
|
|
14
|
+
"color_border": "var(--bw-color-border)",
|
|
15
|
+
"color_border_control": "var(--bw-color-border-control)",
|
|
16
|
+
"color_border_strong": "var(--bw-color-border-strong)",
|
|
17
|
+
"color_chart_1": "var(--bw-color-chart-1)",
|
|
18
|
+
"color_chart_2": "var(--bw-color-chart-2)",
|
|
19
|
+
"color_chart_3": "var(--bw-color-chart-3)",
|
|
20
|
+
"color_chart_4": "var(--bw-color-chart-4)",
|
|
21
|
+
"color_chart_5": "var(--bw-color-chart-5)",
|
|
22
|
+
"color_chart_6": "var(--bw-color-chart-6)",
|
|
23
|
+
"color_chart_7": "var(--bw-color-chart-7)",
|
|
24
|
+
"color_chart_8": "var(--bw-color-chart-8)",
|
|
25
|
+
"color_chart_axis": "var(--bw-color-chart-axis)",
|
|
26
|
+
"color_chart_axis_label": "var(--bw-color-chart-axis-label)",
|
|
27
|
+
"color_chart_grid": "var(--bw-color-chart-grid)",
|
|
28
|
+
"color_chart_tooltip_bg": "var(--bw-color-chart-tooltip-bg)",
|
|
29
|
+
"color_chart_tooltip_border": "var(--bw-color-chart-tooltip-border)",
|
|
30
|
+
"color_chart_tooltip_text": "var(--bw-color-chart-tooltip-text)",
|
|
31
|
+
"color_danger": "var(--bw-color-danger)",
|
|
32
|
+
"color_danger_border": "var(--bw-color-danger-border)",
|
|
33
|
+
"color_danger_fg": "var(--bw-color-danger-fg)",
|
|
34
|
+
"color_danger_on_fg": "var(--bw-color-danger-on-fg)",
|
|
35
|
+
"color_danger_strong": "var(--bw-color-danger-strong)",
|
|
36
|
+
"color_danger_subtle": "var(--bw-color-danger-subtle)",
|
|
37
|
+
"color_fg": "var(--bw-color-fg)",
|
|
38
|
+
"color_fg_muted": "var(--bw-color-fg-muted)",
|
|
39
|
+
"color_fg_on_accent": "var(--bw-color-fg-on-accent)",
|
|
40
|
+
"color_fg_on_inverse": "var(--bw-color-fg-on-inverse)",
|
|
41
|
+
"color_fg_subtle": "var(--bw-color-fg-subtle)",
|
|
42
|
+
"color_focus_ring": "var(--bw-color-focus-ring)",
|
|
43
|
+
"color_icon_muted": "var(--bw-color-icon-muted)",
|
|
44
|
+
"color_info": "var(--bw-color-info)",
|
|
45
|
+
"color_info_border": "var(--bw-color-info-border)",
|
|
46
|
+
"color_info_fg": "var(--bw-color-info-fg)",
|
|
47
|
+
"color_info_on_fg": "var(--bw-color-info-on-fg)",
|
|
48
|
+
"color_info_strong": "var(--bw-color-info-strong)",
|
|
49
|
+
"color_info_subtle": "var(--bw-color-info-subtle)",
|
|
50
|
+
"color_sparkline_stroke": "var(--bw-color-sparkline-stroke)",
|
|
51
|
+
"color_stage_grid": "var(--bw-color-stage-grid)",
|
|
52
|
+
"color_stage_wash": "var(--bw-color-stage-wash)",
|
|
53
|
+
"color_status_fg_ink": "var(--bw-color-status-fg-ink)",
|
|
54
|
+
"color_success": "var(--bw-color-success)",
|
|
55
|
+
"color_success_border": "var(--bw-color-success-border)",
|
|
56
|
+
"color_success_fg": "var(--bw-color-success-fg)",
|
|
57
|
+
"color_success_on_fg": "var(--bw-color-success-on-fg)",
|
|
58
|
+
"color_success_strong": "var(--bw-color-success-strong)",
|
|
59
|
+
"color_success_subtle": "var(--bw-color-success-subtle)",
|
|
60
|
+
"color_surface": "var(--bw-color-surface)",
|
|
61
|
+
"color_surface_inverse": "var(--bw-color-surface-inverse)",
|
|
62
|
+
"color_surface_marketing_tint": "var(--bw-color-surface-marketing-tint)",
|
|
63
|
+
"color_surface_overlay": "var(--bw-color-surface-overlay)",
|
|
64
|
+
"color_surface_raised": "var(--bw-color-surface-raised)",
|
|
65
|
+
"color_surface_sunken": "var(--bw-color-surface-sunken)",
|
|
66
|
+
"color_warning": "var(--bw-color-warning)",
|
|
67
|
+
"color_warning_border": "var(--bw-color-warning-border)",
|
|
68
|
+
"color_warning_fg": "var(--bw-color-warning-fg)",
|
|
69
|
+
"color_warning_on_fg": "var(--bw-color-warning-on-fg)",
|
|
70
|
+
"color_warning_strong": "var(--bw-color-warning-strong)",
|
|
71
|
+
"color_warning_subtle": "var(--bw-color-warning-subtle)",
|
|
72
|
+
"component_breadcrumb_current": "var(--bw-component-breadcrumb-current)",
|
|
73
|
+
"component_breadcrumb_separator": "var(--bw-component-breadcrumb-separator)",
|
|
74
|
+
"component_button_elevation": "var(--bw-component-button-elevation)",
|
|
75
|
+
"component_button_elevation_hover": "var(--bw-component-button-elevation-hover)",
|
|
76
|
+
"component_button_hover_translate": "var(--bw-component-button-hover-translate)",
|
|
77
|
+
"component_button_radius": "var(--bw-component-button-radius)",
|
|
78
|
+
"component_checkbox_glyph": "var(--bw-component-checkbox-glyph)",
|
|
79
|
+
"component_content_max_width": "var(--bw-component-content-max-width)",
|
|
80
|
+
"component_content_max_width_marketing": "var(--bw-component-content-max-width-marketing)",
|
|
81
|
+
"component_disabled_opacity": "var(--bw-component-disabled-opacity)",
|
|
82
|
+
"component_docs_nav_inline_size": "var(--bw-component-docs-nav-inline-size)",
|
|
83
|
+
"component_drawer_width": "var(--bw-component-drawer-width)",
|
|
84
|
+
"component_gauge_diameter_lg": "var(--bw-component-gauge-diameter-lg)",
|
|
85
|
+
"component_gauge_diameter_md": "var(--bw-component-gauge-diameter-md)",
|
|
86
|
+
"component_gauge_diameter_sm": "var(--bw-component-gauge-diameter-sm)",
|
|
87
|
+
"component_gauge_stroke_width": "var(--bw-component-gauge-stroke-width)",
|
|
88
|
+
"component_hero_copy_max_width": "var(--bw-component-hero-copy-max-width)",
|
|
89
|
+
"component_hero_decoration_inset": "var(--bw-component-hero-decoration-inset)",
|
|
90
|
+
"component_hero_decoration_opacity": "var(--bw-component-hero-decoration-opacity)",
|
|
91
|
+
"component_hero_decoration_size": "var(--bw-component-hero-decoration-size)",
|
|
92
|
+
"component_hero_eyebrow_marker_block_size": "var(--bw-component-hero-eyebrow-marker-block-size)",
|
|
93
|
+
"component_hero_eyebrow_marker_color": "var(--bw-component-hero-eyebrow-marker-color)",
|
|
94
|
+
"component_hero_eyebrow_marker_inline_size": "var(--bw-component-hero-eyebrow-marker-inline-size)",
|
|
95
|
+
"component_hero_heading_max_width": "var(--bw-component-hero-heading-max-width)",
|
|
96
|
+
"component_hero_lede_max_width": "var(--bw-component-hero-lede-max-width)",
|
|
97
|
+
"component_hero_media_circle_size": "var(--bw-component-hero-media-circle-size)",
|
|
98
|
+
"component_htmx_indicator_opacity": "var(--bw-component-htmx-indicator-opacity)",
|
|
99
|
+
"component_icon_size_2xl": "var(--bw-component-icon-size-2xl)",
|
|
100
|
+
"component_icon_size_lg": "var(--bw-component-icon-size-lg)",
|
|
101
|
+
"component_icon_size_md": "var(--bw-component-icon-size-md)",
|
|
102
|
+
"component_icon_size_sm": "var(--bw-component-icon-size-sm)",
|
|
103
|
+
"component_icon_size_xl": "var(--bw-component-icon-size-xl)",
|
|
104
|
+
"component_icon_stroke_width": "var(--bw-component-icon-stroke-width)",
|
|
105
|
+
"component_logo_height": "var(--bw-component-logo-height)",
|
|
106
|
+
"component_menu_min_width": "var(--bw-component-menu-min-width)",
|
|
107
|
+
"component_nav_item_active_bg": "var(--bw-component-nav-item-active-bg)",
|
|
108
|
+
"component_nav_item_active_border": "var(--bw-component-nav-item-active-border)",
|
|
109
|
+
"component_nav_item_active_text": "var(--bw-component-nav-item-active-text)",
|
|
110
|
+
"component_nav_item_disabled_text": "var(--bw-component-nav-item-disabled-text)",
|
|
111
|
+
"component_nav_section_text": "var(--bw-component-nav-section-text)",
|
|
112
|
+
"component_progress_track_height": "var(--bw-component-progress-track-height)",
|
|
113
|
+
"component_ranked_list_bar_thickness": "var(--bw-component-ranked-list-bar-thickness)",
|
|
114
|
+
"component_ranked_list_row_gap": "var(--bw-component-ranked-list-row-gap)",
|
|
115
|
+
"component_scorecard_columns_base": "var(--bw-component-scorecard-columns-base)",
|
|
116
|
+
"component_scorecard_columns_lg": "var(--bw-component-scorecard-columns-lg)",
|
|
117
|
+
"component_scorecard_columns_sm": "var(--bw-component-scorecard-columns-sm)",
|
|
118
|
+
"component_section_gap_marketing": "var(--bw-component-section-gap-marketing)",
|
|
119
|
+
"component_select_indicator": "var(--bw-component-select-indicator)",
|
|
120
|
+
"component_skeleton_bg": "var(--bw-component-skeleton-bg)",
|
|
121
|
+
"component_skeleton_shimmer": "var(--bw-component-skeleton-shimmer)",
|
|
122
|
+
"component_sparkline_marker_radius": "var(--bw-component-sparkline-marker-radius)",
|
|
123
|
+
"component_sparkline_stroke_width": "var(--bw-component-sparkline-stroke-width)",
|
|
124
|
+
"component_stat_tile_sparkline_height": "var(--bw-component-stat-tile-sparkline-height)",
|
|
125
|
+
"component_stat_tile_value_size": "var(--bw-component-stat-tile-value-size)",
|
|
126
|
+
"component_toast_max_width": "var(--bw-component-toast-max-width)",
|
|
127
|
+
"component_toggle_thumb_inset": "var(--bw-component-toggle-thumb-inset)",
|
|
128
|
+
"component_toggle_thumb_size": "var(--bw-component-toggle-thumb-size)",
|
|
129
|
+
"component_toggle_track_height": "var(--bw-component-toggle-track-height)",
|
|
130
|
+
"component_toggle_track_width": "var(--bw-component-toggle-track-width)",
|
|
131
|
+
"component_tooltip_max_width": "var(--bw-component-tooltip-max-width)",
|
|
132
|
+
"component_topbar_position": "var(--bw-component-topbar-position)",
|
|
133
|
+
"debounce_search": "var(--bw-debounce-search)",
|
|
134
|
+
"density_card_padding": "var(--bw-density-card-padding)",
|
|
135
|
+
"density_control_height": "var(--bw-density-control-height)",
|
|
136
|
+
"density_control_padding_inline": "var(--bw-density-control-padding-inline)",
|
|
137
|
+
"density_page_gutter_inline": "var(--bw-density-page-gutter-inline)",
|
|
138
|
+
"density_rail_width": "var(--bw-density-rail-width)",
|
|
139
|
+
"density_rail_width_expanded": "var(--bw-density-rail-width-expanded)",
|
|
140
|
+
"density_row_padding_block": "var(--bw-density-row-padding-block)",
|
|
141
|
+
"density_row_padding_inline": "var(--bw-density-row-padding-inline)",
|
|
142
|
+
"density_section_gap": "var(--bw-density-section-gap)",
|
|
143
|
+
"density_sidebar_width": "var(--bw-density-sidebar-width)",
|
|
144
|
+
"density_sidebar_width_collapsed": "var(--bw-density-sidebar-width-collapsed)",
|
|
145
|
+
"density_stack_gap": "var(--bw-density-stack-gap)",
|
|
146
|
+
"density_topbar_height": "var(--bw-density-topbar-height)",
|
|
147
|
+
"duration_fast": "var(--bw-duration-fast)",
|
|
148
|
+
"duration_instant": "var(--bw-duration-instant)",
|
|
149
|
+
"duration_moderate": "var(--bw-duration-moderate)",
|
|
150
|
+
"duration_normal": "var(--bw-duration-normal)",
|
|
151
|
+
"duration_shimmer": "var(--bw-duration-shimmer)",
|
|
152
|
+
"duration_slow": "var(--bw-duration-slow)",
|
|
153
|
+
"duration_spin": "var(--bw-duration-spin)",
|
|
154
|
+
"duration_toast_long": "var(--bw-duration-toast-long)",
|
|
155
|
+
"duration_toast_normal": "var(--bw-duration-toast-normal)",
|
|
156
|
+
"duration_toast_short": "var(--bw-duration-toast-short)",
|
|
157
|
+
"ease_emphasised": "var(--bw-ease-emphasised)",
|
|
158
|
+
"ease_in": "var(--bw-ease-in)",
|
|
159
|
+
"ease_in_out": "var(--bw-ease-in-out)",
|
|
160
|
+
"ease_linear": "var(--bw-ease-linear)",
|
|
161
|
+
"ease_out": "var(--bw-ease-out)",
|
|
162
|
+
"ease_standard": "var(--bw-ease-standard)",
|
|
163
|
+
"elevation_0": "var(--bw-elevation-0)",
|
|
164
|
+
"elevation_1": "var(--bw-elevation-1)",
|
|
165
|
+
"elevation_2": "var(--bw-elevation-2)",
|
|
166
|
+
"elevation_3": "var(--bw-elevation-3)",
|
|
167
|
+
"elevation_4": "var(--bw-elevation-4)",
|
|
168
|
+
"elevation_5": "var(--bw-elevation-5)",
|
|
169
|
+
"focus_ring_offset": "var(--bw-focus-ring-offset)",
|
|
170
|
+
"focus_ring_style": "var(--bw-focus-ring-style)",
|
|
171
|
+
"focus_ring_width": "var(--bw-focus-ring-width)",
|
|
172
|
+
"font_family_display": "var(--bw-font-family-display)",
|
|
173
|
+
"font_family_mono": "var(--bw-font-family-mono)",
|
|
174
|
+
"font_family_sans": "var(--bw-font-family-sans)",
|
|
175
|
+
"font_line_height_loose": "var(--bw-font-line-height-loose)",
|
|
176
|
+
"font_line_height_none": "var(--bw-font-line-height-none)",
|
|
177
|
+
"font_line_height_normal": "var(--bw-font-line-height-normal)",
|
|
178
|
+
"font_line_height_relaxed": "var(--bw-font-line-height-relaxed)",
|
|
179
|
+
"font_line_height_snug": "var(--bw-font-line-height-snug)",
|
|
180
|
+
"font_line_height_tight": "var(--bw-font-line-height-tight)",
|
|
181
|
+
"font_size_2xl": "var(--bw-font-size-2xl)",
|
|
182
|
+
"font_size_2xs": "var(--bw-font-size-2xs)",
|
|
183
|
+
"font_size_3xl": "var(--bw-font-size-3xl)",
|
|
184
|
+
"font_size_4xl": "var(--bw-font-size-4xl)",
|
|
185
|
+
"font_size_5xl": "var(--bw-font-size-5xl)",
|
|
186
|
+
"font_size_lg": "var(--bw-font-size-lg)",
|
|
187
|
+
"font_size_md": "var(--bw-font-size-md)",
|
|
188
|
+
"font_size_sm": "var(--bw-font-size-sm)",
|
|
189
|
+
"font_size_xl": "var(--bw-font-size-xl)",
|
|
190
|
+
"font_size_xs": "var(--bw-font-size-xs)",
|
|
191
|
+
"font_tracking_normal": "var(--bw-font-tracking-normal)",
|
|
192
|
+
"font_tracking_tight": "var(--bw-font-tracking-tight)",
|
|
193
|
+
"font_tracking_wide": "var(--bw-font-tracking-wide)",
|
|
194
|
+
"font_tracking_wider": "var(--bw-font-tracking-wider)",
|
|
195
|
+
"font_weight_bold": "var(--bw-font-weight-bold)",
|
|
196
|
+
"font_weight_medium": "var(--bw-font-weight-medium)",
|
|
197
|
+
"font_weight_normal": "var(--bw-font-weight-normal)",
|
|
198
|
+
"font_weight_semibold": "var(--bw-font-weight-semibold)",
|
|
199
|
+
"opacity_muted": "var(--bw-opacity-muted)",
|
|
200
|
+
"opacity_sort_idle": "var(--bw-opacity-sort-idle)",
|
|
201
|
+
"primitive_amber_100": "var(--bw-primitive-amber-100)",
|
|
202
|
+
"primitive_amber_50": "var(--bw-primitive-amber-50)",
|
|
203
|
+
"primitive_amber_500": "var(--bw-primitive-amber-500)",
|
|
204
|
+
"primitive_amber_600": "var(--bw-primitive-amber-600)",
|
|
205
|
+
"primitive_amber_700": "var(--bw-primitive-amber-700)",
|
|
206
|
+
"primitive_amber_950": "var(--bw-primitive-amber-950)",
|
|
207
|
+
"primitive_blue_100": "var(--bw-primitive-blue-100)",
|
|
208
|
+
"primitive_blue_400": "var(--bw-primitive-blue-400)",
|
|
209
|
+
"primitive_blue_50": "var(--bw-primitive-blue-50)",
|
|
210
|
+
"primitive_blue_500": "var(--bw-primitive-blue-500)",
|
|
211
|
+
"primitive_blue_600": "var(--bw-primitive-blue-600)",
|
|
212
|
+
"primitive_blue_700": "var(--bw-primitive-blue-700)",
|
|
213
|
+
"primitive_blue_950": "var(--bw-primitive-blue-950)",
|
|
214
|
+
"primitive_chart_dark_1": "var(--bw-primitive-chart-dark-1)",
|
|
215
|
+
"primitive_chart_dark_2": "var(--bw-primitive-chart-dark-2)",
|
|
216
|
+
"primitive_chart_dark_3": "var(--bw-primitive-chart-dark-3)",
|
|
217
|
+
"primitive_chart_dark_4": "var(--bw-primitive-chart-dark-4)",
|
|
218
|
+
"primitive_chart_dark_5": "var(--bw-primitive-chart-dark-5)",
|
|
219
|
+
"primitive_chart_dark_6": "var(--bw-primitive-chart-dark-6)",
|
|
220
|
+
"primitive_chart_dark_7": "var(--bw-primitive-chart-dark-7)",
|
|
221
|
+
"primitive_chart_dark_8": "var(--bw-primitive-chart-dark-8)",
|
|
222
|
+
"primitive_chart_light_1": "var(--bw-primitive-chart-light-1)",
|
|
223
|
+
"primitive_chart_light_2": "var(--bw-primitive-chart-light-2)",
|
|
224
|
+
"primitive_chart_light_3": "var(--bw-primitive-chart-light-3)",
|
|
225
|
+
"primitive_chart_light_4": "var(--bw-primitive-chart-light-4)",
|
|
226
|
+
"primitive_chart_light_5": "var(--bw-primitive-chart-light-5)",
|
|
227
|
+
"primitive_chart_light_6": "var(--bw-primitive-chart-light-6)",
|
|
228
|
+
"primitive_chart_light_7": "var(--bw-primitive-chart-light-7)",
|
|
229
|
+
"primitive_chart_light_8": "var(--bw-primitive-chart-light-8)",
|
|
230
|
+
"primitive_cyan_400": "var(--bw-primitive-cyan-400)",
|
|
231
|
+
"primitive_cyan_50": "var(--bw-primitive-cyan-50)",
|
|
232
|
+
"primitive_cyan_600": "var(--bw-primitive-cyan-600)",
|
|
233
|
+
"primitive_cyan_700": "var(--bw-primitive-cyan-700)",
|
|
234
|
+
"primitive_cyan_950": "var(--bw-primitive-cyan-950)",
|
|
235
|
+
"primitive_gray_0": "var(--bw-primitive-gray-0)",
|
|
236
|
+
"primitive_gray_100": "var(--bw-primitive-gray-100)",
|
|
237
|
+
"primitive_gray_1000": "var(--bw-primitive-gray-1000)",
|
|
238
|
+
"primitive_gray_200": "var(--bw-primitive-gray-200)",
|
|
239
|
+
"primitive_gray_300": "var(--bw-primitive-gray-300)",
|
|
240
|
+
"primitive_gray_400": "var(--bw-primitive-gray-400)",
|
|
241
|
+
"primitive_gray_50": "var(--bw-primitive-gray-50)",
|
|
242
|
+
"primitive_gray_500": "var(--bw-primitive-gray-500)",
|
|
243
|
+
"primitive_gray_600": "var(--bw-primitive-gray-600)",
|
|
244
|
+
"primitive_gray_700": "var(--bw-primitive-gray-700)",
|
|
245
|
+
"primitive_gray_800": "var(--bw-primitive-gray-800)",
|
|
246
|
+
"primitive_gray_900": "var(--bw-primitive-gray-900)",
|
|
247
|
+
"primitive_gray_950": "var(--bw-primitive-gray-950)",
|
|
248
|
+
"primitive_green_100": "var(--bw-primitive-green-100)",
|
|
249
|
+
"primitive_green_50": "var(--bw-primitive-green-50)",
|
|
250
|
+
"primitive_green_500": "var(--bw-primitive-green-500)",
|
|
251
|
+
"primitive_green_600": "var(--bw-primitive-green-600)",
|
|
252
|
+
"primitive_green_700": "var(--bw-primitive-green-700)",
|
|
253
|
+
"primitive_green_950": "var(--bw-primitive-green-950)",
|
|
254
|
+
"primitive_red_100": "var(--bw-primitive-red-100)",
|
|
255
|
+
"primitive_red_50": "var(--bw-primitive-red-50)",
|
|
256
|
+
"primitive_red_500": "var(--bw-primitive-red-500)",
|
|
257
|
+
"primitive_red_600": "var(--bw-primitive-red-600)",
|
|
258
|
+
"primitive_red_700": "var(--bw-primitive-red-700)",
|
|
259
|
+
"primitive_red_950": "var(--bw-primitive-red-950)",
|
|
260
|
+
"radius_2xl": "var(--bw-radius-2xl)",
|
|
261
|
+
"radius_full": "var(--bw-radius-full)",
|
|
262
|
+
"radius_lg": "var(--bw-radius-lg)",
|
|
263
|
+
"radius_md": "var(--bw-radius-md)",
|
|
264
|
+
"radius_none": "var(--bw-radius-none)",
|
|
265
|
+
"radius_sm": "var(--bw-radius-sm)",
|
|
266
|
+
"radius_xl": "var(--bw-radius-xl)",
|
|
267
|
+
"size_border_hairline": "var(--bw-size-border-hairline)",
|
|
268
|
+
"size_border_nav_marker": "var(--bw-size-border-nav-marker)",
|
|
269
|
+
"size_border_thick": "var(--bw-size-border-thick)",
|
|
270
|
+
"size_control_height_lg": "var(--bw-size-control-height-lg)",
|
|
271
|
+
"size_control_height_md": "var(--bw-size-control-height-md)",
|
|
272
|
+
"size_control_height_sm": "var(--bw-size-control-height-sm)",
|
|
273
|
+
"size_max_width_form": "var(--bw-size-max-width-form)",
|
|
274
|
+
"size_max_width_modal_lg": "var(--bw-size-max-width-modal-lg)",
|
|
275
|
+
"size_max_width_modal_md": "var(--bw-size-max-width-modal-md)",
|
|
276
|
+
"size_max_width_modal_sm": "var(--bw-size-max-width-modal-sm)",
|
|
277
|
+
"size_max_width_prose": "var(--bw-size-max-width-prose)",
|
|
278
|
+
"size_touch_target_min": "var(--bw-size-touch-target-min)",
|
|
279
|
+
"space_0": "var(--bw-space-0)",
|
|
280
|
+
"space_0_5": "var(--bw-space-0-5)",
|
|
281
|
+
"space_1": "var(--bw-space-1)",
|
|
282
|
+
"space_1_5": "var(--bw-space-1-5)",
|
|
283
|
+
"space_10": "var(--bw-space-10)",
|
|
284
|
+
"space_11": "var(--bw-space-11)",
|
|
285
|
+
"space_12": "var(--bw-space-12)",
|
|
286
|
+
"space_16": "var(--bw-space-16)",
|
|
287
|
+
"space_2": "var(--bw-space-2)",
|
|
288
|
+
"space_20": "var(--bw-space-20)",
|
|
289
|
+
"space_24": "var(--bw-space-24)",
|
|
290
|
+
"space_3": "var(--bw-space-3)",
|
|
291
|
+
"space_4": "var(--bw-space-4)",
|
|
292
|
+
"space_5": "var(--bw-space-5)",
|
|
293
|
+
"space_6": "var(--bw-space-6)",
|
|
294
|
+
"space_7": "var(--bw-space-7)",
|
|
295
|
+
"space_8": "var(--bw-space-8)",
|
|
296
|
+
"space_9": "var(--bw-space-9)",
|
|
297
|
+
"space_px": "var(--bw-space-px)",
|
|
298
|
+
"state_active_overlay": "var(--bw-state-active-overlay)",
|
|
299
|
+
"state_hover_overlay": "var(--bw-state-hover-overlay)",
|
|
300
|
+
"state_selected_bg": "var(--bw-state-selected-bg)",
|
|
301
|
+
"text_body_lg_line_height": "var(--bw-text-body-lg-line-height)",
|
|
302
|
+
"text_body_lg_size": "var(--bw-text-body-lg-size)",
|
|
303
|
+
"text_body_lg_weight": "var(--bw-text-body-lg-weight)",
|
|
304
|
+
"text_body_md_family": "var(--bw-text-body-md-family)",
|
|
305
|
+
"text_body_md_line_height": "var(--bw-text-body-md-line-height)",
|
|
306
|
+
"text_body_md_size": "var(--bw-text-body-md-size)",
|
|
307
|
+
"text_body_md_weight": "var(--bw-text-body-md-weight)",
|
|
308
|
+
"text_body_sm_line_height": "var(--bw-text-body-sm-line-height)",
|
|
309
|
+
"text_body_sm_size": "var(--bw-text-body-sm-size)",
|
|
310
|
+
"text_body_sm_weight": "var(--bw-text-body-sm-weight)",
|
|
311
|
+
"text_caption_family": "var(--bw-text-caption-family)",
|
|
312
|
+
"text_caption_line_height": "var(--bw-text-caption-line-height)",
|
|
313
|
+
"text_caption_size": "var(--bw-text-caption-size)",
|
|
314
|
+
"text_caption_tracking": "var(--bw-text-caption-tracking)",
|
|
315
|
+
"text_caption_weight": "var(--bw-text-caption-weight)",
|
|
316
|
+
"text_code_family": "var(--bw-text-code-family)",
|
|
317
|
+
"text_code_line_height": "var(--bw-text-code-line-height)",
|
|
318
|
+
"text_code_size": "var(--bw-text-code-size)",
|
|
319
|
+
"text_code_weight": "var(--bw-text-code-weight)",
|
|
320
|
+
"text_heading_2xl_family": "var(--bw-text-heading-2xl-family)",
|
|
321
|
+
"text_heading_2xl_line_height": "var(--bw-text-heading-2xl-line-height)",
|
|
322
|
+
"text_heading_2xl_size": "var(--bw-text-heading-2xl-size)",
|
|
323
|
+
"text_heading_2xl_tracking": "var(--bw-text-heading-2xl-tracking)",
|
|
324
|
+
"text_heading_2xl_weight": "var(--bw-text-heading-2xl-weight)",
|
|
325
|
+
"text_heading_display_family": "var(--bw-text-heading-display-family)",
|
|
326
|
+
"text_heading_display_line_height": "var(--bw-text-heading-display-line-height)",
|
|
327
|
+
"text_heading_display_size": "var(--bw-text-heading-display-size)",
|
|
328
|
+
"text_heading_display_tracking": "var(--bw-text-heading-display-tracking)",
|
|
329
|
+
"text_heading_display_weight": "var(--bw-text-heading-display-weight)",
|
|
330
|
+
"text_heading_lg_family": "var(--bw-text-heading-lg-family)",
|
|
331
|
+
"text_heading_lg_line_height": "var(--bw-text-heading-lg-line-height)",
|
|
332
|
+
"text_heading_lg_size": "var(--bw-text-heading-lg-size)",
|
|
333
|
+
"text_heading_lg_tracking": "var(--bw-text-heading-lg-tracking)",
|
|
334
|
+
"text_heading_lg_weight": "var(--bw-text-heading-lg-weight)",
|
|
335
|
+
"text_heading_md_family": "var(--bw-text-heading-md-family)",
|
|
336
|
+
"text_heading_md_line_height": "var(--bw-text-heading-md-line-height)",
|
|
337
|
+
"text_heading_md_size": "var(--bw-text-heading-md-size)",
|
|
338
|
+
"text_heading_md_weight": "var(--bw-text-heading-md-weight)",
|
|
339
|
+
"text_heading_section_family": "var(--bw-text-heading-section-family)",
|
|
340
|
+
"text_heading_section_line_height": "var(--bw-text-heading-section-line-height)",
|
|
341
|
+
"text_heading_section_size": "var(--bw-text-heading-section-size)",
|
|
342
|
+
"text_heading_section_tracking": "var(--bw-text-heading-section-tracking)",
|
|
343
|
+
"text_heading_section_weight": "var(--bw-text-heading-section-weight)",
|
|
344
|
+
"text_heading_sm_family": "var(--bw-text-heading-sm-family)",
|
|
345
|
+
"text_heading_sm_line_height": "var(--bw-text-heading-sm-line-height)",
|
|
346
|
+
"text_heading_sm_size": "var(--bw-text-heading-sm-size)",
|
|
347
|
+
"text_heading_sm_weight": "var(--bw-text-heading-sm-weight)",
|
|
348
|
+
"text_heading_xl_family": "var(--bw-text-heading-xl-family)",
|
|
349
|
+
"text_heading_xl_line_height": "var(--bw-text-heading-xl-line-height)",
|
|
350
|
+
"text_heading_xl_size": "var(--bw-text-heading-xl-size)",
|
|
351
|
+
"text_heading_xl_tracking": "var(--bw-text-heading-xl-tracking)",
|
|
352
|
+
"text_heading_xl_weight": "var(--bw-text-heading-xl-weight)",
|
|
353
|
+
"text_label_family": "var(--bw-text-label-family)",
|
|
354
|
+
"text_label_line_height": "var(--bw-text-label-line-height)",
|
|
355
|
+
"text_label_size": "var(--bw-text-label-size)",
|
|
356
|
+
"text_label_tracking": "var(--bw-text-label-tracking)",
|
|
357
|
+
"text_label_weight": "var(--bw-text-label-weight)",
|
|
358
|
+
"text_overline_family": "var(--bw-text-overline-family)",
|
|
359
|
+
"text_overline_line_height": "var(--bw-text-overline-line-height)",
|
|
360
|
+
"text_overline_size": "var(--bw-text-overline-size)",
|
|
361
|
+
"text_overline_tracking": "var(--bw-text-overline-tracking)",
|
|
362
|
+
"text_overline_weight": "var(--bw-text-overline-weight)",
|
|
363
|
+
"transition_colors": "var(--bw-transition-colors)",
|
|
364
|
+
"transition_opacity": "var(--bw-transition-opacity)",
|
|
365
|
+
"transition_shadow": "var(--bw-transition-shadow)",
|
|
366
|
+
"transition_transform": "var(--bw-transition-transform)",
|
|
367
|
+
"z_base": "var(--bw-z-base)",
|
|
368
|
+
"z_drawer": "var(--bw-z-drawer)",
|
|
369
|
+
"z_dropdown": "var(--bw-z-dropdown)",
|
|
370
|
+
"z_modal": "var(--bw-z-modal)",
|
|
371
|
+
"z_overlay": "var(--bw-z-overlay)",
|
|
372
|
+
"z_skip_link": "var(--bw-z-skip-link)",
|
|
373
|
+
"z_sticky": "var(--bw-z-sticky)",
|
|
374
|
+
"z_toast": "var(--bw-z-toast)",
|
|
375
|
+
"z_tooltip": "var(--bw-z-tooltip)",
|
|
376
|
+
});
|
|
377
|
+
export default tokens;
|
package/package.json
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bwui/tokens",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Brickwork design tokens — the platform-neutral source of truth (DTCG source, multi-target build).",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"src"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/tokens.d.ts",
|
|
14
|
+
"import": "./dist/tokens.js"
|
|
15
|
+
},
|
|
16
|
+
"./css": "./dist/tokens.css",
|
|
17
|
+
"./tokens.css": "./dist/tokens.css",
|
|
18
|
+
"./tailwind": "./dist/tailwind-preset.mjs",
|
|
19
|
+
"./tailwind-theme.css": "./dist/tailwind-theme.css",
|
|
20
|
+
"./dtcg": "./dist/tokens.dtcg.json",
|
|
21
|
+
"./manifest": "./dist/token-manifest.json"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"style-dictionary": "^4.3.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"typescript": "5.7.3"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/icvoss/brickwork.git"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "node scripts/build.mjs"
|
|
38
|
+
}
|
|
6
39
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"breakpoint": {
|
|
3
|
+
"$type": "dimension",
|
|
4
|
+
"$description": "Viewport breakpoints (ADR-079, icvoss/django-brickwork#220). Emitted as literal values on :root in tokens.css AND as a plain @theme block (never @theme inline) in tailwind-theme.css, from this single source, because media queries cannot resolve var(): the mechanism that makes the colour/type/radius/elevation @theme inline projection live-adjustable is structurally unavailable to viewport queries. Overriding these tokens in a consumer's own brand CSS adjusts that consumer's OWN Tailwind sm:/md:/lg:/xl: utilities; it does not move brickwork's own shipped brickwork.css breakpoints, which are compiled in and change only on a package rebuild (the honest limit, ADR-079 section 7). Values match Tailwind's own default breakpoint scale and stay in rem (mixed units break Tailwind's generated-rule ordering).",
|
|
5
|
+
"sm": {
|
|
6
|
+
"$value": "40rem"
|
|
7
|
+
},
|
|
8
|
+
"md": {
|
|
9
|
+
"$value": "48rem",
|
|
10
|
+
"$description": "The shell's sidebar-to-drawer collapse point (SHL-017) and _data_table's responsive=\"stack\" threshold (TBL-013); both reuse this one value so the two surfaces change together."
|
|
11
|
+
},
|
|
12
|
+
"lg": {
|
|
13
|
+
"$value": "64rem"
|
|
14
|
+
},
|
|
15
|
+
"xl": {
|
|
16
|
+
"$value": "80rem",
|
|
17
|
+
"$description": "Reserved: named by SHL-014 and emitted for completeness; no internal brickwork call site references it yet."
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|