@atom-learning/theme 3.0.0-beta.1 → 3.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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 09 Jan 2024 16:15:37 GMT
3
+ // Generated on Fri, 12 Jan 2024 09:32:03 GMT
4
4
 
5
5
  $color-text-bold: #1f1f1f;
6
6
  $color-text-regular: #333333;
@@ -224,8 +224,8 @@ module.exports = {
224
224
  "fonts": {
225
225
  "sans": "system-ui, -apple-system, 'Helvetica Neue', sans-serif",
226
226
  "mono": "'SFMono-Regular', Consolas, Menlo, monospace",
227
- "display": "'Make', system-ui, -apple-system, 'Helvetica Neue', sans-serif",
228
- "body": "'DM Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif"
227
+ "display": "'DM Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif",
228
+ "body": "'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif"
229
229
  },
230
230
  "sizes": {
231
231
  "0": "0.5rem",
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 09 Jan 2024 16:15:37 GMT
3
+ // Generated on Fri, 12 Jan 2024 09:32:03 GMT
4
4
 
5
5
  $color-text-bold: #1f1f1f;
6
6
  $color-text-regular: #333333;
@@ -201,8 +201,8 @@ $color-primary-1100: #162c22;
201
201
  $color-primary-1200: #0e1612;
202
202
  $font-families-sans: system-ui, -apple-system, 'Helvetica Neue', sans-serif;
203
203
  $font-families-mono: 'SFMono-Regular', Consolas, Menlo, monospace;
204
- $font-families-display: 'Make', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
205
- $font-families-body: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
204
+ $font-families-display: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
205
+ $font-families-body: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
206
206
 
207
207
  $effects-shadows: (
208
208
  0: (0 1px 3px rgba(51, 51, 51, 0.1), 0 1px 2px rgba(51, 51, 51, 0.15)),
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@atom-learning/theme",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.1",
4
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": {
8
- "build:lib": "node ./scripts/build.js --theme=atom && node ./scripts/build.js --theme=quest",
9
- "build:docs": "cp -r ./src/documentation/. ./lib",
10
- "prepublishOnly": "run-s clean build:lib build:docs",
8
+ "build": "node ./scripts/build.js --theme=atom && node ./scripts/build.js --theme=quest",
9
+ "prepublishOnly": "run-s clean build",
11
10
  "clean": "del ./lib"
12
11
  },
13
12
  "files": [
package/lib/Colours.mdx DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- title: Colours
3
- ---
4
-
5
- <ColorPalette colors={theme.colors} />
package/lib/Effects.mdx DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: Effects
3
- ---
4
-
5
- ## Shadows
6
-
7
- <Scale scale={theme.shadows} css={{ mb: '$5' }} displayValue={false}>
8
- {(value) => (
9
- <Box
10
- css={{ boxShadow: value, bg: 'white', borderRadius: '$1', size: '$5' }}
11
- />
12
- )}
13
- </Scale>
package/lib/Icons.mdx DELETED
@@ -1,8 +0,0 @@
1
- ---
2
- title: Icons
3
- description: Our icons are useful, easy to understand symbols for common actions and items
4
- ---
5
-
6
- The current icon set is from [Ikonate](https://ikonate.com/). To read about how to use these icons, go to the [Icon](/components/icon) component page and follow the instructions. You can click any of the icons below to copy the relevant `Icon` name.
7
-
8
- <IconTable css={{ my: '$5' }} />
@@ -1,69 +0,0 @@
1
- ---
2
- title: Layout and space
3
- description: Visualising the space in and around components is tricky. This page demonstrates the levels of spacing that can be applied through our space and size scales.
4
- ---
5
-
6
- ## Space
7
-
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
-
10
- <Scale scale={theme.space} css={{ mb: '$5' }}>
11
- {(value) => <Box css={{ height: '$1', width: value, bg: '$primary' }} />}
12
- </Scale>
13
-
14
- ## Size
15
-
16
- The size scale is used when defining the dimensions of an element, it applies to the following common CSS properties, `width` and `height`, including the `max` and `min` of both.
17
-
18
- <Scale scale={theme.sizes} css={{ mb: '$5' }}>
19
- {(value) => <Box css={{ size: value, bg: '$primary' }} />}
20
- </Scale>
21
-
22
- ## Radius
23
-
24
- The radii scale uses similar scale values for applying a border-radius.
25
-
26
- <Scale scale={theme.radii} css={{ mb: '$5' }}>
27
- {(value) => (
28
- <Box
29
- css={{
30
- borderRadius: value,
31
- bg: '$primary',
32
- size: '$5'
33
- }}
34
- />
35
- )}
36
- </Scale>
37
-
38
- ## Example
39
-
40
- The following "Avatar" style component is created using the size, space and radii scale. A `size` of `$3` is used to set the `height` and `width`, `mr` and `mb` are used to set the spacing between elements, and the `$round` token is used to apply a circluar border-radius.
41
-
42
- ```jsx preview
43
- <Flex
44
- css={{
45
- alignItems: 'center',
46
- border: '1px solid $tonal300',
47
- borderRadius: '$2',
48
- p: '$3',
49
- width: '320px'
50
- }}
51
- >
52
- <Box
53
- css={{
54
- bg: '$primary',
55
- borderRadius: '$round',
56
- size: '$5',
57
- mr: '$3'
58
- }}
59
- />
60
- <Flex css={{ flexDirection: 'column' }}>
61
- <Heading size="sm" css={{ mb: '$3' }}>
62
- Steve Brusatte
63
- </Heading>
64
- <Text size="sm" css={{ color: '$tonal600' }}>
65
- @SteveBrusatte
66
- </Text>
67
- </Flex>
68
- </Flex>
69
- ```
@@ -1,46 +0,0 @@
1
- ---
2
- title: Typography
3
- description: We have a variety of Text components to provide consistent typography throughout the application. You can read more about those specific font styles in the Text component documentation.
4
- ---
5
-
6
- ## Fonts
7
-
8
- <Scale scale={theme.fonts} css={{ mb: '$6' }} displayValue={false}>
9
- {(value) => (
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
- >
19
- Abc-Xyz
20
- </Text>
21
- <Text size="sm" css={{ color: '$tonal600', fontFamily: '$body' }}>
22
- {value}
23
- </Text>
24
- </Box>
25
- )}
26
- </Scale>
27
-
28
- ## Sizes
29
-
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
31
-
32
- <Scale scale={theme.fontSizes} css={{ mb: '$6' }}>
33
- {(value) => (
34
- <Text css={{ fontSize: value, whiteSpace: 'nowrap' }}>Hello World</Text>
35
- )}
36
- </Scale>
37
-
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.
39
-
40
- ```jsx preview
41
- <Box css={{ bg: '$tonal100', p: '$5' }}>
42
- <Text size="xl" css={{ bg: 'white' }}>
43
- Hello World
44
- </Text>
45
- </Box>
46
- ```