@atom-learning/theme 6.0.0-beta.8 → 6.0.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/lib/theme-base.css +23 -13
- package/lib/theme-base.d.ts +56 -35
- package/lib/theme-base.js +56 -35
- package/package.json +1 -1
package/lib/theme-base.css
CHANGED
|
@@ -193,18 +193,18 @@
|
|
|
193
193
|
--color-marsh-1000: hsl(147, 17%, 18%);
|
|
194
194
|
--color-marsh-1100: hsl(147, 24%, 13%);
|
|
195
195
|
--color-marsh-1200: hsl(147, 14%, 7%);
|
|
196
|
-
--color-
|
|
197
|
-
--color-
|
|
198
|
-
--color-
|
|
199
|
-
--color-
|
|
200
|
-
--color-
|
|
201
|
-
--color-
|
|
202
|
-
--color-
|
|
203
|
-
--color-
|
|
204
|
-
--color-
|
|
205
|
-
--color-
|
|
206
|
-
--color-
|
|
207
|
-
--color-
|
|
196
|
+
--color-coolGrey-100: hsl(206, 47%, 97%);
|
|
197
|
+
--color-coolGrey-200: hsl(205, 35%, 93%);
|
|
198
|
+
--color-coolGrey-300: hsl(206, 27%, 90%);
|
|
199
|
+
--color-coolGrey-400: hsl(205, 20%, 83%);
|
|
200
|
+
--color-coolGrey-500: hsl(207, 16%, 76%);
|
|
201
|
+
--color-coolGrey-600: hsl(207, 14%, 65%);
|
|
202
|
+
--color-coolGrey-700: hsl(206, 9%, 49%);
|
|
203
|
+
--color-coolGrey-800: hsl(207, 11%, 35%);
|
|
204
|
+
--color-coolGrey-900: hsl(208, 15%, 22%);
|
|
205
|
+
--color-coolGrey-1000: hsl(208, 19%, 14%);
|
|
206
|
+
--color-coolGrey-1100: hsl(207, 20%, 11%);
|
|
207
|
+
--color-coolGrey-1200: hsl(210, 18%, 7%);
|
|
208
208
|
--color-alpha-100: hsla(0, 0%, 20%, 0.1);
|
|
209
209
|
--color-alpha-150: hsla(0, 0%, 20%, 0.15);
|
|
210
210
|
--color-alpha-200: hsla(0, 0%, 20%, 0.2);
|
|
@@ -235,9 +235,10 @@
|
|
|
235
235
|
--color-subject-creative-writing: hsl(35, 95%, 50%);
|
|
236
236
|
--color-subject-exam-skills: hsl(257, 53%, 35%);
|
|
237
237
|
--color-subject-gcse-english-literature: hsl(333, 75%, 59%);
|
|
238
|
+
--color-subject-gcse-english-language: hsl(256, 65%, 62%);
|
|
238
239
|
--color-subject-gcse-maths: hsl(214, 100%, 58%);
|
|
239
240
|
--color-subject-gcse-chemistry: hsl(35, 95%, 50%);
|
|
240
|
-
--color-subject-gcse-physics: hsl(
|
|
241
|
+
--color-subject-gcse-physics: hsl(206, 9%, 49%);
|
|
241
242
|
--color-subject-gcse-biology: hsl(148, 84%, 36%);
|
|
242
243
|
--color-gl-light: hsl(222, 68%, 78%);
|
|
243
244
|
--color-gl-primary: hsl(222, 56%, 55%);
|
|
@@ -254,6 +255,15 @@
|
|
|
254
255
|
--text-2xl: 2.3125rem;
|
|
255
256
|
--text-3xl: 3.125rem;
|
|
256
257
|
--text-4xl: 5.625rem;
|
|
258
|
+
--text-xs--line-height: 1.6;
|
|
259
|
+
--text-sm--line-height: 1.53;
|
|
260
|
+
--text-md--line-height: 1.5;
|
|
261
|
+
--text-lg--line-height: 1.52;
|
|
262
|
+
--text-xl--line-height: 1.42;
|
|
263
|
+
--text-2xl--line-height: 1.08;
|
|
264
|
+
--text-3xl--line-height: 1.12;
|
|
265
|
+
--text-4xl--line-height: 1;
|
|
266
|
+
--spacing: 0.25rem;
|
|
257
267
|
--radius-sm: 0.25rem;
|
|
258
268
|
--radius-md: 0.5rem;
|
|
259
269
|
--radius-lg: 0.75rem;
|
package/lib/theme-base.d.ts
CHANGED
|
@@ -188,18 +188,18 @@ export const theme: {
|
|
|
188
188
|
marsh1000: "hsl(147, 17%, 18%)"
|
|
189
189
|
marsh1100: "hsl(147, 24%, 13%)"
|
|
190
190
|
marsh1200: "hsl(147, 14%, 7%)"
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
191
|
+
coolGrey100: "hsl(206, 47%, 97%)"
|
|
192
|
+
coolGrey200: "hsl(205, 35%, 93%)"
|
|
193
|
+
coolGrey300: "hsl(206, 27%, 90%)"
|
|
194
|
+
coolGrey400: "hsl(205, 20%, 83%)"
|
|
195
|
+
coolGrey500: "hsl(207, 16%, 76%)"
|
|
196
|
+
coolGrey600: "hsl(207, 14%, 65%)"
|
|
197
|
+
coolGrey700: "hsl(206, 9%, 49%)"
|
|
198
|
+
coolGrey800: "hsl(207, 11%, 35%)"
|
|
199
|
+
coolGrey900: "hsl(208, 15%, 22%)"
|
|
200
|
+
coolGrey1000: "hsl(208, 19%, 14%)"
|
|
201
|
+
coolGrey1100: "hsl(207, 20%, 11%)"
|
|
202
|
+
coolGrey1200: "hsl(210, 18%, 7%)"
|
|
203
203
|
alpha100: "hsla(0, 0%, 20%, 0.1)"
|
|
204
204
|
alpha150: "hsla(0, 0%, 20%, 0.15)"
|
|
205
205
|
alpha200: "hsla(0, 0%, 20%, 0.2)"
|
|
@@ -230,16 +230,17 @@ export const theme: {
|
|
|
230
230
|
subjectCreativeWriting: "hsl(35, 95%, 50%)"
|
|
231
231
|
subjectExamSkills: "hsl(257, 53%, 35%)"
|
|
232
232
|
subjectGcseEnglishLiterature: "hsl(333, 75%, 59%)"
|
|
233
|
+
subjectGcseEnglishLanguage: "hsl(256, 65%, 62%)"
|
|
233
234
|
subjectGcseMaths: "hsl(214, 100%, 58%)"
|
|
234
235
|
subjectGcseChemistry: "hsl(35, 95%, 50%)"
|
|
235
|
-
subjectGcsePhysics: "hsl(
|
|
236
|
+
subjectGcsePhysics: "hsl(206, 9%, 49%)"
|
|
236
237
|
subjectGcseBiology: "hsl(148, 84%, 36%)"
|
|
237
238
|
glBlueLight: "hsl(222, 68%, 78%)"
|
|
238
239
|
glBluePrimary: "hsl(222, 56%, 55%)"
|
|
239
240
|
glBlueDark: "hsl(222, 35%, 43%)"
|
|
240
241
|
}
|
|
241
242
|
space: {
|
|
242
|
-
base: "0.
|
|
243
|
+
base: "0.25rem"
|
|
243
244
|
}
|
|
244
245
|
fontSizes: {
|
|
245
246
|
xs: "0.75rem"
|
|
@@ -257,11 +258,21 @@ export const theme: {
|
|
|
257
258
|
display: "system-ui, -apple-system, \'Helvetica Neue\', sans-serif"
|
|
258
259
|
body: "system-ui, -apple-system, \'Helvetica Neue\', sans-serif"
|
|
259
260
|
}
|
|
261
|
+
lineHeights: {
|
|
262
|
+
xs: "1.6"
|
|
263
|
+
sm: "1.53"
|
|
264
|
+
md: "1.5"
|
|
265
|
+
lg: "1.52"
|
|
266
|
+
xl: "1.42"
|
|
267
|
+
'2xl': "1.08"
|
|
268
|
+
'3xl': "1.12"
|
|
269
|
+
'4xl': "1"
|
|
270
|
+
}
|
|
260
271
|
radii: {
|
|
261
|
-
sm: "0.
|
|
262
|
-
md: "0.
|
|
263
|
-
lg: "0.
|
|
264
|
-
xl: "
|
|
272
|
+
sm: "0.25rem"
|
|
273
|
+
md: "0.5rem"
|
|
274
|
+
lg: "0.75rem"
|
|
275
|
+
xl: "1rem"
|
|
265
276
|
}
|
|
266
277
|
shadows: {
|
|
267
278
|
sm: "0 1px 3px hsla(0, 0%, 20%, 0.1), 0 1px 2px hsla(0, 0%, 20%, 0.15)"
|
|
@@ -462,18 +473,18 @@ export const properties: {
|
|
|
462
473
|
'--color-marsh-1000': "hsl(147, 17%, 18%)"
|
|
463
474
|
'--color-marsh-1100': "hsl(147, 24%, 13%)"
|
|
464
475
|
'--color-marsh-1200': "hsl(147, 14%, 7%)"
|
|
465
|
-
'--color-
|
|
466
|
-
'--color-
|
|
467
|
-
'--color-
|
|
468
|
-
'--color-
|
|
469
|
-
'--color-
|
|
470
|
-
'--color-
|
|
471
|
-
'--color-
|
|
472
|
-
'--color-
|
|
473
|
-
'--color-
|
|
474
|
-
'--color-
|
|
475
|
-
'--color-
|
|
476
|
-
'--color-
|
|
476
|
+
'--color-cool-grey-100': "hsl(206, 47%, 97%)"
|
|
477
|
+
'--color-cool-grey-200': "hsl(205, 35%, 93%)"
|
|
478
|
+
'--color-cool-grey-300': "hsl(206, 27%, 90%)"
|
|
479
|
+
'--color-cool-grey-400': "hsl(205, 20%, 83%)"
|
|
480
|
+
'--color-cool-grey-500': "hsl(207, 16%, 76%)"
|
|
481
|
+
'--color-cool-grey-600': "hsl(207, 14%, 65%)"
|
|
482
|
+
'--color-cool-grey-700': "hsl(206, 9%, 49%)"
|
|
483
|
+
'--color-cool-grey-800': "hsl(207, 11%, 35%)"
|
|
484
|
+
'--color-cool-grey-900': "hsl(208, 15%, 22%)"
|
|
485
|
+
'--color-cool-grey-1000': "hsl(208, 19%, 14%)"
|
|
486
|
+
'--color-cool-grey-1100': "hsl(207, 20%, 11%)"
|
|
487
|
+
'--color-cool-grey-1200': "hsl(210, 18%, 7%)"
|
|
477
488
|
'--color-alpha-100': "hsla(0, 0%, 20%, 0.1)"
|
|
478
489
|
'--color-alpha-150': "hsla(0, 0%, 20%, 0.15)"
|
|
479
490
|
'--color-alpha-200': "hsla(0, 0%, 20%, 0.2)"
|
|
@@ -504,9 +515,10 @@ export const properties: {
|
|
|
504
515
|
'--color-subject-creative-writing': "hsl(35, 95%, 50%)"
|
|
505
516
|
'--color-subject-exam-skills': "hsl(257, 53%, 35%)"
|
|
506
517
|
'--color-subject-gcse-english-literature': "hsl(333, 75%, 59%)"
|
|
518
|
+
'--color-subject-gcse-english-language': "hsl(256, 65%, 62%)"
|
|
507
519
|
'--color-subject-gcse-maths': "hsl(214, 100%, 58%)"
|
|
508
520
|
'--color-subject-gcse-chemistry': "hsl(35, 95%, 50%)"
|
|
509
|
-
'--color-subject-gcse-physics': "hsl(
|
|
521
|
+
'--color-subject-gcse-physics': "hsl(206, 9%, 49%)"
|
|
510
522
|
'--color-subject-gcse-biology': "hsl(148, 84%, 36%)"
|
|
511
523
|
'--color-gl-light': "hsl(222, 68%, 78%)"
|
|
512
524
|
'--color-gl-primary': "hsl(222, 56%, 55%)"
|
|
@@ -523,10 +535,19 @@ export const properties: {
|
|
|
523
535
|
'--text-2xl': "2.3125rem"
|
|
524
536
|
'--text-3xl': "3.125rem"
|
|
525
537
|
'--text-4xl': "5.625rem"
|
|
526
|
-
'--
|
|
527
|
-
'--
|
|
528
|
-
'--
|
|
529
|
-
'--
|
|
538
|
+
'--text-xs--line-height': "1.6"
|
|
539
|
+
'--text-sm--line-height': "1.53"
|
|
540
|
+
'--text-md--line-height': "1.5"
|
|
541
|
+
'--text-lg--line-height': "1.52"
|
|
542
|
+
'--text-xl--line-height': "1.42"
|
|
543
|
+
'--text-2xl--line-height': "1.08"
|
|
544
|
+
'--text-3xl--line-height': "1.12"
|
|
545
|
+
'--text-4xl--line-height': "1"
|
|
546
|
+
'--spacing': "0.25rem"
|
|
547
|
+
'--radius-sm': "0.25rem"
|
|
548
|
+
'--radius-md': "0.5rem"
|
|
549
|
+
'--radius-lg': "0.75rem"
|
|
550
|
+
'--radius-xl': "1rem"
|
|
530
551
|
'--shadow-sm': "0 1px 3px hsla(0, 0%, 20%, 0.1), 0 1px 2px hsla(0, 0%, 20%, 0.15)"
|
|
531
552
|
'--shadow-md': "0 3px 6px hsla(0, 0%, 20%, 0.1), 0 3px 6px hsla(0, 0%, 20%, 0.1)"
|
|
532
553
|
'--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
|
@@ -188,18 +188,18 @@ export const theme = {
|
|
|
188
188
|
"marsh1000": "hsl(147, 17%, 18%)",
|
|
189
189
|
"marsh1100": "hsl(147, 24%, 13%)",
|
|
190
190
|
"marsh1200": "hsl(147, 14%, 7%)",
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
191
|
+
"coolGrey100": "hsl(206, 47%, 97%)",
|
|
192
|
+
"coolGrey200": "hsl(205, 35%, 93%)",
|
|
193
|
+
"coolGrey300": "hsl(206, 27%, 90%)",
|
|
194
|
+
"coolGrey400": "hsl(205, 20%, 83%)",
|
|
195
|
+
"coolGrey500": "hsl(207, 16%, 76%)",
|
|
196
|
+
"coolGrey600": "hsl(207, 14%, 65%)",
|
|
197
|
+
"coolGrey700": "hsl(206, 9%, 49%)",
|
|
198
|
+
"coolGrey800": "hsl(207, 11%, 35%)",
|
|
199
|
+
"coolGrey900": "hsl(208, 15%, 22%)",
|
|
200
|
+
"coolGrey1000": "hsl(208, 19%, 14%)",
|
|
201
|
+
"coolGrey1100": "hsl(207, 20%, 11%)",
|
|
202
|
+
"coolGrey1200": "hsl(210, 18%, 7%)",
|
|
203
203
|
"alpha100": "hsla(0, 0%, 20%, 0.1)",
|
|
204
204
|
"alpha150": "hsla(0, 0%, 20%, 0.15)",
|
|
205
205
|
"alpha200": "hsla(0, 0%, 20%, 0.2)",
|
|
@@ -230,16 +230,17 @@ export const theme = {
|
|
|
230
230
|
"subjectCreativeWriting": "hsl(35, 95%, 50%)",
|
|
231
231
|
"subjectExamSkills": "hsl(257, 53%, 35%)",
|
|
232
232
|
"subjectGcseEnglishLiterature": "hsl(333, 75%, 59%)",
|
|
233
|
+
"subjectGcseEnglishLanguage": "hsl(256, 65%, 62%)",
|
|
233
234
|
"subjectGcseMaths": "hsl(214, 100%, 58%)",
|
|
234
235
|
"subjectGcseChemistry": "hsl(35, 95%, 50%)",
|
|
235
|
-
"subjectGcsePhysics": "hsl(
|
|
236
|
+
"subjectGcsePhysics": "hsl(206, 9%, 49%)",
|
|
236
237
|
"subjectGcseBiology": "hsl(148, 84%, 36%)",
|
|
237
238
|
"glBlueLight": "hsl(222, 68%, 78%)",
|
|
238
239
|
"glBluePrimary": "hsl(222, 56%, 55%)",
|
|
239
240
|
"glBlueDark": "hsl(222, 35%, 43%)"
|
|
240
241
|
},
|
|
241
242
|
"space": {
|
|
242
|
-
"base": "0.
|
|
243
|
+
"base": "0.25rem"
|
|
243
244
|
},
|
|
244
245
|
"fontSizes": {
|
|
245
246
|
"xs": "0.75rem",
|
|
@@ -257,11 +258,21 @@ export const theme = {
|
|
|
257
258
|
"display": "system-ui, -apple-system, 'Helvetica Neue', sans-serif",
|
|
258
259
|
"body": "system-ui, -apple-system, 'Helvetica Neue', sans-serif"
|
|
259
260
|
},
|
|
261
|
+
"lineHeights": {
|
|
262
|
+
"xs": "1.6",
|
|
263
|
+
"sm": "1.53",
|
|
264
|
+
"md": "1.5",
|
|
265
|
+
"lg": "1.52",
|
|
266
|
+
"xl": "1.42",
|
|
267
|
+
"2xl": "1.08",
|
|
268
|
+
"3xl": "1.12",
|
|
269
|
+
"4xl": "1"
|
|
270
|
+
},
|
|
260
271
|
"radii": {
|
|
261
|
-
"sm": "0.
|
|
262
|
-
"md": "0.
|
|
263
|
-
"lg": "0.
|
|
264
|
-
"xl": "
|
|
272
|
+
"sm": "0.25rem",
|
|
273
|
+
"md": "0.5rem",
|
|
274
|
+
"lg": "0.75rem",
|
|
275
|
+
"xl": "1rem"
|
|
265
276
|
},
|
|
266
277
|
"shadows": {
|
|
267
278
|
"sm": "0 1px 3px hsla(0, 0%, 20%, 0.1), 0 1px 2px hsla(0, 0%, 20%, 0.15)",
|
|
@@ -460,18 +471,18 @@ export const properties = {
|
|
|
460
471
|
"--color-marsh-1000": "hsl(147, 17%, 18%)",
|
|
461
472
|
"--color-marsh-1100": "hsl(147, 24%, 13%)",
|
|
462
473
|
"--color-marsh-1200": "hsl(147, 14%, 7%)",
|
|
463
|
-
"--color-
|
|
464
|
-
"--color-
|
|
465
|
-
"--color-
|
|
466
|
-
"--color-
|
|
467
|
-
"--color-
|
|
468
|
-
"--color-
|
|
469
|
-
"--color-
|
|
470
|
-
"--color-
|
|
471
|
-
"--color-
|
|
472
|
-
"--color-
|
|
473
|
-
"--color-
|
|
474
|
-
"--color-
|
|
474
|
+
"--color-cool-grey-100": "hsl(206, 47%, 97%)",
|
|
475
|
+
"--color-cool-grey-200": "hsl(205, 35%, 93%)",
|
|
476
|
+
"--color-cool-grey-300": "hsl(206, 27%, 90%)",
|
|
477
|
+
"--color-cool-grey-400": "hsl(205, 20%, 83%)",
|
|
478
|
+
"--color-cool-grey-500": "hsl(207, 16%, 76%)",
|
|
479
|
+
"--color-cool-grey-600": "hsl(207, 14%, 65%)",
|
|
480
|
+
"--color-cool-grey-700": "hsl(206, 9%, 49%)",
|
|
481
|
+
"--color-cool-grey-800": "hsl(207, 11%, 35%)",
|
|
482
|
+
"--color-cool-grey-900": "hsl(208, 15%, 22%)",
|
|
483
|
+
"--color-cool-grey-1000": "hsl(208, 19%, 14%)",
|
|
484
|
+
"--color-cool-grey-1100": "hsl(207, 20%, 11%)",
|
|
485
|
+
"--color-cool-grey-1200": "hsl(210, 18%, 7%)",
|
|
475
486
|
"--color-alpha-100": "hsla(0, 0%, 20%, 0.1)",
|
|
476
487
|
"--color-alpha-150": "hsla(0, 0%, 20%, 0.15)",
|
|
477
488
|
"--color-alpha-200": "hsla(0, 0%, 20%, 0.2)",
|
|
@@ -502,9 +513,10 @@ export const properties = {
|
|
|
502
513
|
"--color-subject-creative-writing": "hsl(35, 95%, 50%)",
|
|
503
514
|
"--color-subject-exam-skills": "hsl(257, 53%, 35%)",
|
|
504
515
|
"--color-subject-gcse-english-literature": "hsl(333, 75%, 59%)",
|
|
516
|
+
"--color-subject-gcse-english-language": "hsl(256, 65%, 62%)",
|
|
505
517
|
"--color-subject-gcse-maths": "hsl(214, 100%, 58%)",
|
|
506
518
|
"--color-subject-gcse-chemistry": "hsl(35, 95%, 50%)",
|
|
507
|
-
"--color-subject-gcse-physics": "hsl(
|
|
519
|
+
"--color-subject-gcse-physics": "hsl(206, 9%, 49%)",
|
|
508
520
|
"--color-subject-gcse-biology": "hsl(148, 84%, 36%)",
|
|
509
521
|
"--color-gl-light": "hsl(222, 68%, 78%)",
|
|
510
522
|
"--color-gl-primary": "hsl(222, 56%, 55%)",
|
|
@@ -521,10 +533,19 @@ export const properties = {
|
|
|
521
533
|
"--text-2xl": "2.3125rem",
|
|
522
534
|
"--text-3xl": "3.125rem",
|
|
523
535
|
"--text-4xl": "5.625rem",
|
|
524
|
-
"--
|
|
525
|
-
"--
|
|
526
|
-
"--
|
|
527
|
-
"--
|
|
536
|
+
"--text-xs--line-height": "1.6",
|
|
537
|
+
"--text-sm--line-height": "1.53",
|
|
538
|
+
"--text-md--line-height": "1.5",
|
|
539
|
+
"--text-lg--line-height": "1.52",
|
|
540
|
+
"--text-xl--line-height": "1.42",
|
|
541
|
+
"--text-2xl--line-height": "1.08",
|
|
542
|
+
"--text-3xl--line-height": "1.12",
|
|
543
|
+
"--text-4xl--line-height": "1",
|
|
544
|
+
"--spacing": "0.25rem",
|
|
545
|
+
"--radius-sm": "0.25rem",
|
|
546
|
+
"--radius-md": "0.5rem",
|
|
547
|
+
"--radius-lg": "0.75rem",
|
|
548
|
+
"--radius-xl": "1rem",
|
|
528
549
|
"--shadow-sm": "0 1px 3px hsla(0, 0%, 20%, 0.1), 0 1px 2px hsla(0, 0%, 20%, 0.15)",
|
|
529
550
|
"--shadow-md": "0 3px 6px hsla(0, 0%, 20%, 0.1), 0 3px 6px hsla(0, 0%, 20%, 0.1)",
|
|
530
551
|
"--shadow-lg": "0 10px 20px hsla(0, 0%, 20%, 0.1), 0 6px 6px hsla(0, 0%, 20%, 0.1)",
|