@primer/primitives 7.11.7 → 7.11.8-rc.0252b5f
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/js/colors/dark.d.ts +6 -0
- package/dist/js/colors/dark.js +12 -6
- package/dist/js/colors/dark_colorblind.d.ts +6 -0
- package/dist/js/colors/dark_colorblind.js +12 -6
- package/dist/js/colors/dark_dimmed.d.ts +6 -0
- package/dist/js/colors/dark_dimmed.js +12 -6
- package/dist/js/colors/dark_high_contrast.d.ts +6 -0
- package/dist/js/colors/dark_high_contrast.js +10 -4
- package/dist/js/colors/dark_tritanopia.d.ts +6 -0
- package/dist/js/colors/dark_tritanopia.js +12 -6
- package/dist/js/colors/index.d.ts +54 -0
- package/dist/js/colors/light.d.ts +6 -0
- package/dist/js/colors/light.js +9 -3
- package/dist/js/colors/light_colorblind.d.ts +6 -0
- package/dist/js/colors/light_colorblind.js +9 -3
- package/dist/js/colors/light_high_contrast.d.ts +6 -0
- package/dist/js/colors/light_high_contrast.js +9 -3
- package/dist/js/colors/light_tritanopia.d.ts +6 -0
- package/dist/js/colors/light_tritanopia.js +9 -3
- package/dist/js/index.d.ts +54 -0
- package/dist/json/colors/dark.json +12 -6
- package/dist/json/colors/dark_colorblind.json +12 -6
- package/dist/json/colors/dark_dimmed.json +12 -6
- package/dist/json/colors/dark_high_contrast.json +10 -4
- package/dist/json/colors/dark_tritanopia.json +12 -6
- package/dist/json/colors/light.json +9 -3
- package/dist/json/colors/light_colorblind.json +9 -3
- package/dist/json/colors/light_high_contrast.json +9 -3
- package/dist/json/colors/light_tritanopia.json +9 -3
- package/dist/scss/colors/_dark.scss +11 -5
- package/dist/scss/colors/_dark_colorblind.scss +11 -5
- package/dist/scss/colors/_dark_dimmed.scss +11 -5
- package/dist/scss/colors/_dark_high_contrast.scss +9 -3
- package/dist/scss/colors/_dark_tritanopia.scss +11 -5
- package/dist/scss/colors/_light.scss +8 -2
- package/dist/scss/colors/_light_colorblind.scss +8 -2
- package/dist/scss/colors/_light_high_contrast.scss +8 -2
- package/dist/scss/colors/_light_tritanopia.scss +8 -2
- package/dist/ts/colors/dark.ts +12 -6
- package/dist/ts/colors/dark_colorblind.ts +12 -6
- package/dist/ts/colors/dark_dimmed.ts +12 -6
- package/dist/ts/colors/dark_high_contrast.ts +10 -4
- package/dist/ts/colors/dark_tritanopia.ts +12 -6
- package/dist/ts/colors/light.ts +9 -3
- package/dist/ts/colors/light_colorblind.ts +9 -3
- package/dist/ts/colors/light_high_contrast.ts +9 -3
- package/dist/ts/colors/light_tritanopia.ts +9 -3
- package/package.json +4 -6
- package/tokens-next-private/css/functional/themes/dark-colorblind.css +388 -376
- package/tokens-next-private/css/functional/themes/dark-dimmed.css +320 -308
- package/tokens-next-private/css/functional/themes/dark-high-contrast.css +308 -296
- package/tokens-next-private/css/functional/themes/dark-tritanopia.css +340 -328
- package/tokens-next-private/css/functional/themes/dark.css +320 -308
- package/tokens-next-private/css/functional/themes/light-colorblind.css +348 -286
- package/tokens-next-private/css/functional/themes/light-high-contrast.css +270 -208
- package/tokens-next-private/css/functional/themes/light-tritanopia.css +290 -228
- package/tokens-next-private/css/functional/themes/light.css +270 -208
- package/tokens-next-private/docs/functional/size/border.json +3 -1
- package/tokens-next-private/docs/functional/themes/dark-colorblind.json +504 -416
- package/tokens-next-private/docs/functional/themes/dark-dimmed.json +321 -233
- package/tokens-next-private/docs/functional/themes/dark-high-contrast.json +308 -216
- package/tokens-next-private/docs/functional/themes/dark-tritanopia.json +447 -357
- package/tokens-next-private/docs/functional/themes/dark.json +321 -233
- package/tokens-next-private/docs/functional/themes/light-colorblind.json +663 -240
- package/tokens-next-private/docs/functional/themes/light-high-contrast.json +502 -77
- package/tokens-next-private/docs/functional/themes/light-tritanopia.json +623 -198
- package/tokens-next-private/docs/functional/themes/light.json +500 -77
- package/tokens-next-private/docs/functional/typography/typography.json +33 -11
- package/tokens-next-private/fallbacks/color-fallbacks.json +245 -0
- package/tokens-next-private/js/functional/themes/dark-colorblind.js +158 -116
- package/tokens-next-private/js/functional/themes/dark-dimmed.js +103 -61
- package/tokens-next-private/js/functional/themes/dark-high-contrast.js +97 -55
- package/tokens-next-private/js/functional/themes/dark-tritanopia.js +113 -71
- package/tokens-next-private/js/functional/themes/dark.js +103 -61
- package/tokens-next-private/js/functional/themes/light-colorblind.js +123 -106
- package/tokens-next-private/js/functional/themes/light-high-contrast.js +65 -48
- package/tokens-next-private/js/functional/themes/light-tritanopia.js +75 -58
- package/tokens-next-private/js/functional/themes/light.js +65 -48
- package/tokens-next-private/json/functional/themes/dark-colorblind.json +161 -119
- package/tokens-next-private/json/functional/themes/dark-dimmed.json +106 -64
- package/tokens-next-private/json/functional/themes/dark-high-contrast.json +100 -58
- package/tokens-next-private/json/functional/themes/dark-tritanopia.json +116 -74
- package/tokens-next-private/json/functional/themes/dark.json +106 -64
- package/tokens-next-private/json/functional/themes/light-colorblind.json +124 -107
- package/tokens-next-private/json/functional/themes/light-high-contrast.json +66 -49
- package/tokens-next-private/json/functional/themes/light-tritanopia.json +76 -59
- package/tokens-next-private/json/functional/themes/light.json +66 -49
- package/tokens-next-private/scss/functional/size/border.scss +1 -1
- package/tokens-next-private/scss/functional/themes/dark-colorblind.scss +121 -115
- package/tokens-next-private/scss/functional/themes/dark-dimmed.scss +67 -61
- package/tokens-next-private/scss/functional/themes/dark-high-contrast.scss +61 -55
- package/tokens-next-private/scss/functional/themes/dark-tritanopia.scss +77 -71
- package/tokens-next-private/scss/functional/themes/dark.scss +67 -61
- package/tokens-next-private/scss/functional/themes/light-colorblind.scss +101 -70
- package/tokens-next-private/scss/functional/themes/light-high-contrast.scss +42 -11
- package/tokens-next-private/scss/functional/themes/light-tritanopia.scss +52 -21
- package/tokens-next-private/scss/functional/themes/light.scss +42 -11
- package/tokens-next-private/scss/functional/typography/typography.scss +11 -11
- package/tokens-next-private/ts/functional/themes/dark-colorblind.ts +158 -116
- package/tokens-next-private/ts/functional/themes/dark-dimmed.ts +103 -61
- package/tokens-next-private/ts/functional/themes/dark-high-contrast.ts +97 -55
- package/tokens-next-private/ts/functional/themes/dark-tritanopia.ts +113 -71
- package/tokens-next-private/ts/functional/themes/dark.ts +103 -61
- package/tokens-next-private/ts/functional/themes/light-colorblind.ts +123 -106
- package/tokens-next-private/ts/functional/themes/light-high-contrast.ts +65 -48
- package/tokens-next-private/ts/functional/themes/light-tritanopia.ts +75 -58
- package/tokens-next-private/ts/functional/themes/light.ts +65 -48
- package/tokens-next-private/ts/types/BaseColorDesignTokens.d.ts +1 -1
- package/tokens-next-private/ts/types/SizeDesignTokens.d.ts +1 -1
- package/tokens-next-private/ts/types/ThemeDesignTokens.d.ts +59 -42
- package/tokens-next-private/ts/types/TypographyDesignTokens.d.ts +1 -1
- package/tokens-v2-private/css/tokens/base/size/size.css +1 -1
- package/tokens-v2-private/css/tokens/base/typography/typography.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/border.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size-fine.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size.css +1 -1
- package/tokens-v2-private/css/tokens/functional/typography/typography.css +1 -1
- package/tokens-v2-private/js/module/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/js/module/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/border.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +1 -1
- package/tokens-v2-private/js/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/js/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/border.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/js/tokens/functional/typography/typography.js +1 -1
- package/tokens-v2-private/scss/tokens/base/size/size.scss +1 -1
- package/tokens-v2-private/scss/tokens/base/typography/typography.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/border.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/size.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +1 -1
- package/tokens-v2-private/ts/tokens/base/size/size.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/border.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/typography/typography.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/primitives",
|
|
3
|
-
"version": "7.11.
|
|
3
|
+
"version": "7.11.8-rc.0252b5f",
|
|
4
4
|
"description": "Typography, spacing, and color primitives for Primer design system",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"homepage": "https://github.com/primer/primitives#readme",
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "ts-node ./scripts/build.ts && tsc --project tsconfig.build.json",
|
|
31
|
-
"build:next": "ts-node -r tsconfig-paths/register ./scripts/buildTokens.ts",
|
|
31
|
+
"build:next": "ts-node -r tsconfig-paths/register ./scripts/buildTokens.ts && ts-node ./scripts/buildFallbacks.ts",
|
|
32
32
|
"build:tokens": "node -e \"require('./build')._init()\"",
|
|
33
33
|
"build:new-tokens": "npm run build:tokens && npm run build:next",
|
|
34
34
|
"tokenJson:check": "ts-node scripts/diffThemes.ts && ts-node scripts/diffTokenProps.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"prebuild:tokens": "rm -rf tokens-v2-private",
|
|
44
44
|
"prebuild:next": "rm -rf tokens-next-private",
|
|
45
45
|
"prepack": "npm run build && npm run build:tokens && npm run build:next",
|
|
46
|
-
"prepare": "husky install
|
|
46
|
+
"prepare": "husky install",
|
|
47
47
|
"release": "changeset publish",
|
|
48
48
|
"start:storybook": "npm run build:next && cd docs/storybook && npm run storybook",
|
|
49
49
|
"test": "jest --verbose --coverage",
|
|
@@ -87,9 +87,7 @@
|
|
|
87
87
|
"ts-jest": "^29.0.3",
|
|
88
88
|
"ts-node": "^10.9.1",
|
|
89
89
|
"tsconfig-paths": "^4.1.0",
|
|
90
|
-
"typescript": "^4.9.3"
|
|
91
|
-
},
|
|
92
|
-
"dependencies": {
|
|
90
|
+
"typescript": "^4.9.3",
|
|
93
91
|
"markdown-table-ts": "^1.0.3"
|
|
94
92
|
}
|
|
95
93
|
}
|