@dialpad/dialtone-tokens 1.27.2 → 1.28.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/README.md CHANGED
@@ -4,7 +4,7 @@ Design tokens for Dialpad's design system Dialtone and everything related to bui
4
4
 
5
5
  Design tokens are all the defined values that are part of the design system, such as color, spacing, typography, and
6
6
  more. The goal is to store design tokens as JSON and output and publish them to many different formats (CSS, LESS,
7
- Android, iOS, etc) upon build.
7
+ Android, iOS, etc.) upon build.
8
8
 
9
9
  ## Usage
10
10
 
@@ -21,7 +21,8 @@ npm install @dialpad/dialtone-tokens
21
21
  #### Import CSS Tokens
22
22
 
23
23
  ```css
24
- @import "node_modules/@dialpad/dialtone-css/css/variables.css";
24
+ @import "@dialpad/dialtone-tokens/dist/css/variables-dark.css"; // Dark variables
25
+ @import "@dialpad/dialtone-tokens/dist/css/variables-light.css"; // Light variables
25
26
  ```
26
27
 
27
28
  #### Use CSS Token
@@ -37,7 +38,8 @@ Or
37
38
  #### Import LESS Tokens
38
39
 
39
40
  ```less
40
- @import "node_modules/@dialpad/dialtone-css/less/variables.less";
41
+ @import "@dialpad/dialtone-tokens/dist/less/variables-dark.less"; // Dark variables
42
+ @import "@dialpad/dialtone-tokens/dist/less/variables-light.less"; // Light variables
41
43
  ```
42
44
 
43
45
  #### Use LESS Token
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
  // Do not edit directly
4
- // Generated on Tue, 26 Mar 2024 22:25:19 GMT
4
+ // Generated on Sun, 07 Apr 2024 20:16:09 GMT
5
5
 
6
6
 
7
7
 
@@ -429,13 +429,13 @@ object DialtoneTokensDark {
429
429
  val dtShadowFocus0Y = 0.dp
430
430
  val dtShadowFocus1Blur = 0.dp
431
431
  val dtShadowFocus1Color = Color(0xff51a0fe)
432
- val dtShadowFocus1Spread = 4.dp
432
+ val dtShadowFocus1Spread = 3.dp
433
433
  val dtShadowFocus1Type = "dropShadow"
434
434
  val dtShadowFocus1X = 0.dp
435
435
  val dtShadowFocus1Y = 0.dp
436
436
  val dtShadowFocusInset0Blur = 0.dp
437
437
  val dtShadowFocusInset0Color = Color(0xff51a0fe)
438
- val dtShadowFocusInset0Spread = 3.dp
438
+ val dtShadowFocusInset0Spread = 2.dp
439
439
  val dtShadowFocusInset0Type = "innerShadow"
440
440
  val dtShadowFocusInset0X = 0.dp
441
441
  val dtShadowFocusInset0Y = 0.dp
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
  // Do not edit directly
4
- // Generated on Tue, 26 Mar 2024 22:25:19 GMT
4
+ // Generated on Sun, 07 Apr 2024 20:16:09 GMT
5
5
 
6
6
 
7
7
 
@@ -381,13 +381,13 @@ object DialtoneTokensLight {
381
381
  val dtShadowFocus0Y = 0.dp
382
382
  val dtShadowFocus1Blur = 0.dp
383
383
  val dtShadowFocus1Color = Color(0xff51a0fe)
384
- val dtShadowFocus1Spread = 4.dp
384
+ val dtShadowFocus1Spread = 3.dp
385
385
  val dtShadowFocus1Type = "dropShadow"
386
386
  val dtShadowFocus1X = 0.dp
387
387
  val dtShadowFocus1Y = 0.dp
388
388
  val dtShadowFocusInset0Blur = 0.dp
389
389
  val dtShadowFocusInset0Color = Color(0xff51a0fe)
390
- val dtShadowFocusInset0Spread = 3.dp
390
+ val dtShadowFocusInset0Spread = 2.dp
391
391
  val dtShadowFocusInset0Type = "innerShadow"
392
392
  val dtShadowFocusInset0X = 0.dp
393
393
  val dtShadowFocusInset0Y = 0.dp
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!--
4
4
  Do not edit directly
5
- Generated on Tue, 26 Mar 2024 22:25:19 GMT
5
+ Generated on Sun, 07 Apr 2024 20:16:09 GMT
6
6
  -->
7
7
  <resources>
8
8
  <color name="dt_dark_radio_color_border_unchecked">#ff808080</color>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!--
4
4
  Do not edit directly
5
- Generated on Tue, 26 Mar 2024 22:25:19 GMT
5
+ Generated on Sun, 07 Apr 2024 20:16:09 GMT
6
6
  -->
7
7
  <resources>
8
8
  <color name="dt_light_radio_color_border_unchecked">#ffaaaaaa</color>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!--
4
4
  Do not edit directly
5
- Generated on Tue, 26 Mar 2024 22:25:19 GMT
5
+ Generated on Sun, 07 Apr 2024 20:16:09 GMT
6
6
  -->
7
7
  <resources>
8
8
  <dimen name="dt_dark_radio_size_width">16px</dimen>
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 26 Mar 2024 22:25:18 GMT
3
+ * Generated on Sun, 07 Apr 2024 20:16:09 GMT
4
4
  */
5
5
 
6
6
  .dialtone-theme-dark {
@@ -595,13 +595,13 @@
595
595
  --dt-shadow-focus-2-x: 0rem;
596
596
  --dt-shadow-focus-2-y: 0rem;
597
597
  --dt-shadow-focus-2-blur: 0rem;
598
- --dt-shadow-focus-2-spread: 0.4rem;
598
+ --dt-shadow-focus-2-spread: 0.3rem;
599
599
  --dt-shadow-focus-2-color: #51A0FE;
600
600
  --dt-shadow-focus-2-type: dropShadow;
601
601
  --dt-shadow-focus-inset-1-x: 0rem;
602
602
  --dt-shadow-focus-inset-1-y: 0rem;
603
603
  --dt-shadow-focus-inset-1-blur: 0rem;
604
- --dt-shadow-focus-inset-1-spread: 0.3rem;
604
+ --dt-shadow-focus-inset-1-spread: 0.2rem;
605
605
  --dt-shadow-focus-inset-1-color: #51A0FE;
606
606
  --dt-shadow-focus-inset-1-type: innerShadow;
607
607
  --dt-typography-body-md-font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI Adjusted", "Segoe UI", SFMono, "Helvetica Neue", Cantarell, Ubuntu, Roboto, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* Base default medium text style for main content. */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 26 Mar 2024 22:25:18 GMT
3
+ * Generated on Sun, 07 Apr 2024 20:16:08 GMT
4
4
  */
5
5
 
6
6
  .dialtone-theme-light {
@@ -475,13 +475,13 @@
475
475
  --dt-shadow-focus-2-x: 0rem;
476
476
  --dt-shadow-focus-2-y: 0rem;
477
477
  --dt-shadow-focus-2-blur: 0rem;
478
- --dt-shadow-focus-2-spread: 0.4rem;
478
+ --dt-shadow-focus-2-spread: 0.3rem;
479
479
  --dt-shadow-focus-2-color: #51A0FE;
480
480
  --dt-shadow-focus-2-type: dropShadow;
481
481
  --dt-shadow-focus-inset-1-x: 0rem;
482
482
  --dt-shadow-focus-inset-1-y: 0rem;
483
483
  --dt-shadow-focus-inset-1-blur: 0rem;
484
- --dt-shadow-focus-inset-1-spread: 0.3rem;
484
+ --dt-shadow-focus-inset-1-spread: 0.2rem;
485
485
  --dt-shadow-focus-inset-1-color: #51A0FE;
486
486
  --dt-shadow-focus-inset-1-type: innerShadow;
487
487
  --dt-typography-body-md-font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI Adjusted", "Segoe UI", SFMono, "Helvetica Neue", Cantarell, Ubuntu, Roboto, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* Base default medium text style for main content. */
package/dist/doc.json CHANGED
@@ -13144,15 +13144,15 @@
13144
13144
  },
13145
13145
  "android/resources": {
13146
13146
  "name": "dt_light_shadow_focus_1_spread",
13147
- "value": "4px"
13147
+ "value": "3px"
13148
13148
  },
13149
13149
  "compose/object": {
13150
13150
  "name": "dtShadowFocus1Spread",
13151
- "value": "4.dp"
13151
+ "value": "3.dp"
13152
13152
  },
13153
13153
  "ios-swift/enum.swift": {
13154
13154
  "name": "dtShadowFocus1Spread",
13155
- "value": "CGFloat(4.00)"
13155
+ "value": "CGFloat(3.00)"
13156
13156
  }
13157
13157
  },
13158
13158
  "shadow/focus/1/color": {
@@ -13232,11 +13232,11 @@
13232
13232
  "shadow/focus/2/spread": {
13233
13233
  "css/variables": {
13234
13234
  "name": "var(--dt-shadow-focus-2-spread)",
13235
- "value": "0.4rem"
13235
+ "value": "0.3rem"
13236
13236
  },
13237
13237
  "less/variables": {
13238
13238
  "name": "dt-shadow-focus-2-spread",
13239
- "value": "0.4rem"
13239
+ "value": "0.3rem"
13240
13240
  }
13241
13241
  },
13242
13242
  "shadow/focus/2/color": {
@@ -13292,11 +13292,11 @@
13292
13292
  "shadow/focus-inset/1/spread": {
13293
13293
  "css/variables": {
13294
13294
  "name": "var(--dt-shadow-focus-inset-1-spread)",
13295
- "value": "0.3rem"
13295
+ "value": "0.2rem"
13296
13296
  },
13297
13297
  "less/variables": {
13298
13298
  "name": "dt-shadow-focus-inset-1-spread",
13299
- "value": "0.3rem"
13299
+ "value": "0.2rem"
13300
13300
  }
13301
13301
  },
13302
13302
  "shadow/focus-inset/1/color": {
@@ -21416,15 +21416,15 @@
21416
21416
  "shadow/focus-inset/0/spread": {
21417
21417
  "android/resources": {
21418
21418
  "name": "dt_light_shadow_focus_inset_0_spread",
21419
- "value": "3px"
21419
+ "value": "2px"
21420
21420
  },
21421
21421
  "compose/object": {
21422
21422
  "name": "dtShadowFocusInset0Spread",
21423
- "value": "3.dp"
21423
+ "value": "2.dp"
21424
21424
  },
21425
21425
  "ios-swift/enum.swift": {
21426
21426
  "name": "dtShadowFocusInset0Spread",
21427
- "value": "CGFloat(3.00)"
21427
+ "value": "CGFloat(2.00)"
21428
21428
  }
21429
21429
  },
21430
21430
  "shadow/focus-inset/0/color": {
@@ -37069,15 +37069,15 @@
37069
37069
  },
37070
37070
  "android/resources": {
37071
37071
  "name": "dt_dark_shadow_focus_1_spread",
37072
- "value": "4px"
37072
+ "value": "3px"
37073
37073
  },
37074
37074
  "compose/object": {
37075
37075
  "name": "dtShadowFocus1Spread",
37076
- "value": "4.dp"
37076
+ "value": "3.dp"
37077
37077
  },
37078
37078
  "ios-swift/enum.swift": {
37079
37079
  "name": "dtShadowFocus1Spread",
37080
- "value": "CGFloat(4.00)"
37080
+ "value": "CGFloat(3.00)"
37081
37081
  }
37082
37082
  },
37083
37083
  "shadow/focus/1/color": {
@@ -37157,11 +37157,11 @@
37157
37157
  "shadow/focus/2/spread": {
37158
37158
  "css/variables": {
37159
37159
  "name": "var(--dt-shadow-focus-2-spread)",
37160
- "value": "0.4rem"
37160
+ "value": "0.3rem"
37161
37161
  },
37162
37162
  "less/variables": {
37163
37163
  "name": "dt-shadow-focus-2-spread",
37164
- "value": "0.4rem"
37164
+ "value": "0.3rem"
37165
37165
  }
37166
37166
  },
37167
37167
  "shadow/focus/2/color": {
@@ -37217,11 +37217,11 @@
37217
37217
  "shadow/focus-inset/1/spread": {
37218
37218
  "css/variables": {
37219
37219
  "name": "var(--dt-shadow-focus-inset-1-spread)",
37220
- "value": "0.3rem"
37220
+ "value": "0.2rem"
37221
37221
  },
37222
37222
  "less/variables": {
37223
37223
  "name": "dt-shadow-focus-inset-1-spread",
37224
- "value": "0.3rem"
37224
+ "value": "0.2rem"
37225
37225
  }
37226
37226
  },
37227
37227
  "shadow/focus-inset/1/color": {
@@ -45341,15 +45341,15 @@
45341
45341
  "shadow/focus-inset/0/spread": {
45342
45342
  "android/resources": {
45343
45343
  "name": "dt_dark_shadow_focus_inset_0_spread",
45344
- "value": "3px"
45344
+ "value": "2px"
45345
45345
  },
45346
45346
  "compose/object": {
45347
45347
  "name": "dtShadowFocusInset0Spread",
45348
- "value": "3.dp"
45348
+ "value": "2.dp"
45349
45349
  },
45350
45350
  "ios-swift/enum.swift": {
45351
45351
  "name": "dtShadowFocusInset0Spread",
45352
- "value": "CGFloat(3.00)"
45352
+ "value": "CGFloat(2.00)"
45353
45353
  }
45354
45354
  },
45355
45355
  "shadow/focus-inset/0/color": {
@@ -4,7 +4,7 @@
4
4
  //
5
5
 
6
6
  // Do not edit directly
7
- // Generated on Tue, 26 Mar 2024 22:25:19 GMT
7
+ // Generated on Sun, 07 Apr 2024 20:16:09 GMT
8
8
 
9
9
 
10
10
  import UIKit
@@ -426,13 +426,13 @@ public enum DialtoneTokensDark {
426
426
  public static let dtShadowFocus0Y = CGFloat(0.00)
427
427
  public static let dtShadowFocus1Blur = CGFloat(0.00)
428
428
  public static let dtShadowFocus1Color = UIColor(red: 0.318, green: 0.627, blue: 0.996, alpha: 1)
429
- public static let dtShadowFocus1Spread = CGFloat(4.00)
429
+ public static let dtShadowFocus1Spread = CGFloat(3.00)
430
430
  public static let dtShadowFocus1Type = "dropShadow"
431
431
  public static let dtShadowFocus1X = CGFloat(0.00)
432
432
  public static let dtShadowFocus1Y = CGFloat(0.00)
433
433
  public static let dtShadowFocusInset0Blur = CGFloat(0.00)
434
434
  public static let dtShadowFocusInset0Color = UIColor(red: 0.318, green: 0.627, blue: 0.996, alpha: 1)
435
- public static let dtShadowFocusInset0Spread = CGFloat(3.00)
435
+ public static let dtShadowFocusInset0Spread = CGFloat(2.00)
436
436
  public static let dtShadowFocusInset0Type = "innerShadow"
437
437
  public static let dtShadowFocusInset0X = CGFloat(0.00)
438
438
  public static let dtShadowFocusInset0Y = CGFloat(0.00)
@@ -4,7 +4,7 @@
4
4
  //
5
5
 
6
6
  // Do not edit directly
7
- // Generated on Tue, 26 Mar 2024 22:25:19 GMT
7
+ // Generated on Sun, 07 Apr 2024 20:16:09 GMT
8
8
 
9
9
 
10
10
  import UIKit
@@ -378,13 +378,13 @@ public enum DialtoneTokensLight {
378
378
  public static let dtShadowFocus0Y = CGFloat(0.00)
379
379
  public static let dtShadowFocus1Blur = CGFloat(0.00)
380
380
  public static let dtShadowFocus1Color = UIColor(red: 0.318, green: 0.627, blue: 0.996, alpha: 1)
381
- public static let dtShadowFocus1Spread = CGFloat(4.00)
381
+ public static let dtShadowFocus1Spread = CGFloat(3.00)
382
382
  public static let dtShadowFocus1Type = "dropShadow"
383
383
  public static let dtShadowFocus1X = CGFloat(0.00)
384
384
  public static let dtShadowFocus1Y = CGFloat(0.00)
385
385
  public static let dtShadowFocusInset0Blur = CGFloat(0.00)
386
386
  public static let dtShadowFocusInset0Color = UIColor(red: 0.318, green: 0.627, blue: 0.996, alpha: 1)
387
- public static let dtShadowFocusInset0Spread = CGFloat(3.00)
387
+ public static let dtShadowFocusInset0Spread = CGFloat(2.00)
388
388
  public static let dtShadowFocusInset0Type = "innerShadow"
389
389
  public static let dtShadowFocusInset0X = CGFloat(0.00)
390
390
  public static let dtShadowFocusInset0Y = CGFloat(0.00)
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 26 Mar 2024 22:25:19 GMT
3
+ // Generated on Sun, 07 Apr 2024 20:16:09 GMT
4
4
 
5
5
  @dt-font-size-100: 1.2rem; // small
6
6
  @dt-font-size-200: 1.5rem; // medium / base
@@ -593,13 +593,13 @@
593
593
  @dt-shadow-focus-2-x: 0rem;
594
594
  @dt-shadow-focus-2-y: 0rem;
595
595
  @dt-shadow-focus-2-blur: 0rem;
596
- @dt-shadow-focus-2-spread: 0.4rem;
596
+ @dt-shadow-focus-2-spread: 0.3rem;
597
597
  @dt-shadow-focus-2-color: #51A0FE;
598
598
  @dt-shadow-focus-2-type: dropShadow;
599
599
  @dt-shadow-focus-inset-1-x: 0rem;
600
600
  @dt-shadow-focus-inset-1-y: 0rem;
601
601
  @dt-shadow-focus-inset-1-blur: 0rem;
602
- @dt-shadow-focus-inset-1-spread: 0.3rem;
602
+ @dt-shadow-focus-inset-1-spread: 0.2rem;
603
603
  @dt-shadow-focus-inset-1-color: #51A0FE;
604
604
  @dt-shadow-focus-inset-1-type: innerShadow;
605
605
  @dt-typography-body-md-font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI Adjusted", "Segoe UI", SFMono, "Helvetica Neue", Cantarell, Ubuntu, Roboto, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; // Base default medium text style for main content.
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 26 Mar 2024 22:25:18 GMT
3
+ // Generated on Sun, 07 Apr 2024 20:16:08 GMT
4
4
 
5
5
  @dt-font-size-100: 1.2rem; // small
6
6
  @dt-font-size-200: 1.5rem; // medium / base
@@ -473,13 +473,13 @@
473
473
  @dt-shadow-focus-2-x: 0rem;
474
474
  @dt-shadow-focus-2-y: 0rem;
475
475
  @dt-shadow-focus-2-blur: 0rem;
476
- @dt-shadow-focus-2-spread: 0.4rem;
476
+ @dt-shadow-focus-2-spread: 0.3rem;
477
477
  @dt-shadow-focus-2-color: #51A0FE;
478
478
  @dt-shadow-focus-2-type: dropShadow;
479
479
  @dt-shadow-focus-inset-1-x: 0rem;
480
480
  @dt-shadow-focus-inset-1-y: 0rem;
481
481
  @dt-shadow-focus-inset-1-blur: 0rem;
482
- @dt-shadow-focus-inset-1-spread: 0.3rem;
482
+ @dt-shadow-focus-inset-1-spread: 0.2rem;
483
483
  @dt-shadow-focus-inset-1-color: #51A0FE;
484
484
  @dt-shadow-focus-inset-1-type: innerShadow;
485
485
  @dt-typography-body-md-font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI Adjusted", "Segoe UI", SFMono, "Helvetica Neue", Cantarell, Ubuntu, Roboto, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; // Base default medium text style for main content.
@@ -780,13 +780,13 @@
780
780
  "dtShadowFocus1X": "0rem",
781
781
  "dtShadowFocus1Y": "0rem",
782
782
  "dtShadowFocus1Blur": "0rem",
783
- "dtShadowFocus1Spread": "0.25rem",
783
+ "dtShadowFocus1Spread": "0.1875rem",
784
784
  "dtShadowFocus1Color": "#51A0FE",
785
785
  "dtShadowFocus1Type": "dropShadow",
786
786
  "dtShadowFocusInset0X": "0rem",
787
787
  "dtShadowFocusInset0Y": "0rem",
788
788
  "dtShadowFocusInset0Blur": "0rem",
789
- "dtShadowFocusInset0Spread": "0.1875rem",
789
+ "dtShadowFocusInset0Spread": "0.125rem",
790
790
  "dtShadowFocusInset0Color": "#51A0FE",
791
791
  "dtShadowFocusInset0Type": "innerShadow",
792
792
  "dtOpacity0": 0,
@@ -696,13 +696,13 @@
696
696
  "dtShadowFocus1X": "0rem",
697
697
  "dtShadowFocus1Y": "0rem",
698
698
  "dtShadowFocus1Blur": "0rem",
699
- "dtShadowFocus1Spread": "0.25rem",
699
+ "dtShadowFocus1Spread": "0.1875rem",
700
700
  "dtShadowFocus1Color": "#51A0FE",
701
701
  "dtShadowFocus1Type": "dropShadow",
702
702
  "dtShadowFocusInset0X": "0rem",
703
703
  "dtShadowFocusInset0Y": "0rem",
704
704
  "dtShadowFocusInset0Blur": "0rem",
705
- "dtShadowFocusInset0Spread": "0.1875rem",
705
+ "dtShadowFocusInset0Spread": "0.125rem",
706
706
  "dtShadowFocusInset0Color": "#51A0FE",
707
707
  "dtShadowFocusInset0Type": "innerShadow",
708
708
  "dtSpace0": "0rem",
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@dialpad/dialtone-tokens",
3
- "version": "1.27.2",
3
+ "version": "1.28.0",
4
4
  "description": "Design tokens for Dialtone.",
5
- "main": "index.js",
6
5
  "type": "module",
7
6
  "files": [
8
7
  "dist"