@abgov/design-tokens 1.0.4 → 1.0.5-dev.2
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/.github/workflows/publish.yml +13 -5
- package/.github/workflows/pull-request.yml +11 -5
- package/css/tokens.css +109 -87
- package/data/badge.json +98 -0
- package/data/button.json +1 -0
- package/data/global-ddi.json +512 -0
- package/index.spec.js +12 -0
- package/lib/design-tokens.js +45 -37
- package/package.json +1 -1
- package/scss/tokens.scss +109 -87
- package/data/tokens.json +0 -514
|
@@ -3,6 +3,7 @@ on:
|
|
|
3
3
|
push:
|
|
4
4
|
branches:
|
|
5
5
|
- main
|
|
6
|
+
- dev
|
|
6
7
|
|
|
7
8
|
# Allows you to run this workflow manually from the Actions tab
|
|
8
9
|
workflow_dispatch:
|
|
@@ -14,7 +15,7 @@ jobs:
|
|
|
14
15
|
permissions:
|
|
15
16
|
contents: write
|
|
16
17
|
packages: write
|
|
17
|
-
|
|
18
|
+
|
|
18
19
|
steps:
|
|
19
20
|
- name: Get Latest
|
|
20
21
|
uses: actions/checkout@v2
|
|
@@ -28,11 +29,11 @@ jobs:
|
|
|
28
29
|
uses: actions/setup-node@v3
|
|
29
30
|
with:
|
|
30
31
|
node-version: 16
|
|
31
|
-
registry-url:
|
|
32
|
-
scope:
|
|
32
|
+
registry-url: "https://registry.npmjs.org"
|
|
33
|
+
scope: "@abgov"
|
|
33
34
|
env:
|
|
34
35
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
35
|
-
|
|
36
|
+
|
|
36
37
|
- name: Install Dependencies
|
|
37
38
|
run: npm ci
|
|
38
39
|
|
|
@@ -40,10 +41,17 @@ jobs:
|
|
|
40
41
|
run: npm run build
|
|
41
42
|
|
|
42
43
|
- name: Test
|
|
43
|
-
run: npm run test
|
|
44
|
+
run: npm run test
|
|
44
45
|
|
|
45
46
|
- name: Semantic Release
|
|
46
47
|
uses: cycjimmy/semantic-release-action@v3.1.2
|
|
48
|
+
with:
|
|
49
|
+
semantic_version: 16
|
|
50
|
+
branches: |
|
|
51
|
+
[
|
|
52
|
+
"main",
|
|
53
|
+
{ name: "dev", prerelease: true }
|
|
54
|
+
]
|
|
47
55
|
env:
|
|
48
56
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
49
57
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -4,6 +4,7 @@ on:
|
|
|
4
4
|
pull_request:
|
|
5
5
|
branches:
|
|
6
6
|
- main
|
|
7
|
+
- dev
|
|
7
8
|
|
|
8
9
|
jobs:
|
|
9
10
|
build:
|
|
@@ -27,11 +28,16 @@ jobs:
|
|
|
27
28
|
run: npm run build
|
|
28
29
|
- name: Add auto-generated file
|
|
29
30
|
run: |
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
git
|
|
33
|
-
|
|
34
|
-
git
|
|
31
|
+
echo "Autobuild is currently disabled"
|
|
32
|
+
# npm run build
|
|
33
|
+
# git config user.email "build-bot@gov.ab.ca"
|
|
34
|
+
# git config user.name "Build Bot"
|
|
35
|
+
# PREVIOUS_MESSAGE="$(git log --format=%B -n 1)"
|
|
36
|
+
# CURRENT_BRANCH="$(git branch --show-current)"
|
|
37
|
+
# echo $(git branch)
|
|
38
|
+
# git add .
|
|
39
|
+
# git commit --amend -m "$PREVIOUS_MESSAGE"
|
|
40
|
+
# git push origin $CURRENT_BRANCH -f
|
|
35
41
|
- name: Semantic Release
|
|
36
42
|
uses: cycjimmy/semantic-release-action@v3.1.2
|
|
37
43
|
with:
|
package/css/tokens.css
CHANGED
|
@@ -1,93 +1,115 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 08 Nov 2022 19:45:27 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
25
|
-
--
|
|
26
|
-
--
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--
|
|
30
|
-
--
|
|
31
|
-
--
|
|
32
|
-
--
|
|
33
|
-
--
|
|
34
|
-
--
|
|
35
|
-
--
|
|
36
|
-
--
|
|
37
|
-
--
|
|
38
|
-
--
|
|
39
|
-
--
|
|
40
|
-
--
|
|
41
|
-
--
|
|
42
|
-
--
|
|
43
|
-
--
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
--
|
|
47
|
-
--
|
|
48
|
-
--
|
|
49
|
-
--
|
|
50
|
-
--
|
|
51
|
-
--
|
|
52
|
-
--
|
|
53
|
-
--
|
|
54
|
-
--
|
|
55
|
-
--
|
|
56
|
-
--
|
|
57
|
-
--
|
|
58
|
-
--
|
|
59
|
-
--
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
--
|
|
65
|
-
--
|
|
66
|
-
--
|
|
67
|
-
--
|
|
68
|
-
--
|
|
69
|
-
--
|
|
70
|
-
--
|
|
71
|
-
--
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--
|
|
75
|
-
--
|
|
76
|
-
--
|
|
77
|
-
--
|
|
78
|
-
--
|
|
79
|
-
--
|
|
80
|
-
--
|
|
81
|
-
--
|
|
82
|
-
--
|
|
83
|
-
--
|
|
84
|
-
--
|
|
85
|
-
--
|
|
86
|
-
--
|
|
87
|
-
--
|
|
88
|
-
--
|
|
89
|
-
--
|
|
90
|
-
--
|
|
91
|
-
--
|
|
92
|
-
--
|
|
7
|
+
--goa-information-background-colour: #f1f1f1;
|
|
8
|
+
--goa-information-text-colour: #005daa;
|
|
9
|
+
--goa-information-icon-colour: #005daa;
|
|
10
|
+
--goa-font-family: Acumin-pro-semi-condensed;
|
|
11
|
+
--goa-font-size: 0.875rem;
|
|
12
|
+
--goa-font-weight: 400;
|
|
13
|
+
--goa-important-background-colour: #feba35;
|
|
14
|
+
--goa-important-text-colour: #333333;
|
|
15
|
+
--goa-important-icon-colour: #333333;
|
|
16
|
+
--goa-padding-left: 0.5rem;
|
|
17
|
+
--goa-padding-right: 0.5rem;
|
|
18
|
+
--goa-padding-top: 0.25rem;
|
|
19
|
+
--goa-padding-bottom: 0.25rem;
|
|
20
|
+
--goa-icon-size: 1rem;
|
|
21
|
+
--goa-emergency-background-colour: #ec040b;
|
|
22
|
+
--goa-emergency-text-colour: #ffffff;
|
|
23
|
+
--goa-emergency-icon-colour: #ffffff;
|
|
24
|
+
--goa-success-background-colour: #00853f;
|
|
25
|
+
--goa-success-text-colour: #ffffff;
|
|
26
|
+
--goa-success-icon-colour: #ffffff;
|
|
27
|
+
--goa-space-between: 0.25rem;
|
|
28
|
+
--goa-border-radius: 0.25rem;
|
|
29
|
+
--goa-color-brand-default: #0081a2;
|
|
30
|
+
--goa-color-brand-dark: #005072;
|
|
31
|
+
--goa-color-brand-light: #c8eefa;
|
|
32
|
+
--goa-color-interactive-default: #0070c4;
|
|
33
|
+
--goa-color-interactive-hover: #004f84;
|
|
34
|
+
--goa-color-interactive-error: #ec040b;
|
|
35
|
+
--goa-color-interactive-focus: #feba35;
|
|
36
|
+
--goa-color-text-default: #333333;
|
|
37
|
+
--goa-color-text-secondary: #666666;
|
|
38
|
+
--goa-color-text-light: #ffffff;
|
|
39
|
+
--goa-color-status-info-default: #005daa;
|
|
40
|
+
--goa-color-status-info-light: #b2d4ed;
|
|
41
|
+
--goa-color-status-info-dark: #00347a;
|
|
42
|
+
--goa-color-status-warning-default: #feba35;
|
|
43
|
+
--goa-color-status-warning-light: #fcefd0;
|
|
44
|
+
--goa-color-status-warning-dark: #c68a00;
|
|
45
|
+
--goa-color-status-emergency-default: #ec040b;
|
|
46
|
+
--goa-color-status-emergency-light: #ffcecf;
|
|
47
|
+
--goa-color-status-emergency-dark: #b00000;
|
|
48
|
+
--goa-color-status-success-default: #00853f;
|
|
49
|
+
--goa-color-status-success-light: #c6e0d0;
|
|
50
|
+
--goa-color-status-success-dark: #005715;
|
|
51
|
+
--goa-color-greyscale-100: #f1f1f1;
|
|
52
|
+
--goa-color-greyscale-200: #dcdcdc;
|
|
53
|
+
--goa-color-greyscale-400: #adadad;
|
|
54
|
+
--goa-color-greyscale-500: #949494;
|
|
55
|
+
--goa-color-greyscale-600: #666666;
|
|
56
|
+
--goa-color-greyscale-black: #333333;
|
|
57
|
+
--goa-color-greyscale-white: #ffffff;
|
|
58
|
+
--goa-font-weight-regular: 400;
|
|
59
|
+
--goa-font-weight-medium: 500;
|
|
60
|
+
--goa-font-weight-bold: 700;
|
|
61
|
+
--goa-font-size-1: 0.75rem;
|
|
62
|
+
--goa-font-size-2: 0.875rem;
|
|
63
|
+
--goa-font-size-3: 1rem;
|
|
64
|
+
--goa-font-size-4: 1.125rem;
|
|
65
|
+
--goa-font-size-5: 1.25rem;
|
|
66
|
+
--goa-font-size-6: 1.375rem;
|
|
67
|
+
--goa-font-size-7: 1.5rem;
|
|
68
|
+
--goa-font-size-8: 2rem;
|
|
69
|
+
--goa-font-size-9: 2.25rem;
|
|
70
|
+
--goa-font-size-10: 3rem;
|
|
71
|
+
--goa-spacing-none: 0rem;
|
|
72
|
+
--goa-spacing-3xs: 0.125rem;
|
|
73
|
+
--goa-spacing-2xs: 0.25rem;
|
|
74
|
+
--goa-spacing-xs: 0.5rem;
|
|
75
|
+
--goa-spacing-s: 0.75rem;
|
|
76
|
+
--goa-spacing-m: 1rem;
|
|
77
|
+
--goa-spacing-l: 1.5rem;
|
|
78
|
+
--goa-spacing-xl: 2rem;
|
|
79
|
+
--goa-spacing-2xl: 3rem;
|
|
80
|
+
--goa-spacing-3xl: 4rem;
|
|
81
|
+
--goa-spacing-4xl: 8rem;
|
|
82
|
+
--goa-border-radius-0: 0rem;
|
|
83
|
+
--goa-border-radius-4: 0.25rem;
|
|
84
|
+
--goa-border-radius-pill: 999px;
|
|
85
|
+
--goa-border-radius-circle: 50%;
|
|
86
|
+
--goa-opacity-3: 30%;
|
|
87
|
+
--goa-opacity-5: 50%;
|
|
88
|
+
--goa-opacity-8: 80%;
|
|
89
|
+
--goa-line-height-1: 1.25rem;
|
|
90
|
+
--goa-line-height-2: 1.5rem;
|
|
91
|
+
--goa-line-height-3: 1.75rem;
|
|
92
|
+
--goa-line-height-4: 2rem;
|
|
93
|
+
--goa-line-height-5: 2.5rem;
|
|
94
|
+
--goa-line-height-6: 2.75rem;
|
|
95
|
+
--goa-line-height-7: 3.5rem;
|
|
96
|
+
--goa-font-families-default: Acumin-pro-semi-condensed;
|
|
97
|
+
--goa-font-families-numbers: roboto-mono;
|
|
98
|
+
--goa-typography-heading-xl: 700 3rem/3.5rem Acumin-pro-semi-condensed;
|
|
99
|
+
--goa-typography-heading-l: 400 2.25rem/2.75rem Acumin-pro-semi-condensed;
|
|
100
|
+
--goa-typography-heading-m: 400 1.5rem/2rem Acumin-pro-semi-condensed;
|
|
101
|
+
--goa-typography-heading-s: 700 1.125rem/1.75rem Acumin-pro-semi-condensed;
|
|
102
|
+
--goa-typography-heading-xs: 700 1rem/1.5rem Acumin-pro-semi-condensed;
|
|
103
|
+
--goa-typography-body-l: 400 1.5rem/2rem Acumin-pro-semi-condensed;
|
|
104
|
+
--goa-typography-body-m: 400 1.125rem/1.75rem Acumin-pro-semi-condensed;
|
|
105
|
+
--goa-typography-body-s: 400 1rem/1.5rem Acumin-pro-semi-condensed;
|
|
106
|
+
--goa-typography-body-xs: 400 0.875rem/1.25rem Acumin-pro-semi-condensed;
|
|
107
|
+
--goa-typography-button-default: 400 1.125rem/1.25rem Acumin-pro-semi-condensed;
|
|
108
|
+
--goa-border-width-s: 1px;
|
|
109
|
+
--goa-border-width-m: 2px;
|
|
110
|
+
--goa-border-width-l: 3px;
|
|
111
|
+
--goa-letter-spacing-buttons: 1%;
|
|
112
|
+
--goa-icon-size-s: 1rem;
|
|
113
|
+
--goa-icon-size-m: 1.25rem;
|
|
114
|
+
--goa-icon-size-l: 1.5rem;
|
|
93
115
|
}
|
package/data/badge.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"information": {
|
|
3
|
+
"background-colour": {
|
|
4
|
+
"value": "{color.greyscale.100}",
|
|
5
|
+
"type": "color"
|
|
6
|
+
},
|
|
7
|
+
"text-colour": {
|
|
8
|
+
"value": "{color.status.info.default}",
|
|
9
|
+
"type": "color"
|
|
10
|
+
},
|
|
11
|
+
"icon-colour": {
|
|
12
|
+
"value": "{color.status.info.default}",
|
|
13
|
+
"type": "color"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"font-family": {
|
|
17
|
+
"value": "{fontFamilies.default}",
|
|
18
|
+
"type": "fontFamilies"
|
|
19
|
+
},
|
|
20
|
+
"font-size": {
|
|
21
|
+
"value": "{fontSize.2}",
|
|
22
|
+
"type": "fontSizes"
|
|
23
|
+
},
|
|
24
|
+
"font-weight": {
|
|
25
|
+
"value": "{fontWeight.regular}",
|
|
26
|
+
"type": "fontWeights"
|
|
27
|
+
},
|
|
28
|
+
"important": {
|
|
29
|
+
"background-colour": {
|
|
30
|
+
"value": "{color.status.warning.default}",
|
|
31
|
+
"type": "color"
|
|
32
|
+
},
|
|
33
|
+
"text-colour": {
|
|
34
|
+
"value": "{color.text.default}",
|
|
35
|
+
"type": "color"
|
|
36
|
+
},
|
|
37
|
+
"icon-colour": {
|
|
38
|
+
"value": "{color.greyscale.black}",
|
|
39
|
+
"type": "color"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"padding-left": {
|
|
43
|
+
"value": "{spacing.xs}",
|
|
44
|
+
"type": "spacing"
|
|
45
|
+
},
|
|
46
|
+
"padding-right": {
|
|
47
|
+
"value": "{spacing.xs}",
|
|
48
|
+
"type": "spacing"
|
|
49
|
+
},
|
|
50
|
+
"padding-top": {
|
|
51
|
+
"value": "{spacing.2xs}",
|
|
52
|
+
"type": "spacing"
|
|
53
|
+
},
|
|
54
|
+
"padding-bottom": {
|
|
55
|
+
"value": "{spacing.2xs}",
|
|
56
|
+
"type": "spacing"
|
|
57
|
+
},
|
|
58
|
+
"icon-size": {
|
|
59
|
+
"value": "{iconSize.s}",
|
|
60
|
+
"type": "sizing"
|
|
61
|
+
},
|
|
62
|
+
"emergency": {
|
|
63
|
+
"background-colour": {
|
|
64
|
+
"value": "{color.status.emergency.default}",
|
|
65
|
+
"type": "color"
|
|
66
|
+
},
|
|
67
|
+
"text-colour": {
|
|
68
|
+
"value": "{color.text.light}",
|
|
69
|
+
"type": "color"
|
|
70
|
+
},
|
|
71
|
+
"icon-colour": {
|
|
72
|
+
"value": "{color.greyscale.white}",
|
|
73
|
+
"type": "color"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"success": {
|
|
77
|
+
"background-colour": {
|
|
78
|
+
"value": "{color.status.success.default}",
|
|
79
|
+
"type": "color"
|
|
80
|
+
},
|
|
81
|
+
"text-colour": {
|
|
82
|
+
"value": "{color.text.light}",
|
|
83
|
+
"type": "color"
|
|
84
|
+
},
|
|
85
|
+
"icon-colour": {
|
|
86
|
+
"value": "{color.greyscale.white}",
|
|
87
|
+
"type": "color"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"space-between": {
|
|
91
|
+
"value": "{spacing.2xs}",
|
|
92
|
+
"type": "spacing"
|
|
93
|
+
},
|
|
94
|
+
"border-radius": {
|
|
95
|
+
"value": "{borderRadius.4}",
|
|
96
|
+
"type": "borderRadius"
|
|
97
|
+
}
|
|
98
|
+
}
|
package/data/button.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|