@gainsight-hub/design-tokens 0.2.2 → 0.2.3

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/tokens.d.ts CHANGED
@@ -149,6 +149,8 @@ export const ColorSkeletonDefault: string;
149
149
  /** highlight color used in animated skeleton states to simulate loading progress */
150
150
  export const ColorSkeletonSubtle: string;
151
151
  export const FontFamilySans: string;
152
+ export const FontFamilyHeading: string;
153
+ export const FontFamilyButton: string;
152
154
  export const FontFamilyMono: string;
153
155
  export const FontWeightRegular: number;
154
156
  export const FontWeightMedium: number;
@@ -200,63 +202,48 @@ export const Elevation1: string;
200
202
  export const Elevation2: string;
201
203
  /** high elevation used for top-level surfaces above other floating elements */
202
204
  export const Elevation3: string;
203
- export const TextHeroFontFamily: string;
204
205
  export const TextHeroFontWeight: number;
205
206
  export const TextHeroFontSize: string;
206
207
  export const TextHeroLineHeight: number;
207
- export const TextHeadingSmallFontFamily: string;
208
208
  export const TextHeadingSmallFontWeight: number;
209
209
  export const TextHeadingSmallFontSize: string;
210
210
  export const TextHeadingSmallLineHeight: number;
211
- export const TextHeadingMediumFontFamily: string;
212
211
  export const TextHeadingMediumFontWeight: number;
213
212
  export const TextHeadingMediumFontSize: string;
214
213
  export const TextHeadingMediumLineHeight: number;
215
- export const TextHeadingLargeFontFamily: string;
216
214
  export const TextHeadingLargeFontWeight: number;
217
215
  export const TextHeadingLargeFontSize: string;
218
216
  export const TextHeadingLargeLineHeight: number;
219
- export const TextHeadingXlargeFontFamily: string;
220
217
  export const TextHeadingXlargeFontWeight: number;
221
218
  export const TextHeadingXlargeFontSize: string;
222
219
  export const TextHeadingXlargeLineHeight: number;
223
- export const TextBodySmallFontFamily: string;
224
220
  export const TextBodySmallFontWeight: number;
225
221
  export const TextBodySmallFontSize: string;
226
222
  export const TextBodySmallLineHeight: number;
227
- export const TextBodyMediumFontFamily: string;
228
223
  export const TextBodyMediumFontWeight: number;
229
224
  export const TextBodyMediumFontSize: string;
230
225
  export const TextBodyMediumLineHeight: number;
231
- export const TextBodyLargeFontFamily: string;
232
226
  export const TextBodyLargeFontWeight: number;
233
227
  export const TextBodyLargeFontSize: string;
234
228
  export const TextBodyLargeLineHeight: number;
235
- export const TextNavigationFontFamily: string;
236
229
  export const TextNavigationFontWeight: number;
237
230
  export const TextNavigationFontSize: string;
238
231
  export const TextNavigationLineHeight: string;
239
- export const TextMenuFontFamily: string;
240
232
  export const TextMenuFontWeight: number;
241
233
  export const TextMenuFontSize: string;
242
234
  export const TextMenuLineHeight: string;
243
- export const TextButtonFontFamily: string;
244
235
  export const TextButtonFontWeight: number;
245
236
  export const TextButtonFontSize: string;
246
237
  export const TextButtonLineHeight: string;
247
- export const TextLabelSmallFontFamily: string;
248
238
  export const TextLabelSmallFontWeight: number;
249
239
  export const TextLabelSmallFontSize: string;
250
240
  export const TextLabelSmallLineHeight: string;
251
- export const TextLabelMediumFontFamily: string;
252
241
  export const TextLabelMediumFontWeight: number;
253
242
  export const TextLabelMediumFontSize: string;
254
243
  export const TextLabelMediumLineHeight: string;
255
- export const TextCaptionFontFamily: string;
256
244
  export const TextCaptionFontWeight: number;
257
245
  export const TextCaptionFontSize: string;
258
246
  export const TextCaptionLineHeight: string;
259
- export const TextCodeFontFamily: string;
260
247
  export const TextCodeFontWeight: number;
261
248
  export const TextCodeFontSize: string;
262
249
  export const TextCodeLineHeight: number;
@@ -470,6 +457,22 @@ export const NavigationDropdownContent: string;
470
457
  export const NavigationBorderTop: string;
471
458
  /** Bottom border of navigation. */
472
459
  export const NavigationBorderBottom: string;
460
+ /** Sidebar widget placeholder background color. */
461
+ export const SidebarBackground: string;
462
+ /** Sidebar widget placeholder border radius. */
463
+ export const SidebarBorderRadius: string;
464
+ /** Sidebar widget placeholder border color. */
465
+ export const SidebarBorderColor: string;
466
+ /** Sidebar widget placeholder border width. */
467
+ export const SidebarBorderWidth: string;
468
+ /** Sidebar widget placeholder box shadow. */
469
+ export const SidebarShadow: string;
470
+ /** Sidebar widget title text color. */
471
+ export const SidebarTitleColor: string;
472
+ /** Sidebar widget title font family. */
473
+ export const SidebarTitleFontFamily: string;
474
+ /** Sidebar widget title font weight. */
475
+ export const SidebarTitleFontWeight: number;
473
476
  /** Default widget title color. */
474
477
  export const WidgetTitle: string;
475
478
  /** Default widget subtitle color. */
package/dist/tokens.js CHANGED
@@ -110,6 +110,8 @@ export const ColorOverlayInteractivePressed = "#2b334614"; // overlay color appl
110
110
  export const ColorSkeletonDefault = "#F4F5F6"; // base color used for loading placeholders while content is being fetched
111
111
  export const ColorSkeletonSubtle = "#2b33460a"; // highlight color used in animated skeleton states to simulate loading progress
112
112
  export const FontFamilySans = "Roboto";
113
+ export const FontFamilyHeading = "Roboto";
114
+ export const FontFamilyButton = "Roboto";
113
115
  export const FontFamilyMono = "Roboto Mono";
114
116
  export const FontWeightRegular = 400;
115
117
  export const FontWeightMedium = 500;
@@ -163,63 +165,48 @@ export const Elevation2 =
163
165
  "0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1)"; // medium elevation used for floating surfaces above regular content
164
166
  export const Elevation3 =
165
167
  "0px 8px 10px -6px rgba(0, 0, 0, 0.1), 0px 20px 25px -5px rgba(0, 0, 0, 0.1)"; // high elevation used for top-level surfaces above other floating elements
166
- export const TextHeroFontFamily = "Roboto";
167
168
  export const TextHeroFontWeight = 700;
168
169
  export const TextHeroFontSize = "2rem";
169
170
  export const TextHeroLineHeight = 1.25;
170
- export const TextHeadingSmallFontFamily = "Roboto";
171
171
  export const TextHeadingSmallFontWeight = 500;
172
172
  export const TextHeadingSmallFontSize = "1.25rem";
173
173
  export const TextHeadingSmallLineHeight = 1.25;
174
- export const TextHeadingMediumFontFamily = "Roboto";
175
174
  export const TextHeadingMediumFontWeight = 500;
176
175
  export const TextHeadingMediumFontSize = "1.5rem";
177
176
  export const TextHeadingMediumLineHeight = 1.25;
178
- export const TextHeadingLargeFontFamily = "Roboto";
179
177
  export const TextHeadingLargeFontWeight = 700;
180
178
  export const TextHeadingLargeFontSize = "1.75rem";
181
179
  export const TextHeadingLargeLineHeight = 1.25;
182
- export const TextHeadingXlargeFontFamily = "Roboto";
183
180
  export const TextHeadingXlargeFontWeight = 700;
184
181
  export const TextHeadingXlargeFontSize = "2rem";
185
182
  export const TextHeadingXlargeLineHeight = 1.25;
186
- export const TextBodySmallFontFamily = "Roboto";
187
183
  export const TextBodySmallFontWeight = 400;
188
184
  export const TextBodySmallFontSize = "0.875rem";
189
185
  export const TextBodySmallLineHeight = 1.5;
190
- export const TextBodyMediumFontFamily = "Roboto";
191
186
  export const TextBodyMediumFontWeight = 400;
192
187
  export const TextBodyMediumFontSize = "1rem";
193
188
  export const TextBodyMediumLineHeight = 1.5;
194
- export const TextBodyLargeFontFamily = "Roboto";
195
189
  export const TextBodyLargeFontWeight = 400;
196
190
  export const TextBodyLargeFontSize = "1.25rem";
197
191
  export const TextBodyLargeLineHeight = 1.5;
198
- export const TextNavigationFontFamily = "Roboto";
199
192
  export const TextNavigationFontWeight = 400;
200
193
  export const TextNavigationFontSize = "0.875rem";
201
194
  export const TextNavigationLineHeight = "1.25rem";
202
- export const TextMenuFontFamily = "Roboto";
203
195
  export const TextMenuFontWeight = 400;
204
196
  export const TextMenuFontSize = "0.875rem";
205
197
  export const TextMenuLineHeight = "1.25rem";
206
- export const TextButtonFontFamily = "Roboto";
207
198
  export const TextButtonFontWeight = 500;
208
199
  export const TextButtonFontSize = "0.875rem";
209
200
  export const TextButtonLineHeight = "1.25rem";
210
- export const TextLabelSmallFontFamily = "Roboto";
211
201
  export const TextLabelSmallFontWeight = 500;
212
202
  export const TextLabelSmallFontSize = "0.875rem";
213
203
  export const TextLabelSmallLineHeight = "1.25rem";
214
- export const TextLabelMediumFontFamily = "Roboto";
215
204
  export const TextLabelMediumFontWeight = 500;
216
205
  export const TextLabelMediumFontSize = "1rem";
217
206
  export const TextLabelMediumLineHeight = "1.5rem";
218
- export const TextCaptionFontFamily = "Roboto";
219
207
  export const TextCaptionFontWeight = 400;
220
208
  export const TextCaptionFontSize = "0.75rem";
221
209
  export const TextCaptionLineHeight = "1rem";
222
- export const TextCodeFontFamily = "Roboto Mono";
223
210
  export const TextCodeFontWeight = 400;
224
211
  export const TextCodeFontSize = "1rem";
225
212
  export const TextCodeLineHeight = 1.5;
@@ -332,6 +319,14 @@ export const NavigationDropdownBackground = "#FFFFFF"; // Navigation dropdown ba
332
319
  export const NavigationDropdownContent = "#2B3346"; // Navigation dropdown content color.
333
320
  export const NavigationBorderTop = "#00000000"; // Top border of navigation (transparent).
334
321
  export const NavigationBorderBottom = "#DEDFE2"; // Bottom border of navigation.
322
+ export const SidebarBackground = "#FFFFFF"; // Sidebar widget placeholder background color.
323
+ export const SidebarBorderRadius = "8px"; // Sidebar widget placeholder border radius.
324
+ export const SidebarBorderColor = "#DEDFE2"; // Sidebar widget placeholder border color.
325
+ export const SidebarBorderWidth = "1px"; // Sidebar widget placeholder border width.
326
+ export const SidebarShadow = "none"; // Sidebar widget placeholder box shadow.
327
+ export const SidebarTitleColor = "#2B3346"; // Sidebar widget title text color.
328
+ export const SidebarTitleFontFamily = "Roboto"; // Sidebar widget title font family.
329
+ export const SidebarTitleFontWeight = 500; // Sidebar widget title font weight.
335
330
  export const WidgetTitle = "#2B3346"; // Default widget title color.
336
331
  export const WidgetSubtitle = "#2B3346"; // Default widget subtitle color.
337
332
  export const WidgetBackground = "#FAFAFA"; // Default widget background.
package/dist/tokens.json CHANGED
@@ -163,6 +163,8 @@
163
163
  "font": {
164
164
  "family": {
165
165
  "sans": "Roboto",
166
+ "heading": "Roboto",
167
+ "button": "Roboto",
166
168
  "mono": "Roboto Mono"
167
169
  },
168
170
  "weight": {
@@ -237,7 +239,6 @@
237
239
  "text": {
238
240
  "hero": {
239
241
  "font": {
240
- "family": "Roboto",
241
242
  "weight": 700,
242
243
  "size": "2rem"
243
244
  },
@@ -246,7 +247,6 @@
246
247
  "heading": {
247
248
  "small": {
248
249
  "font": {
249
- "family": "Roboto",
250
250
  "weight": 500,
251
251
  "size": "1.25rem"
252
252
  },
@@ -254,7 +254,6 @@
254
254
  },
255
255
  "medium": {
256
256
  "font": {
257
- "family": "Roboto",
258
257
  "weight": 500,
259
258
  "size": "1.5rem"
260
259
  },
@@ -262,7 +261,6 @@
262
261
  },
263
262
  "large": {
264
263
  "font": {
265
- "family": "Roboto",
266
264
  "weight": 700,
267
265
  "size": "1.75rem"
268
266
  },
@@ -270,7 +268,6 @@
270
268
  },
271
269
  "xlarge": {
272
270
  "font": {
273
- "family": "Roboto",
274
271
  "weight": 700,
275
272
  "size": "2rem"
276
273
  },
@@ -280,7 +277,6 @@
280
277
  "body": {
281
278
  "small": {
282
279
  "font": {
283
- "family": "Roboto",
284
280
  "weight": 400,
285
281
  "size": "0.875rem"
286
282
  },
@@ -288,7 +284,6 @@
288
284
  },
289
285
  "medium": {
290
286
  "font": {
291
- "family": "Roboto",
292
287
  "weight": 400,
293
288
  "size": "1rem"
294
289
  },
@@ -296,7 +291,6 @@
296
291
  },
297
292
  "large": {
298
293
  "font": {
299
- "family": "Roboto",
300
294
  "weight": 400,
301
295
  "size": "1.25rem"
302
296
  },
@@ -305,7 +299,6 @@
305
299
  },
306
300
  "navigation": {
307
301
  "font": {
308
- "family": "Roboto",
309
302
  "weight": 400,
310
303
  "size": "0.875rem"
311
304
  },
@@ -313,7 +306,6 @@
313
306
  },
314
307
  "menu": {
315
308
  "font": {
316
- "family": "Roboto",
317
309
  "weight": 400,
318
310
  "size": "0.875rem"
319
311
  },
@@ -321,7 +313,6 @@
321
313
  },
322
314
  "button": {
323
315
  "font": {
324
- "family": "Roboto",
325
316
  "weight": 500,
326
317
  "size": "0.875rem"
327
318
  },
@@ -330,7 +321,6 @@
330
321
  "label": {
331
322
  "small": {
332
323
  "font": {
333
- "family": "Roboto",
334
324
  "weight": 500,
335
325
  "size": "0.875rem"
336
326
  },
@@ -338,7 +328,6 @@
338
328
  },
339
329
  "medium": {
340
330
  "font": {
341
- "family": "Roboto",
342
331
  "weight": 500,
343
332
  "size": "1rem"
344
333
  },
@@ -347,7 +336,6 @@
347
336
  },
348
337
  "caption": {
349
338
  "font": {
350
- "family": "Roboto",
351
339
  "weight": 400,
352
340
  "size": "0.75rem"
353
341
  },
@@ -355,7 +343,6 @@
355
343
  },
356
344
  "code": {
357
345
  "font": {
358
- "family": "Roboto Mono",
359
346
  "weight": 400,
360
347
  "size": "1rem"
361
348
  },
@@ -557,6 +544,22 @@
557
544
  "bottom": "#DEDFE2"
558
545
  }
559
546
  },
547
+ "sidebar": {
548
+ "background": "#FFFFFF",
549
+ "border": {
550
+ "radius": "8px",
551
+ "color": "#DEDFE2",
552
+ "width": "1px"
553
+ },
554
+ "shadow": "none",
555
+ "title": {
556
+ "color": "#2B3346",
557
+ "font": {
558
+ "family": "Roboto",
559
+ "weight": 500
560
+ }
561
+ }
562
+ },
560
563
  "widget": {
561
564
  "title": "#2B3346",
562
565
  "subtitle": "#2B3346",
package/dist/tokens.scss CHANGED
@@ -109,6 +109,8 @@ $color-overlay-interactive-pressed: rgba(43, 51, 70, 0.08); // overlay color app
109
109
  $color-skeleton-default: #F4F5F6; // base color used for loading placeholders while content is being fetched
110
110
  $color-skeleton-subtle: rgba(43, 51, 70, 0.04); // highlight color used in animated skeleton states to simulate loading progress
111
111
  $font-family-sans: Roboto;
112
+ $font-family-heading: Roboto;
113
+ $font-family-button: Roboto;
112
114
  $font-family-mono: Roboto Mono;
113
115
  $font-weight-regular: 400;
114
116
  $font-weight-medium: 500;
@@ -156,63 +158,48 @@ $space-layout-gutter: 12px; // space used as the default gap between columns or
156
158
  $elevation-1: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1); // low elevation used for raised surfaces above the base layout
157
159
  $elevation-2: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1); // medium elevation used for floating surfaces above regular content
158
160
  $elevation-3: 0px 8px 10px -6px rgba(0, 0, 0, 0.1), 0px 20px 25px -5px rgba(0, 0, 0, 0.1); // high elevation used for top-level surfaces above other floating elements
159
- $text-hero-font-family: Roboto;
160
161
  $text-hero-font-weight: 700;
161
162
  $text-hero-font-size: 2rem;
162
163
  $text-hero-line-height: 1.25;
163
- $text-heading-small-font-family: Roboto;
164
164
  $text-heading-small-font-weight: 500;
165
165
  $text-heading-small-font-size: 1.25rem;
166
166
  $text-heading-small-line-height: 1.25;
167
- $text-heading-medium-font-family: Roboto;
168
167
  $text-heading-medium-font-weight: 500;
169
168
  $text-heading-medium-font-size: 1.5rem;
170
169
  $text-heading-medium-line-height: 1.25;
171
- $text-heading-large-font-family: Roboto;
172
170
  $text-heading-large-font-weight: 700;
173
171
  $text-heading-large-font-size: 1.75rem;
174
172
  $text-heading-large-line-height: 1.25;
175
- $text-heading-xlarge-font-family: Roboto;
176
173
  $text-heading-xlarge-font-weight: 700;
177
174
  $text-heading-xlarge-font-size: 2rem;
178
175
  $text-heading-xlarge-line-height: 1.25;
179
- $text-body-small-font-family: Roboto;
180
176
  $text-body-small-font-weight: 400;
181
177
  $text-body-small-font-size: 0.875rem;
182
178
  $text-body-small-line-height: 1.5;
183
- $text-body-medium-font-family: Roboto;
184
179
  $text-body-medium-font-weight: 400;
185
180
  $text-body-medium-font-size: 1rem;
186
181
  $text-body-medium-line-height: 1.5;
187
- $text-body-large-font-family: Roboto;
188
182
  $text-body-large-font-weight: 400;
189
183
  $text-body-large-font-size: 1.25rem;
190
184
  $text-body-large-line-height: 1.5;
191
- $text-navigation-font-family: Roboto;
192
185
  $text-navigation-font-weight: 400;
193
186
  $text-navigation-font-size: 0.875rem;
194
187
  $text-navigation-line-height: 1.25rem;
195
- $text-menu-font-family: Roboto;
196
188
  $text-menu-font-weight: 400;
197
189
  $text-menu-font-size: 0.875rem;
198
190
  $text-menu-line-height: 1.25rem;
199
- $text-button-font-family: Roboto;
200
191
  $text-button-font-weight: 500;
201
192
  $text-button-font-size: 0.875rem;
202
193
  $text-button-line-height: 1.25rem;
203
- $text-label-small-font-family: Roboto;
204
194
  $text-label-small-font-weight: 500;
205
195
  $text-label-small-font-size: 0.875rem;
206
196
  $text-label-small-line-height: 1.25rem;
207
- $text-label-medium-font-family: Roboto;
208
197
  $text-label-medium-font-weight: 500;
209
198
  $text-label-medium-font-size: 1rem;
210
199
  $text-label-medium-line-height: 1.5rem;
211
- $text-caption-font-family: Roboto;
212
200
  $text-caption-font-weight: 400;
213
201
  $text-caption-font-size: 0.75rem;
214
202
  $text-caption-line-height: 1rem;
215
- $text-code-font-family: Roboto Mono;
216
203
  $text-code-font-weight: 400;
217
204
  $text-code-font-size: 1rem;
218
205
  $text-code-line-height: 1.5;
@@ -321,6 +308,14 @@ $navigation-dropdown-background: #FFFFFF; // Navigation dropdown background.
321
308
  $navigation-dropdown-content: #2B3346; // Navigation dropdown content color.
322
309
  $navigation-border-top: rgba(0, 0, 0, 0); // Top border of navigation (transparent).
323
310
  $navigation-border-bottom: #DEDFE2; // Bottom border of navigation.
311
+ $sidebar-background: #FFFFFF; // Sidebar widget placeholder background color.
312
+ $sidebar-border-radius: 8px; // Sidebar widget placeholder border radius.
313
+ $sidebar-border-color: #DEDFE2; // Sidebar widget placeholder border color.
314
+ $sidebar-border-width: 1px; // Sidebar widget placeholder border width.
315
+ $sidebar-shadow: none; // Sidebar widget placeholder box shadow.
316
+ $sidebar-title-color: #2B3346; // Sidebar widget title text color.
317
+ $sidebar-title-font-family: Roboto; // Sidebar widget title font family.
318
+ $sidebar-title-font-weight: 500; // Sidebar widget title font weight.
324
319
  $widget-title: #2B3346; // Default widget title color.
325
320
  $widget-subtitle: #2B3346; // Default widget subtitle color.
326
321
  $widget-background: #FAFAFA; // Default widget background.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsight-hub/design-tokens",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Design tokens: CSS variables, JSON, TypeScript constants, and Tailwind preset.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Gainsight Design Systems",