@primer/primitives 11.7.1 → 11.8.0-rc.036a9e18
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/DESIGN_TOKENS_GUIDE.md +28 -20
- package/DESIGN_TOKENS_SPEC.md +99 -0
- package/README.md +5 -0
- package/dist/build/transformers/transitionToCss.js +5 -1
- package/dist/css/functional/motion/motion.css +15 -0
- package/dist/css/functional/spacing/space.css +8 -0
- package/dist/css/primitives.css +2 -0
- package/dist/docs/functional/motion/motion.json +427 -0
- package/dist/docs/functional/spacing/space.json +224 -0
- package/dist/fallbacks/functional/motion/motion.json +51 -0
- package/dist/fallbacks/functional/spacing/space.json +8 -0
- package/dist/figma/figma.json +6 -6
- package/dist/figma/scales/dark-dimmed.json +629 -629
- package/dist/figma/scales/dark-high-constrast.json +628 -628
- package/dist/figma/scales/light-high-constrast.json +626 -626
- package/dist/styleLint/functional/motion/motion.json +427 -0
- package/dist/styleLint/functional/spacing/space.json +224 -0
- package/package.json +5 -3
- package/src/tokens/functional/motion/motion.json5 +190 -0
- package/src/tokens/functional/spacing/space.json5 +94 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"--motion-duration-micro": {
|
|
3
|
+
"value": 100,
|
|
4
|
+
"unit": "ms"
|
|
5
|
+
},
|
|
6
|
+
"--motion-duration-short": {
|
|
7
|
+
"value": 200,
|
|
8
|
+
"unit": "ms"
|
|
9
|
+
},
|
|
10
|
+
"--motion-duration-medium": {
|
|
11
|
+
"value": 300,
|
|
12
|
+
"unit": "ms"
|
|
13
|
+
},
|
|
14
|
+
"--motion-duration-long": {
|
|
15
|
+
"value": 500,
|
|
16
|
+
"unit": "ms"
|
|
17
|
+
},
|
|
18
|
+
"--motion-easing-hover": [0.25, 0.1, 0.25, 1],
|
|
19
|
+
"--motion-easing-enter": [0.3, 0.8, 0.6, 1],
|
|
20
|
+
"--motion-easing-exit": [0.7, 0.1, 0.75, 0.9],
|
|
21
|
+
"--motion-easing-move": [0.6, 0, 0.2, 1],
|
|
22
|
+
"--motion-easing-linear": [0, 0, 1, 1],
|
|
23
|
+
"--motion-transition-hover": {
|
|
24
|
+
"duration": {
|
|
25
|
+
"value": 100,
|
|
26
|
+
"unit": "ms"
|
|
27
|
+
},
|
|
28
|
+
"timingFunction": [0.25, 0.1, 0.25, 1]
|
|
29
|
+
},
|
|
30
|
+
"--motion-transition-stateChange": {
|
|
31
|
+
"duration": {
|
|
32
|
+
"value": 200,
|
|
33
|
+
"unit": "ms"
|
|
34
|
+
},
|
|
35
|
+
"timingFunction": [0.6, 0, 0.2, 1]
|
|
36
|
+
},
|
|
37
|
+
"--motion-transition-enter": {
|
|
38
|
+
"duration": {
|
|
39
|
+
"value": 300,
|
|
40
|
+
"unit": "ms"
|
|
41
|
+
},
|
|
42
|
+
"timingFunction": [0.3, 0.8, 0.6, 1]
|
|
43
|
+
},
|
|
44
|
+
"--motion-transition-exit": {
|
|
45
|
+
"duration": {
|
|
46
|
+
"value": 200,
|
|
47
|
+
"unit": "ms"
|
|
48
|
+
},
|
|
49
|
+
"timingFunction": [0.7, 0.1, 0.75, 0.9]
|
|
50
|
+
}
|
|
51
|
+
}
|
package/dist/figma/figma.json
CHANGED
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
"component"
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
|
-
"base/color/dark
|
|
28
|
+
"base/color/dark": {
|
|
29
29
|
"modes": [
|
|
30
30
|
"default"
|
|
31
31
|
],
|
|
32
32
|
"groups": [
|
|
33
|
-
"base/color/dark
|
|
33
|
+
"base/color/dark"
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
|
-
"base/color/dark-
|
|
36
|
+
"base/color/dark-dimmed": {
|
|
37
37
|
"modes": [
|
|
38
38
|
"default"
|
|
39
39
|
],
|
|
40
40
|
"groups": [
|
|
41
|
-
"base/color/dark-
|
|
41
|
+
"base/color/dark-dimmed"
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
|
-
"base/color/dark": {
|
|
44
|
+
"base/color/dark-high-contrast": {
|
|
45
45
|
"modes": [
|
|
46
46
|
"default"
|
|
47
47
|
],
|
|
48
48
|
"groups": [
|
|
49
|
-
"base/color/dark"
|
|
49
|
+
"base/color/dark-high-contrast"
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
"base/color/light-high-contrast": {
|