@dialpad/dialtone-tokens 1.3.2 → 1.3.4

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
@@ -1,45 +1,88 @@
1
1
  # Design Tokens for Dialtone
2
2
 
3
- ## This repository is in development and NOT currently ready for use.
4
-
5
3
  Design tokens for Dialpad's design system Dialtone and everything related to building and publishing them.
6
4
 
7
5
  Design tokens are all the defined values that are part of the design system, such as color, spacing, typography, and more. The goal is to store design tokens as JSON and output and publish them to many different formats (CSS, LESS, Android, iOS, etc) upon build.
8
6
 
9
- ### Usage
7
+ ## Usage
10
8
 
11
9
  To use Dialtone Tokens in your project:
12
10
 
11
+ ### Web (npm)
12
+
13
+ #### Install Dependency
13
14
  ```
14
15
  npm install @dialpad/dialtone-tokens
15
16
  ```
16
17
 
17
- #### CSS
18
+ #### Import CSS Tokens
18
19
 
19
20
  ```
20
21
  @import "node_modules/@dialpad/dialtone/css/variables.css";
21
22
  ```
22
23
 
23
- #### LESS
24
+ #### Use CSS Token
25
+
26
+ ```
27
+ .my-css-class {
28
+ color: var(--dt-color-purple-200)
29
+ }
30
+ ```
31
+
32
+ Or
33
+
34
+ #### Import LESS Tokens
24
35
 
25
36
  ```
26
37
  @import "node_modules/@dialpad/dialtone/less/variables.less";
27
38
  ```
28
39
 
29
- #### iOS (swift)
40
+ #### Use LESS Token
41
+
42
+ ```
43
+ .my-css-class {
44
+ color: @dt-color-purple-200
45
+ }
46
+ ```
47
+
48
+ ### iOS (swift)
30
49
 
50
+ 1. Within your XCode project `File > Swift Packages > Add Package Dependency`
51
+ 2. Enter repository url: `https://github.com/dialpad/dialtone-tokens-swift`
52
+
53
+
54
+ ### Android (compose/xml)
55
+
56
+ #### pom.xml
31
57
  ```
32
- TBD
58
+ <dependency>
59
+ <groupId>design.dialpad.tokens</groupId>
60
+ <artifactId>dialtone-tokens</artifactId>
61
+ <version>1.2.0</version>
62
+ </dependency>
33
63
  ```
34
64
 
35
- #### Android
65
+ #### Install Dependency
36
66
 
37
67
  ```
38
- TBD
68
+ mvn install
69
+ ```
70
+
71
+ <!-- #### Import Compose Tokens
72
+
39
73
  ```
74
+ import design.dialpad.DialtoneTokens;
75
+ ```
76
+
77
+ #### Use Compose Token
78
+
79
+ ```
80
+ DialtoneTokens.dtColorPurple200
81
+ ``` -->
82
+
40
83
 
41
84
 
42
- ### Quick Start for Contributors
85
+ ## Quick Start for Contributors
43
86
 
44
87
  1. clone repo
45
88
  2. `npm install`
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!--
4
4
  Do not edit directly
5
- Generated on Thu, 29 Sep 2022 20:55:14 GMT
5
+ Generated on Mon, 24 Oct 2022 21:03:53 GMT
6
6
  -->
7
7
  <resources>
8
8
  <color name="dt_button_color_background_default">transparent</color>
@@ -79,6 +79,7 @@
79
79
  <color name="dt_color_tan_300">#ff87807b</color>
80
80
  <color name="dt_color_tan_400">#ff3f3d3c</color>
81
81
  <color name="dt_color_tan_500">#ff121212</color>
82
+ <color name="dt_color_gradient_magenta_purple">#ff000000</color>
82
83
  <color name="dt_opacity_0">0</color>
83
84
  <color name="dt_opacity_100">0.05</color>
84
85
  <color name="dt_opacity_200">0.1</color>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!--
4
4
  Do not edit directly
5
- Generated on Thu, 29 Sep 2022 20:55:14 GMT
5
+ Generated on Mon, 24 Oct 2022 21:03:53 GMT
6
6
  -->
7
7
  <resources>
8
8
  <dimen name="dt_button_border_radius_extra_small">7px</dimen>
@@ -57,6 +57,9 @@
57
57
  <dimen name="dt_size_border_icon_300">24.00dp</dimen>
58
58
  <dimen name="dt_size_border_icon_400">28.00dp</dimen>
59
59
  <dimen name="dt_size_border_icon_500">28.00dp</dimen>
60
+ <dimen name="dt_size_border_icon_600">40.00dp</dimen>
61
+ <dimen name="dt_size_border_icon_700">44.00dp</dimen>
62
+ <dimen name="dt_size_border_icon_800">56.00dp</dimen>
60
63
  <dimen name="dt_size_base">128.00dp</dimen>
61
64
  <dimen name="dt_size_radius_0">0.00dp</dimen>
62
65
  <dimen name="dt_size_radius_100">16.00dp</dimen>
@@ -76,10 +79,10 @@
76
79
  <dimen name="dt_font_line_height_400">160%</dimen>
77
80
  <dimen name="dt_font_line_height_500">180%</dimen>
78
81
  <dimen name="dt_font_line_height_600">200%</dimen>
79
- <dimen name="dt_font_weight_normal">Regular</dimen>
80
- <dimen name="dt_font_weight_medium">Medium</dimen>
81
- <dimen name="dt_font_weight_semi_bold">Semibold</dimen>
82
- <dimen name="dt_font_weight_bold">Bold</dimen>
82
+ <dimen name="dt_font_weight_normal">400</dimen>
83
+ <dimen name="dt_font_weight_medium">500</dimen>
84
+ <dimen name="dt_font_weight_semi_bold">600</dimen>
85
+ <dimen name="dt_font_weight_bold">700</dimen>
83
86
  <dimen name="dt_space_0">0px</dimen>
84
87
  <dimen name="dt_space_100">1px</dimen>
85
88
  <dimen name="dt_space_200">2px</dimen>