@moderneinc/design-system-tokens 6.0.0-next.02da4a
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 +173 -0
- package/dist/border-radius.css +10 -0
- package/dist/border-radius.d.ts +40 -0
- package/dist/border-radius.js +69 -0
- package/dist/breakpoints.d.ts +22 -0
- package/dist/breakpoints.js +33 -0
- package/dist/colors.css +114 -0
- package/dist/colors.d.ts +200 -0
- package/dist/colors.js +147 -0
- package/dist/height.css +12 -0
- package/dist/height.d.ts +42 -0
- package/dist/height.js +45 -0
- package/dist/index.d.ts +2692 -0
- package/dist/index.esm.js +27 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/padding.css +7 -0
- package/dist/padding.d.ts +31 -0
- package/dist/padding.js +51 -0
- package/dist/semantic-colors-dark.d.ts +494 -0
- package/dist/semantic-colors-dark.js +255 -0
- package/dist/semantic-colors-light.d.ts +494 -0
- package/dist/semantic-colors-light.js +255 -0
- package/dist/semantic-colors.css +581 -0
- package/dist/semantic-colors.d.ts +494 -0
- package/dist/semantic-colors.js +255 -0
- package/dist/semantic-typography.css +159 -0
- package/dist/semantic-typography.d.ts +315 -0
- package/dist/semantic-typography.js +119 -0
- package/dist/shadows.css +14 -0
- package/dist/shadows.d.ts +140 -0
- package/dist/shadows.js +79 -0
- package/dist/spacing.css +25 -0
- package/dist/spacing.d.ts +85 -0
- package/dist/spacing.js +154 -0
- package/dist/strokes.css +3 -0
- package/dist/strokes.d.ts +19 -0
- package/dist/strokes.js +19 -0
- package/dist/typography.css +25 -0
- package/dist/typography.d.ts +63 -0
- package/dist/typography.js +64 -0
- package/package.json +71 -0
package/dist/colors.js
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moderne Design System
|
|
3
|
+
* Generated from Figma design tokens
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} Gold
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @type {Gold}
|
|
13
|
+
*/
|
|
14
|
+
export const gold = {"50":"#fef9e8","100":"#fbf1d2","200":"#f7e3a5","300":"#f4d479","400":"#ffd34d","500":"#ecb81f","600":"#bd9319","700":"#8e6e13","800":"#806a00","900":"#2f2506"};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} Violet
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @type {Violet}
|
|
22
|
+
*/
|
|
23
|
+
export const violet = {"50":"#f6eefb","100":"#ebd5f1","200":"#d6ace3","300":"#c282d5","400":"#ad59c7","500":"#9d5be8","600":"#7a2694","700":"#5c1c6f","800":"#3d134a","900":"#1f0925"};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} WarmGrey
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @type {WarmGrey}
|
|
31
|
+
*/
|
|
32
|
+
export const warmGrey = {"50":"#faf8f3","100":"#f6f1e8","200":"#f1ece0","300":"#dcd3c3","400":"#c9bfa6","500":"#9c927e","600":"#7b7263","700":"#564e41","800":"#38332a","900":"#15120f"};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} Ink
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @type {Ink}
|
|
40
|
+
*/
|
|
41
|
+
export const ink = {"50":"#f1f1f6","100":"#d9d9e4","200":"#b4b4c4","300":"#8a8a9e","400":"#62627a","500":"#4a4a66","600":"#62627a","700":"#2c2c50","800":"#232342","900":"#17171c"};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} Cream
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @type {Cream}
|
|
49
|
+
*/
|
|
50
|
+
export const cream = {"50":"#fbfaf6","100":"#f4f2eb","200":"#f2f0ea","300":"#f2efe7","400":"#edebe2","500":"#e4e1d6","600":"#dedbd0","700":"#918c7c","800":"#5f5b4f","900":"#33312b"};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @typedef {{ '300': string, '500': string }} Periwinkle
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @type {Periwinkle}
|
|
58
|
+
*/
|
|
59
|
+
export const periwinkle = {"300":"#8ca0f5","500":"#3e5be8"};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} DigitalBlue
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @type {DigitalBlue}
|
|
67
|
+
*/
|
|
68
|
+
export const digitalBlue = {
|
|
69
|
+
"50": "#f2f3ff",
|
|
70
|
+
"100": "#dce0ff",
|
|
71
|
+
"200": "#b6bfff",
|
|
72
|
+
"300": "#8d99ff",
|
|
73
|
+
"400": "#626eff",
|
|
74
|
+
/** primary color */
|
|
75
|
+
"500": "#2f42ff",
|
|
76
|
+
"600": "#2637e6",
|
|
77
|
+
"700": "#1e2ec2",
|
|
78
|
+
"800": "#131e7a",
|
|
79
|
+
"900": "#000855",
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} DigitalGreen
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @type {DigitalGreen}
|
|
88
|
+
*/
|
|
89
|
+
export const digitalGreen = {"50":"#f3fff5","100":"#cfffd7","200":"#acffb9","300":"#88fe9b","400":"#72e184","500":"#5ec46f","600":"#4ca75a","700":"#3b8948","800":"#2c6c36","900":"#1e4f26"};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} Grey
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @type {Grey}
|
|
97
|
+
*/
|
|
98
|
+
export const grey = {"50":"#f9fafb","100":"#f3f4f6","200":"#e5e7eb","300":"#d1d5db","400":"#9ca3af","500":"#6b7280","600":"#4b5563","700":"#374151","800":"#1f2937","900":"#111827"};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} Orange
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @type {Orange}
|
|
106
|
+
*/
|
|
107
|
+
export const orange = {"50":"#fff8e5","100":"#ffebb7","200":"#ffde8a","300":"#ffd15c","400":"#ff8f52","500":"#ffb800","600":"#d69b00","700":"#856000","800":"#a34e14","900":"#5c4200"};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} Red
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @type {Red}
|
|
115
|
+
*/
|
|
116
|
+
export const red = {"50":"#fbefed","100":"#ffc6cd","200":"#f0b4ac","300":"#fa826f","400":"#ed4a5d","500":"#cb3446","600":"#c9291c","700":"#871421","800":"#650914","900":"#43020a"};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @typedef {{ '50': string, '100': string, '200': string, '300': string, '400': string, '500': string, '600': string, '700': string, '800': string, '900': string }} TealGreen
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @type {TealGreen}
|
|
124
|
+
*/
|
|
125
|
+
export const tealGreen = {"50":"#eefffa","100":"#c9fff1","200":"#a4ffe7","300":"#7fffde","400":"#54eec6","500":"#3bcca6","600":"#27aa88","700":"#17886b","800":"#0b664e","900":"#034433"};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @type {string}
|
|
129
|
+
*/
|
|
130
|
+
export const white = "#ffffff";
|
|
131
|
+
|
|
132
|
+
// Default export with all color groups
|
|
133
|
+
export default {
|
|
134
|
+
gold,
|
|
135
|
+
violet,
|
|
136
|
+
warmGrey,
|
|
137
|
+
ink,
|
|
138
|
+
cream,
|
|
139
|
+
periwinkle,
|
|
140
|
+
digitalBlue,
|
|
141
|
+
digitalGreen,
|
|
142
|
+
grey,
|
|
143
|
+
orange,
|
|
144
|
+
red,
|
|
145
|
+
tealGreen,
|
|
146
|
+
white,
|
|
147
|
+
};
|
package/dist/height.css
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
:root { --mod-height-button-default: 40px;
|
|
2
|
+
--mod-height-button-small: 32px;
|
|
3
|
+
--mod-height-button-large: 48px;
|
|
4
|
+
--mod-height-input-default: 40px;
|
|
5
|
+
--mod-height-input-dense: 32px;
|
|
6
|
+
--mod-height-table-header-compact: 44px;
|
|
7
|
+
--mod-height-table-header-standard: 38px;
|
|
8
|
+
--mod-height-table-header-comfortable: 52px;
|
|
9
|
+
--mod-height-table-row-compact: 48px;
|
|
10
|
+
--mod-height-table-row-standard: 42px;
|
|
11
|
+
--mod-height-table-row-comfortable: 56px;
|
|
12
|
+
--mod-height-tooltip: 24px;}
|
package/dist/height.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moderne Design System
|
|
3
|
+
* TypeScript declarations generated from Figma design tokens
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export type Button = {
|
|
8
|
+
default: 40;
|
|
9
|
+
small: 32;
|
|
10
|
+
large: 48;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export declare const button: Button;
|
|
14
|
+
|
|
15
|
+
export type Input = {
|
|
16
|
+
default: 40;
|
|
17
|
+
dense: 32;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare const input: Input;
|
|
21
|
+
|
|
22
|
+
export type Table = {
|
|
23
|
+
headerCompact: 44;
|
|
24
|
+
headerStandard: 38;
|
|
25
|
+
headerComfortable: 52;
|
|
26
|
+
rowCompact: 48;
|
|
27
|
+
rowStandard: 42;
|
|
28
|
+
rowComfortable: 56;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export declare const table: Table;
|
|
32
|
+
|
|
33
|
+
export declare const tooltip: 24;
|
|
34
|
+
|
|
35
|
+
declare const _default: {
|
|
36
|
+
button: typeof button,
|
|
37
|
+
input: typeof input,
|
|
38
|
+
table: typeof table,
|
|
39
|
+
tooltip: typeof tooltip,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default _default;
|
package/dist/height.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moderne Design System
|
|
3
|
+
* Generated from Figma design tokens
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {{ default: number, small: number, large: number }} Button
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @type {Button}
|
|
13
|
+
*/
|
|
14
|
+
export const button = {"default":40,"small":32,"large":48};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {{ default: number, dense: number }} Input
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @type {Input}
|
|
22
|
+
*/
|
|
23
|
+
export const input = {"default":40,"dense":32};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @typedef {{ headerCompact: number, headerStandard: number, headerComfortable: number, rowCompact: number, rowStandard: number, rowComfortable: number }} Table
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @type {Table}
|
|
31
|
+
*/
|
|
32
|
+
export const table = {"headerCompact":44,"headerStandard":38,"headerComfortable":52,"rowCompact":48,"rowStandard":42,"rowComfortable":56};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @type {number}
|
|
36
|
+
*/
|
|
37
|
+
export const tooltip = 24;
|
|
38
|
+
|
|
39
|
+
// Default export with all color groups
|
|
40
|
+
export default {
|
|
41
|
+
button,
|
|
42
|
+
input,
|
|
43
|
+
table,
|
|
44
|
+
tooltip,
|
|
45
|
+
};
|