@afluem/tokens 0.4.0 → 0.5.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/dist/contrast.json +54 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -2
- package/dist/tailwind.css +2 -0
- package/dist/tokens.css +9 -0
- package/dist/tokens.json +38 -2
- package/package.json +1 -1
package/dist/contrast.json
CHANGED
|
@@ -80,6 +80,33 @@
|
|
|
80
80
|
"lc": 55,
|
|
81
81
|
"apca": 65
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
"theme": "dark",
|
|
85
|
+
"fg": "ink",
|
|
86
|
+
"bg": "surface-highlight",
|
|
87
|
+
"min": 4.5,
|
|
88
|
+
"ratio": 11.33,
|
|
89
|
+
"lc": 75,
|
|
90
|
+
"apca": 89
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"theme": "dark",
|
|
94
|
+
"fg": "ink-muted",
|
|
95
|
+
"bg": "surface-highlight",
|
|
96
|
+
"min": 4.5,
|
|
97
|
+
"ratio": 6.95,
|
|
98
|
+
"lc": 58,
|
|
99
|
+
"apca": 60
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"theme": "dark",
|
|
103
|
+
"fg": "airmail-text",
|
|
104
|
+
"bg": "surface-highlight",
|
|
105
|
+
"min": 4.5,
|
|
106
|
+
"ratio": 7.06,
|
|
107
|
+
"lc": 55,
|
|
108
|
+
"apca": 61
|
|
109
|
+
},
|
|
83
110
|
{
|
|
84
111
|
"theme": "dark",
|
|
85
112
|
"fg": "ink",
|
|
@@ -701,6 +728,33 @@
|
|
|
701
728
|
"lc": 55,
|
|
702
729
|
"apca": 72
|
|
703
730
|
},
|
|
731
|
+
{
|
|
732
|
+
"theme": "light",
|
|
733
|
+
"fg": "ink",
|
|
734
|
+
"bg": "surface-highlight",
|
|
735
|
+
"min": 4.5,
|
|
736
|
+
"ratio": 14.51,
|
|
737
|
+
"lc": 75,
|
|
738
|
+
"apca": 92
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"theme": "light",
|
|
742
|
+
"fg": "ink-muted",
|
|
743
|
+
"bg": "surface-highlight",
|
|
744
|
+
"min": 4.5,
|
|
745
|
+
"ratio": 5.72,
|
|
746
|
+
"lc": 58,
|
|
747
|
+
"apca": 72
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"theme": "light",
|
|
751
|
+
"fg": "airmail-text",
|
|
752
|
+
"bg": "surface-highlight",
|
|
753
|
+
"min": 4.5,
|
|
754
|
+
"ratio": 6.4,
|
|
755
|
+
"lc": 55,
|
|
756
|
+
"apca": 74
|
|
757
|
+
},
|
|
704
758
|
{
|
|
705
759
|
"theme": "light",
|
|
706
760
|
"fg": "ink",
|
package/dist/index.d.ts
CHANGED
|
@@ -167,6 +167,7 @@ export declare const tokens: {
|
|
|
167
167
|
"content-max": string;
|
|
168
168
|
"perf-hole": string;
|
|
169
169
|
"perf-pitch": string;
|
|
170
|
+
"edge": string;
|
|
170
171
|
"stamp-shift": string;
|
|
171
172
|
};
|
|
172
173
|
"duration": {
|
|
@@ -174,10 +175,13 @@ export declare const tokens: {
|
|
|
174
175
|
"base": string;
|
|
175
176
|
"slow": string;
|
|
176
177
|
"stagger": string;
|
|
178
|
+
"icon": string;
|
|
179
|
+
"icon-stagger": string;
|
|
177
180
|
};
|
|
178
181
|
"easing": {
|
|
179
182
|
"out": string;
|
|
180
183
|
"in": string;
|
|
184
|
+
"in-out": string;
|
|
181
185
|
};
|
|
182
186
|
"z": {
|
|
183
187
|
"band": string;
|
|
@@ -197,6 +201,7 @@ export declare const tokens: {
|
|
|
197
201
|
"surface-overlay": string;
|
|
198
202
|
"surface-hover": string;
|
|
199
203
|
"surface-active": string;
|
|
204
|
+
"surface-highlight": string;
|
|
200
205
|
"line": string;
|
|
201
206
|
"line-strong": string;
|
|
202
207
|
"control-border": string;
|
|
@@ -257,6 +262,7 @@ export declare const tokens: {
|
|
|
257
262
|
"surface-overlay": string;
|
|
258
263
|
"surface-hover": string;
|
|
259
264
|
"surface-active": string;
|
|
265
|
+
"surface-highlight": string;
|
|
260
266
|
"line": string;
|
|
261
267
|
"line-strong": string;
|
|
262
268
|
"control-border": string;
|
package/dist/index.js
CHANGED
|
@@ -167,17 +167,21 @@ export const tokens = {
|
|
|
167
167
|
"content-max": "1200px",
|
|
168
168
|
"perf-hole": "6px",
|
|
169
169
|
"perf-pitch": "12px",
|
|
170
|
+
"edge": "1.5px",
|
|
170
171
|
"stamp-shift": "3px"
|
|
171
172
|
},
|
|
172
173
|
"duration": {
|
|
173
174
|
"fast": "120ms",
|
|
174
175
|
"base": "160ms",
|
|
175
176
|
"slow": "200ms",
|
|
176
|
-
"stagger": "40ms"
|
|
177
|
+
"stagger": "40ms",
|
|
178
|
+
"icon": "700ms",
|
|
179
|
+
"icon-stagger": "160ms"
|
|
177
180
|
},
|
|
178
181
|
"easing": {
|
|
179
182
|
"out": "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
180
|
-
"in": "cubic-bezier(0.7, 0, 0.84, 0)"
|
|
183
|
+
"in": "cubic-bezier(0.7, 0, 0.84, 0)",
|
|
184
|
+
"in-out": "cubic-bezier(0.65, 0, 0.35, 1)"
|
|
181
185
|
},
|
|
182
186
|
"z": {
|
|
183
187
|
"band": "30",
|
|
@@ -197,6 +201,7 @@ export const tokens = {
|
|
|
197
201
|
"surface-overlay": "#22201c",
|
|
198
202
|
"surface-hover": "#22201c",
|
|
199
203
|
"surface-active": "#2a2723",
|
|
204
|
+
"surface-highlight": "#302d28",
|
|
200
205
|
"line": "#2b2924",
|
|
201
206
|
"line-strong": "#3f3d37",
|
|
202
207
|
"control-border": "#7e7a72",
|
|
@@ -257,6 +262,7 @@ export const tokens = {
|
|
|
257
262
|
"surface-overlay": "#fefbf7",
|
|
258
263
|
"surface-hover": "#f0e9db",
|
|
259
264
|
"surface-active": "#eae2d3",
|
|
265
|
+
"surface-highlight": "#f1eadd",
|
|
260
266
|
"line": "#dfd8cb",
|
|
261
267
|
"line-strong": "#c7c0b1",
|
|
262
268
|
"control-border": "#868073",
|
package/dist/tailwind.css
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
--color-surface-overlay: var(--af-color-surface-overlay);
|
|
7
7
|
--color-surface-hover: var(--af-color-surface-hover);
|
|
8
8
|
--color-surface-active: var(--af-color-surface-active);
|
|
9
|
+
--color-surface-highlight: var(--af-color-surface-highlight);
|
|
9
10
|
--color-line: var(--af-color-line);
|
|
10
11
|
--color-line-strong: var(--af-color-line-strong);
|
|
11
12
|
--color-control-border: var(--af-color-control-border);
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
--shadow-focus-ring: var(--af-shadow-focus-ring);
|
|
62
63
|
--ease-out: var(--af-easing-out);
|
|
63
64
|
--ease-in: var(--af-easing-in);
|
|
65
|
+
--ease-in-out: var(--af-easing-in-out);
|
|
64
66
|
--spacing: var(--af-space-1);
|
|
65
67
|
--text-display-xl: var(--af-text-display-xl-size);
|
|
66
68
|
--text-display-xl--line-height: var(--af-text-display-xl-line-height);
|
package/dist/tokens.css
CHANGED
|
@@ -109,13 +109,17 @@
|
|
|
109
109
|
--af-size-content-max: 1200px;
|
|
110
110
|
--af-size-perf-hole: 6px;
|
|
111
111
|
--af-size-perf-pitch: 12px;
|
|
112
|
+
--af-size-edge: 1.5px;
|
|
112
113
|
--af-size-stamp-shift: 3px;
|
|
113
114
|
--af-duration-fast: 120ms;
|
|
114
115
|
--af-duration-base: 160ms;
|
|
115
116
|
--af-duration-slow: 200ms;
|
|
116
117
|
--af-duration-stagger: 40ms;
|
|
118
|
+
--af-duration-icon: 700ms;
|
|
119
|
+
--af-duration-icon-stagger: 160ms;
|
|
117
120
|
--af-easing-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
118
121
|
--af-easing-in: cubic-bezier(0.7, 0, 0.84, 0);
|
|
122
|
+
--af-easing-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
119
123
|
--af-z-band: 30;
|
|
120
124
|
--af-z-hint: 40;
|
|
121
125
|
--af-z-backdrop: 50;
|
|
@@ -133,6 +137,7 @@
|
|
|
133
137
|
--af-color-surface-overlay: #fefbf7;
|
|
134
138
|
--af-color-surface-hover: #f0e9db;
|
|
135
139
|
--af-color-surface-active: #eae2d3;
|
|
140
|
+
--af-color-surface-highlight: #f1eadd;
|
|
136
141
|
--af-color-line: #dfd8cb;
|
|
137
142
|
--af-color-line-strong: #c7c0b1;
|
|
138
143
|
--af-color-control-border: #868073;
|
|
@@ -190,6 +195,7 @@
|
|
|
190
195
|
--af-color-surface-overlay: #22201c;
|
|
191
196
|
--af-color-surface-hover: #22201c;
|
|
192
197
|
--af-color-surface-active: #2a2723;
|
|
198
|
+
--af-color-surface-highlight: #302d28;
|
|
193
199
|
--af-color-line: #2b2924;
|
|
194
200
|
--af-color-line-strong: #3f3d37;
|
|
195
201
|
--af-color-control-border: #7e7a72;
|
|
@@ -247,6 +253,7 @@
|
|
|
247
253
|
--af-color-surface-overlay: #22201c;
|
|
248
254
|
--af-color-surface-hover: #22201c;
|
|
249
255
|
--af-color-surface-active: #2a2723;
|
|
256
|
+
--af-color-surface-highlight: #302d28;
|
|
250
257
|
--af-color-line: #2b2924;
|
|
251
258
|
--af-color-line-strong: #3f3d37;
|
|
252
259
|
--af-color-control-border: #7e7a72;
|
|
@@ -302,5 +309,7 @@
|
|
|
302
309
|
--af-duration-base: 0s;
|
|
303
310
|
--af-duration-slow: 0s;
|
|
304
311
|
--af-duration-stagger: 0s;
|
|
312
|
+
--af-duration-icon: 0s;
|
|
313
|
+
--af-duration-icon-stagger: 0s;
|
|
305
314
|
}
|
|
306
315
|
}
|
package/dist/tokens.json
CHANGED
|
@@ -769,6 +769,13 @@
|
|
|
769
769
|
"value": "12px",
|
|
770
770
|
"description": "Distance between perforation hole centers."
|
|
771
771
|
},
|
|
772
|
+
{
|
|
773
|
+
"name": "size-edge",
|
|
774
|
+
"variable": "--af-size-edge",
|
|
775
|
+
"group": "size",
|
|
776
|
+
"value": "1.5px",
|
|
777
|
+
"description": "The outline of a container in line-strong: cards, panels, metrics, table boxes, the instance health. Dividers inside a container stay 1px line."
|
|
778
|
+
},
|
|
772
779
|
{
|
|
773
780
|
"name": "size-stamp-shift",
|
|
774
781
|
"variable": "--af-size-stamp-shift",
|
|
@@ -804,6 +811,20 @@
|
|
|
804
811
|
"value": "40ms",
|
|
805
812
|
"description": "Delay between consecutive lines of a trace that plays in. Never a duration on its own."
|
|
806
813
|
},
|
|
814
|
+
{
|
|
815
|
+
"name": "duration-icon",
|
|
816
|
+
"variable": "--af-duration-icon",
|
|
817
|
+
"group": "duration",
|
|
818
|
+
"value": "700ms",
|
|
819
|
+
"description": "One part of a navigation icon motion: long enough to watch the icon act out its page. The only motion above duration-slow."
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "duration-icon-stagger",
|
|
823
|
+
"variable": "--af-duration-icon-stagger",
|
|
824
|
+
"group": "duration",
|
|
825
|
+
"value": "160ms",
|
|
826
|
+
"description": "Delay between the parts of a navigation icon motion. Never a duration on its own."
|
|
827
|
+
},
|
|
807
828
|
{
|
|
808
829
|
"name": "easing-out",
|
|
809
830
|
"variable": "--af-easing-out",
|
|
@@ -818,6 +839,13 @@
|
|
|
818
839
|
"value": "cubic-bezier(0.7, 0, 0.84, 0)",
|
|
819
840
|
"description": "Exits only, at duration-fast."
|
|
820
841
|
},
|
|
842
|
+
{
|
|
843
|
+
"name": "easing-in-out",
|
|
844
|
+
"variable": "--af-easing-in-out",
|
|
845
|
+
"group": "easing",
|
|
846
|
+
"value": "cubic-bezier(0.65, 0, 0.35, 1)",
|
|
847
|
+
"description": "Navigation icon motions only: a part that starts and ends at rest."
|
|
848
|
+
},
|
|
821
849
|
{
|
|
822
850
|
"name": "z-band",
|
|
823
851
|
"variable": "--af-z-band",
|
|
@@ -915,6 +943,14 @@
|
|
|
915
943
|
"dark": "#2a2723",
|
|
916
944
|
"description": "Pressed and selected fills; the eyebrow chip."
|
|
917
945
|
},
|
|
946
|
+
{
|
|
947
|
+
"name": "color-surface-highlight",
|
|
948
|
+
"variable": "--af-color-surface-highlight",
|
|
949
|
+
"group": "color",
|
|
950
|
+
"light": "#f1eadd",
|
|
951
|
+
"dark": "#302d28",
|
|
952
|
+
"description": "The highlighted item on surface-overlay: the menu item under the pointer or the arrow keys, the selected command. Reads with ink, ink-muted and airmail-text."
|
|
953
|
+
},
|
|
918
954
|
{
|
|
919
955
|
"name": "color-line",
|
|
920
956
|
"variable": "--af-color-line",
|
|
@@ -1209,7 +1245,7 @@
|
|
|
1209
1245
|
"group": "color",
|
|
1210
1246
|
"light": "#ff9478",
|
|
1211
1247
|
"dark": "#ff9478",
|
|
1212
|
-
"description": "The
|
|
1248
|
+
"description": "The second impression under the brush circle on the airmail and ink faces of the tool stamps."
|
|
1213
1249
|
},
|
|
1214
1250
|
{
|
|
1215
1251
|
"name": "color-stamp-edge",
|
|
@@ -1249,7 +1285,7 @@
|
|
|
1249
1285
|
"group": "shadow",
|
|
1250
1286
|
"light": "3px 3px 0 0 #1d1a14",
|
|
1251
1287
|
"dark": "0 0 0 0 #0000",
|
|
1252
|
-
"description": "The hard offset of buttons, envelopes and stamps: paper on a desk. Day shift only;
|
|
1288
|
+
"description": "The hard offset of buttons, envelopes and stamps: paper on a desk. Day shift only; every button casts it, at every size."
|
|
1253
1289
|
},
|
|
1254
1290
|
{
|
|
1255
1291
|
"name": "shadow-edge",
|
package/package.json
CHANGED