@tectra-ng/themes 0.4.4 → 0.4.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tectra-ng/themes",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Light and dark themes for tectra: semantic and component tokens, presets and CSS variables.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tectra-ng.com",
@@ -23,7 +23,7 @@
23
23
  "presets"
24
24
  ],
25
25
  "peerDependencies": {
26
- "@tectra-ng/tokens": "^0.4.4"
26
+ "@tectra-ng/tokens": "^0.4.5"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
@@ -1,4 +1,4 @@
1
- import { TectraColorScale, TectraPrimary, TectraPrimary as TectraPrimary$1, TectraSurface, TectraSurface as TectraSurface$1, TectraSurfaceScale } from "@tectra-ng/tokens";
1
+ import { TectraAccent, TectraColorScale, TectraPrimary, TectraPrimary as TectraPrimary$1, TectraSurface, TectraSurface as TectraSurface$1, TectraSurfaceScale } from "@tectra-ng/tokens";
2
2
  /** Makes every field of an object type, at any depth, optional; used for preset and style overrides. */
3
3
  export type TectraDeepPartial<T> = { [K in keyof T]?: T[K] extends object ? TectraDeepPartial<T[K]> : T[K]; };
4
4
  /** Colors of one severity (or the primary color) in a color scheme. */
@@ -165,6 +165,10 @@ export declare const COMPONENT_TOKENS: {
165
165
  shadow: string;
166
166
  };
167
167
  transitionDuration: string;
168
+ actionSize: string;
169
+ actionRoom: string;
170
+ iconGap: string;
171
+ panelMaxWidth: string;
168
172
  };
169
173
  };
170
174
  inputGroup: {
@@ -184,13 +188,19 @@ export declare const COMPONENT_TOKENS: {
184
188
  fontWeight: string;
185
189
  gap: string;
186
190
  marginBottom: string;
191
+ lineHeight: string;
192
+ textDisplay: string;
187
193
  requiredColor: string;
188
194
  hintColor: string;
195
+ hintFontSize: string;
196
+ filledColor: string;
197
+ filledFontSize: string;
189
198
  };
190
199
  subtle: {
191
200
  color: string;
192
201
  fontSize: string;
193
202
  fontWeight: string;
203
+ lineHeight: string;
194
204
  };
195
205
  };
196
206
  floatLabel: {
@@ -405,54 +415,63 @@ export declare const COMPONENT_TOKENS: {
405
415
  };
406
416
  outlined: {
407
417
  primary: {
418
+ background: string;
408
419
  hoverBackground: string;
409
420
  activeBackground: string;
410
421
  borderColor: string;
411
422
  color: string;
412
423
  };
413
424
  secondary: {
425
+ background: string;
414
426
  hoverBackground: string;
415
427
  activeBackground: string;
416
428
  borderColor: string;
417
429
  color: string;
418
430
  };
419
431
  success: {
432
+ background: string;
420
433
  hoverBackground: string;
421
434
  activeBackground: string;
422
435
  borderColor: string;
423
436
  color: string;
424
437
  };
425
438
  info: {
439
+ background: string;
426
440
  hoverBackground: string;
427
441
  activeBackground: string;
428
442
  borderColor: string;
429
443
  color: string;
430
444
  };
431
445
  warn: {
446
+ background: string;
432
447
  hoverBackground: string;
433
448
  activeBackground: string;
434
449
  borderColor: string;
435
450
  color: string;
436
451
  };
437
452
  help: {
453
+ background: string;
438
454
  hoverBackground: string;
439
455
  activeBackground: string;
440
456
  borderColor: string;
441
457
  color: string;
442
458
  };
443
459
  danger: {
460
+ background: string;
444
461
  hoverBackground: string;
445
462
  activeBackground: string;
446
463
  borderColor: string;
447
464
  color: string;
448
465
  };
449
466
  contrast: {
467
+ background: string;
450
468
  hoverBackground: string;
451
469
  activeBackground: string;
452
470
  borderColor: string;
453
471
  color: string;
454
472
  };
455
473
  plain: {
474
+ background: string;
456
475
  hoverBackground: string;
457
476
  activeBackground: string;
458
477
  borderColor: string;
@@ -530,6 +549,7 @@ export declare const COMPONENT_TOKENS: {
530
549
  borderColor: string;
531
550
  borderRadius: string;
532
551
  shadow: string;
552
+ maxWidth: string;
533
553
  };
534
554
  list: {
535
555
  padding: string;
@@ -581,6 +601,7 @@ export declare const COMPONENT_TOKENS: {
581
601
  removeSize: string;
582
602
  removeColor: string;
583
603
  removeHoverColor: string;
604
+ inputMinWidth: string;
584
605
  };
585
606
  optionGroup: {
586
607
  padding: string;
@@ -634,6 +655,7 @@ export declare const COMPONENT_TOKENS: {
634
655
  chipPaddingX: string;
635
656
  chipBorderRadius: string;
636
657
  inputMinWidth: string;
658
+ chipRemoveSize: string;
637
659
  };
638
660
  };
639
661
  country: {
@@ -1418,6 +1440,7 @@ export declare const COMPONENT_TOKENS: {
1418
1440
  focusRingOffset: string;
1419
1441
  borderRadius: string;
1420
1442
  clearGap: string;
1443
+ clearPadding: string;
1421
1444
  clearColor: string;
1422
1445
  clearHoverColor: string;
1423
1446
  clearFontSize: string;
@@ -1504,6 +1527,8 @@ export declare const COMPONENT_TOKENS: {
1504
1527
  iconSize: string;
1505
1528
  dotSize: string;
1506
1529
  removeSize: string;
1530
+ removeOffset: string;
1531
+ spinDuration: string;
1507
1532
  focusRingColor: string;
1508
1533
  };
1509
1534
  sm: {
@@ -1571,6 +1596,7 @@ export declare const COMPONENT_TOKENS: {
1571
1596
  tint: string;
1572
1597
  iconSize: string;
1573
1598
  actionSize: string;
1599
+ actionOffset: string;
1574
1600
  focusRingColor: string;
1575
1601
  };
1576
1602
  sm: {
@@ -1750,6 +1776,10 @@ export declare const COMPONENT_TOKENS: {
1750
1776
  background: string;
1751
1777
  color: string;
1752
1778
  };
1779
+ solid: {
1780
+ background: string;
1781
+ color: string;
1782
+ };
1753
1783
  };
1754
1784
  group: {
1755
1785
  overlap: string;
@@ -1835,6 +1865,16 @@ export declare const COMPONENT_TOKENS: {
1835
1865
  iconBorderRadius: string;
1836
1866
  iconColor: string;
1837
1867
  iconBackground: string;
1868
+ iconScale: string;
1869
+ headerGap: string;
1870
+ headerEndGap: string;
1871
+ leadGap: string;
1872
+ headingGap: string;
1873
+ titleLineHeight: string;
1874
+ subtitleLineHeight: string;
1875
+ actionsGap: string;
1876
+ footerGap: string;
1877
+ toggleSize: string;
1838
1878
  transitionDuration: string;
1839
1879
  };
1840
1880
  inset: {
@@ -1864,6 +1904,7 @@ export declare const COMPONENT_TOKENS: {
1864
1904
  legendBorderColor: string;
1865
1905
  legendBorderRadius: string;
1866
1906
  togglePadding: string;
1907
+ toggleGap: string;
1867
1908
  focusRingWidth: string;
1868
1909
  focusRingOffset: string;
1869
1910
  focusRingShadow: string;
@@ -2081,6 +2122,7 @@ export declare const COMPONENT_TOKENS: {
2081
2122
  shadow: string;
2082
2123
  };
2083
2124
  action: {
2125
+ gap: string;
2084
2126
  padding: string;
2085
2127
  fontSize: string;
2086
2128
  fontWeight: string;
@@ -2141,6 +2183,7 @@ export declare const COMPONENT_TOKENS: {
2141
2183
  subtitle: {
2142
2184
  color: string;
2143
2185
  fontSize: string;
2186
+ marginTop: string;
2144
2187
  };
2145
2188
  content: {
2146
2189
  padding: string;
@@ -2467,6 +2510,7 @@ export declare const COMPONENT_TOKENS: {
2467
2510
  };
2468
2511
  columnResizer: {
2469
2512
  width: string;
2513
+ hitWidth: string;
2470
2514
  lineWidth: string;
2471
2515
  color: string;
2472
2516
  };
@@ -2543,6 +2587,8 @@ export declare const COMPONENT_TOKENS: {
2543
2587
  actions: {
2544
2588
  gap: string;
2545
2589
  overflowPadding: string;
2590
+ menuIconSize: string;
2591
+ menuIconFontSize: string;
2546
2592
  };
2547
2593
  card: {
2548
2594
  minWidth: string;
@@ -3747,6 +3793,7 @@ export declare const COMPONENT_TOKENS: {
3747
3793
  };
3748
3794
  tool: {
3749
3795
  size: string;
3796
+ gap: string;
3750
3797
  borderRadius: string;
3751
3798
  iconSize: string;
3752
3799
  color: string;
@@ -3758,6 +3805,9 @@ export declare const COMPONENT_TOKENS: {
3758
3805
  labelFontSize: string;
3759
3806
  labelFontWeight: string;
3760
3807
  labelPadding: string;
3808
+ labelMinWidth: string;
3809
+ menuPadding: string;
3810
+ colorBarHeight: string;
3761
3811
  focusRingWidth: string;
3762
3812
  focusRingColor: string;
3763
3813
  };
@@ -3766,12 +3816,17 @@ export declare const COMPONENT_TOKENS: {
3766
3816
  hoverBackground: string;
3767
3817
  color: string;
3768
3818
  animationDuration: string;
3819
+ gap: string;
3820
+ padding: string;
3769
3821
  };
3770
3822
  content: {
3771
3823
  padding: string;
3772
3824
  minHeight: string;
3773
3825
  placeholderColor: string;
3774
3826
  };
3827
+ table: {
3828
+ cellMinWidth: string;
3829
+ };
3775
3830
  footer: {
3776
3831
  padding: string;
3777
3832
  color: string;
@@ -3795,6 +3850,8 @@ export declare const COMPONENT_TOKENS: {
3795
3850
  shadow: string;
3796
3851
  offset: string;
3797
3852
  linkMaxWidth: string;
3853
+ labelGap: string;
3854
+ itemPadding: string;
3798
3855
  };
3799
3856
  popover: {
3800
3857
  padding: string;
@@ -3817,6 +3874,7 @@ export declare const COMPONENT_TOKENS: {
3817
3874
  itemRadius: string;
3818
3875
  itemFocusBackground: string;
3819
3876
  avatarSize: string;
3877
+ commandIconInset: string;
3820
3878
  secondaryColor: string;
3821
3879
  };
3822
3880
  };
@@ -3854,6 +3912,8 @@ export declare const COMPONENT_TOKENS: {
3854
3912
  task: {
3855
3913
  size: string;
3856
3914
  gap: string;
3915
+ checkWidth: string;
3916
+ checkHeight: string;
3857
3917
  borderRadius: string;
3858
3918
  borderColor: string;
3859
3919
  checkedBackground: string;
@@ -3893,6 +3953,7 @@ export declare const COMPONENT_TOKENS: {
3893
3953
  video: {
3894
3954
  borderRadius: string;
3895
3955
  aspectRatio: string;
3956
+ maxWidth: string;
3896
3957
  };
3897
3958
  mention: {
3898
3959
  padding: string;
@@ -4003,6 +4064,11 @@ export declare const COMPONENT_TOKENS: {
4003
4064
  widgetWidth: string;
4004
4065
  countColor: string;
4005
4066
  countFontSize: string;
4067
+ countMinWidth: string;
4068
+ inputPaddingEnd: string;
4069
+ optionSize: string;
4070
+ optionInset: string;
4071
+ optionFontSize: string;
4006
4072
  };
4007
4073
  };
4008
4074
  codeHighlight: {
@@ -4353,6 +4419,7 @@ export declare const COMPONENT_TOKENS: {
4353
4419
  hoverBackground: string;
4354
4420
  activeBackground: string;
4355
4421
  borderColor: string;
4422
+ shadow: string;
4356
4423
  };
4357
4424
  };
4358
4425
  emptyState: {
@@ -5572,6 +5639,11 @@ export declare const COMPONENT_TOKENS: {
5572
5639
  dependencyActiveWidth: string;
5573
5640
  dimmedOpacity: string;
5574
5641
  toolbarGap: string;
5642
+ tickPaddingX: string;
5643
+ toggleGap: string;
5644
+ barMinWidth: string;
5645
+ insideLabelPadding: string;
5646
+ emptyMinHeight: string;
5575
5647
  maxHeight: string;
5576
5648
  radius: string;
5577
5649
  };
@@ -5932,6 +6004,24 @@ export interface TectraCssVariable {
5932
6004
  /** Value as it is written in CSS. */
5933
6005
  value: string;
5934
6006
  }
6007
+ /** Unit of the sizes in the written CSS variables: `px` as the tokens are, or `rem` to follow the root font size. */
6008
+ export type TectraCssUnits = 'px' | 'rem';
6009
+ /** How a preset is written as CSS variables: extra palettes and the unit of sizes. */
6010
+ export interface TectraCssOptions {
6011
+ /**
6012
+ * Accent palettes written as `--tx-<palette>-<step>` next to the severity palettes, e.g. `['teal', 'rose']`; none by
6013
+ * default. Names of severity palettes (`red`, `green`, `orange`, `yellow`, `sky`, `purple`, `amber`, `blue`) are always
6014
+ * written, from the severity palettes.
6015
+ */
6016
+ palettes?: readonly TectraAccent[];
6017
+ /**
6018
+ * `rem` writes every px size of the tokens as rem (`px / rootFontSize`), so components scale with `html { font-size }`;
6019
+ * values of 1px and less stay in px so hairline borders stay sharp (default `px`).
6020
+ */
6021
+ units?: TectraCssUnits;
6022
+ /** Root font size in px that rem sizes are counted from (default 16). */
6023
+ rootFontSize?: number;
6024
+ }
5935
6025
  /** Builds the semantic tokens of the light color scheme from the accent and surface palettes. */
5936
6026
  export declare function createLightSemantic({ accent, surface }: TectraPalettes): TectraSemanticTokens;
5937
6027
  /** Builds the semantic tokens of the dark color scheme from the accent and surface palettes. */
@@ -6111,54 +6201,63 @@ export declare const buttonTokens: {
6111
6201
  };
6112
6202
  outlined: {
6113
6203
  primary: {
6204
+ background: string;
6114
6205
  hoverBackground: string;
6115
6206
  activeBackground: string;
6116
6207
  borderColor: string;
6117
6208
  color: string;
6118
6209
  };
6119
6210
  secondary: {
6211
+ background: string;
6120
6212
  hoverBackground: string;
6121
6213
  activeBackground: string;
6122
6214
  borderColor: string;
6123
6215
  color: string;
6124
6216
  };
6125
6217
  success: {
6218
+ background: string;
6126
6219
  hoverBackground: string;
6127
6220
  activeBackground: string;
6128
6221
  borderColor: string;
6129
6222
  color: string;
6130
6223
  };
6131
6224
  info: {
6225
+ background: string;
6132
6226
  hoverBackground: string;
6133
6227
  activeBackground: string;
6134
6228
  borderColor: string;
6135
6229
  color: string;
6136
6230
  };
6137
6231
  warn: {
6232
+ background: string;
6138
6233
  hoverBackground: string;
6139
6234
  activeBackground: string;
6140
6235
  borderColor: string;
6141
6236
  color: string;
6142
6237
  };
6143
6238
  help: {
6239
+ background: string;
6144
6240
  hoverBackground: string;
6145
6241
  activeBackground: string;
6146
6242
  borderColor: string;
6147
6243
  color: string;
6148
6244
  };
6149
6245
  danger: {
6246
+ background: string;
6150
6247
  hoverBackground: string;
6151
6248
  activeBackground: string;
6152
6249
  borderColor: string;
6153
6250
  color: string;
6154
6251
  };
6155
6252
  contrast: {
6253
+ background: string;
6156
6254
  hoverBackground: string;
6157
6255
  activeBackground: string;
6158
6256
  borderColor: string;
6159
6257
  color: string;
6160
6258
  };
6161
6259
  plain: {
6260
+ background: string;
6162
6261
  hoverBackground: string;
6163
6262
  activeBackground: string;
6164
6263
  borderColor: string;
@@ -6282,6 +6381,10 @@ export declare const formFieldTokens: {
6282
6381
  shadow: string;
6283
6382
  };
6284
6383
  transitionDuration: string;
6384
+ actionSize: string;
6385
+ actionRoom: string;
6386
+ iconGap: string;
6387
+ panelMaxWidth: string;
6285
6388
  };
6286
6389
  };
6287
6390
  type FormFieldTokensShape = typeof formFieldTokens;
@@ -6309,13 +6412,19 @@ export declare const labelTokens: {
6309
6412
  fontWeight: string;
6310
6413
  gap: string;
6311
6414
  marginBottom: string;
6415
+ lineHeight: string;
6416
+ textDisplay: string;
6312
6417
  requiredColor: string;
6313
6418
  hintColor: string;
6419
+ hintFontSize: string;
6420
+ filledColor: string;
6421
+ filledFontSize: string;
6314
6422
  };
6315
6423
  subtle: {
6316
6424
  color: string;
6317
6425
  fontSize: string;
6318
6426
  fontWeight: string;
6427
+ lineHeight: string;
6319
6428
  };
6320
6429
  };
6321
6430
  /** Design tokens of `tx-float-label`: colors, sizes and spacing of its root, over, in and on. */
@@ -6399,6 +6508,7 @@ export declare const selectTokens: {
6399
6508
  borderColor: string;
6400
6509
  borderRadius: string;
6401
6510
  shadow: string;
6511
+ maxWidth: string;
6402
6512
  };
6403
6513
  list: {
6404
6514
  padding: string;
@@ -6450,6 +6560,7 @@ export declare const selectTokens: {
6450
6560
  removeSize: string;
6451
6561
  removeColor: string;
6452
6562
  removeHoverColor: string;
6563
+ inputMinWidth: string;
6453
6564
  };
6454
6565
  optionGroup: {
6455
6566
  padding: string;
@@ -6511,6 +6622,7 @@ export declare const chipsInputTokens: {
6511
6622
  chipPaddingX: string;
6512
6623
  chipBorderRadius: string;
6513
6624
  inputMinWidth: string;
6625
+ chipRemoveSize: string;
6514
6626
  };
6515
6627
  };
6516
6628
  type ChipsInputTokensShape = typeof chipsInputTokens;
@@ -7171,6 +7283,7 @@ export declare const ratingTokens: {
7171
7283
  focusRingOffset: string;
7172
7284
  borderRadius: string;
7173
7285
  clearGap: string;
7286
+ clearPadding: string;
7174
7287
  clearColor: string;
7175
7288
  clearHoverColor: string;
7176
7289
  clearFontSize: string;
@@ -7313,6 +7426,8 @@ export declare const pillTokens: {
7313
7426
  iconSize: string;
7314
7427
  dotSize: string;
7315
7428
  removeSize: string;
7429
+ removeOffset: string;
7430
+ spinDuration: string;
7316
7431
  focusRingColor: string;
7317
7432
  };
7318
7433
  sm: {
@@ -7387,6 +7502,7 @@ export declare const tagTokens: {
7387
7502
  tint: string;
7388
7503
  iconSize: string;
7389
7504
  actionSize: string;
7505
+ actionOffset: string;
7390
7506
  focusRingColor: string;
7391
7507
  };
7392
7508
  sm: {
@@ -7592,6 +7708,10 @@ export declare const avatarTokens: {
7592
7708
  background: string;
7593
7709
  color: string;
7594
7710
  };
7711
+ solid: {
7712
+ background: string;
7713
+ color: string;
7714
+ };
7595
7715
  };
7596
7716
  group: {
7597
7717
  overlap: string;
@@ -7683,6 +7803,16 @@ export declare const panelTokens: {
7683
7803
  iconBorderRadius: string;
7684
7804
  iconColor: string;
7685
7805
  iconBackground: string;
7806
+ iconScale: string;
7807
+ headerGap: string;
7808
+ headerEndGap: string;
7809
+ leadGap: string;
7810
+ headingGap: string;
7811
+ titleLineHeight: string;
7812
+ subtitleLineHeight: string;
7813
+ actionsGap: string;
7814
+ footerGap: string;
7815
+ toggleSize: string;
7686
7816
  transitionDuration: string;
7687
7817
  };
7688
7818
  inset: {
@@ -7713,6 +7843,7 @@ export declare const fieldsetTokens: {
7713
7843
  legendBorderColor: string;
7714
7844
  legendBorderRadius: string;
7715
7845
  togglePadding: string;
7846
+ toggleGap: string;
7716
7847
  focusRingWidth: string;
7717
7848
  focusRingOffset: string;
7718
7849
  focusRingShadow: string;
@@ -7981,6 +8112,7 @@ export declare const toastTokens: {
7981
8112
  shadow: string;
7982
8113
  };
7983
8114
  action: {
8115
+ gap: string;
7984
8116
  padding: string;
7985
8117
  fontSize: string;
7986
8118
  fontWeight: string;
@@ -8048,6 +8180,7 @@ export declare const dialogTokens: {
8048
8180
  subtitle: {
8049
8181
  color: string;
8050
8182
  fontSize: string;
8183
+ marginTop: string;
8051
8184
  };
8052
8185
  content: {
8053
8186
  padding: string;
@@ -8410,6 +8543,7 @@ export declare const tableTokens: {
8410
8543
  };
8411
8544
  columnResizer: {
8412
8545
  width: string;
8546
+ hitWidth: string;
8413
8547
  lineWidth: string;
8414
8548
  color: string;
8415
8549
  };
@@ -8486,6 +8620,8 @@ export declare const tableTokens: {
8486
8620
  actions: {
8487
8621
  gap: string;
8488
8622
  overflowPadding: string;
8623
+ menuIconSize: string;
8624
+ menuIconFontSize: string;
8489
8625
  };
8490
8626
  card: {
8491
8627
  minWidth: string;
@@ -9539,6 +9675,8 @@ export declare const editorContentTokens: {
9539
9675
  task: {
9540
9676
  size: string;
9541
9677
  gap: string;
9678
+ checkWidth: string;
9679
+ checkHeight: string;
9542
9680
  borderRadius: string;
9543
9681
  borderColor: string;
9544
9682
  checkedBackground: string;
@@ -9578,6 +9716,7 @@ export declare const editorContentTokens: {
9578
9716
  video: {
9579
9717
  borderRadius: string;
9580
9718
  aspectRatio: string;
9719
+ maxWidth: string;
9581
9720
  };
9582
9721
  mention: {
9583
9722
  padding: string;
@@ -9629,6 +9768,7 @@ export declare const editorTokens: {
9629
9768
  };
9630
9769
  tool: {
9631
9770
  size: string;
9771
+ gap: string;
9632
9772
  borderRadius: string;
9633
9773
  iconSize: string;
9634
9774
  color: string;
@@ -9640,6 +9780,9 @@ export declare const editorTokens: {
9640
9780
  labelFontSize: string;
9641
9781
  labelFontWeight: string;
9642
9782
  labelPadding: string;
9783
+ labelMinWidth: string;
9784
+ menuPadding: string;
9785
+ colorBarHeight: string;
9643
9786
  focusRingWidth: string;
9644
9787
  focusRingColor: string;
9645
9788
  };
@@ -9648,12 +9791,17 @@ export declare const editorTokens: {
9648
9791
  hoverBackground: string;
9649
9792
  color: string;
9650
9793
  animationDuration: string;
9794
+ gap: string;
9795
+ padding: string;
9651
9796
  };
9652
9797
  content: {
9653
9798
  padding: string;
9654
9799
  minHeight: string;
9655
9800
  placeholderColor: string;
9656
9801
  };
9802
+ table: {
9803
+ cellMinWidth: string;
9804
+ };
9657
9805
  footer: {
9658
9806
  padding: string;
9659
9807
  color: string;
@@ -9677,6 +9825,8 @@ export declare const editorTokens: {
9677
9825
  shadow: string;
9678
9826
  offset: string;
9679
9827
  linkMaxWidth: string;
9828
+ labelGap: string;
9829
+ itemPadding: string;
9680
9830
  };
9681
9831
  popover: {
9682
9832
  padding: string;
@@ -9699,6 +9849,7 @@ export declare const editorTokens: {
9699
9849
  itemRadius: string;
9700
9850
  itemFocusBackground: string;
9701
9851
  avatarSize: string;
9852
+ commandIconInset: string;
9702
9853
  secondaryColor: string;
9703
9854
  };
9704
9855
  };
@@ -9821,6 +9972,11 @@ export declare const codeEditorTokens: {
9821
9972
  widgetWidth: string;
9822
9973
  countColor: string;
9823
9974
  countFontSize: string;
9975
+ countMinWidth: string;
9976
+ inputPaddingEnd: string;
9977
+ optionSize: string;
9978
+ optionInset: string;
9979
+ optionFontSize: string;
9824
9980
  };
9825
9981
  };
9826
9982
  /**
@@ -10180,14 +10336,25 @@ export declare function toCssVariables(tokens: object, prefix?: string): TectraC
10180
10336
  * `{}` when there are no tokens.
10181
10337
  */
10182
10338
  export declare function toStyleObject(tokens: object | undefined, prefix: string): Record<string, string>;
10339
+ /**
10340
+ * Writes every px size in a CSS value as rem, counted from the root font size (default 16); sizes of 1px and less stay
10341
+ * in px, so `1px solid` borders stay sharp.
10342
+ */
10343
+ export declare function pxToRem(value: string, rootFontSize?: number): string;
10183
10344
  /** CSS variables of one component's tokens, named `--tx-<component>-…`. */
10184
10345
  export declare function componentVariables(name: string, tokens: object): TectraCssVariable[];
10185
- /** CSS rule on `:root` with the variables of one component's tokens. */
10186
- export declare function componentTokensCss(name: string, tokens: object): string;
10187
- /** CSS of a preset without component tokens: shared and semantic variables for light and dark and the extra CSS. */
10188
- export declare function presetBaseCss(preset: TectraPreset): string;
10189
- /** Full CSS of a preset: the base CSS plus the variables of all component tokens with the preset overrides. */
10190
- export declare function presetToCss(preset: TectraPreset): string;
10346
+ /** CSS rule on `:root` with the variables of one component's tokens; `options.units` sets the unit of sizes. */
10347
+ export declare function componentTokensCss(name: string, tokens: object, options?: TectraCssOptions): string;
10348
+ /**
10349
+ * CSS of a preset without component tokens: shared and semantic variables for light and dark and the extra CSS;
10350
+ * `options` adds accent palettes and sets the unit of sizes.
10351
+ */
10352
+ export declare function presetBaseCss(preset: TectraPreset, options?: TectraCssOptions): string;
10353
+ /**
10354
+ * Full CSS of a preset: the base CSS plus the variables of all component tokens with the preset overrides; `options`
10355
+ * adds accent palettes and sets the unit of sizes.
10356
+ */
10357
+ export declare function presetToCss(preset: TectraPreset, options?: TectraCssOptions): string;
10191
10358
  /**
10192
10359
  * Design tokens of `tx-stepper`: colors, sizes and spacing of its root, separator, step, step header, step
10193
10360
  * title and other parts.
@@ -10797,6 +10964,7 @@ export declare const pageHeaderTokens: {
10797
10964
  hoverBackground: string;
10798
10965
  activeBackground: string;
10799
10966
  borderColor: string;
10967
+ shadow: string;
10800
10968
  };
10801
10969
  };
10802
10970
  type PageHeaderTokensShape = typeof pageHeaderTokens;
@@ -12092,6 +12260,11 @@ export declare const chartTokens: {
12092
12260
  dependencyActiveWidth: string;
12093
12261
  dimmedOpacity: string;
12094
12262
  toolbarGap: string;
12263
+ tickPaddingX: string;
12264
+ toggleGap: string;
12265
+ barMinWidth: string;
12266
+ insideLabelPadding: string;
12267
+ emptyMinHeight: string;
12095
12268
  maxHeight: string;
12096
12269
  radius: string;
12097
12270
  };