@dialpad/dialtone 7.22.2 → 7.23.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 +3 -3
- package/lib/build/less/components/table.less +1 -1
- package/lib/build/less/components/tabs.less +1 -1
- package/lib/build/less/utilities/borders.less +0 -31
- package/lib/build/less/utilities/colors.less +70 -2
- package/lib/build/less/variables/colors.less +4 -4
- package/lib/dist/css/dialtone.css +1370 -1047
- package/lib/dist/css/dialtone.min.css +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -7,16 +7,16 @@ This is the home for Dialtone, Dialpad's design system. It includes the resource
|
|
|
7
7
|
To add Dialtone into your project, you can install it via NPM:
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
npm install
|
|
10
|
+
npm install @dialpad/dialtone
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Once installed, add the following line in your Less file:
|
|
14
14
|
```
|
|
15
|
-
@import "
|
|
15
|
+
@import "node_modules/@dialpad/dialtone/lib/build/less/dialtone.less";
|
|
16
16
|
```
|
|
17
17
|
If you only need access to Dialtone's variables and customizations to build a file and don't need the whole library exported, use this line instead in your Less file:
|
|
18
18
|
```
|
|
19
|
-
@import (reference) "
|
|
19
|
+
@import (reference) "node_modules/@dialpad/dialtone/lib/build/less/dialtone.less";
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Building Dialtone locally
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
.d-table--inverted {
|
|
100
100
|
--table-th-color-text: var(--fc-secondary-inverted);
|
|
101
101
|
--table-td-color-text: var(--fc-tertiary-inverted);
|
|
102
|
-
--table-color-border: var(--bc-inverted
|
|
102
|
+
--table-color-border: var(--bc-default-inverted);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// ============================================================================
|
|
@@ -35,37 +35,6 @@
|
|
|
35
35
|
.d-ba-none { border: none !important; }
|
|
36
36
|
.d-ba-unset { border: unset !important; }
|
|
37
37
|
|
|
38
|
-
// ============================================================================
|
|
39
|
-
// $$ COLOR
|
|
40
|
-
// ----------------------------------------------------------------------------
|
|
41
|
-
.d-bc-transparent { border-color: transparent !important; }
|
|
42
|
-
.d-bc-current { border-color: currentColor !important; }
|
|
43
|
-
.d-bc-unset { border-color: unset !important; }
|
|
44
|
-
|
|
45
|
-
.d-bc-subtle { border-color: var(--bc-subtle) !important; }
|
|
46
|
-
.d-bc-default { border-color: var(--bc-default) !important; }
|
|
47
|
-
.d-bc-moderate { border-color: var(--bc-moderate) !important; }
|
|
48
|
-
.d-bc-bold { border-color: var(--bc-bold) !important; }
|
|
49
|
-
|
|
50
|
-
.d-bc-inverted-subtle { border-color: var(--bc-inverted-subtle) !important; }
|
|
51
|
-
.d-bc-inverted-default { border-color: var(--bc-inverted-default) !important; }
|
|
52
|
-
.d-bc-inverted-moderate { border-color: var(--bc-inverted-moderate) !important; }
|
|
53
|
-
.d-bc-inverted-bold { border-color: var(--bc-inverted-bold) !important; }
|
|
54
|
-
|
|
55
|
-
.d-bc-focus { border-color: var(--bc-focus) !important; }
|
|
56
|
-
.d-bc-critical { border-color: var(--bc-critical) !important; }
|
|
57
|
-
.d-bc-critical-subtle { border-color: var(--bc-critical-subtle) !important; }
|
|
58
|
-
.d-bc-critical-strong { border-color: var(--bc-critical-strong) !important; }
|
|
59
|
-
.d-bc-success { border-color: var(--bc-success) !important; }
|
|
60
|
-
.d-bc-success-subtle { border-color: var(--bc-success-subtle) !important; }
|
|
61
|
-
.d-bc-success-strong { border-color: var(--bc-success-strong) !important; }
|
|
62
|
-
.d-bc-warning { border-color: var(--bc-warning) !important; }
|
|
63
|
-
.d-bc-warning-subtle { border-color: var(--bc-warning-subtle) !important; }
|
|
64
|
-
.d-bc-warning-strong { border-color: var(--bc-warning-strong) !important; }
|
|
65
|
-
.d-bc-brand { border-color: var(--bc-brand) !important; }
|
|
66
|
-
.d-bc-brand-subtle { border-color: var(--bc-brand-subtle) !important; }
|
|
67
|
-
.d-bc-brand-strong { border-color: var(--bc-brand-strong) !important; }
|
|
68
|
-
|
|
69
38
|
// ============================================================================
|
|
70
39
|
// $ BORDER RADIUS
|
|
71
40
|
// ============================================================================
|
|
@@ -36,18 +36,21 @@
|
|
|
36
36
|
.d-fc-primary { &:extend(.d-fc-black-900); }
|
|
37
37
|
#d-internals #generate-hover-focus(d-fc-primary, {.d-fc-primary();});
|
|
38
38
|
|
|
39
|
-
.d-fc-primary-inverted { &:extend(.d-fc-
|
|
39
|
+
.d-fc-primary-inverted { &:extend(.d-fc-white); }
|
|
40
40
|
#d-internals #generate-hover-focus(fc-primary-inverted, {.d-fc-primary-inverted();});
|
|
41
41
|
|
|
42
42
|
.d-fc-secondary { &:extend(.d-fc-black-700); }
|
|
43
43
|
#d-internals #generate-hover-focus(d-fc-secondary, {.d-fc-secondary();});
|
|
44
44
|
|
|
45
|
-
.d-fc-secondary-inverted { &:extend(.d-fc-black-
|
|
45
|
+
.d-fc-secondary-inverted { &:extend(.d-fc-black-200); }
|
|
46
46
|
#d-internals #generate-hover-focus(fc-secondary-inverted, {.d-fc-secondary-inverted();});
|
|
47
47
|
|
|
48
48
|
.d-fc-tertiary { &:extend(.d-fc-black-600); }
|
|
49
49
|
#d-internals #generate-hover-focus(d-fc-tertiary, {.d-fc-tertiary();});
|
|
50
50
|
|
|
51
|
+
.d-fc-tertiary-inverted { &:extend(.d-fc-black-300); }
|
|
52
|
+
#d-internals #generate-hover-focus(fc-tertiary-inverted, {.d-fc-tertiary-inverted();});
|
|
53
|
+
|
|
51
54
|
.d-fc-muted { --fco: 50%; &:extend(.d-fc-black-500); }
|
|
52
55
|
#d-internals #generate-hover-focus(d-fc-muted, {.d-fc-muted();});
|
|
53
56
|
|
|
@@ -190,11 +193,76 @@
|
|
|
190
193
|
// ----------------------------------------------------------------------------
|
|
191
194
|
.d-bc-transparent { border-color: transparent !important; }
|
|
192
195
|
#d-internals #generate-hover-focus(d-bc-transparent, {.d-bc-transparent();});
|
|
196
|
+
|
|
193
197
|
.d-bc-current { border-color: currentColor !important; }
|
|
194
198
|
#d-internals #generate-hover-focus(d-bc-current , {.d-bc-current();});
|
|
199
|
+
|
|
195
200
|
.d-bc-unset { border-color: unset !important; }
|
|
196
201
|
#d-internals #generate-hover-focus(d-bc-unset, {.d-bc-unset();});
|
|
197
202
|
|
|
203
|
+
.d-bc-subtle { border-color: var(--bc-subtle) !important; }
|
|
204
|
+
#d-internals #generate-hover-focus(d-bc-subtle, {.d-bc-subtle();});
|
|
205
|
+
|
|
206
|
+
.d-bc-default { border-color: var(--bc-default) !important; }
|
|
207
|
+
#d-internals #generate-hover-focus(d-bc-default, {.d-bc-default();});
|
|
208
|
+
|
|
209
|
+
.d-bc-moderate { border-color: var(--bc-moderate) !important; }
|
|
210
|
+
#d-internals #generate-hover-focus(d-bc-moderate, {.d-bc-moderate();});
|
|
211
|
+
|
|
212
|
+
.d-bc-bold { border-color: var(--bc-bold) !important; }
|
|
213
|
+
#d-internals #generate-hover-focus(d-bc-bold, {.d-bc-bold();});
|
|
214
|
+
|
|
215
|
+
.d-bc-subtle-inverted { border-color: var(--bc-subtle-inverted) !important; }
|
|
216
|
+
#d-internals #generate-hover-focus(d-bc-subtle-inverted, {.d-bc-subtle-inverted();});
|
|
217
|
+
|
|
218
|
+
.d-bc-default-inverted { border-color: var(--bc-default-inverted) !important; }
|
|
219
|
+
#d-internals #generate-hover-focus(d-bc-default-inverted, {.d-bc-default-inverted();});
|
|
220
|
+
|
|
221
|
+
.d-bc-moderate-inverted { border-color: var(--bc-moderate-inverted) !important; }
|
|
222
|
+
#d-internals #generate-hover-focus(d-bc-moderate-inverted, {.d-bc-moderate-inverted();});
|
|
223
|
+
|
|
224
|
+
.d-bc-bold-inverted { border-color: var(--bc-bold-inverted) !important; }
|
|
225
|
+
#d-internals #generate-hover-focus(d-bc-bold-inverted, {.d-bc-bold-inverted();});
|
|
226
|
+
|
|
227
|
+
.d-bc-focus { border-color: var(--bc-focus) !important; }
|
|
228
|
+
#d-internals #generate-hover-focus(d-bc-focus, {.d-bc-focus();});
|
|
229
|
+
|
|
230
|
+
.d-bc-critical { border-color: var(--bc-critical) !important; }
|
|
231
|
+
#d-internals #generate-hover-focus(d-bc-critical, {.d-bc-critical();});
|
|
232
|
+
|
|
233
|
+
.d-bc-critical-subtle { border-color: var(--bc-critical-subtle) !important; }
|
|
234
|
+
#d-internals #generate-hover-focus(d-bc-critical-subtle, {.d-bc-critical-subtle();});
|
|
235
|
+
|
|
236
|
+
.d-bc-critical-strong { border-color: var(--bc-critical-strong) !important; }
|
|
237
|
+
#d-internals #generate-hover-focus(d-bc-critical-strong, {.d-bc-critical-strong();});
|
|
238
|
+
|
|
239
|
+
.d-bc-success { border-color: var(--bc-success) !important; }
|
|
240
|
+
#d-internals #generate-hover-focus(d-bc-success, {.d-bc-success();});
|
|
241
|
+
|
|
242
|
+
.d-bc-success-subtle { border-color: var(--bc-success-subtle) !important; }
|
|
243
|
+
#d-internals #generate-hover-focus(d-bc-success-subtle, {.d-bc-success-subtle();});
|
|
244
|
+
|
|
245
|
+
.d-bc-success-strong { border-color: var(--bc-success-strong) !important; }
|
|
246
|
+
#d-internals #generate-hover-focus(d-bc-success-strong, {.d-bc-success-strong();});
|
|
247
|
+
|
|
248
|
+
.d-bc-warning { border-color: var(--bc-warning) !important; }
|
|
249
|
+
#d-internals #generate-hover-focus(d-bc-warning, {.d-bc-warning();});
|
|
250
|
+
|
|
251
|
+
.d-bc-warning-subtle { border-color: var(--bc-warning-subtle) !important; }
|
|
252
|
+
#d-internals #generate-hover-focus(d-bc-warning-subtle, {.d-bc-warning-subtle();});
|
|
253
|
+
|
|
254
|
+
.d-bc-warning-strong { border-color: var(--bc-warning-strong) !important; }
|
|
255
|
+
#d-internals #generate-hover-focus(d-bc-warning-strong, {.d-bc-warning-strong();});
|
|
256
|
+
|
|
257
|
+
.d-bc-brand { border-color: var(--bc-brand) !important; }
|
|
258
|
+
#d-internals #generate-hover-focus(d-bc-brand, {.d-bc-brand();});
|
|
259
|
+
|
|
260
|
+
.d-bc-brand-subtle { border-color: var(--bc-brand-subtle) !important; }
|
|
261
|
+
#d-internals #generate-hover-focus(d-bc-brand-subtle, {.d-bc-brand-subtle();});
|
|
262
|
+
|
|
263
|
+
.d-bc-brand-strong { border-color: var(--bc-brand-strong) !important; }
|
|
264
|
+
#d-internals #generate-hover-focus(d-bc-brand-strong, {.d-bc-brand-strong();});
|
|
265
|
+
|
|
198
266
|
// $ OPACITY CLASSES
|
|
199
267
|
// ----------------------------------------------------------------------------
|
|
200
268
|
#d-internals #opacity-classes(100);
|
|
@@ -147,10 +147,10 @@
|
|
|
147
147
|
bc-default: rgba(0, 0, 0, 0.18);
|
|
148
148
|
bc-moderate: rgba(0, 0, 0, 0.34);
|
|
149
149
|
bc-bold: rgba(0, 0, 0, 0.5);
|
|
150
|
-
bc-inverted
|
|
151
|
-
bc-inverted
|
|
152
|
-
bc-inverted
|
|
153
|
-
bc-inverted
|
|
150
|
+
bc-subtle-inverted: rgba(255, 255, 255, 0.14);
|
|
151
|
+
bc-default-inverted: rgba(255, 255, 255, 0.22);
|
|
152
|
+
bc-moderate-inverted: rgba(255, 255, 255, 0.38);
|
|
153
|
+
bc-bold-inverted: rgba(255, 255, 255, 0.5);
|
|
154
154
|
bc-focus: var(--blue-300);
|
|
155
155
|
bc-critical: var(--red-300);
|
|
156
156
|
bc-critical-subtle: var(--red-200);
|