@atom-learning/theme 6.0.0-beta.6 → 6.0.0-beta.8

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/media.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export const media: {
2
+ sm: "(min-width: 34.375rem)"
3
+ md: "(min-width: 50rem)"
4
+ lg: "(min-width: 68.75rem)"
5
+ xl: "(min-width: 84.375rem)"
6
+ }
7
+
8
+ export type Media = typeof media
package/lib/media.js ADDED
@@ -0,0 +1,6 @@
1
+ export const media = {
2
+ "sm": "(min-width: 34.375rem)",
3
+ "md": "(min-width: 50rem)",
4
+ "lg": "(min-width: 68.75rem)",
5
+ "xl": "(min-width: 84.375rem)"
6
+ }
@@ -11,8 +11,8 @@
11
11
  --color-text-minimal: hsl(0, 0%, 46%);
12
12
  --color-background: hsl(0, 0%, 96%);
13
13
  --color-background-accent: hsl(215, 100%, 98%);
14
- --color-black: hsl(0, 0%, 0%);
15
- --color-white: hsl(0, 0%, 100%);
14
+ --color-black: #000;
15
+ --color-white: #fff;
16
16
  --color-grey-100: hsl(0, 0%, 96%);
17
17
  --color-grey-200: hsl(0, 0%, 92%);
18
18
  --color-grey-300: hsl(0, 0%, 88%);
@@ -84,7 +84,7 @@
84
84
  --color-green-900: hsl(166, 71%, 24%);
85
85
  --color-green-1000: hsl(166, 67%, 20%);
86
86
  --color-green-1100: hsl(169, 88%, 10%);
87
- --color-green-1200: hsl(155, 92%, 5%);
87
+ --color-green-1200: hsl(155, 93%, 5%);
88
88
  --color-magenta-100: hsl(330, 100%, 99%);
89
89
  --color-magenta-200: hsl(329, 100%, 96%);
90
90
  --color-magenta-300: hsl(332, 100%, 92%);
@@ -6,8 +6,8 @@ export const theme: {
6
6
  textMinimal: "hsl(0, 0%, 46%)"
7
7
  background: "hsl(0, 0%, 96%)"
8
8
  backgroundAccent: "hsl(215, 100%, 98%)"
9
- black: "hsl(0, 0%, 0%)"
10
- white: "hsl(0, 0%, 100%)"
9
+ black: "#000"
10
+ white: "#fff"
11
11
  grey100: "hsl(0, 0%, 96%)"
12
12
  grey200: "hsl(0, 0%, 92%)"
13
13
  grey300: "hsl(0, 0%, 88%)"
@@ -79,7 +79,7 @@ export const theme: {
79
79
  green900: "hsl(166, 71%, 24%)"
80
80
  green1000: "hsl(166, 67%, 20%)"
81
81
  green1100: "hsl(169, 88%, 10%)"
82
- green1200: "hsl(155, 92%, 5%)"
82
+ green1200: "hsl(155, 93%, 5%)"
83
83
  magenta100: "hsl(330, 100%, 99%)"
84
84
  magenta200: "hsl(329, 100%, 96%)"
85
85
  magenta300: "hsl(332, 100%, 92%)"
@@ -239,7 +239,7 @@ export const theme: {
239
239
  glBlueDark: "hsl(222, 35%, 43%)"
240
240
  }
241
241
  space: {
242
- base: "0.25rem"
242
+ base: "0.25"
243
243
  }
244
244
  fontSizes: {
245
245
  xs: "0.75rem"
@@ -258,10 +258,10 @@ export const theme: {
258
258
  body: "system-ui, -apple-system, \'Helvetica Neue\', sans-serif"
259
259
  }
260
260
  radii: {
261
- sm: "0.25rem"
262
- md: "0.5rem"
263
- lg: "0.75rem"
264
- xl: "1rem"
261
+ sm: "0.25"
262
+ md: "0.5"
263
+ lg: "0.75"
264
+ xl: "1"
265
265
  }
266
266
  shadows: {
267
267
  sm: "0 1px 3px hsla(0, 0%, 20%, 0.1), 0 1px 2px hsla(0, 0%, 20%, 0.15)"
@@ -280,8 +280,8 @@ export const properties: {
280
280
  '--color-text-minimal': "hsl(0, 0%, 46%)"
281
281
  '--color-background': "hsl(0, 0%, 96%)"
282
282
  '--color-background-accent': "hsl(215, 100%, 98%)"
283
- '--color-black': "hsl(0, 0%, 0%)"
284
- '--color-white': "hsl(0, 0%, 100%)"
283
+ '--color-black': "#000"
284
+ '--color-white': "#fff"
285
285
  '--color-grey-100': "hsl(0, 0%, 96%)"
286
286
  '--color-grey-200': "hsl(0, 0%, 92%)"
287
287
  '--color-grey-300': "hsl(0, 0%, 88%)"
@@ -353,7 +353,7 @@ export const properties: {
353
353
  '--color-green-900': "hsl(166, 71%, 24%)"
354
354
  '--color-green-1000': "hsl(166, 67%, 20%)"
355
355
  '--color-green-1100': "hsl(169, 88%, 10%)"
356
- '--color-green-1200': "hsl(155, 92%, 5%)"
356
+ '--color-green-1200': "hsl(155, 93%, 5%)"
357
357
  '--color-magenta-100': "hsl(330, 100%, 99%)"
358
358
  '--color-magenta-200': "hsl(329, 100%, 96%)"
359
359
  '--color-magenta-300': "hsl(332, 100%, 92%)"
@@ -523,10 +523,10 @@ export const properties: {
523
523
  '--text-2xl': "2.3125rem"
524
524
  '--text-3xl': "3.125rem"
525
525
  '--text-4xl': "5.625rem"
526
- '--radius-sm': "0.25rem"
527
- '--radius-md': "0.5rem"
528
- '--radius-lg': "0.75rem"
529
- '--radius-xl': "1rem"
526
+ '--radius-sm': "0.25"
527
+ '--radius-md': "0.5"
528
+ '--radius-lg': "0.75"
529
+ '--radius-xl': "1"
530
530
  '--shadow-sm': "0 1px 3px hsla(0, 0%, 20%, 0.1), 0 1px 2px hsla(0, 0%, 20%, 0.15)"
531
531
  '--shadow-md': "0 3px 6px hsla(0, 0%, 20%, 0.1), 0 3px 6px hsla(0, 0%, 20%, 0.1)"
532
532
  '--shadow-lg': "0 10px 20px hsla(0, 0%, 20%, 0.1), 0 6px 6px hsla(0, 0%, 20%, 0.1)"
package/lib/theme-base.js CHANGED
@@ -6,8 +6,8 @@ export const theme = {
6
6
  "textMinimal": "hsl(0, 0%, 46%)",
7
7
  "background": "hsl(0, 0%, 96%)",
8
8
  "backgroundAccent": "hsl(215, 100%, 98%)",
9
- "black": "hsl(0, 0%, 0%)",
10
- "white": "hsl(0, 0%, 100%)",
9
+ "black": "#000",
10
+ "white": "#fff",
11
11
  "grey100": "hsl(0, 0%, 96%)",
12
12
  "grey200": "hsl(0, 0%, 92%)",
13
13
  "grey300": "hsl(0, 0%, 88%)",
@@ -79,7 +79,7 @@ export const theme = {
79
79
  "green900": "hsl(166, 71%, 24%)",
80
80
  "green1000": "hsl(166, 67%, 20%)",
81
81
  "green1100": "hsl(169, 88%, 10%)",
82
- "green1200": "hsl(155, 92%, 5%)",
82
+ "green1200": "hsl(155, 93%, 5%)",
83
83
  "magenta100": "hsl(330, 100%, 99%)",
84
84
  "magenta200": "hsl(329, 100%, 96%)",
85
85
  "magenta300": "hsl(332, 100%, 92%)",
@@ -239,7 +239,7 @@ export const theme = {
239
239
  "glBlueDark": "hsl(222, 35%, 43%)"
240
240
  },
241
241
  "space": {
242
- "base": "0.25rem"
242
+ "base": "0.25"
243
243
  },
244
244
  "fontSizes": {
245
245
  "xs": "0.75rem",
@@ -258,10 +258,10 @@ export const theme = {
258
258
  "body": "system-ui, -apple-system, 'Helvetica Neue', sans-serif"
259
259
  },
260
260
  "radii": {
261
- "sm": "0.25rem",
262
- "md": "0.5rem",
263
- "lg": "0.75rem",
264
- "xl": "1rem"
261
+ "sm": "0.25",
262
+ "md": "0.5",
263
+ "lg": "0.75",
264
+ "xl": "1"
265
265
  },
266
266
  "shadows": {
267
267
  "sm": "0 1px 3px hsla(0, 0%, 20%, 0.1), 0 1px 2px hsla(0, 0%, 20%, 0.15)",
@@ -278,8 +278,8 @@ export const properties = {
278
278
  "--color-text-minimal": "hsl(0, 0%, 46%)",
279
279
  "--color-background": "hsl(0, 0%, 96%)",
280
280
  "--color-background-accent": "hsl(215, 100%, 98%)",
281
- "--color-black": "hsl(0, 0%, 0%)",
282
- "--color-white": "hsl(0, 0%, 100%)",
281
+ "--color-black": "#000",
282
+ "--color-white": "#fff",
283
283
  "--color-grey-100": "hsl(0, 0%, 96%)",
284
284
  "--color-grey-200": "hsl(0, 0%, 92%)",
285
285
  "--color-grey-300": "hsl(0, 0%, 88%)",
@@ -351,7 +351,7 @@ export const properties = {
351
351
  "--color-green-900": "hsl(166, 71%, 24%)",
352
352
  "--color-green-1000": "hsl(166, 67%, 20%)",
353
353
  "--color-green-1100": "hsl(169, 88%, 10%)",
354
- "--color-green-1200": "hsl(155, 92%, 5%)",
354
+ "--color-green-1200": "hsl(155, 93%, 5%)",
355
355
  "--color-magenta-100": "hsl(330, 100%, 99%)",
356
356
  "--color-magenta-200": "hsl(329, 100%, 96%)",
357
357
  "--color-magenta-300": "hsl(332, 100%, 92%)",
@@ -521,10 +521,10 @@ export const properties = {
521
521
  "--text-2xl": "2.3125rem",
522
522
  "--text-3xl": "3.125rem",
523
523
  "--text-4xl": "5.625rem",
524
- "--radius-sm": "0.25rem",
525
- "--radius-md": "0.5rem",
526
- "--radius-lg": "0.75rem",
527
- "--radius-xl": "1rem",
524
+ "--radius-sm": "0.25",
525
+ "--radius-md": "0.5",
526
+ "--radius-lg": "0.75",
527
+ "--radius-xl": "1",
528
528
  "--shadow-sm": "0 1px 3px hsla(0, 0%, 20%, 0.1), 0 1px 2px hsla(0, 0%, 20%, 0.15)",
529
529
  "--shadow-md": "0 3px 6px hsla(0, 0%, 20%, 0.1), 0 3px 6px hsla(0, 0%, 20%, 0.1)",
530
530
  "--shadow-lg": "0 10px 20px hsla(0, 0%, 20%, 0.1), 0 6px 6px hsla(0, 0%, 20%, 0.1)",
package/lib/themes.css ADDED
@@ -0,0 +1,64 @@
1
+ @layer theme {
2
+ .theme-atom {
3
+ --color-primary-100: hsl(215, 100%, 98%);
4
+ --color-primary-200: hsl(212, 100%, 95%);
5
+ --color-primary-300: hsl(211, 100%, 92%);
6
+ --color-primary-400: hsl(211, 100%, 88%);
7
+ --color-primary-500: hsl(212, 100%, 80%);
8
+ --color-primary-600: hsl(213, 100%, 71%);
9
+ --color-primary-700: hsl(214, 100%, 58%);
10
+ --color-primary-800: hsl(217, 92%, 51%);
11
+ --color-primary-900: hsl(223, 79%, 44%);
12
+ --color-primary-1000: hsl(228, 82%, 35%);
13
+ --color-primary-1100: hsl(228, 63%, 23%);
14
+ --color-primary-1200: hsl(227, 57%, 11%);
15
+ --font-display: 'National 2 Condensed', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
16
+ --font-body: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
17
+ }
18
+ }
19
+
20
+ @layer theme {
21
+ .theme-quest-reports {
22
+ --color-primary-100: hsl(151, 70%, 96%);
23
+ --color-primary-200: hsl(151, 62%, 92%);
24
+ --color-primary-300: hsl(151, 53%, 83%);
25
+ --color-primary-400: hsl(151, 50%, 75%);
26
+ --color-primary-500: hsl(151, 46%, 64%);
27
+ --color-primary-600: hsl(158, 42%, 49%);
28
+ --color-primary-700: hsl(162, 51%, 35%);
29
+ --color-primary-800: hsl(162, 69%, 28%);
30
+ --color-primary-900: hsl(164, 100%, 15%);
31
+ --color-primary-1000: hsl(164, 100%, 13%);
32
+ --color-primary-1100: hsl(150, 34%, 15%);
33
+ --color-primary-1200: hsl(150, 30%, 9%);
34
+ --text-xs: 0.625rem;
35
+ --text-sm: 0.75rem;
36
+ --text-md: 0.875rem;
37
+ --text-lg: 1rem;
38
+ --text-xl: 1.3125rem;
39
+ --text-2xl: 1.75rem;
40
+ --text-3xl: 2.3125rem;
41
+ --text-4xl: 3.125rem;
42
+ --font-display: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
43
+ --font-body: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
44
+ }
45
+ }
46
+
47
+ @layer theme {
48
+ .theme-quest {
49
+ --color-primary-100: hsl(151, 70%, 96%);
50
+ --color-primary-200: hsl(151, 62%, 92%);
51
+ --color-primary-300: hsl(151, 53%, 83%);
52
+ --color-primary-400: hsl(151, 50%, 75%);
53
+ --color-primary-500: hsl(151, 46%, 64%);
54
+ --color-primary-600: hsl(158, 42%, 49%);
55
+ --color-primary-700: hsl(162, 51%, 35%);
56
+ --color-primary-800: hsl(162, 69%, 28%);
57
+ --color-primary-900: hsl(164, 100%, 15%);
58
+ --color-primary-1000: hsl(164, 100%, 13%);
59
+ --color-primary-1100: hsl(150, 34%, 15%);
60
+ --color-primary-1200: hsl(150, 30%, 9%);
61
+ --font-display: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
62
+ --font-body: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
63
+ }
64
+ }
package/package.json CHANGED
@@ -1,30 +1,33 @@
1
1
  {
2
2
  "name": "@atom-learning/theme",
3
- "version": "6.0.0-beta.6",
3
+ "version": "6.0.0-beta.8",
4
4
  "description": "Design tokens and assets for Atom Learning and Quest",
5
+ "type": "module",
5
6
  "main": "lib/theme-base.js",
6
7
  "types": "lib/theme-base.d.ts",
7
8
  "scripts": {
8
- "build": "node ./scripts/build.js --path=./src/themes",
9
+ "build": "node ./src/build.ts --path=./src/themes",
9
10
  "prepublishOnly": "run-s clean build test:run",
10
11
  "clean": "del ./lib",
11
12
  "test": "vitest",
12
- "test:run": "vitest run"
13
+ "test:run": "vitest run",
14
+ "validate:types": "tsc --noEmit"
13
15
  },
14
16
  "files": [
15
- "lib",
16
- "theme-map.js"
17
+ "lib"
17
18
  ],
18
19
  "author": "",
19
20
  "license": "ISC",
20
21
  "devDependencies": {
22
+ "@types/node": "^20.0.0",
21
23
  "del-cli": "^3.0.1",
22
24
  "dree": "^5.1.5",
23
25
  "npm-run-all": "^4.1.5",
24
26
  "pascal-case": "^3.1.2",
25
- "style-dictionary": "^3.0.1",
26
- "vitest": "^4.0.16",
27
- "yargs": "^17.7.2"
27
+ "style-dictionary": "^5.1.1",
28
+ "tsx": "^4.7.0",
29
+ "typescript": "^5.0.0",
30
+ "vitest": "^4.0.16"
28
31
  },
29
32
  "dependencies": {},
30
33
  "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610",
@@ -34,25 +37,28 @@
34
37
  "style": "./lib/theme-base.css",
35
38
  "default": "./lib/theme-base.js"
36
39
  },
37
- "./base.css": "./lib/theme-base.css",
40
+ "./media": {
41
+ "types": "./lib/media.d.ts",
42
+ "default": "./lib/media.js"
43
+ },
38
44
  "./quest": {
39
45
  "types": "./lib/theme-quest.d.ts",
40
46
  "style": "./lib/theme-quest.css",
41
47
  "default": "./lib/theme-quest.js"
42
48
  },
43
- "./quest.css": "./lib/theme-quest.css",
44
49
  "./atom": {
45
50
  "types": "./lib/theme-atom.d.ts",
46
51
  "style": "./lib/theme-atom.css",
47
52
  "default": "./lib/theme-atom.js"
48
53
  },
49
- "./atom.css": "./lib/theme-atom.css",
50
54
  "./quest-reports": {
51
55
  "types": "./lib/theme-quest-reports.d.ts",
52
56
  "style": "./lib/theme-quest-reports.css",
53
57
  "default": "./lib/theme-quest-reports.js"
54
58
  },
55
- "./quest-reports.css": "./lib/theme-quest-reports.css",
59
+ "./themes": {
60
+ "style": "./lib/themes.css"
61
+ },
56
62
  "./assets/fonts/national-2-condensed-bold.woff2": "./lib/assets/fonts/national-2-condensed-bold.woff2",
57
63
  "./assets/logos/atom/atom-home-light.svg": "./lib/assets/logos/atom/atom-home-light.svg",
58
64
  "./assets/logos/atom/atom-home-primary.svg": "./lib/assets/logos/atom/atom-home-primary.svg",
@@ -87,6 +93,9 @@
87
93
  ],
88
94
  "quest-reports": [
89
95
  "./lib/theme-quest-reports.d.ts"
96
+ ],
97
+ "media": [
98
+ "./lib/media.d.ts"
90
99
  ]
91
100
  }
92
101
  }
package/theme-map.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- themeMap: {
3
- aspectRatio: 'ratios'
4
- }
5
- }