@dialpad/dialtone-tokens 1.0.1
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 +17 -0
- package/dist/less/_variables.less +239 -0
- package/package.json +37 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Design Tokens for Dialtone
|
|
2
|
+
|
|
3
|
+
## This repository is in development and NOT currently ready for use.
|
|
4
|
+
|
|
5
|
+
Design tokens for Dialpad's design system Dialtone and everything related to building and publishing them.
|
|
6
|
+
|
|
7
|
+
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
|
+
|
|
9
|
+
### Quick start for development
|
|
10
|
+
|
|
11
|
+
1. clone repo
|
|
12
|
+
2. `npm install`
|
|
13
|
+
3. `npm run build` to build tokens. Built tokens will be output to the dist folder.
|
|
14
|
+
|
|
15
|
+
- `base.json` Contains tokens exported from figma.
|
|
16
|
+
- `tokens/tokens.json` Contains tokens in style dictionary format (generated from `base.json`).
|
|
17
|
+
- `dist` Contains tokens in their final output form, in multiple different formats.
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
|
|
2
|
+
// Do not edit directly
|
|
3
|
+
// Generated on Thu, 11 Aug 2022 23:17:34 GMT
|
|
4
|
+
|
|
5
|
+
@dt-button-color-background-default: transparent;
|
|
6
|
+
@dt-button-color-background-primary: #6C3DFF;
|
|
7
|
+
@dt-button-color-background-danger: #D81616;
|
|
8
|
+
@dt-button-color-text-default: #6C3DFF;
|
|
9
|
+
@dt-button-color-text-primary: #fff;
|
|
10
|
+
@dt-button-color-text-danger: #fff;
|
|
11
|
+
@dt-button-border-radius-extra-small: 3px;
|
|
12
|
+
@dt-button-border-radius-small: 3.5px;
|
|
13
|
+
@dt-button-border-radius-medium: 4px;
|
|
14
|
+
@dt-button-border-radius-large: 5px;
|
|
15
|
+
@dt-button-border-radius-extra-large: 6px;
|
|
16
|
+
@dt-button-space-gap: 8px;
|
|
17
|
+
@dt-button-padding-horizontal-extra-small: 7px;
|
|
18
|
+
@dt-button-padding-horizontal-small: 7px;
|
|
19
|
+
@dt-button-padding-horizontal-medium: 7px;
|
|
20
|
+
@dt-button-padding-horizontal-large: 15px;
|
|
21
|
+
@dt-button-padding-horizontal-extra-large: 15px;
|
|
22
|
+
@dt-button-padding-vertical-extra-small: 5px;
|
|
23
|
+
@dt-button-padding-vertical-small: 5px;
|
|
24
|
+
@dt-button-padding-vertical-medium: 7px;
|
|
25
|
+
@dt-button-padding-vertical-large: 11px;
|
|
26
|
+
@dt-button-padding-vertical-extra-large: 11px;
|
|
27
|
+
@dt-button-font-size-extra-small: 12px;
|
|
28
|
+
@dt-button-font-size-small: 14px;
|
|
29
|
+
@dt-button-font-size-medium: 16px;
|
|
30
|
+
@dt-button-font-size-large: 20px;
|
|
31
|
+
@dt-button-font-size-extra-large: 24px;
|
|
32
|
+
@dt-button-line-height-size-extra-small: 16px;
|
|
33
|
+
@dt-button-line-height-size-small: 20px;
|
|
34
|
+
@dt-button-line-height-size-medium: 20px;
|
|
35
|
+
@dt-button-line-height-size-large: 24px;
|
|
36
|
+
@dt-button-line-height-size-extra-large: 32px;
|
|
37
|
+
@dt-color-surface-default: #ffffff;
|
|
38
|
+
@dt-color-surface-foo: #f9f9f9;
|
|
39
|
+
@dt-color-surface-bar: #ededed;
|
|
40
|
+
@dt-color-surface-baz: #bbbbbb;
|
|
41
|
+
@dt-color-surface-zar: #555555;
|
|
42
|
+
@dt-color-text-dark: #0d0c0f;
|
|
43
|
+
@dt-color-text-medium: #221f24;
|
|
44
|
+
@dt-color-text-light: #322d37;
|
|
45
|
+
@dt-color-text-lighter: #444150;
|
|
46
|
+
@dt-color-text-primary: #6c3dff;
|
|
47
|
+
@dt-color-text-success: #0a5b03;
|
|
48
|
+
@dt-color-text-error: #930000;
|
|
49
|
+
@dt-color-text-danger: #930000;
|
|
50
|
+
@dt-color-text-muted: #0d0c0f;
|
|
51
|
+
@dt-color-black-100: #cdcdd8;
|
|
52
|
+
@dt-color-black-200: #b3b0c0;
|
|
53
|
+
@dt-color-black-300: #9c99ac;
|
|
54
|
+
@dt-color-black-400: #7b7789;
|
|
55
|
+
@dt-color-black-500: #575564;
|
|
56
|
+
@dt-color-black-600: #444150;
|
|
57
|
+
@dt-color-black-700: #322d37;
|
|
58
|
+
@dt-color-black-800: #221f24;
|
|
59
|
+
@dt-color-black-900: #0d0c0f;
|
|
60
|
+
@dt-color-black-025: #f2f2f6;
|
|
61
|
+
@dt-color-black-050: #eae9ef;
|
|
62
|
+
@dt-color-black-075: #dfdee5;
|
|
63
|
+
@dt-color-purple-100: #ece1ff;
|
|
64
|
+
@dt-color-purple-200: #d1c0ff;
|
|
65
|
+
@dt-color-purple-300: #a687ff;
|
|
66
|
+
@dt-color-purple-400: #8b65ff;
|
|
67
|
+
@dt-color-purple-500: #6c3dff;
|
|
68
|
+
@dt-color-purple-600: #3a1c95;
|
|
69
|
+
@dt-color-purple-700: #2a1173;
|
|
70
|
+
@dt-color-purple-800: #160645;
|
|
71
|
+
@dt-color-orange-100: #fff0e5;
|
|
72
|
+
@dt-color-orange-200: #ffcca7;
|
|
73
|
+
@dt-color-orange-300: #ffa360;
|
|
74
|
+
@dt-color-orange-400: #ff7f23;
|
|
75
|
+
@dt-color-orange-500: #e05e00;
|
|
76
|
+
@dt-color-orange-600: #43220a;
|
|
77
|
+
@dt-color-pink-100: #ffebec;
|
|
78
|
+
@dt-color-pink-200: #ffd8da;
|
|
79
|
+
@dt-color-pink-300: #fda2a8;
|
|
80
|
+
@dt-color-pink-400: #ff578a;
|
|
81
|
+
@dt-color-pink-500: #e92a7a;
|
|
82
|
+
@dt-color-pink-600: #a2114d;
|
|
83
|
+
@dt-color-pink-700: #57102e;
|
|
84
|
+
@dt-color-yellow-100: #fff9e3;
|
|
85
|
+
@dt-color-yellow-200: #ffeeb0;
|
|
86
|
+
@dt-color-yellow-300: #ffdb59;
|
|
87
|
+
@dt-color-yellow-400: #ffce1c;
|
|
88
|
+
@dt-color-yellow-500: #ffbc0f;
|
|
89
|
+
@dt-color-yellow-600: #3f2d00;
|
|
90
|
+
@dt-color-yellow-050: #fbf8f1;
|
|
91
|
+
@dt-color-green-100: #ebffe2;
|
|
92
|
+
@dt-color-green-200: #d1ffbc;
|
|
93
|
+
@dt-color-green-300: #9cff6d;
|
|
94
|
+
@dt-color-green-400: #6bee04;
|
|
95
|
+
@dt-color-green-500: #0c9b02;
|
|
96
|
+
@dt-color-green-600: #0a5b03;
|
|
97
|
+
@dt-color-green-700: #052f01;
|
|
98
|
+
@dt-color-red-100: #fff1f1;
|
|
99
|
+
@dt-color-red-200: #ffd3d3;
|
|
100
|
+
@dt-color-red-300: #ffa7a7;
|
|
101
|
+
@dt-color-red-400: #fa4646;
|
|
102
|
+
@dt-color-red-500: #d81616;
|
|
103
|
+
@dt-color-red-600: #930000;
|
|
104
|
+
@dt-color-red-700: #480000;
|
|
105
|
+
@dt-color-neutral-white: #ffffff;
|
|
106
|
+
@dt-color-neutral-black: #000000;
|
|
107
|
+
@dt-opacity-0: 0;
|
|
108
|
+
@dt-opacity-100: 0.05;
|
|
109
|
+
@dt-opacity-200: 0.1;
|
|
110
|
+
@dt-opacity-300: 0.2;
|
|
111
|
+
@dt-opacity-400: 0.25;
|
|
112
|
+
@dt-opacity-500: 0.3;
|
|
113
|
+
@dt-opacity-600: 0.4;
|
|
114
|
+
@dt-opacity-700: 0.5;
|
|
115
|
+
@dt-opacity-800: 0.6;
|
|
116
|
+
@dt-opacity-900: 0.7;
|
|
117
|
+
@dt-opacity-1000: 0.75;
|
|
118
|
+
@dt-opacity-1100: 0.8;
|
|
119
|
+
@dt-opacity-1200: 0.9;
|
|
120
|
+
@dt-opacity-1300: 1;
|
|
121
|
+
@dt-font-family-default: Inter;
|
|
122
|
+
@dt-font-family-marketing: Archivo;
|
|
123
|
+
@dt-font-family-mono: Roboto Mono;
|
|
124
|
+
@dt-font-size-100: 10px;
|
|
125
|
+
@dt-font-size-200: 11px;
|
|
126
|
+
@dt-font-size-300: 12px;
|
|
127
|
+
@dt-font-size-400: 14px;
|
|
128
|
+
@dt-font-size-500: 16px;
|
|
129
|
+
@dt-font-size-600: 18px;
|
|
130
|
+
@dt-font-size-700: 20px;
|
|
131
|
+
@dt-font-size-800: 24px;
|
|
132
|
+
@dt-font-size-900: 28px;
|
|
133
|
+
@dt-font-size-1000: 32px;
|
|
134
|
+
@dt-font-size-1100: 36px;
|
|
135
|
+
@dt-font-size-1200: 42px;
|
|
136
|
+
@dt-font-size-1300: 48px;
|
|
137
|
+
@dt-font-size-1400: 54px;
|
|
138
|
+
@dt-font-line-height-100: 12px;
|
|
139
|
+
@dt-font-line-height-200: 16px;
|
|
140
|
+
@dt-font-line-height-300: 20px;
|
|
141
|
+
@dt-font-line-height-400: 24px;
|
|
142
|
+
@dt-font-line-height-500: 28px;
|
|
143
|
+
@dt-font-line-height-600: 32px;
|
|
144
|
+
@dt-font-line-height-700: 36px;
|
|
145
|
+
@dt-font-line-height-800: 40px;
|
|
146
|
+
@dt-font-line-height-900: 48px;
|
|
147
|
+
@dt-font-line-height-1000: 52px;
|
|
148
|
+
@dt-font-line-height-1100: 58px;
|
|
149
|
+
@dt-font-weight-normal: Regular;
|
|
150
|
+
@dt-font-weight-medium: Medium;
|
|
151
|
+
@dt-font-weight-semi-bold: Semi Bold;
|
|
152
|
+
@dt-font-weight-bold: Bold;
|
|
153
|
+
@dt-typography-body-100: [object Object];
|
|
154
|
+
@dt-typography-body-200: [object Object];
|
|
155
|
+
@dt-typography-body-300: [object Object];
|
|
156
|
+
@dt-typography-body-400: [object Object];
|
|
157
|
+
@dt-typography-body-500: [object Object];
|
|
158
|
+
@dt-typography-body-600: [object Object];
|
|
159
|
+
@dt-typography-body-700: [object Object];
|
|
160
|
+
@dt-typography-body-800: [object Object];
|
|
161
|
+
@dt-typography-body-900: [object Object];
|
|
162
|
+
@dt-typography-body-1000: [object Object];
|
|
163
|
+
@dt-typography-body-1100: [object Object];
|
|
164
|
+
@dt-typography-body-1200: [object Object];
|
|
165
|
+
@dt-typography-body-1300: [object Object];
|
|
166
|
+
@dt-typography-body-1400: [object Object];
|
|
167
|
+
@dt-typography-headline-100: [object Object];
|
|
168
|
+
@dt-typography-headline-200: [object Object];
|
|
169
|
+
@dt-typography-headline-300: [object Object];
|
|
170
|
+
@dt-typography-headline-400: [object Object];
|
|
171
|
+
@dt-typography-headline-500: [object Object];
|
|
172
|
+
@dt-typography-headline-600: [object Object];
|
|
173
|
+
@dt-typography-headline-700: [object Object];
|
|
174
|
+
@dt-typography-headline-800: [object Object];
|
|
175
|
+
@dt-size-0: 0rem;
|
|
176
|
+
@dt-size-100: 1rem;
|
|
177
|
+
@dt-size-200: 2rem;
|
|
178
|
+
@dt-size-300: 4rem;
|
|
179
|
+
@dt-size-400: 6rem;
|
|
180
|
+
@dt-size-500: 8rem;
|
|
181
|
+
@dt-size-600: 12rem;
|
|
182
|
+
@dt-size-700: 16rem;
|
|
183
|
+
@dt-size-800: 24rem;
|
|
184
|
+
@dt-size-900: 32rem;
|
|
185
|
+
@dt-size-1000: 48rem;
|
|
186
|
+
@dt-size-1100: 64rem;
|
|
187
|
+
@dt-size-1200: 72rem;
|
|
188
|
+
@dt-size-1300: 84rem;
|
|
189
|
+
@dt-size-1400: 96rem;
|
|
190
|
+
@dt-size-1500: 102rem;
|
|
191
|
+
@dt-size-1600: 114rem;
|
|
192
|
+
@dt-size-1700: 128rem;
|
|
193
|
+
@dt-size-base: 4rem;
|
|
194
|
+
@dt-size-border-0: 0rem;
|
|
195
|
+
@dt-size-border-100: 1rem;
|
|
196
|
+
@dt-size-border-200: 2rem;
|
|
197
|
+
@dt-size-border-300: 4rem;
|
|
198
|
+
@dt-size-border-400: 8rem;
|
|
199
|
+
@dt-size-border-500: 12rem;
|
|
200
|
+
@dt-size-radius-0: 0rem;
|
|
201
|
+
@dt-size-radius-100: 1rem;
|
|
202
|
+
@dt-size-radius-200: 2rem;
|
|
203
|
+
@dt-size-radius-300: 4rem;
|
|
204
|
+
@dt-size-radius-400: 8rem;
|
|
205
|
+
@dt-size-radius-500: 12rem;
|
|
206
|
+
@dt-size-radius-600: 24rem;
|
|
207
|
+
@dt-size-icon-100: 14rem;
|
|
208
|
+
@dt-size-icon-200: 16rem;
|
|
209
|
+
@dt-size-icon-300: 18rem;
|
|
210
|
+
@dt-size-icon-400: 20rem;
|
|
211
|
+
@dt-size-icon-500: 24rem;
|
|
212
|
+
@dt-size-icon-600: 32rem;
|
|
213
|
+
@dt-size-icon-700: 48rem;
|
|
214
|
+
@dt-size-icon-800: 64rem;
|
|
215
|
+
@dt-size-icon-000: 12rem;
|
|
216
|
+
@dt-space-0: 0px;
|
|
217
|
+
@dt-space-100: 1px;
|
|
218
|
+
@dt-space-200: 2px;
|
|
219
|
+
@dt-space-300: 4px;
|
|
220
|
+
@dt-space-400: 6px;
|
|
221
|
+
@dt-space-500: 8px;
|
|
222
|
+
@dt-space-600: 12px;
|
|
223
|
+
@dt-space-700: 16px;
|
|
224
|
+
@dt-space-800: 24px;
|
|
225
|
+
@dt-space-900: 32px;
|
|
226
|
+
@dt-space-1000: 48px;
|
|
227
|
+
@dt-space-1100: 64px;
|
|
228
|
+
@dt-space-1200: 72px;
|
|
229
|
+
@dt-space-1300: 84px;
|
|
230
|
+
@dt-space-1400: 96px;
|
|
231
|
+
@dt-space-1500: 102px;
|
|
232
|
+
@dt-space-1600: 114px;
|
|
233
|
+
@dt-space-1700: 128px;
|
|
234
|
+
@dt-space-base: 4px;
|
|
235
|
+
@dt-shadow-small: [object Object];
|
|
236
|
+
@dt-shadow-medium: [object Object];
|
|
237
|
+
@dt-shadow-large: [object Object];
|
|
238
|
+
@dt-shadow-extra-large: [object Object];
|
|
239
|
+
@dt-shadow-card: [object Object],[object Object],[object Object];
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dialpad/dialtone-tokens",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Design tokens for Dialtone.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"build": "npm run transform && style-dictionary build",
|
|
9
|
+
"transform": "token-transformer base.json tokens/tokens.json",
|
|
10
|
+
"prepublishOnly": "npm run build",
|
|
11
|
+
"release": "semantic-release --no-ci --extends ./release-local.config.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/dialpad/dialtone-tokens.git"
|
|
22
|
+
},
|
|
23
|
+
"author": "Dialpad",
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/dialpad/dialtone-tokens/issues"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://dialpad.design/",
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@commitlint/cli": "^17.0.3",
|
|
31
|
+
"@commitlint/config-conventional": "^17.0.3",
|
|
32
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
33
|
+
"@semantic-release/git": "^10.0.1",
|
|
34
|
+
"style-dictionary": "^3.7.1",
|
|
35
|
+
"token-transformer": "^0.0.24"
|
|
36
|
+
}
|
|
37
|
+
}
|