@primer/primitives 7.11.0-rc.f7ccc99 → 7.11.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/README.md +2 -2
- package/dist/color-contrast-check.json +1 -1
- package/dist/deprecated/colors.json +7 -1
- package/dist/js/colors/dark.d.ts +5 -0
- package/dist/js/colors/dark.js +5 -0
- package/dist/js/colors/dark_colorblind.d.ts +5 -0
- package/dist/js/colors/dark_colorblind.js +5 -0
- package/dist/js/colors/dark_dimmed.d.ts +5 -0
- package/dist/js/colors/dark_dimmed.js +5 -0
- package/dist/js/colors/dark_high_contrast.d.ts +5 -0
- package/dist/js/colors/dark_high_contrast.js +5 -0
- package/dist/js/colors/dark_tritanopia.d.ts +5 -0
- package/dist/js/colors/dark_tritanopia.js +5 -0
- package/dist/js/colors/index.d.ts +45 -0
- package/dist/js/colors/light.d.ts +5 -0
- package/dist/js/colors/light.js +5 -0
- package/dist/js/colors/light_colorblind.d.ts +5 -0
- package/dist/js/colors/light_colorblind.js +5 -0
- package/dist/js/colors/light_high_contrast.d.ts +5 -0
- package/dist/js/colors/light_high_contrast.js +5 -0
- package/dist/js/colors/light_tritanopia.d.ts +5 -0
- package/dist/js/colors/light_tritanopia.js +5 -0
- package/dist/js/index.d.ts +45 -0
- package/dist/json/colors/dark.json +5 -0
- package/dist/json/colors/dark_colorblind.json +5 -0
- package/dist/json/colors/dark_dimmed.json +5 -0
- package/dist/json/colors/dark_high_contrast.json +5 -0
- package/dist/json/colors/dark_tritanopia.json +5 -0
- package/dist/json/colors/light.json +5 -0
- package/dist/json/colors/light_colorblind.json +5 -0
- package/dist/json/colors/light_high_contrast.json +5 -0
- package/dist/json/colors/light_tritanopia.json +5 -0
- package/dist/scss/colors/_dark.scss +1 -0
- package/dist/scss/colors/_dark_colorblind.scss +1 -0
- package/dist/scss/colors/_dark_dimmed.scss +1 -0
- package/dist/scss/colors/_dark_high_contrast.scss +1 -0
- package/dist/scss/colors/_dark_tritanopia.scss +1 -0
- package/dist/scss/colors/_light.scss +1 -0
- package/dist/scss/colors/_light_colorblind.scss +1 -0
- package/dist/scss/colors/_light_high_contrast.scss +1 -0
- package/dist/scss/colors/_light_tritanopia.scss +1 -0
- package/dist/ts/colors/dark.ts +5 -0
- package/dist/ts/colors/dark_colorblind.ts +5 -0
- package/dist/ts/colors/dark_dimmed.ts +5 -0
- package/dist/ts/colors/dark_high_contrast.ts +5 -0
- package/dist/ts/colors/dark_tritanopia.ts +5 -0
- package/dist/ts/colors/light.ts +5 -0
- package/dist/ts/colors/light_colorblind.ts +5 -0
- package/dist/ts/colors/light_high_contrast.ts +5 -0
- package/dist/ts/colors/light_tritanopia.ts +5 -0
- package/package.json +16 -15
- 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/CHANGELOG.md +0 -685
- package/tokens/base/color/dark/dark.dimmed.json5 +0 -128
- package/tokens/base/color/dark/dark.high-contrast.json5 +0 -128
- package/tokens/base/color/dark/dark.json5 +0 -133
- package/tokens/base/color/dark/dark.protanopia-deuteranopia.json5 +0 -48
- package/tokens/base/color/dark/dark.tritanopia.json5 +0 -96
- package/tokens/base/color/light/light.high-contrast.json5 +0 -394
- package/tokens/base/color/light/light.json5 +0 -403
- package/tokens/base/color/light/light.protanopia-deuteranopia.json5 +0 -138
- package/tokens/base/color/light/light.tritanopia.json5 +0 -96
- package/tokens/functional/border/dark.json5 +0 -12
- package/tokens/functional/border/light.json5 +0 -12
- package/tokens/functional/color/dark/ansi-dark.json5 +0 -74
- package/tokens/functional/color/dark/checks-dark.json5 +0 -289
- package/tokens/functional/color/dark/components-dark.json5 +0 -556
- package/tokens/functional/color/dark/diff-dark.json5 +0 -78
- package/tokens/functional/color/dark/marketing-dark.json5 +0 -24
- package/tokens/functional/color/dark/misc-dark.json5 +0 -38
- package/tokens/functional/color/dark/overrides/dark.dimmed.json5 +0 -17
- package/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +0 -276
- package/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +0 -50
- package/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +0 -49
- package/tokens/functional/color/dark/primitives-dark.json5 +0 -322
- package/tokens/functional/color/dark/syntax-dark.json5 +0 -208
- package/tokens/functional/color/light/ansi-light.json5 +0 -74
- package/tokens/functional/color/light/checks-light.json5 +0 -296
- package/tokens/functional/color/light/components-light.json5 +0 -469
- package/tokens/functional/color/light/diff-light.json5 +0 -76
- package/tokens/functional/color/light/marketing-light.json5 +0 -24
- package/tokens/functional/color/light/misc-light.json5 +0 -37
- package/tokens/functional/color/light/overrides/light.high-contrast.json5 +0 -332
- package/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +0 -92
- package/tokens/functional/color/light/overrides/light.tritanopia.json5 +0 -92
- package/tokens/functional/color/light/primitives-light.json5 +0 -313
- package/tokens/functional/color/light/syntax-light.json5 +0 -208
- package/tokens/functional/color/scales.json5 +0 -493
- package/tokens/functional/shadow/dark.json5 +0 -93
- package/tokens/functional/shadow/light.json5 +0 -100
package/dist/ts/colors/light.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/primitives",
|
|
3
|
-
"version": "7.11.0
|
|
3
|
+
"version": "7.11.0",
|
|
4
4
|
"description": "Typography, spacing, and color primitives for Primer design system",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -26,32 +26,33 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/primer/primitives#readme",
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "ts-node ./
|
|
30
|
-
"build:
|
|
29
|
+
"build": "ts-node ./scripts/build.ts && tsc --project tsconfig.build.json",
|
|
30
|
+
"build:v3": "ts-node -r tsconfig-paths/register ./scripts/buildV3.ts",
|
|
31
31
|
"build:tokens": "node -e \"require('./build')._init()\"",
|
|
32
|
-
"build:new-tokens": "npm run build:tokens && npm run build:
|
|
32
|
+
"build:new-tokens": "npm run build:tokens && npm run build:v3",
|
|
33
|
+
"contrast-check": "npx ts-node ./scripts/color-contrast.ts",
|
|
33
34
|
"format": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
|
|
34
35
|
"format:check": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
|
|
35
|
-
"install:
|
|
36
|
+
"install:docs": "cd docs && npm ci --legacy-peer-deps --no-audit --no-fund --include=dev",
|
|
37
|
+
"install:storybook": "cd docs/storybook && npm ci --legacy-peer-deps --no-audit --no-fund",
|
|
36
38
|
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --config .eslintrc.js",
|
|
37
39
|
"lint:fix": "eslint '**/*.{js,ts,tsx,md,mdx}' --fix --max-warnings=0 --config .eslintrc.js",
|
|
38
|
-
"postbuild": "ts-node ./
|
|
40
|
+
"postbuild": "ts-node ./scripts/color-contrast.ts",
|
|
39
41
|
"prebuild": "rm -rf dist",
|
|
40
42
|
"prebuild:tokens": "rm -rf tokens-v2-private",
|
|
41
|
-
"prebuild:
|
|
42
|
-
"prepack": "
|
|
43
|
-
"prepare": "husky install && npm run install:storybook",
|
|
43
|
+
"prebuild:v3": "rm -rf tokens-v3-private",
|
|
44
|
+
"prepack": "npm run build && npm run build:tokens",
|
|
45
|
+
"prepare": "husky install && npm run install:docs && npm run install:storybook",
|
|
44
46
|
"release": "changeset publish",
|
|
45
|
-
"start:storybook": "npm run build:
|
|
47
|
+
"start:storybook": "npm run build:v3 && cd docs/storybook && npm run storybook",
|
|
46
48
|
"test": "jest --verbose --coverage",
|
|
47
|
-
"watch": "ls data/**/*.scss
|
|
49
|
+
"watch": "ls data/**/*.scss scripts/**/*.ts | entr -s 'npm run build'"
|
|
48
50
|
},
|
|
49
51
|
"prettier": "@github/prettier-config",
|
|
50
52
|
"devDependencies": {
|
|
51
53
|
"@changesets/changelog-github": "^0.3.0",
|
|
52
54
|
"@changesets/cli": "^2.22.0",
|
|
53
55
|
"@github/prettier-config": "^0.0.6",
|
|
54
|
-
"@types/chalk": "^2.2.0",
|
|
55
56
|
"@types/flat": "^5.0.1",
|
|
56
57
|
"@types/fs-extra": "^9.0.13",
|
|
57
58
|
"@types/jest": "^29.1.2",
|
|
@@ -61,12 +62,12 @@
|
|
|
61
62
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
62
63
|
"@typescript-eslint/parser": "^5.45.0",
|
|
63
64
|
"camelcase-keys": "^6.2.2",
|
|
64
|
-
"chalk": "^4.1.0",
|
|
65
65
|
"color-blend": "^4.0.0",
|
|
66
66
|
"color2k": "^2.0.0",
|
|
67
67
|
"console-table-printer": "^2.11.1",
|
|
68
68
|
"deepmerge": "^4.2.2",
|
|
69
69
|
"eslint": "^8.12.0",
|
|
70
|
+
"eslint-config-prettier": "^8.6.0",
|
|
70
71
|
"eslint-import-resolver-typescript": "^2.7.0",
|
|
71
72
|
"eslint-plugin-github": "^4.3.6",
|
|
72
73
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
@@ -80,9 +81,9 @@
|
|
|
80
81
|
"jest": "29.3",
|
|
81
82
|
"json5": "^2.2.1",
|
|
82
83
|
"lodash": "^4.17.20",
|
|
83
|
-
"mkdirp": "^1.
|
|
84
|
+
"mkdirp": "^2.1.1",
|
|
84
85
|
"prettier": "^2.7.1",
|
|
85
|
-
"style-dictionary": "3.7.
|
|
86
|
+
"style-dictionary": "^3.7.2",
|
|
86
87
|
"ts-jest": "^29.0.3",
|
|
87
88
|
"ts-node": "^10.9.1",
|
|
88
89
|
"tsconfig-paths": "^4.1.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 09 Feb 2023 11:28:06 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export const PrimerFontStackSystem = "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'";
|