@primer/primitives 7.17.0-rc.132f02a7 → 7.17.0-rc.34cd1021
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 +1 -1
- package/dist/css/functional/themes/dark-colorblind.css +10 -0
- package/dist/css/functional/themes/dark-dimmed.css +10 -0
- package/dist/css/functional/themes/dark-high-contrast.css +10 -0
- package/dist/css/functional/themes/dark-tritanopia.css +10 -0
- package/dist/css/functional/themes/dark.css +10 -0
- package/dist/css/functional/themes/light-colorblind.css +10 -0
- package/dist/css/functional/themes/light-high-contrast.css +10 -0
- package/dist/css/functional/themes/light-tritanopia.css +10 -0
- package/dist/css/functional/themes/light.css +10 -0
- package/dist/css/functional/typography/typography.css +1 -1
- package/dist/docs/base/typography/typography.json +52 -4
- package/dist/docs/functional/themes/dark-colorblind.json +223 -78
- package/dist/docs/functional/themes/dark-dimmed.json +218 -73
- package/dist/docs/functional/themes/dark-high-contrast.json +220 -75
- package/dist/docs/functional/themes/dark-tritanopia.json +223 -78
- package/dist/docs/functional/themes/dark.json +218 -73
- package/dist/docs/functional/themes/light-colorblind.json +221 -76
- package/dist/docs/functional/themes/light-high-contrast.json +215 -70
- package/dist/docs/functional/themes/light-tritanopia.json +221 -76
- package/dist/docs/functional/themes/light.json +216 -71
- package/dist/docs/functional/typography/typography.json +494 -36
- package/dist/fallbacks/functional/typography/typography.json +1 -1
- package/dist/figma/figma.json +18 -1
- package/dist/figma/scales/dark-dimmed.json +20 -20
- package/dist/figma/scales/dark-high-constrast.json +20 -20
- package/dist/figma/scales/dark.json +20 -20
- package/dist/figma/scales/light-high-constrast.json +20 -20
- package/dist/figma/scales/light.json +20 -20
- package/dist/figma/themes/dark-colorblind.json +150 -70
- package/dist/figma/themes/dark-dimmed.json +145 -65
- package/dist/figma/themes/dark-high-contrast.json +149 -69
- package/dist/figma/themes/dark-tritanopia.json +150 -70
- package/dist/figma/themes/dark.json +145 -65
- package/dist/figma/themes/light-colorblind.json +139 -59
- package/dist/figma/themes/light-high-contrast.json +135 -55
- package/dist/figma/themes/light-tritanopia.json +139 -59
- package/dist/figma/themes/light.json +134 -54
- package/dist/figma/typography/typography.json +370 -0
- package/dist/internalCss/dark-colorblind.css +30 -20
- package/dist/internalCss/dark-dimmed.css +30 -20
- package/dist/internalCss/dark-high-contrast.css +30 -20
- package/dist/internalCss/dark-tritanopia.css +30 -20
- package/dist/internalCss/dark.css +30 -20
- package/dist/internalCss/light-colorblind.css +30 -20
- package/dist/internalCss/light-high-contrast.css +30 -20
- package/dist/internalCss/light-tritanopia.css +30 -20
- package/dist/internalCss/light.css +30 -20
- package/dist/styleLint/base/typography/typography.json +52 -4
- package/dist/styleLint/functional/themes/dark-colorblind.json +223 -78
- package/dist/styleLint/functional/themes/dark-dimmed.json +218 -73
- package/dist/styleLint/functional/themes/dark-high-contrast.json +220 -75
- package/dist/styleLint/functional/themes/dark-tritanopia.json +223 -78
- package/dist/styleLint/functional/themes/dark.json +218 -73
- package/dist/styleLint/functional/themes/light-colorblind.json +221 -76
- package/dist/styleLint/functional/themes/light-high-contrast.json +215 -70
- package/dist/styleLint/functional/themes/light-tritanopia.json +221 -76
- package/dist/styleLint/functional/themes/light.json +216 -71
- package/dist/styleLint/functional/typography/typography.json +494 -36
- package/package.json +4 -11
- package/src/PrimerStyleDictionary.ts +12 -0
- package/src/filters/index.ts +1 -0
- package/src/filters/isNumber.ts +8 -0
- package/src/formats/jsonFigma.ts +1 -0
- package/src/platforms/figma.ts +10 -1
- package/src/schemas/numberToken.ts +17 -0
- package/src/tokens/base/color/dark/dark.dimmed.json5 +1 -1
- package/src/tokens/base/color/dark/dark.high-contrast.json5 +1 -1
- package/src/tokens/base/color/dark/dark.json5 +1 -1
- package/src/tokens/base/color/light/light.high-contrast.json5 +1 -1
- package/src/tokens/base/color/light/light.json5 +1 -1
- package/src/tokens/base/typography/typography.json +28 -4
- package/src/tokens/functional/color/dark/app-dark.json5 +5 -5
- package/src/tokens/functional/color/dark/display-dark.json5 +66 -0
- package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +17 -17
- package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +5 -5
- package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +5 -5
- package/src/tokens/functional/color/dark/patterns-dark.json5 +42 -42
- package/src/tokens/functional/color/dark/primitives-dark.json5 +16 -16
- package/src/tokens/functional/color/dark/syntax-dark.json5 +13 -13
- package/src/tokens/functional/color/light/app-light.json5 +5 -5
- package/src/tokens/functional/color/light/display-light.json5 +66 -0
- package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +25 -25
- package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +5 -5
- package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +5 -5
- package/src/tokens/functional/color/light/patterns-light.json5 +30 -30
- package/src/tokens/functional/color/light/primitives-light.json5 +15 -15
- package/src/tokens/functional/color/light/syntax-light.json5 +14 -14
- package/src/tokens/functional/shadow/dark.json5 +1 -1
- package/src/tokens/functional/shadow/light.json5 +11 -11
- package/src/tokens/functional/typography/typography.json +263 -34
- package/src/transformers/floatToPixel.ts +33 -0
- package/src/transformers/fontFamilyToCss.ts +3 -4
- package/src/transformers/fontFamilyToFigma.ts +47 -0
- package/src/transformers/index.ts +2 -0
- package/src/transformers/utilities/hasSpaceInString.ts +6 -0
- package/build.js +0 -578
- package/tokens/base/size/size.json +0 -57
- package/tokens/base/typography/typography.json +0 -20
- package/tokens/functional/size/border.json +0 -48
- package/tokens/functional/size/breakpoints.json +0 -24
- package/tokens/functional/size/size-coarse.json +0 -27
- package/tokens/functional/size/size-fine.json +0 -27
- package/tokens/functional/size/size.json +0 -189
- package/tokens/functional/size/viewport.json +0 -24
- package/tokens/functional/typography/typography.json +0 -213
- package/tokens/removed/color.json +0 -421
- package/tokens-v2-private/css/tokens/base/size/size.css +0 -24
- package/tokens-v2-private/css/tokens/base/typography/typography.css +0 -11
- package/tokens-v2-private/css/tokens/functional/size/border.css +0 -17
- package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +0 -13
- package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +0 -11
- package/tokens-v2-private/css/tokens/functional/size/size-fine.css +0 -11
- package/tokens-v2-private/css/tokens/functional/size/size.css +0 -54
- package/tokens-v2-private/css/tokens/functional/size/viewport.css +0 -6
- package/tokens-v2-private/css/tokens/functional/typography/typography.css +0 -47
- package/tokens-v2-private/docs/docValues.json +0 -2209
- package/tokens-v2-private/js/module/tokens/base/size/size.js +0 -266
- package/tokens-v2-private/js/module/tokens/base/typography/typography.js +0 -77
- package/tokens-v2-private/js/module/tokens/functional/size/border.js +0 -165
- package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +0 -101
- package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +0 -73
- package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +0 -73
- package/tokens-v2-private/js/module/tokens/functional/size/size.js +0 -824
- package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +0 -101
- package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +0 -809
- package/tokens-v2-private/js/tokens/base/size/size.js +0 -22
- package/tokens-v2-private/js/tokens/base/typography/typography.js +0 -9
- package/tokens-v2-private/js/tokens/functional/size/border.js +0 -15
- package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +0 -11
- package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +0 -8
- package/tokens-v2-private/js/tokens/functional/size/size-fine.js +0 -8
- package/tokens-v2-private/js/tokens/functional/size/size.js +0 -52
- package/tokens-v2-private/js/tokens/functional/size/viewport.js +0 -11
- package/tokens-v2-private/js/tokens/functional/typography/typography.js +0 -45
- package/tokens-v2-private/scss/tokens/base/size/size.scss +0 -21
- package/tokens-v2-private/scss/tokens/base/typography/typography.scss +0 -8
- package/tokens-v2-private/scss/tokens/functional/size/border.scss +0 -14
- package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +0 -10
- package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +0 -7
- package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +0 -7
- package/tokens-v2-private/scss/tokens/functional/size/size.scss +0 -51
- package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +0 -10
- package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +0 -44
- package/tokens-v2-private/ts/tokens/base/size/size.d.ts +0 -31
- package/tokens-v2-private/ts/tokens/base/size/size.js +0 -30
- package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +0 -20
- package/tokens-v2-private/ts/tokens/base/typography/typography.js +0 -19
- package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +0 -28
- package/tokens-v2-private/ts/tokens/functional/size/border.js +0 -27
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +0 -20
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +0 -19
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +0 -29
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +0 -28
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +0 -29
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +0 -28
- package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +0 -103
- package/tokens-v2-private/ts/tokens/functional/size/size.js +0 -102
- package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +0 -20
- package/tokens-v2-private/ts/tokens/functional/size/viewport.js +0 -19
- package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +0 -131
- package/tokens-v2-private/ts/tokens/functional/typography/typography.js +0 -130
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
* Generated on Thu, 18 Apr 2024 08:59:04 GMT
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
"primer": {
|
|
8
|
-
"viewportRange": {
|
|
9
|
-
"narrow": {
|
|
10
|
-
"value": "(max-width: calc(48rem - 0.02px))",
|
|
11
|
-
"filePath": "tokens/functional/size/viewport.json",
|
|
12
|
-
"isSource": true,
|
|
13
|
-
"original": {
|
|
14
|
-
"value": "(max-width: calc({primer.breakpoint.medium} - 0.02px))"
|
|
15
|
-
},
|
|
16
|
-
"name": "narrow",
|
|
17
|
-
"attributes": {},
|
|
18
|
-
"path": [
|
|
19
|
-
"primer",
|
|
20
|
-
"viewportRange",
|
|
21
|
-
"narrow"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"narrowLandscape": {
|
|
25
|
-
"value": "(max-width: calc(63.25rem - 0.02px) and (max-height: calc(34rem - 0.02px)) and (orientation: landscape))",
|
|
26
|
-
"filePath": "tokens/functional/size/viewport.json",
|
|
27
|
-
"isSource": true,
|
|
28
|
-
"original": {
|
|
29
|
-
"value": "(max-width: calc({primer.breakpoint.large} - 0.02px) and (max-height: calc({primer.breakpoint.small} - 0.02px)) and (orientation: landscape))"
|
|
30
|
-
},
|
|
31
|
-
"name": "narrowLandscape",
|
|
32
|
-
"attributes": {},
|
|
33
|
-
"path": [
|
|
34
|
-
"primer",
|
|
35
|
-
"viewportRange",
|
|
36
|
-
"narrowLandscape"
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"regular": {
|
|
40
|
-
"value": "(min-width: 48rem)",
|
|
41
|
-
"filePath": "tokens/functional/size/viewport.json",
|
|
42
|
-
"isSource": true,
|
|
43
|
-
"original": {
|
|
44
|
-
"value": "(min-width: {primer.breakpoint.medium})"
|
|
45
|
-
},
|
|
46
|
-
"name": "regular",
|
|
47
|
-
"attributes": {},
|
|
48
|
-
"path": [
|
|
49
|
-
"primer",
|
|
50
|
-
"viewportRange",
|
|
51
|
-
"regular"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
"wide": {
|
|
55
|
-
"value": "(min-width: 90rem)",
|
|
56
|
-
"filePath": "tokens/functional/size/viewport.json",
|
|
57
|
-
"isSource": true,
|
|
58
|
-
"original": {
|
|
59
|
-
"value": "(min-width: {primer.breakpoint.xxlarge})"
|
|
60
|
-
},
|
|
61
|
-
"name": "wide",
|
|
62
|
-
"attributes": {},
|
|
63
|
-
"path": [
|
|
64
|
-
"primer",
|
|
65
|
-
"viewportRange",
|
|
66
|
-
"wide"
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
"portrait": {
|
|
70
|
-
"value": "(orientation: portrait)",
|
|
71
|
-
"filePath": "tokens/functional/size/viewport.json",
|
|
72
|
-
"isSource": true,
|
|
73
|
-
"original": {
|
|
74
|
-
"value": "(orientation: portrait)"
|
|
75
|
-
},
|
|
76
|
-
"name": "portrait",
|
|
77
|
-
"attributes": {},
|
|
78
|
-
"path": [
|
|
79
|
-
"primer",
|
|
80
|
-
"viewportRange",
|
|
81
|
-
"portrait"
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
"landscape": {
|
|
85
|
-
"value": "(orientation: landscape)",
|
|
86
|
-
"filePath": "tokens/functional/size/viewport.json",
|
|
87
|
-
"isSource": true,
|
|
88
|
-
"original": {
|
|
89
|
-
"value": "(orientation: landscape)"
|
|
90
|
-
},
|
|
91
|
-
"name": "landscape",
|
|
92
|
-
"attributes": {},
|
|
93
|
-
"path": [
|
|
94
|
-
"primer",
|
|
95
|
-
"viewportRange",
|
|
96
|
-
"landscape"
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
};
|