@atom-learning/theme 6.3.0-beta.0 → 6.3.0-beta.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/lib/roles.css +24 -0
- package/lib/roles.d.ts +1 -1
- package/lib/roles.js +4 -2
- package/package.json +25 -2
package/lib/roles.css
CHANGED
|
@@ -645,4 +645,28 @@
|
|
|
645
645
|
--border-color-accent-solid-active: var(--color-info-dark);
|
|
646
646
|
--outline-color-accent: var(--color-info);
|
|
647
647
|
}
|
|
648
|
+
|
|
649
|
+
[data-color-accent='neutral'] {
|
|
650
|
+
--background-color-accent-subtle: var(--color-grey-100);
|
|
651
|
+
--background-color-accent-subtle-hover: var(--color-grey-200);
|
|
652
|
+
--background-color-accent-subtle-active: var(--color-grey-300);
|
|
653
|
+
--background-color-accent-muted: var(--color-grey-200);
|
|
654
|
+
--background-color-accent-muted-hover: var(--color-grey-300);
|
|
655
|
+
--background-color-accent-muted-active: var(--color-grey-400);
|
|
656
|
+
--background-color-accent-solid: var(--color-grey-800);
|
|
657
|
+
--background-color-accent-solid-hover: var(--color-grey-900);
|
|
658
|
+
--background-color-accent-solid-active: var(--color-grey-1000);
|
|
659
|
+
--background-color-accent-emphasis: var(--color-grey-800);
|
|
660
|
+
--text-color-accent: var(--color-grey-800);
|
|
661
|
+
--text-color-accent-hover: var(--color-grey-900);
|
|
662
|
+
--text-color-accent-active: var(--color-grey-1000);
|
|
663
|
+
--text-color-on-accent: var(--color-white);
|
|
664
|
+
--text-color-on-accent-subtle: var(--color-grey-1000);
|
|
665
|
+
--text-color-on-accent-emphasis: var(--color-white);
|
|
666
|
+
--border-color-accent: var(--color-grey-300);
|
|
667
|
+
--border-color-accent-solid: var(--color-grey-800);
|
|
668
|
+
--border-color-accent-solid-hover: var(--color-grey-900);
|
|
669
|
+
--border-color-accent-solid-active: var(--color-grey-1000);
|
|
670
|
+
--outline-color-accent: var(--color-grey-800);
|
|
671
|
+
}
|
|
648
672
|
}
|
package/lib/roles.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type Brand = 'atom' | 'school' | 'quest'
|
|
2
2
|
export type ColorHue = 'grey' | 'blue' | 'pink' | 'marsh' | 'green' | 'red' | 'orange' | 'purple' | 'cyan' | 'teal' | 'magenta' | 'lime' | 'lapis' | 'maroon' | 'emerald' | 'yellow'
|
|
3
|
-
export type ColorTone = 'success' | 'warning' | 'danger' | 'info'
|
|
3
|
+
export type ColorTone = 'success' | 'warning' | 'danger' | 'info' | 'neutral'
|
|
4
4
|
export type ColorAccent = 'brand' | ColorHue | ColorTone
|
|
5
5
|
|
|
6
6
|
export type BackgroundColorRole = 'page' | 'surface' | 'surface-hover' | 'surface-overlay' | 'hover' | 'active' | 'inset' | 'input' | 'neutral' | 'neutral-solid' | 'neutral-solid-hover' | 'disabled' | 'inverse' | 'scrim' | 'accent-subtle' | 'accent-subtle-hover' | 'accent-subtle-active' | 'accent-muted' | 'accent-muted-hover' | 'accent-muted-active' | 'accent-solid' | 'accent-solid-hover' | 'accent-solid-active' | 'accent-emphasis' | 'success-subtle' | 'success-solid' | 'success-solid-hover' | 'success-solid-active' | 'success-emphasis' | 'warning-subtle' | 'warning-solid' | 'warning-solid-hover' | 'warning-solid-active' | 'warning-emphasis' | 'danger-subtle' | 'danger-solid' | 'danger-solid-hover' | 'danger-solid-active' | 'danger-emphasis' | 'info-subtle' | 'info-solid' | 'info-solid-hover' | 'info-solid-active' | 'info-emphasis'
|
package/lib/roles.js
CHANGED
|
@@ -27,7 +27,8 @@ export const tones = [
|
|
|
27
27
|
"success",
|
|
28
28
|
"warning",
|
|
29
29
|
"danger",
|
|
30
|
-
"info"
|
|
30
|
+
"info",
|
|
31
|
+
"neutral"
|
|
31
32
|
]
|
|
32
33
|
|
|
33
34
|
export const accents = [
|
|
@@ -51,7 +52,8 @@ export const accents = [
|
|
|
51
52
|
"success",
|
|
52
53
|
"warning",
|
|
53
54
|
"danger",
|
|
54
|
-
"info"
|
|
55
|
+
"info",
|
|
56
|
+
"neutral"
|
|
55
57
|
]
|
|
56
58
|
|
|
57
59
|
export const roles = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom-learning/theme",
|
|
3
|
-
"version": "6.3.0-beta.
|
|
3
|
+
"version": "6.3.0-beta.2",
|
|
4
4
|
"description": "Design tokens and assets for Atom Learning, Atom School and Quest",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/theme-base.js",
|
|
@@ -20,19 +20,32 @@
|
|
|
20
20
|
],
|
|
21
21
|
"author": "",
|
|
22
22
|
"license": "ISC",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/Atom-Learning/theme.git"
|
|
26
|
+
},
|
|
23
27
|
"devDependencies": {
|
|
28
|
+
"@commitlint/cli": "^21.2.1",
|
|
29
|
+
"@commitlint/config-conventional": "^21.2.0",
|
|
30
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
31
|
+
"@semantic-release/exec": "^7.0.0",
|
|
32
|
+
"@semantic-release/git": "^10.0.1",
|
|
33
|
+
"@semantic-release/github": "^12.0.6",
|
|
34
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
24
35
|
"@types/node": "^20.0.0",
|
|
25
36
|
"color2k": "^2.0.4",
|
|
26
37
|
"del-cli": "^3.0.1",
|
|
27
38
|
"dree": "^5.1.5",
|
|
39
|
+
"husky": "^4.3.8",
|
|
28
40
|
"npm-run-all": "^4.1.5",
|
|
29
41
|
"pascal-case": "^3.1.2",
|
|
42
|
+
"semantic-release": "^25.0.0",
|
|
43
|
+
"semantic-release-slack-bot": "^4.0.2",
|
|
30
44
|
"style-dictionary": "^5.1.1",
|
|
31
45
|
"tsx": "^4.7.0",
|
|
32
46
|
"typescript": "^5.0.0",
|
|
33
47
|
"vitest": "^4.0.16"
|
|
34
48
|
},
|
|
35
|
-
"dependencies": {},
|
|
36
49
|
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610",
|
|
37
50
|
"exports": {
|
|
38
51
|
".": {
|
|
@@ -128,5 +141,15 @@
|
|
|
128
141
|
"./lib/roles.d.ts"
|
|
129
142
|
]
|
|
130
143
|
}
|
|
144
|
+
},
|
|
145
|
+
"husky": {
|
|
146
|
+
"hooks": {
|
|
147
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"commitlint": {
|
|
151
|
+
"extends": [
|
|
152
|
+
"@commitlint/config-conventional"
|
|
153
|
+
]
|
|
131
154
|
}
|
|
132
155
|
}
|