@afluem/tokens 0.4.0 → 0.6.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 +9 -0
- package/dist/index.js +11 -2
- package/dist/tailwind.css +3 -0
- package/dist/tokens.css +14 -0
- package/dist/tokens.json +59 -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,16 @@ export declare const tokens: {
|
|
|
174
175
|
"base": string;
|
|
175
176
|
"slow": string;
|
|
176
177
|
"stagger": string;
|
|
178
|
+
"icon": string;
|
|
179
|
+
"icon-stagger": string;
|
|
180
|
+
"sparkline": string;
|
|
181
|
+
"loader": string;
|
|
177
182
|
};
|
|
178
183
|
"easing": {
|
|
179
184
|
"out": string;
|
|
180
185
|
"in": string;
|
|
186
|
+
"trace": string;
|
|
187
|
+
"in-out": string;
|
|
181
188
|
};
|
|
182
189
|
"z": {
|
|
183
190
|
"band": string;
|
|
@@ -197,6 +204,7 @@ export declare const tokens: {
|
|
|
197
204
|
"surface-overlay": string;
|
|
198
205
|
"surface-hover": string;
|
|
199
206
|
"surface-active": string;
|
|
207
|
+
"surface-highlight": string;
|
|
200
208
|
"line": string;
|
|
201
209
|
"line-strong": string;
|
|
202
210
|
"control-border": string;
|
|
@@ -257,6 +265,7 @@ export declare const tokens: {
|
|
|
257
265
|
"surface-overlay": string;
|
|
258
266
|
"surface-hover": string;
|
|
259
267
|
"surface-active": string;
|
|
268
|
+
"surface-highlight": string;
|
|
260
269
|
"line": string;
|
|
261
270
|
"line-strong": string;
|
|
262
271
|
"control-border": string;
|
package/dist/index.js
CHANGED
|
@@ -167,17 +167,24 @@ 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",
|
|
180
|
+
"sparkline": "1200ms",
|
|
181
|
+
"loader": "2400ms"
|
|
177
182
|
},
|
|
178
183
|
"easing": {
|
|
179
184
|
"out": "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
180
|
-
"in": "cubic-bezier(0.7, 0, 0.84, 0)"
|
|
185
|
+
"in": "cubic-bezier(0.7, 0, 0.84, 0)",
|
|
186
|
+
"trace": "cubic-bezier(0.25, 0.1, 0.4, 0.85)",
|
|
187
|
+
"in-out": "cubic-bezier(0.65, 0, 0.35, 1)"
|
|
181
188
|
},
|
|
182
189
|
"z": {
|
|
183
190
|
"band": "30",
|
|
@@ -197,6 +204,7 @@ export const tokens = {
|
|
|
197
204
|
"surface-overlay": "#22201c",
|
|
198
205
|
"surface-hover": "#22201c",
|
|
199
206
|
"surface-active": "#2a2723",
|
|
207
|
+
"surface-highlight": "#302d28",
|
|
200
208
|
"line": "#2b2924",
|
|
201
209
|
"line-strong": "#3f3d37",
|
|
202
210
|
"control-border": "#7e7a72",
|
|
@@ -257,6 +265,7 @@ export const tokens = {
|
|
|
257
265
|
"surface-overlay": "#fefbf7",
|
|
258
266
|
"surface-hover": "#f0e9db",
|
|
259
267
|
"surface-active": "#eae2d3",
|
|
268
|
+
"surface-highlight": "#f1eadd",
|
|
260
269
|
"line": "#dfd8cb",
|
|
261
270
|
"line-strong": "#c7c0b1",
|
|
262
271
|
"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,8 @@
|
|
|
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-trace: var(--af-easing-trace);
|
|
66
|
+
--ease-in-out: var(--af-easing-in-out);
|
|
64
67
|
--spacing: var(--af-space-1);
|
|
65
68
|
--text-display-xl: var(--af-text-display-xl-size);
|
|
66
69
|
--text-display-xl--line-height: var(--af-text-display-xl-line-height);
|
package/dist/tokens.css
CHANGED
|
@@ -109,13 +109,20 @@
|
|
|
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;
|
|
120
|
+
--af-duration-sparkline: 1200ms;
|
|
121
|
+
--af-duration-loader: 2400ms;
|
|
117
122
|
--af-easing-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
118
123
|
--af-easing-in: cubic-bezier(0.7, 0, 0.84, 0);
|
|
124
|
+
--af-easing-trace: cubic-bezier(0.25, 0.1, 0.4, 0.85);
|
|
125
|
+
--af-easing-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
119
126
|
--af-z-band: 30;
|
|
120
127
|
--af-z-hint: 40;
|
|
121
128
|
--af-z-backdrop: 50;
|
|
@@ -133,6 +140,7 @@
|
|
|
133
140
|
--af-color-surface-overlay: #fefbf7;
|
|
134
141
|
--af-color-surface-hover: #f0e9db;
|
|
135
142
|
--af-color-surface-active: #eae2d3;
|
|
143
|
+
--af-color-surface-highlight: #f1eadd;
|
|
136
144
|
--af-color-line: #dfd8cb;
|
|
137
145
|
--af-color-line-strong: #c7c0b1;
|
|
138
146
|
--af-color-control-border: #868073;
|
|
@@ -190,6 +198,7 @@
|
|
|
190
198
|
--af-color-surface-overlay: #22201c;
|
|
191
199
|
--af-color-surface-hover: #22201c;
|
|
192
200
|
--af-color-surface-active: #2a2723;
|
|
201
|
+
--af-color-surface-highlight: #302d28;
|
|
193
202
|
--af-color-line: #2b2924;
|
|
194
203
|
--af-color-line-strong: #3f3d37;
|
|
195
204
|
--af-color-control-border: #7e7a72;
|
|
@@ -247,6 +256,7 @@
|
|
|
247
256
|
--af-color-surface-overlay: #22201c;
|
|
248
257
|
--af-color-surface-hover: #22201c;
|
|
249
258
|
--af-color-surface-active: #2a2723;
|
|
259
|
+
--af-color-surface-highlight: #302d28;
|
|
250
260
|
--af-color-line: #2b2924;
|
|
251
261
|
--af-color-line-strong: #3f3d37;
|
|
252
262
|
--af-color-control-border: #7e7a72;
|
|
@@ -302,5 +312,9 @@
|
|
|
302
312
|
--af-duration-base: 0s;
|
|
303
313
|
--af-duration-slow: 0s;
|
|
304
314
|
--af-duration-stagger: 0s;
|
|
315
|
+
--af-duration-icon: 0s;
|
|
316
|
+
--af-duration-icon-stagger: 0s;
|
|
317
|
+
--af-duration-sparkline: 0s;
|
|
318
|
+
--af-duration-loader: 0s;
|
|
305
319
|
}
|
|
306
320
|
}
|
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,34 @@
|
|
|
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. With duration-loader and duration-sparkline, the only motions 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
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"name": "duration-sparkline",
|
|
830
|
+
"variable": "--af-duration-sparkline",
|
|
831
|
+
"group": "duration",
|
|
832
|
+
"value": "1200ms",
|
|
833
|
+
"description": "A sparkline replaying its series from the oldest value when its metric is hovered: long enough to read the series as time passing."
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"name": "duration-loader",
|
|
837
|
+
"variable": "--af-duration-loader",
|
|
838
|
+
"group": "duration",
|
|
839
|
+
"value": "2400ms",
|
|
840
|
+
"description": "One cycle of the loader, repeated while the work runs: the brush draws the mark's circle, holds, and lifts off through the gap."
|
|
841
|
+
},
|
|
807
842
|
{
|
|
808
843
|
"name": "easing-out",
|
|
809
844
|
"variable": "--af-easing-out",
|
|
@@ -818,6 +853,20 @@
|
|
|
818
853
|
"value": "cubic-bezier(0.7, 0, 0.84, 0)",
|
|
819
854
|
"description": "Exits only, at duration-fast."
|
|
820
855
|
},
|
|
856
|
+
{
|
|
857
|
+
"name": "easing-trace",
|
|
858
|
+
"variable": "--af-easing-trace",
|
|
859
|
+
"group": "easing",
|
|
860
|
+
"value": "cubic-bezier(0.25, 0.1, 0.4, 0.85)",
|
|
861
|
+
"description": "The sparkline replay only: eases in and lands on the last value without braking to a stop."
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"name": "easing-in-out",
|
|
865
|
+
"variable": "--af-easing-in-out",
|
|
866
|
+
"group": "easing",
|
|
867
|
+
"value": "cubic-bezier(0.65, 0, 0.35, 1)",
|
|
868
|
+
"description": "Navigation icon motions only: a part that starts and ends at rest."
|
|
869
|
+
},
|
|
821
870
|
{
|
|
822
871
|
"name": "z-band",
|
|
823
872
|
"variable": "--af-z-band",
|
|
@@ -915,6 +964,14 @@
|
|
|
915
964
|
"dark": "#2a2723",
|
|
916
965
|
"description": "Pressed and selected fills; the eyebrow chip."
|
|
917
966
|
},
|
|
967
|
+
{
|
|
968
|
+
"name": "color-surface-highlight",
|
|
969
|
+
"variable": "--af-color-surface-highlight",
|
|
970
|
+
"group": "color",
|
|
971
|
+
"light": "#f1eadd",
|
|
972
|
+
"dark": "#302d28",
|
|
973
|
+
"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."
|
|
974
|
+
},
|
|
918
975
|
{
|
|
919
976
|
"name": "color-line",
|
|
920
977
|
"variable": "--af-color-line",
|
|
@@ -1209,7 +1266,7 @@
|
|
|
1209
1266
|
"group": "color",
|
|
1210
1267
|
"light": "#ff9478",
|
|
1211
1268
|
"dark": "#ff9478",
|
|
1212
|
-
"description": "The
|
|
1269
|
+
"description": "The second impression under the brush circle on the airmail and ink faces of the tool stamps."
|
|
1213
1270
|
},
|
|
1214
1271
|
{
|
|
1215
1272
|
"name": "color-stamp-edge",
|
|
@@ -1249,7 +1306,7 @@
|
|
|
1249
1306
|
"group": "shadow",
|
|
1250
1307
|
"light": "3px 3px 0 0 #1d1a14",
|
|
1251
1308
|
"dark": "0 0 0 0 #0000",
|
|
1252
|
-
"description": "The hard offset of buttons, envelopes and stamps: paper on a desk. Day shift only;
|
|
1309
|
+
"description": "The hard offset of buttons, envelopes and stamps: paper on a desk. Day shift only; every button casts it, at every size."
|
|
1253
1310
|
},
|
|
1254
1311
|
{
|
|
1255
1312
|
"name": "shadow-edge",
|
package/package.json
CHANGED