@atom-learning/theme 1.0.0-beta.4 → 1.0.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/lib/LayoutAndSpace.mdx +2 -2
- package/lib/Typography.mdx +16 -7
- package/lib/assets/logo-light.png +0 -0
- package/lib/assets/logo-light.svg +2 -2
- package/lib/assets/logo-primary.png +0 -0
- package/lib/assets/logo-primary.svg +2 -2
- package/lib/assets/logo.png +0 -0
- package/lib/assets/logo.svg +5 -5
- package/lib/index.d.ts +90 -72
- package/lib/index.js +38 -20
- package/lib/index.scss +43 -25
- package/package.json +4 -3
package/lib/LayoutAndSpace.mdx
CHANGED
|
@@ -8,7 +8,7 @@ description: Visualising the space in and around components is tricky. This page
|
|
|
8
8
|
This scale will apply to the space between and internal to elements, it applies to the following common CSS layout properties, `margin`, `padding`, `grid-gap` and flexbox `gap`.
|
|
9
9
|
|
|
10
10
|
<Scale scale={theme.space} css={{ mb: '$5' }}>
|
|
11
|
-
{(value) => <Box css={{
|
|
11
|
+
{(value) => <Box css={{ height: '$1', width: value, bg: '$primary' }} />}
|
|
12
12
|
</Scale>
|
|
13
13
|
|
|
14
14
|
## Size
|
|
@@ -61,7 +61,7 @@ The following "Avatar" style component is created using the size, space and radi
|
|
|
61
61
|
<Heading size="sm" css={{ mb: '$3' }}>
|
|
62
62
|
Steve Brusatte
|
|
63
63
|
</Heading>
|
|
64
|
-
<Text size="sm" css={{ color: '$
|
|
64
|
+
<Text size="sm" css={{ color: '$tonal600' }}>
|
|
65
65
|
@SteveBrusatte
|
|
66
66
|
</Text>
|
|
67
67
|
</Flex>
|
package/lib/Typography.mdx
CHANGED
|
@@ -5,13 +5,20 @@ description: We have a variety of Text components to provide consistent typograp
|
|
|
5
5
|
|
|
6
6
|
## Fonts
|
|
7
7
|
|
|
8
|
-
<Scale scale={theme.fonts} css={{ mb: '$
|
|
8
|
+
<Scale scale={theme.fonts} css={{ mb: '$6' }} displayValue={false}>
|
|
9
9
|
{(value) => (
|
|
10
|
-
<Box css={{ pl: '$
|
|
11
|
-
<Text
|
|
10
|
+
<Box css={{ pl: '$3', textAlign: 'right' }}>
|
|
11
|
+
<Text
|
|
12
|
+
css={{
|
|
13
|
+
fontFamily: value,
|
|
14
|
+
fontSize: '$2xl',
|
|
15
|
+
mb: '$4',
|
|
16
|
+
'@md': { fontSize: '$3xl' }
|
|
17
|
+
}}
|
|
18
|
+
>
|
|
12
19
|
Abc-Xyz
|
|
13
20
|
</Text>
|
|
14
|
-
<Text size="sm" css={{ color: '$tonal600', fontFamily:
|
|
21
|
+
<Text size="sm" css={{ color: '$tonal600', fontFamily: '$body' }}>
|
|
15
22
|
{value}
|
|
16
23
|
</Text>
|
|
17
24
|
</Box>
|
|
@@ -22,14 +29,16 @@ description: We have a variety of Text components to provide consistent typograp
|
|
|
22
29
|
|
|
23
30
|
This typographic sizing scale represents the `font-size` values used in our components. It loosely follows the [Perfect Fourth](https://type-scale.com/?scale=1.333&font=Inter) scale and can be accessed by using t-shirt notation
|
|
24
31
|
|
|
25
|
-
<Scale scale={theme.fontSizes} css={{ mb: '$
|
|
26
|
-
{(value) =>
|
|
32
|
+
<Scale scale={theme.fontSizes} css={{ mb: '$6' }}>
|
|
33
|
+
{(value) => (
|
|
34
|
+
<Text css={{ fontSize: value, whiteSpace: 'nowrap' }}>Hello World</Text>
|
|
35
|
+
)}
|
|
27
36
|
</Scale>
|
|
28
37
|
|
|
29
38
|
Note that most of our typography components (`Text`, `Heading`, `Label` and others) use [capsize](https://seek-oss.github.io/capsize/) to offset the white-space between the cap-height and the line-height. This means that spacing in and around our text will be tight to the characters.
|
|
30
39
|
|
|
31
40
|
```jsx preview
|
|
32
|
-
<Box css={{ bg: '$tonal100', p: '$
|
|
41
|
+
<Box css={{ bg: '$tonal100', p: '$5' }}>
|
|
33
42
|
<Text size="xl" css={{ bg: 'white' }}>
|
|
34
43
|
Hello World
|
|
35
44
|
</Text>
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
2
|
-
<path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="82" fill="#fff" viewBox="0 0 300 82">
|
|
2
|
+
<path d="M200 80.1a2 2 0 01-.6 1.4 1.9 1.9 0 01-1.3.5H116a1.9 1.9 0 01-1.3-.6 2 2 0 01-.6-1.3C114 56.8 134 38 157 38s43 18.7 43 42zM192.5 34a8.5 8.5 0 10-8.5-8.5 8.5 8.5 0 008.5 8.5zM71.8 80.1a2 2 0 01-.5 1.3 1.9 1.9 0 01-1.3.6H1.7a1.9 1.9 0 01-1.3-.6 2 2 0 01-.6-1.3 2 2 0 01.4-1l34.3-60.3a2 2 0 01.7-.6 2 2 0 01.8-.2 1.9 1.9 0 011 .2 1.9 1.9 0 01.6.6l33.9 60.3a1.9 1.9 0 01.3 1zM298.3 17a1.6 1.6 0 00-1 .3l-41.5 31a1.5 1.5 0 01-1 .4 1.4 1.4 0 01-.9-.3l-41.3-31a1.6 1.6 0 00-.9-.3 1.8 1.8 0 00-1.2.6 1.9 1.9 0 00-.5 1.4v61a1.8 1.8 0 00.5 1.3 1.8 1.8 0 001.2.6h86.6a1.8 1.8 0 001.2-.6 1.9 1.9 0 00.5-1.3V18.9a1.9 1.9 0 00-.5-1.3 1.8 1.8 0 00-1.2-.6zM115 16h-10a1 1 0 01-1-1V2a2 2 0 000-.8 2 2 0 00-2-1.2H83a2 2 0 00-2 2v78a2 2 0 002 1.9h19a2 2 0 002-1.9V40.9a1 1 0 010-.4 1 1 0 01.9-.6H115a2 2 0 002-1.9V18a2 2 0 00-2-2z"/>
|
|
3
3
|
</svg>
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
2
|
-
<path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="82" fill="#4E8EF7" viewBox="0 0 300 82">
|
|
2
|
+
<path d="M200 80.1a2 2 0 01-.6 1.4 1.9 1.9 0 01-1.3.5H116a1.9 1.9 0 01-1.3-.6 2 2 0 01-.6-1.3C114 56.8 134 38 157 38s43 18.7 43 42zM192.5 34a8.5 8.5 0 10-8.5-8.5 8.5 8.5 0 008.5 8.5zM71.8 80.1a2 2 0 01-.5 1.3 1.9 1.9 0 01-1.3.6H1.7a1.9 1.9 0 01-1.3-.6 2 2 0 01-.6-1.3 2 2 0 01.4-1l34.3-60.3a2 2 0 01.7-.6 2 2 0 01.8-.2 1.9 1.9 0 011 .2 1.9 1.9 0 01.6.6l33.9 60.3a1.9 1.9 0 01.3 1zM298.3 17a1.6 1.6 0 00-1 .3l-41.5 31a1.5 1.5 0 01-1 .4 1.4 1.4 0 01-.9-.3l-41.3-31a1.6 1.6 0 00-.9-.3 1.8 1.8 0 00-1.2.6 1.9 1.9 0 00-.5 1.4v61a1.8 1.8 0 00.5 1.3 1.8 1.8 0 001.2.6h86.6a1.8 1.8 0 001.2-.6 1.9 1.9 0 00.5-1.3V18.9a1.9 1.9 0 00-.5-1.3 1.8 1.8 0 00-1.2-.6zM115 16h-10a1 1 0 01-1-1V2a2 2 0 000-.8 2 2 0 00-2-1.2H83a2 2 0 00-2 2v78a2 2 0 002 1.9h19a2 2 0 002-1.9V40.9a1 1 0 010-.4 1 1 0 01.9-.6H115a2 2 0 002-1.9V18a2 2 0 00-2-2z"/>
|
|
3
3
|
</svg>
|
|
Binary file
|
package/lib/assets/logo.svg
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
2
|
-
<path fill="#
|
|
3
|
-
<path fill="#
|
|
4
|
-
<path fill="#
|
|
5
|
-
<path fill="#
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="82" fill="none" viewBox="0 0 300 82">
|
|
2
|
+
<path fill="#f74e4e" d="M200 80.1a2 2 0 01-.6 1.4 1.9 1.9 0 01-1.3.5H116a1.9 1.9 0 01-1.3-.6 2 2 0 01-.6-1.3C114 56.8 134 38 157 38s43 18.7 43 42zM192.5 34a8.5 8.5 0 10-8.5-8.5 8.5 8.5 0 008.5 8.5z"/>
|
|
3
|
+
<path fill="#ffb71b" d="M71.8 80.1a2 2 0 01-.5 1.3 1.9 1.9 0 01-1.3.6H1.7a1.9 1.9 0 01-1.3-.6 2 2 0 01-.6-1.3 2 2 0 01.4-1l34.3-60.3a2 2 0 01.7-.6 2 2 0 01.8-.2 1.9 1.9 0 011 .2 1.9 1.9 0 01.6.6l33.9 60.3a1.9 1.9 0 01.3 1z"/>
|
|
4
|
+
<path fill="#4fbf5e" d="M298.3 17a1.6 1.6 0 00-1 .3l-41.5 31a1.5 1.5 0 01-1 .4 1.4 1.4 0 01-.9-.3l-41.3-31a1.6 1.6 0 00-.9-.3 1.8 1.8 0 00-1.2.6 1.9 1.9 0 00-.5 1.4v61a1.8 1.8 0 00.5 1.3 1.8 1.8 0 001.2.6h86.6a1.8 1.8 0 001.2-.6 1.9 1.9 0 00.5-1.3V18.9a1.9 1.9 0 00-.5-1.3 1.8 1.8 0 00-1.2-.6z"/>
|
|
5
|
+
<path fill="#71c5ff" d="M115 16H105a1 1 0 01-1-1V2a2 2 0 000-.8A2 2 0 00102 0H83a2 2 0 00-2 2V80a2 2 0 002 1.9h19a2 2 0 002-1.9V40.9a1 1 0 010-.4 1 1 0 01.9-.6H115a2 2 0 002-1.9V18a2 2 0 00-2-2z"/>
|
|
6
6
|
</svg>
|
package/lib/index.d.ts
CHANGED
|
@@ -1,87 +1,105 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Theme = {
|
|
2
2
|
"colors": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
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
|
-
"
|
|
3
|
+
"textForeground": string
|
|
4
|
+
"textSubtle": string
|
|
5
|
+
"textPlaceholder": string
|
|
6
|
+
"background": string
|
|
7
|
+
"backgroundAccent": string
|
|
8
|
+
"tonal50": string
|
|
9
|
+
"tonal100": string
|
|
10
|
+
"tonal200": string
|
|
11
|
+
"tonal300": string
|
|
12
|
+
"tonal400": string
|
|
13
|
+
"tonal500": string
|
|
14
|
+
"tonal600": string
|
|
15
|
+
"alpha100": string
|
|
16
|
+
"alpha150": string
|
|
17
|
+
"alpha200": string
|
|
18
|
+
"alpha250": string
|
|
19
|
+
"alpha600": string
|
|
20
|
+
"primaryLight": string
|
|
21
|
+
"primary": string
|
|
22
|
+
"primaryMid": string
|
|
23
|
+
"primaryDark": string
|
|
24
|
+
"secondary": string
|
|
25
|
+
"brandRed": string
|
|
26
|
+
"brandRedAccent": string
|
|
27
|
+
"brandGreen": string
|
|
28
|
+
"brandGreenAccent": string
|
|
29
|
+
"brandPurple": string
|
|
30
|
+
"brandPurpleAccent": string
|
|
31
|
+
"brandYellow": string
|
|
32
|
+
"brandYellowAccent": string
|
|
33
|
+
"successLight": string
|
|
34
|
+
"success": string
|
|
35
|
+
"successMid": string
|
|
36
|
+
"successDark": string
|
|
37
|
+
"dangerLight": string
|
|
38
|
+
"danger": string
|
|
39
|
+
"dangerMid": string
|
|
40
|
+
"dangerDark": string
|
|
41
|
+
"warningLight": string
|
|
42
|
+
"warning": string
|
|
43
|
+
"warningMid": string
|
|
44
|
+
"warningDark": string
|
|
45
|
+
"subjectEnglish": string
|
|
46
|
+
"subjectMaths": string
|
|
47
|
+
"subjectScience": string
|
|
48
|
+
"subjectVerbalReasoning": string
|
|
49
|
+
"subjectNonVerbalReasoning": string
|
|
50
|
+
"subjectCreativeWriting": string
|
|
51
|
+
"subjectExamSkills": string
|
|
34
52
|
},
|
|
35
53
|
"space": {
|
|
36
|
-
"0":
|
|
37
|
-
"1":
|
|
38
|
-
"2":
|
|
39
|
-
"3":
|
|
40
|
-
"4":
|
|
41
|
-
"5":
|
|
42
|
-
"6":
|
|
43
|
-
"7":
|
|
44
|
-
"8":
|
|
45
|
-
"9":
|
|
54
|
+
"0": string
|
|
55
|
+
"1": string
|
|
56
|
+
"2": string
|
|
57
|
+
"3": string
|
|
58
|
+
"4": string
|
|
59
|
+
"5": string
|
|
60
|
+
"6": string
|
|
61
|
+
"7": string
|
|
62
|
+
"8": string
|
|
63
|
+
"9": string
|
|
46
64
|
},
|
|
47
65
|
"fontSizes": {
|
|
48
|
-
"xs":
|
|
49
|
-
"sm":
|
|
50
|
-
"md":
|
|
51
|
-
"lg":
|
|
52
|
-
"xl":
|
|
53
|
-
"2xl":
|
|
54
|
-
"3xl":
|
|
55
|
-
"4xl":
|
|
66
|
+
"xs": string
|
|
67
|
+
"sm": string
|
|
68
|
+
"md": string
|
|
69
|
+
"lg": string
|
|
70
|
+
"xl": string
|
|
71
|
+
"2xl": string
|
|
72
|
+
"3xl": string
|
|
73
|
+
"4xl": string
|
|
56
74
|
},
|
|
57
75
|
"fonts": {
|
|
58
|
-
"sans":
|
|
59
|
-
"mono":
|
|
60
|
-
"display":
|
|
61
|
-
"body":
|
|
76
|
+
"sans": string
|
|
77
|
+
"mono": string
|
|
78
|
+
"display": string
|
|
79
|
+
"body": string
|
|
62
80
|
},
|
|
63
81
|
"sizes": {
|
|
64
|
-
"0":
|
|
65
|
-
"1":
|
|
66
|
-
"2":
|
|
67
|
-
"3":
|
|
68
|
-
"4":
|
|
69
|
-
"5":
|
|
70
|
-
"6":
|
|
71
|
-
"7":
|
|
72
|
-
"8":
|
|
82
|
+
"0": string
|
|
83
|
+
"1": string
|
|
84
|
+
"2": string
|
|
85
|
+
"3": string
|
|
86
|
+
"4": string
|
|
87
|
+
"5": string
|
|
88
|
+
"6": string
|
|
89
|
+
"7": string
|
|
90
|
+
"8": string
|
|
73
91
|
},
|
|
74
92
|
"radii": {
|
|
75
|
-
"0":
|
|
76
|
-
"1":
|
|
77
|
-
"2":
|
|
78
|
-
"3":
|
|
79
|
-
"round":
|
|
93
|
+
"0": string
|
|
94
|
+
"1": string
|
|
95
|
+
"2": string
|
|
96
|
+
"3": string
|
|
97
|
+
"round": string
|
|
80
98
|
},
|
|
81
99
|
"shadows": {
|
|
82
|
-
"0":
|
|
83
|
-
"1":
|
|
84
|
-
"2":
|
|
85
|
-
"3":
|
|
100
|
+
"0": string
|
|
101
|
+
"1": string
|
|
102
|
+
"2": string
|
|
103
|
+
"3": string
|
|
86
104
|
}
|
|
87
105
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,36 +1,54 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"colors": {
|
|
3
|
+
"textForeground": "hsl(0, 0%, 12%)",
|
|
4
|
+
"textSubtle": "hsl(0, 0%, 33%)",
|
|
5
|
+
"textPlaceholder": "hsl(0, 0%, 46%)",
|
|
6
|
+
"background": "hsl(0, 0%, 96%)",
|
|
7
|
+
"backgroundAccent": "hsl(217, 92%, 97%)",
|
|
3
8
|
"tonal50": "hsl(0, 0%, 96%)",
|
|
4
9
|
"tonal100": "hsl(0, 0%, 93%)",
|
|
5
|
-
"tonal200": "hsl(0, 0%,
|
|
6
|
-
"tonal300": "hsl(0, 0%,
|
|
7
|
-
"tonal400": "hsl(0, 0%,
|
|
8
|
-
"tonal500": "hsl(0, 0%,
|
|
9
|
-
"tonal600": "hsl(0, 0%,
|
|
10
|
-
"tonal700": "hsl(0, 0%, 20%)",
|
|
11
|
-
"tonal800": "hsl(0, 0%, 12%)",
|
|
12
|
-
"tonal900": "hsl(0, 0%, 8%)",
|
|
10
|
+
"tonal200": "hsl(0, 0%, 69%)",
|
|
11
|
+
"tonal300": "hsl(0, 0%, 46%)",
|
|
12
|
+
"tonal400": "hsl(0, 0%, 33%)",
|
|
13
|
+
"tonal500": "hsl(0, 0%, 20%)",
|
|
14
|
+
"tonal600": "hsl(0, 0%, 12%)",
|
|
13
15
|
"alpha100": "hsla(0, 0%, 20%, 0.1)",
|
|
14
16
|
"alpha150": "hsla(0, 0%, 20%, 0.15)",
|
|
15
17
|
"alpha200": "hsla(0, 0%, 20%, 0.2)",
|
|
16
18
|
"alpha250": "hsla(0, 0%, 20%, 0.25)",
|
|
17
19
|
"alpha600": "hsla(0, 0%, 20%, 0.6)",
|
|
20
|
+
"primaryLight": "hsl(217, 92%, 97%)",
|
|
18
21
|
"primary": "hsl(217, 92%, 54%)",
|
|
22
|
+
"primaryMid": "hsl(223, 78%, 45%)",
|
|
23
|
+
"primaryDark": "hsl(228, 82%, 35%)",
|
|
19
24
|
"secondary": "hsl(204, 100%, 72%)",
|
|
20
|
-
"
|
|
25
|
+
"brandRed": "hsl(0, 91%, 64%)",
|
|
26
|
+
"brandRedAccent": "hsl(14, 100%, 71%)",
|
|
27
|
+
"brandGreen": "hsl(128, 47%, 53%)",
|
|
28
|
+
"brandGreenAccent": "hsl(168, 100%, 20%)",
|
|
29
|
+
"brandPurple": "hsl(256, 65%, 62%)",
|
|
30
|
+
"brandPurpleAccent": "hsl(256, 93%, 35%)",
|
|
31
|
+
"brandYellow": "hsl(41, 100%, 55%)",
|
|
32
|
+
"brandYellowAccent": "hsl(33, 100%, 50%)",
|
|
33
|
+
"successLight": "hsl(119, 44%, 94%)",
|
|
21
34
|
"success": "hsl(119, 100%, 27%)",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
35
|
+
"successMid": "hsl(124, 100%, 22%)",
|
|
36
|
+
"successDark": "hsl(126, 100%, 17%)",
|
|
37
|
+
"dangerLight": "hsl(0, 77%, 95%)",
|
|
38
|
+
"danger": "hsl(0, 96%, 48%)",
|
|
39
|
+
"dangerMid": "hsl(0, 96%, 41%)",
|
|
40
|
+
"dangerDark": "hsl(0, 97%, 34%)",
|
|
41
|
+
"warningLight": "hsl(39, 100%, 94%)",
|
|
25
42
|
"warning": "hsl(41, 100%, 55%)",
|
|
26
|
-
"
|
|
43
|
+
"warningMid": "hsl(41, 89%, 48%)",
|
|
44
|
+
"warningDark": "hsl(41, 100%, 41%)",
|
|
27
45
|
"subjectEnglish": "hsl(0, 91%, 64%)",
|
|
28
46
|
"subjectMaths": "hsl(217, 92%, 54%)",
|
|
29
47
|
"subjectScience": "hsl(256, 65%, 62%)",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
48
|
+
"subjectVerbalReasoning": "hsl(128, 47%, 53%)",
|
|
49
|
+
"subjectNonVerbalReasoning": "hsl(41, 100%, 55%)",
|
|
50
|
+
"subjectCreativeWriting": "hsl(33, 100%, 50%)",
|
|
51
|
+
"subjectExamSkills": "hsl(256, 93%, 35%)"
|
|
34
52
|
},
|
|
35
53
|
"space": {
|
|
36
54
|
"0": "0.125rem",
|
|
@@ -45,8 +63,8 @@ module.exports = {
|
|
|
45
63
|
"9": "5rem"
|
|
46
64
|
},
|
|
47
65
|
"fontSizes": {
|
|
48
|
-
"xs": "0.
|
|
49
|
-
"sm": "0.
|
|
66
|
+
"xs": "0.75rem",
|
|
67
|
+
"sm": "0.875rem",
|
|
50
68
|
"md": "1rem",
|
|
51
69
|
"lg": "1.3125rem",
|
|
52
70
|
"xl": "1.75rem",
|
|
@@ -76,7 +94,7 @@ module.exports = {
|
|
|
76
94
|
"1": "0.5rem",
|
|
77
95
|
"2": "0.75rem",
|
|
78
96
|
"3": "1rem",
|
|
79
|
-
"round": "
|
|
97
|
+
"round": "100rem"
|
|
80
98
|
},
|
|
81
99
|
"shadows": {
|
|
82
100
|
"0": "0 1px 3px hsla(0, 0%, 20%, 0.15), 0 1px 2px hsla(0, 0%, 20%, 0.2)",
|
package/lib/index.scss
CHANGED
|
@@ -1,38 +1,56 @@
|
|
|
1
1
|
|
|
2
2
|
// Do not edit directly
|
|
3
|
-
// Generated on
|
|
3
|
+
// Generated on Tue, 30 Nov 2021 11:41:11 GMT
|
|
4
4
|
|
|
5
|
+
$color-text-foreground: #1f1f1f;
|
|
6
|
+
$color-text-subtle: #545454;
|
|
7
|
+
$color-text-placeholder: #757575;
|
|
8
|
+
$color-background-base: #f5f5f5;
|
|
9
|
+
$color-background-accent: #f0f6fe;
|
|
5
10
|
$color-tonal-50: #f5f5f5;
|
|
6
11
|
$color-tonal-100: #ededed;
|
|
7
|
-
$color-tonal-200: #
|
|
8
|
-
$color-tonal-300: #
|
|
9
|
-
$color-tonal-400: #
|
|
10
|
-
$color-tonal-500: #
|
|
11
|
-
$color-tonal-600: #
|
|
12
|
-
$color-tonal-700: #333333;
|
|
13
|
-
$color-tonal-800: #1f1f1f;
|
|
14
|
-
$color-tonal-900: #141414;
|
|
12
|
+
$color-tonal-200: #b0b0b0;
|
|
13
|
+
$color-tonal-300: #757575;
|
|
14
|
+
$color-tonal-400: #545454;
|
|
15
|
+
$color-tonal-500: #333333;
|
|
16
|
+
$color-tonal-600: #1f1f1f;
|
|
15
17
|
$color-alpha-100: rgba(51, 51, 51, 0.1);
|
|
16
18
|
$color-alpha-150: rgba(51, 51, 51, 0.15);
|
|
17
19
|
$color-alpha-200: rgba(51, 51, 51, 0.2);
|
|
18
20
|
$color-alpha-250: rgba(51, 51, 51, 0.25);
|
|
19
21
|
$color-alpha-600: rgba(51, 51, 51, 0.6);
|
|
20
|
-
$color-primary: #
|
|
22
|
+
$color-primary-light: #f0f6fe;
|
|
23
|
+
$color-primary-base: #1e71f6;
|
|
24
|
+
$color-primary-mid: #194ccc;
|
|
25
|
+
$color-primary-dark: #102da2;
|
|
21
26
|
$color-secondary: #70c6ff;
|
|
22
|
-
$color-
|
|
27
|
+
$color-brand-red-base: #f75050;
|
|
28
|
+
$color-brand-red-accent: #ff8e6b;
|
|
29
|
+
$color-brand-green-base: #4fbf5e;
|
|
30
|
+
$color-brand-green-accent: #006652;
|
|
31
|
+
$color-brand-purple-base: #815fdd;
|
|
32
|
+
$color-brand-purple-accent: #3306ac;
|
|
33
|
+
$color-brand-yellow-base: #ffb61a;
|
|
34
|
+
$color-brand-yellow-accent: #ff8c00;
|
|
35
|
+
$color-success-light: #e9f6e9;
|
|
23
36
|
$color-success-base: #028a00;
|
|
24
|
-
$color-success-
|
|
25
|
-
$color-
|
|
26
|
-
$color-danger-
|
|
37
|
+
$color-success-mid: #007007;
|
|
38
|
+
$color-success-dark: #005709;
|
|
39
|
+
$color-danger-light: #fce8e8;
|
|
40
|
+
$color-danger-base: #f00505;
|
|
41
|
+
$color-danger-mid: #cd0404;
|
|
42
|
+
$color-danger-dark: #ab0303;
|
|
43
|
+
$color-warning-light: #fff4e0;
|
|
27
44
|
$color-warning-base: #ffb61a;
|
|
28
|
-
$color-warning-
|
|
29
|
-
$color-
|
|
30
|
-
$color-subject-
|
|
31
|
-
$color-subject-
|
|
32
|
-
$color-subject-
|
|
33
|
-
$color-subject-
|
|
34
|
-
$color-subject-
|
|
35
|
-
$color-subject-
|
|
45
|
+
$color-warning-mid: #e7a20d;
|
|
46
|
+
$color-warning-dark: #d18f00;
|
|
47
|
+
$color-subject-english: #f75050;
|
|
48
|
+
$color-subject-maths: #1e71f6;
|
|
49
|
+
$color-subject-science: #815fdd;
|
|
50
|
+
$color-subject-verbal-reasoning: #4fbf5e;
|
|
51
|
+
$color-subject-non-verbal-reasoning: #ffb61a;
|
|
52
|
+
$color-subject-creative-writing: #ff8c00;
|
|
53
|
+
$color-subject-exam-skills: #3306ac;
|
|
36
54
|
$font-families-sans: system-ui, -apple-system, 'Helvetica Neue', sans-serif;
|
|
37
55
|
$font-families-mono: 'SFMono-Regular', Consolas, Menlo, monospace;
|
|
38
56
|
$font-families-display: 'Space Grotesk', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
|
|
@@ -45,8 +63,8 @@ $effects-shadows: (
|
|
|
45
63
|
3: (0 14px 28px rgba(51, 51, 51, 0.25), 0 10px 10px rgba(51, 51, 51, 0.2))
|
|
46
64
|
);
|
|
47
65
|
$size-font: (
|
|
48
|
-
xs:
|
|
49
|
-
sm:
|
|
66
|
+
xs: 12px,
|
|
67
|
+
sm: 14px,
|
|
50
68
|
md: 16px,
|
|
51
69
|
lg: 21px,
|
|
52
70
|
xl: 28px,
|
|
@@ -82,5 +100,5 @@ $size-radii: (
|
|
|
82
100
|
1: 8px,
|
|
83
101
|
2: 12px,
|
|
84
102
|
3: 16px,
|
|
85
|
-
round:
|
|
103
|
+
round: 1600px
|
|
86
104
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom-learning/theme",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Design tokens and assets for Atom Learning",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"del-cli": "^3.0.1",
|
|
20
20
|
"npm-run-all": "^4.1.5",
|
|
21
|
-
"
|
|
21
|
+
"pascal-case": "^3.1.2",
|
|
22
|
+
"style-dictionary": "^3.0.1"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {}
|
|
24
25
|
}
|