@abgov/design-tokens 1.0.4 → 1.0.5-dev.1
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 +87 -87
- package/index.spec.js +12 -0
- package/lib/design-tokens.js +45 -37
- package/package.json +1 -1
- package/scss/tokens.scss +87 -87
|
@@ -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,93 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 08 Nov 2022 16:31:11 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
|
-
--colour-brand-default: #0081A2;
|
|
8
|
-
--colour-brand-dark: #005072;
|
|
9
|
-
--colour-brand-light: #C8EEFA;
|
|
10
|
-
--colour-interactive-default: #0070C4;
|
|
11
|
-
--colour-interactive-hover: #004F84;
|
|
12
|
-
--colour-interactive-error: #EC040B;
|
|
13
|
-
--colour-interactive-focus: #FEBA35;
|
|
14
|
-
--colour-text-default: #333333;
|
|
15
|
-
--colour-text-secondary: #666666;
|
|
16
|
-
--colour-text-light: #FFFFFF;
|
|
17
|
-
--colour-status-info-default: #005DAA;
|
|
18
|
-
--colour-status-info-light: #B2D4ED;
|
|
19
|
-
--colour-status-info-dark: #00347A;
|
|
20
|
-
--colour-status-warning-default: #FEBA35;
|
|
21
|
-
--colour-status-warning-light: #FCEFD0;
|
|
22
|
-
--colour-status-warning-dark: #C68A00;
|
|
23
|
-
--colour-status-emergency-default: #EC040B;
|
|
24
|
-
--colour-status-emergency-light: #FFCECF;
|
|
25
|
-
--colour-status-emergency-dark: #B00000;
|
|
26
|
-
--colour-status-success-default: #00853F;
|
|
27
|
-
--colour-status-success-light: #C6E0D0;
|
|
28
|
-
--colour-status-success-dark: #005715;
|
|
29
|
-
--colour-greyscale-100: #F1F1F1;
|
|
30
|
-
--colour-greyscale-200: #DCDCDC;
|
|
31
|
-
--colour-greyscale-400: #ADADAD;
|
|
32
|
-
--colour-greyscale-500: #949494;
|
|
33
|
-
--colour-greyscale-600: #666666;
|
|
34
|
-
--colour-greyscale-black: #333333;
|
|
35
|
-
--colour-greyscale-white: #FFFFFF;
|
|
36
|
-
--font-weight-regular: 400;
|
|
37
|
-
--font-weight-medium: 500;
|
|
38
|
-
--font-weight-bold: 700;
|
|
39
|
-
--font-size-1: 0.75rem;
|
|
40
|
-
--font-size-2: 0.875rem;
|
|
41
|
-
--font-size-3: 1rem;
|
|
42
|
-
--font-size-4: 1.125rem;
|
|
43
|
-
--font-size-5: 1.25rem;
|
|
44
|
-
--font-size-6: 1.375rem;
|
|
45
|
-
--font-size-7: 1.5rem;
|
|
46
|
-
--font-size-8: 2rem;
|
|
47
|
-
--font-size-9: 2.25rem;
|
|
48
|
-
--font-size-10: 3rem;
|
|
49
|
-
--spacing-none: 0rem;
|
|
50
|
-
--spacing-3xs: 0.125rem;
|
|
51
|
-
--spacing-2xs: 0.25rem;
|
|
52
|
-
--spacing-xs: 0.5rem;
|
|
53
|
-
--spacing-s: 0.75rem;
|
|
54
|
-
--spacing-m: 1rem;
|
|
55
|
-
--spacing-l: 1.5rem;
|
|
56
|
-
--spacing-xl: 2rem;
|
|
57
|
-
--spacing-2xl: 3rem;
|
|
58
|
-
--spacing-3xl: 4rem;
|
|
59
|
-
--spacing-4xl: 8rem;
|
|
60
|
-
--border-radius-0: 0;
|
|
61
|
-
--border-radius-4: 4;
|
|
62
|
-
--border-radius-pill: 999px;
|
|
63
|
-
--border-radius-circle: 50%;
|
|
64
|
-
--opacity-3: 30%;
|
|
65
|
-
--opacity-5: 50%;
|
|
66
|
-
--opacity-8: 80%;
|
|
67
|
-
--line-height-1: 1.25rem;
|
|
68
|
-
--line-height-2: 1.5rem;
|
|
69
|
-
--line-height-3: 1.75rem;
|
|
70
|
-
--line-height-4: 2rem;
|
|
71
|
-
--line-height-5: 2.5rem;
|
|
72
|
-
--line-height-6: 2.75rem;
|
|
73
|
-
--line-height-7: 3.5rem;
|
|
74
|
-
--font-families-default: Acumin-pro-semi-condensed;
|
|
75
|
-
--font-families-numbers: roboto-mono;
|
|
76
|
-
--typography-heading-xl:
|
|
77
|
-
--typography-heading-l:
|
|
78
|
-
--typography-heading-m:
|
|
79
|
-
--typography-heading-s:
|
|
80
|
-
--typography-heading-xs:
|
|
81
|
-
--typography-body-l:
|
|
82
|
-
--typography-body-m:
|
|
83
|
-
--typography-body-s:
|
|
84
|
-
--typography-body-xs:
|
|
85
|
-
--typography-button-default:
|
|
86
|
-
--border-width-s: 1;
|
|
87
|
-
--border-width-m: 2;
|
|
88
|
-
--border-width-l: 3;
|
|
89
|
-
--letter-spacing-buttons: 1%;
|
|
90
|
-
--icon-size-s: 1rem;
|
|
91
|
-
--icon-size-m: 1.25rem;
|
|
92
|
-
--icon-size-l: 1.5rem;
|
|
7
|
+
--goa-colour-brand-default: #0081A2;
|
|
8
|
+
--goa-colour-brand-dark: #005072;
|
|
9
|
+
--goa-colour-brand-light: #C8EEFA;
|
|
10
|
+
--goa-colour-interactive-default: #0070C4;
|
|
11
|
+
--goa-colour-interactive-hover: #004F84;
|
|
12
|
+
--goa-colour-interactive-error: #EC040B;
|
|
13
|
+
--goa-colour-interactive-focus: #FEBA35;
|
|
14
|
+
--goa-colour-text-default: #333333;
|
|
15
|
+
--goa-colour-text-secondary: #666666;
|
|
16
|
+
--goa-colour-text-light: #FFFFFF;
|
|
17
|
+
--goa-colour-status-info-default: #005DAA;
|
|
18
|
+
--goa-colour-status-info-light: #B2D4ED;
|
|
19
|
+
--goa-colour-status-info-dark: #00347A;
|
|
20
|
+
--goa-colour-status-warning-default: #FEBA35;
|
|
21
|
+
--goa-colour-status-warning-light: #FCEFD0;
|
|
22
|
+
--goa-colour-status-warning-dark: #C68A00;
|
|
23
|
+
--goa-colour-status-emergency-default: #EC040B;
|
|
24
|
+
--goa-colour-status-emergency-light: #FFCECF;
|
|
25
|
+
--goa-colour-status-emergency-dark: #B00000;
|
|
26
|
+
--goa-colour-status-success-default: #00853F;
|
|
27
|
+
--goa-colour-status-success-light: #C6E0D0;
|
|
28
|
+
--goa-colour-status-success-dark: #005715;
|
|
29
|
+
--goa-colour-greyscale-100: #F1F1F1;
|
|
30
|
+
--goa-colour-greyscale-200: #DCDCDC;
|
|
31
|
+
--goa-colour-greyscale-400: #ADADAD;
|
|
32
|
+
--goa-colour-greyscale-500: #949494;
|
|
33
|
+
--goa-colour-greyscale-600: #666666;
|
|
34
|
+
--goa-colour-greyscale-black: #333333;
|
|
35
|
+
--goa-colour-greyscale-white: #FFFFFF;
|
|
36
|
+
--goa-font-weight-regular: 400;
|
|
37
|
+
--goa-font-weight-medium: 500;
|
|
38
|
+
--goa-font-weight-bold: 700;
|
|
39
|
+
--goa-font-size-1: 0.75rem;
|
|
40
|
+
--goa-font-size-2: 0.875rem;
|
|
41
|
+
--goa-font-size-3: 1rem;
|
|
42
|
+
--goa-font-size-4: 1.125rem;
|
|
43
|
+
--goa-font-size-5: 1.25rem;
|
|
44
|
+
--goa-font-size-6: 1.375rem;
|
|
45
|
+
--goa-font-size-7: 1.5rem;
|
|
46
|
+
--goa-font-size-8: 2rem;
|
|
47
|
+
--goa-font-size-9: 2.25rem;
|
|
48
|
+
--goa-font-size-10: 3rem;
|
|
49
|
+
--goa-spacing-none: 0rem;
|
|
50
|
+
--goa-spacing-3xs: 0.125rem;
|
|
51
|
+
--goa-spacing-2xs: 0.25rem;
|
|
52
|
+
--goa-spacing-xs: 0.5rem;
|
|
53
|
+
--goa-spacing-s: 0.75rem;
|
|
54
|
+
--goa-spacing-m: 1rem;
|
|
55
|
+
--goa-spacing-l: 1.5rem;
|
|
56
|
+
--goa-spacing-xl: 2rem;
|
|
57
|
+
--goa-spacing-2xl: 3rem;
|
|
58
|
+
--goa-spacing-3xl: 4rem;
|
|
59
|
+
--goa-spacing-4xl: 8rem;
|
|
60
|
+
--goa-border-radius-0: 0;
|
|
61
|
+
--goa-border-radius-4: 4;
|
|
62
|
+
--goa-border-radius-pill: 999px;
|
|
63
|
+
--goa-border-radius-circle: 50%;
|
|
64
|
+
--goa-opacity-3: 30%;
|
|
65
|
+
--goa-opacity-5: 50%;
|
|
66
|
+
--goa-opacity-8: 80%;
|
|
67
|
+
--goa-line-height-1: 1.25rem;
|
|
68
|
+
--goa-line-height-2: 1.5rem;
|
|
69
|
+
--goa-line-height-3: 1.75rem;
|
|
70
|
+
--goa-line-height-4: 2rem;
|
|
71
|
+
--goa-line-height-5: 2.5rem;
|
|
72
|
+
--goa-line-height-6: 2.75rem;
|
|
73
|
+
--goa-line-height-7: 3.5rem;
|
|
74
|
+
--goa-font-families-default: Acumin-pro-semi-condensed;
|
|
75
|
+
--goa-font-families-numbers: roboto-mono;
|
|
76
|
+
--goa-typography-heading-xl: 700 3rem/3.5rem Acumin-pro-semi-condensed;
|
|
77
|
+
--goa-typography-heading-l: 400 2.25rem/2.75rem Acumin-pro-semi-condensed;
|
|
78
|
+
--goa-typography-heading-m: 400 1.5rem/2rem Acumin-pro-semi-condensed;
|
|
79
|
+
--goa-typography-heading-s: 700 1.125rem/1.75rem Acumin-pro-semi-condensed;
|
|
80
|
+
--goa-typography-heading-xs: 700 1rem/1.5rem Acumin-pro-semi-condensed;
|
|
81
|
+
--goa-typography-body-l: 400 1.5rem/2rem Acumin-pro-semi-condensed;
|
|
82
|
+
--goa-typography-body-m: 400 1.125rem/1.75rem Acumin-pro-semi-condensed;
|
|
83
|
+
--goa-typography-body-s: 400 1rem/1.5rem Acumin-pro-semi-condensed;
|
|
84
|
+
--goa-typography-body-xs: 400 0.875rem/1.25rem Acumin-pro-semi-condensed;
|
|
85
|
+
--goa-typography-button-default: 400 1.125rem/1.25rem Acumin-pro-semi-condensed;
|
|
86
|
+
--goa-border-width-s: 1;
|
|
87
|
+
--goa-border-width-m: 2;
|
|
88
|
+
--goa-border-width-l: 3;
|
|
89
|
+
--goa-letter-spacing-buttons: 1%;
|
|
90
|
+
--goa-icon-size-s: 1rem;
|
|
91
|
+
--goa-icon-size-m: 1.25rem;
|
|
92
|
+
--goa-icon-size-l: 1.5rem;
|
|
93
93
|
}
|
package/index.spec.js
CHANGED
|
@@ -5,6 +5,7 @@ const fs = require("fs");
|
|
|
5
5
|
describe("GoA Design Tokens", () => {
|
|
6
6
|
beforeEach((next) => {
|
|
7
7
|
rm("./tmp", next);
|
|
8
|
+
console.log = () => { }; // one of the libs has some console.log statements
|
|
8
9
|
});
|
|
9
10
|
|
|
10
11
|
it("should create css and scss files", async () => {
|
|
@@ -20,4 +21,15 @@ describe("GoA Design Tokens", () => {
|
|
|
20
21
|
expect(files[0]).toBe(`tokens.${dir}`);
|
|
21
22
|
}
|
|
22
23
|
});
|
|
24
|
+
|
|
25
|
+
it("should create valid css output", async () => {
|
|
26
|
+
SC.generate("./tmp");
|
|
27
|
+
const raw = fs.readFileSync("./tmp/css/tokens.css", { encoding: "utf8" });
|
|
28
|
+
expect(raw).toContain("--goa-colour-brand-default");
|
|
29
|
+
});
|
|
30
|
+
it("should create valid scss output", async () => {
|
|
31
|
+
SC.generate("./tmp");
|
|
32
|
+
const raw = fs.readFileSync("./tmp/scss/tokens.scss", { encoding: "utf8" });
|
|
33
|
+
expect(raw).toContain("$goa-colour-brand-default");
|
|
34
|
+
});
|
|
23
35
|
});
|
package/lib/design-tokens.js
CHANGED
|
@@ -1,46 +1,54 @@
|
|
|
1
1
|
const StyleDictionary = require("style-dictionary");
|
|
2
|
-
const fs = require("fs");
|
|
3
2
|
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
css: {
|
|
20
|
-
transformGroup: "css",
|
|
21
|
-
buildPath: `${root}/css/`,
|
|
22
|
-
files: [
|
|
23
|
-
{
|
|
24
|
-
destination: `${name}.css`,
|
|
25
|
-
format: "css/variables",
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
},
|
|
3
|
+
function generate(outputPath) {
|
|
4
|
+
StyleDictionary.registerTransform({
|
|
5
|
+
name: "typography/shorthand",
|
|
6
|
+
type: "value",
|
|
7
|
+
transitive: true,
|
|
8
|
+
matcher: function(token) {
|
|
9
|
+
return token.type === "typography";
|
|
10
|
+
},
|
|
11
|
+
transformer: function(token) {
|
|
12
|
+
const { fontWeight, fontSize, lineHeight, fontFamily } =
|
|
13
|
+
token.original.value;
|
|
14
|
+
return `${fontWeight} ${fontSize}/${lineHeight} ${fontFamily}`;
|
|
29
15
|
},
|
|
30
16
|
});
|
|
31
|
-
}
|
|
32
17
|
|
|
33
|
-
function getFiles() {
|
|
34
|
-
return fs.readdirSync("./data");
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function generate(root) {
|
|
38
18
|
try {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
19
|
+
StyleDictionary.extend({
|
|
20
|
+
source: [`./data/**/*.json`],
|
|
21
|
+
platforms: {
|
|
22
|
+
scss: {
|
|
23
|
+
prefix: "goa",
|
|
24
|
+
transforms: [
|
|
25
|
+
...StyleDictionary.transformGroup.scss,
|
|
26
|
+
"typography/shorthand",
|
|
27
|
+
],
|
|
28
|
+
buildPath: `${outputPath}/scss/`,
|
|
29
|
+
files: [
|
|
30
|
+
{
|
|
31
|
+
destination: "tokens.scss",
|
|
32
|
+
format: "scss/variables",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
css: {
|
|
37
|
+
prefix: "goa",
|
|
38
|
+
transforms: [
|
|
39
|
+
...StyleDictionary.transformGroup.css,
|
|
40
|
+
"typography/shorthand",
|
|
41
|
+
],
|
|
42
|
+
buildPath: `${outputPath}/css/`,
|
|
43
|
+
files: [
|
|
44
|
+
{
|
|
45
|
+
destination: "tokens.css",
|
|
46
|
+
format: "css/variables",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
}).buildAllPlatforms();
|
|
44
52
|
} catch (e) {
|
|
45
53
|
console.error("ERROR", e.message);
|
|
46
54
|
}
|
package/package.json
CHANGED
package/scss/tokens.scss
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
|
|
2
2
|
// Do not edit directly
|
|
3
|
-
// Generated on Tue,
|
|
3
|
+
// Generated on Tue, 08 Nov 2022 16:31:11 GMT
|
|
4
4
|
|
|
5
|
-
$colour-brand-default: #0081A2;
|
|
6
|
-
$colour-brand-dark: #005072;
|
|
7
|
-
$colour-brand-light: #C8EEFA;
|
|
8
|
-
$colour-interactive-default: #0070C4;
|
|
9
|
-
$colour-interactive-hover: #004F84;
|
|
10
|
-
$colour-interactive-error: #EC040B;
|
|
11
|
-
$colour-interactive-focus: #FEBA35;
|
|
12
|
-
$colour-text-default: #333333;
|
|
13
|
-
$colour-text-secondary: #666666;
|
|
14
|
-
$colour-text-light: #FFFFFF;
|
|
15
|
-
$colour-status-info-default: #005DAA;
|
|
16
|
-
$colour-status-info-light: #B2D4ED;
|
|
17
|
-
$colour-status-info-dark: #00347A;
|
|
18
|
-
$colour-status-warning-default: #FEBA35;
|
|
19
|
-
$colour-status-warning-light: #FCEFD0;
|
|
20
|
-
$colour-status-warning-dark: #C68A00;
|
|
21
|
-
$colour-status-emergency-default: #EC040B;
|
|
22
|
-
$colour-status-emergency-light: #FFCECF;
|
|
23
|
-
$colour-status-emergency-dark: #B00000;
|
|
24
|
-
$colour-status-success-default: #00853F;
|
|
25
|
-
$colour-status-success-light: #C6E0D0;
|
|
26
|
-
$colour-status-success-dark: #005715;
|
|
27
|
-
$colour-greyscale-100: #F1F1F1;
|
|
28
|
-
$colour-greyscale-200: #DCDCDC;
|
|
29
|
-
$colour-greyscale-400: #ADADAD;
|
|
30
|
-
$colour-greyscale-500: #949494;
|
|
31
|
-
$colour-greyscale-600: #666666;
|
|
32
|
-
$colour-greyscale-black: #333333;
|
|
33
|
-
$colour-greyscale-white: #FFFFFF;
|
|
34
|
-
$font-weight-regular: 400;
|
|
35
|
-
$font-weight-medium: 500;
|
|
36
|
-
$font-weight-bold: 700;
|
|
37
|
-
$font-size-1: 0.75rem;
|
|
38
|
-
$font-size-2: 0.875rem;
|
|
39
|
-
$font-size-3: 1rem;
|
|
40
|
-
$font-size-4: 1.125rem;
|
|
41
|
-
$font-size-5: 1.25rem;
|
|
42
|
-
$font-size-6: 1.375rem;
|
|
43
|
-
$font-size-7: 1.5rem;
|
|
44
|
-
$font-size-8: 2rem;
|
|
45
|
-
$font-size-9: 2.25rem;
|
|
46
|
-
$font-size-10: 3rem;
|
|
47
|
-
$spacing-none: 0rem;
|
|
48
|
-
$spacing-3xs: 0.125rem;
|
|
49
|
-
$spacing-2xs: 0.25rem;
|
|
50
|
-
$spacing-xs: 0.5rem;
|
|
51
|
-
$spacing-s: 0.75rem;
|
|
52
|
-
$spacing-m: 1rem;
|
|
53
|
-
$spacing-l: 1.5rem;
|
|
54
|
-
$spacing-xl: 2rem;
|
|
55
|
-
$spacing-2xl: 3rem;
|
|
56
|
-
$spacing-3xl: 4rem;
|
|
57
|
-
$spacing-4xl: 8rem;
|
|
58
|
-
$border-radius-0: 0;
|
|
59
|
-
$border-radius-4: 4;
|
|
60
|
-
$border-radius-pill: 999px;
|
|
61
|
-
$border-radius-circle: 50%;
|
|
62
|
-
$opacity-3: 30%;
|
|
63
|
-
$opacity-5: 50%;
|
|
64
|
-
$opacity-8: 80%;
|
|
65
|
-
$line-height-1: 1.25rem;
|
|
66
|
-
$line-height-2: 1.5rem;
|
|
67
|
-
$line-height-3: 1.75rem;
|
|
68
|
-
$line-height-4: 2rem;
|
|
69
|
-
$line-height-5: 2.5rem;
|
|
70
|
-
$line-height-6: 2.75rem;
|
|
71
|
-
$line-height-7: 3.5rem;
|
|
72
|
-
$font-families-default: Acumin-pro-semi-condensed;
|
|
73
|
-
$font-families-numbers: roboto-mono;
|
|
74
|
-
$typography-heading-xl:
|
|
75
|
-
$typography-heading-l:
|
|
76
|
-
$typography-heading-m:
|
|
77
|
-
$typography-heading-s:
|
|
78
|
-
$typography-heading-xs:
|
|
79
|
-
$typography-body-l:
|
|
80
|
-
$typography-body-m:
|
|
81
|
-
$typography-body-s:
|
|
82
|
-
$typography-body-xs:
|
|
83
|
-
$typography-button-default:
|
|
84
|
-
$border-width-s: 1;
|
|
85
|
-
$border-width-m: 2;
|
|
86
|
-
$border-width-l: 3;
|
|
87
|
-
$letter-spacing-buttons: 1%;
|
|
88
|
-
$icon-size-s: 1rem;
|
|
89
|
-
$icon-size-m: 1.25rem;
|
|
90
|
-
$icon-size-l: 1.5rem;
|
|
5
|
+
$goa-colour-brand-default: #0081A2;
|
|
6
|
+
$goa-colour-brand-dark: #005072;
|
|
7
|
+
$goa-colour-brand-light: #C8EEFA;
|
|
8
|
+
$goa-colour-interactive-default: #0070C4;
|
|
9
|
+
$goa-colour-interactive-hover: #004F84;
|
|
10
|
+
$goa-colour-interactive-error: #EC040B;
|
|
11
|
+
$goa-colour-interactive-focus: #FEBA35;
|
|
12
|
+
$goa-colour-text-default: #333333;
|
|
13
|
+
$goa-colour-text-secondary: #666666;
|
|
14
|
+
$goa-colour-text-light: #FFFFFF;
|
|
15
|
+
$goa-colour-status-info-default: #005DAA;
|
|
16
|
+
$goa-colour-status-info-light: #B2D4ED;
|
|
17
|
+
$goa-colour-status-info-dark: #00347A;
|
|
18
|
+
$goa-colour-status-warning-default: #FEBA35;
|
|
19
|
+
$goa-colour-status-warning-light: #FCEFD0;
|
|
20
|
+
$goa-colour-status-warning-dark: #C68A00;
|
|
21
|
+
$goa-colour-status-emergency-default: #EC040B;
|
|
22
|
+
$goa-colour-status-emergency-light: #FFCECF;
|
|
23
|
+
$goa-colour-status-emergency-dark: #B00000;
|
|
24
|
+
$goa-colour-status-success-default: #00853F;
|
|
25
|
+
$goa-colour-status-success-light: #C6E0D0;
|
|
26
|
+
$goa-colour-status-success-dark: #005715;
|
|
27
|
+
$goa-colour-greyscale-100: #F1F1F1;
|
|
28
|
+
$goa-colour-greyscale-200: #DCDCDC;
|
|
29
|
+
$goa-colour-greyscale-400: #ADADAD;
|
|
30
|
+
$goa-colour-greyscale-500: #949494;
|
|
31
|
+
$goa-colour-greyscale-600: #666666;
|
|
32
|
+
$goa-colour-greyscale-black: #333333;
|
|
33
|
+
$goa-colour-greyscale-white: #FFFFFF;
|
|
34
|
+
$goa-font-weight-regular: 400;
|
|
35
|
+
$goa-font-weight-medium: 500;
|
|
36
|
+
$goa-font-weight-bold: 700;
|
|
37
|
+
$goa-font-size-1: 0.75rem;
|
|
38
|
+
$goa-font-size-2: 0.875rem;
|
|
39
|
+
$goa-font-size-3: 1rem;
|
|
40
|
+
$goa-font-size-4: 1.125rem;
|
|
41
|
+
$goa-font-size-5: 1.25rem;
|
|
42
|
+
$goa-font-size-6: 1.375rem;
|
|
43
|
+
$goa-font-size-7: 1.5rem;
|
|
44
|
+
$goa-font-size-8: 2rem;
|
|
45
|
+
$goa-font-size-9: 2.25rem;
|
|
46
|
+
$goa-font-size-10: 3rem;
|
|
47
|
+
$goa-spacing-none: 0rem;
|
|
48
|
+
$goa-spacing-3xs: 0.125rem;
|
|
49
|
+
$goa-spacing-2xs: 0.25rem;
|
|
50
|
+
$goa-spacing-xs: 0.5rem;
|
|
51
|
+
$goa-spacing-s: 0.75rem;
|
|
52
|
+
$goa-spacing-m: 1rem;
|
|
53
|
+
$goa-spacing-l: 1.5rem;
|
|
54
|
+
$goa-spacing-xl: 2rem;
|
|
55
|
+
$goa-spacing-2xl: 3rem;
|
|
56
|
+
$goa-spacing-3xl: 4rem;
|
|
57
|
+
$goa-spacing-4xl: 8rem;
|
|
58
|
+
$goa-border-radius-0: 0;
|
|
59
|
+
$goa-border-radius-4: 4;
|
|
60
|
+
$goa-border-radius-pill: 999px;
|
|
61
|
+
$goa-border-radius-circle: 50%;
|
|
62
|
+
$goa-opacity-3: 30%;
|
|
63
|
+
$goa-opacity-5: 50%;
|
|
64
|
+
$goa-opacity-8: 80%;
|
|
65
|
+
$goa-line-height-1: 1.25rem;
|
|
66
|
+
$goa-line-height-2: 1.5rem;
|
|
67
|
+
$goa-line-height-3: 1.75rem;
|
|
68
|
+
$goa-line-height-4: 2rem;
|
|
69
|
+
$goa-line-height-5: 2.5rem;
|
|
70
|
+
$goa-line-height-6: 2.75rem;
|
|
71
|
+
$goa-line-height-7: 3.5rem;
|
|
72
|
+
$goa-font-families-default: Acumin-pro-semi-condensed;
|
|
73
|
+
$goa-font-families-numbers: roboto-mono;
|
|
74
|
+
$goa-typography-heading-xl: 700 3rem/3.5rem Acumin-pro-semi-condensed;
|
|
75
|
+
$goa-typography-heading-l: 400 2.25rem/2.75rem Acumin-pro-semi-condensed;
|
|
76
|
+
$goa-typography-heading-m: 400 1.5rem/2rem Acumin-pro-semi-condensed;
|
|
77
|
+
$goa-typography-heading-s: 700 1.125rem/1.75rem Acumin-pro-semi-condensed;
|
|
78
|
+
$goa-typography-heading-xs: 700 1rem/1.5rem Acumin-pro-semi-condensed;
|
|
79
|
+
$goa-typography-body-l: 400 1.5rem/2rem Acumin-pro-semi-condensed;
|
|
80
|
+
$goa-typography-body-m: 400 1.125rem/1.75rem Acumin-pro-semi-condensed;
|
|
81
|
+
$goa-typography-body-s: 400 1rem/1.5rem Acumin-pro-semi-condensed;
|
|
82
|
+
$goa-typography-body-xs: 400 0.875rem/1.25rem Acumin-pro-semi-condensed;
|
|
83
|
+
$goa-typography-button-default: 400 1.125rem/1.25rem Acumin-pro-semi-condensed;
|
|
84
|
+
$goa-border-width-s: 1;
|
|
85
|
+
$goa-border-width-m: 2;
|
|
86
|
+
$goa-border-width-l: 3;
|
|
87
|
+
$goa-letter-spacing-buttons: 1%;
|
|
88
|
+
$goa-icon-size-s: 1rem;
|
|
89
|
+
$goa-icon-size-m: 1.25rem;
|
|
90
|
+
$goa-icon-size-l: 1.5rem;
|