@instructure/ui-themes 10.0.1-snapshot-13 → 10.1.1-snapshot-4973

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +16 -2
  2. package/README.md +4 -4
  3. package/es/index.js +5 -3
  4. package/es/sharedThemeTokens/borders.js +45 -0
  5. package/es/sharedThemeTokens/breakpoints.js +57 -0
  6. package/es/sharedThemeTokens/colors/dataVisualization.js +138 -0
  7. package/es/sharedThemeTokens/colors/primitives.js +172 -0
  8. package/es/sharedThemeTokens/forms.js +31 -0
  9. package/es/sharedThemeTokens/index.js +46 -0
  10. package/es/sharedThemeTokens/media.js +32 -0
  11. package/es/sharedThemeTokens/shadows.js +36 -0
  12. package/es/sharedThemeTokens/spacing.js +45 -0
  13. package/es/sharedThemeTokens/stacking.js +32 -0
  14. package/es/sharedThemeTokens/transitions.js +30 -0
  15. package/es/sharedThemeTokens/typography.js +54 -0
  16. package/es/themes/canvas/colors.js +67 -0
  17. package/es/themes/canvas/index.js +54 -0
  18. package/es/themes/canvasHighContrast/colors.js +67 -0
  19. package/es/themes/canvasHighContrast/index.js +36 -0
  20. package/es/utils/getUIColors.js +59 -0
  21. package/lib/index.js +26 -5
  22. package/lib/sharedThemeTokens/borders.js +50 -0
  23. package/lib/sharedThemeTokens/breakpoints.js +62 -0
  24. package/lib/sharedThemeTokens/colors/dataVisualization.js +144 -0
  25. package/lib/sharedThemeTokens/colors/primitives.js +178 -0
  26. package/lib/sharedThemeTokens/forms.js +36 -0
  27. package/lib/sharedThemeTokens/index.js +51 -0
  28. package/lib/sharedThemeTokens/media.js +37 -0
  29. package/lib/sharedThemeTokens/shadows.js +41 -0
  30. package/lib/sharedThemeTokens/spacing.js +50 -0
  31. package/lib/sharedThemeTokens/stacking.js +37 -0
  32. package/lib/sharedThemeTokens/transitions.js +35 -0
  33. package/lib/sharedThemeTokens/typography.js +59 -0
  34. package/lib/themes/canvas/colors.js +73 -0
  35. package/lib/themes/canvas/index.js +60 -0
  36. package/lib/themes/canvasHighContrast/colors.js +73 -0
  37. package/lib/themes/canvasHighContrast/index.js +43 -0
  38. package/lib/utils/getUIColors.js +66 -0
  39. package/package.json +4 -6
  40. package/src/index.ts +28 -9
  41. package/src/sharedThemeTokens/borders.ts +42 -0
  42. package/src/sharedThemeTokens/breakpoints.ts +54 -0
  43. package/src/sharedThemeTokens/colors/dataVisualization.ts +151 -0
  44. package/src/sharedThemeTokens/colors/primitives.ts +190 -0
  45. package/src/sharedThemeTokens/forms.ts +34 -0
  46. package/src/sharedThemeTokens/index.ts +48 -0
  47. package/src/sharedThemeTokens/media.ts +35 -0
  48. package/src/sharedThemeTokens/shadows.ts +45 -0
  49. package/src/sharedThemeTokens/spacing.ts +40 -0
  50. package/src/sharedThemeTokens/stacking.ts +34 -0
  51. package/src/sharedThemeTokens/transitions.ts +33 -0
  52. package/src/sharedThemeTokens/typography.ts +53 -0
  53. package/src/themes/canvas/colors.ts +76 -0
  54. package/src/themes/canvas/index.ts +69 -0
  55. package/src/themes/canvasHighContrast/colors.ts +76 -0
  56. package/src/themes/canvasHighContrast/index.ts +44 -0
  57. package/src/utils/getUIColors.ts +68 -0
  58. package/tokens/canvas/scss/_variables.scss +151 -0
  59. package/tokens/canvas/source.json +1 -0
  60. package/tsconfig.build.json +1 -7
  61. package/tsconfig.build.tsbuildinfo +1 -1
  62. package/types/index.d.ts +9 -7
  63. package/types/index.d.ts.map +1 -1
  64. package/types/sharedThemeTokens/borders.d.ts +5 -0
  65. package/types/sharedThemeTokens/borders.d.ts.map +1 -0
  66. package/types/sharedThemeTokens/breakpoints.d.ts +5 -0
  67. package/types/sharedThemeTokens/breakpoints.d.ts.map +1 -0
  68. package/types/sharedThemeTokens/colors/dataVisualization.d.ts +4 -0
  69. package/types/sharedThemeTokens/colors/dataVisualization.d.ts.map +1 -0
  70. package/types/sharedThemeTokens/colors/primitives.d.ts +4 -0
  71. package/types/sharedThemeTokens/colors/primitives.d.ts.map +1 -0
  72. package/types/sharedThemeTokens/forms.d.ts +5 -0
  73. package/types/sharedThemeTokens/forms.d.ts.map +1 -0
  74. package/types/sharedThemeTokens/index.d.ts +14 -0
  75. package/types/sharedThemeTokens/index.d.ts.map +1 -0
  76. package/types/sharedThemeTokens/media.d.ts +5 -0
  77. package/types/sharedThemeTokens/media.d.ts.map +1 -0
  78. package/types/sharedThemeTokens/shadows.d.ts +5 -0
  79. package/types/sharedThemeTokens/shadows.d.ts.map +1 -0
  80. package/types/sharedThemeTokens/spacing.d.ts +5 -0
  81. package/types/sharedThemeTokens/spacing.d.ts.map +1 -0
  82. package/types/sharedThemeTokens/stacking.d.ts +5 -0
  83. package/types/sharedThemeTokens/stacking.d.ts.map +1 -0
  84. package/types/sharedThemeTokens/transitions.d.ts +5 -0
  85. package/types/sharedThemeTokens/transitions.d.ts.map +1 -0
  86. package/types/sharedThemeTokens/typography.d.ts +5 -0
  87. package/types/sharedThemeTokens/typography.d.ts.map +1 -0
  88. package/types/themes/canvas/colors.d.ts +16 -0
  89. package/types/themes/canvas/colors.d.ts.map +1 -0
  90. package/types/themes/canvas/index.d.ts +27 -0
  91. package/types/themes/canvas/index.d.ts.map +1 -0
  92. package/types/themes/canvasHighContrast/colors.d.ts +16 -0
  93. package/types/themes/canvasHighContrast/colors.d.ts.map +1 -0
  94. package/types/themes/canvasHighContrast/index.d.ts +10 -0
  95. package/types/themes/canvasHighContrast/index.d.ts.map +1 -0
  96. package/types/utils/getUIColors.d.ts +4 -0
  97. package/types/utils/getUIColors.d.ts.map +1 -0
package/CHANGELOG.md CHANGED
@@ -3,9 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [10.0.1-snapshot-13](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.0.1-snapshot-13) (2024-08-21)
6
+ ## [10.1.1-snapshot-4973](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.1.1-snapshot-4973) (2024-08-23)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-themes
8
+
9
+ ### Features
10
+
11
+ * **many:** add data visualization colors, refactor theme code ([c395e17](https://github.com/instructure/instructure-ui/commit/c395e17a43be9fd7ec9d6854f28ae8584c3667bc))
12
+
13
+
14
+
15
+
16
+
17
+ # [10.1.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.1.0) (2024-08-23)
18
+
19
+
20
+ ### Features
21
+
22
+ * **many:** add data visualization colors, refactor theme code ([c395e17](https://github.com/instructure/instructure-ui/commit/c395e17a43be9fd7ec9d6854f28ae8584c3667bc))
9
23
 
10
24
 
11
25
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ npm install @instructure/ui-themes
21
21
  - global theming:
22
22
 
23
23
  ```js
24
- import { canvas } from '@instructure/ui-themes'
24
+ import canvas from '@instructure/ui-themes'
25
25
 
26
26
  canvas.use()
27
27
  ```
@@ -29,7 +29,7 @@ npm install @instructure/ui-themes
29
29
  - application level theming:
30
30
 
31
31
  ```jsx
32
- import { canvas } from '@instructure/ui-themes'
32
+ import canvas from '@instructure/ui-themes'
33
33
 
34
34
  ReactDOM.render(
35
35
  <InstUISettingsProvider theme={canvas}>
@@ -44,7 +44,7 @@ npm install @instructure/ui-themes
44
44
  - globally:
45
45
 
46
46
  ```js
47
- import { canvas } from '@instructure/ui-themes'
47
+ import canvas from '@instructure/ui-themes'
48
48
 
49
49
  canvas.use({ overrides: { colors: { brand: 'red' } } })
50
50
  ```
@@ -52,7 +52,7 @@ npm install @instructure/ui-themes
52
52
  - application level:
53
53
 
54
54
  ```jsx
55
- import { canvas } from '@instructure/ui-themes'
55
+ import canvas from '@instructure/ui-themes'
56
56
  const themeOverrides = { colors: { brand: 'red' } }
57
57
 
58
58
  ReactDOM.render(
package/es/index.js CHANGED
@@ -22,7 +22,9 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { theme as canvasHighContrast } from '@instructure/canvas-high-contrast-theme';
26
- import { theme as canvas } from '@instructure/canvas-theme';
27
- export { canvas, canvasHighContrast };
25
+ import canvasHighContrast from './themes/canvasHighContrast';
26
+ import canvas from './themes/canvas';
27
+ import { primitives, additionalPrimitives } from './sharedThemeTokens/colors/primitives';
28
+ import dataVisualization from './sharedThemeTokens/colors/dataVisualization';
29
+ export { canvas, canvasHighContrast, primitives, additionalPrimitives, dataVisualization };
28
30
  export default canvas;
@@ -0,0 +1,45 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ // use for consistency between buttons, text inputs, etc.
26
+
27
+ const borders = Object.freeze({
28
+ radiusSmall: '0.125rem',
29
+ // 2px
30
+ radiusMedium: '0.25rem',
31
+ // 4px
32
+ radiusLarge: '0.5rem',
33
+ // 8px
34
+
35
+ widthSmall: '0.0625rem',
36
+ // 1px
37
+ widthMedium: '0.125rem',
38
+ // 2px
39
+ widthLarge: '0.25rem',
40
+ // 4px
41
+
42
+ style: 'solid'
43
+ });
44
+ export default borders;
45
+ export { borders };
@@ -0,0 +1,57 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ const onePixel = 0.0625;
26
+
27
+ // base = 16px
28
+ const values = {
29
+ xxSmall: 8,
30
+ // 128px
31
+ xSmall: 16,
32
+ // 256px
33
+ small: 30,
34
+ // 480px
35
+ medium: 48,
36
+ // 768px
37
+ tablet: 48,
38
+ // 768px
39
+ large: 62,
40
+ // 992px
41
+ desktop: 64,
42
+ // 1024px
43
+ xLarge: 75 // 1200px
44
+ };
45
+ const breakpoints = Object.freeze({
46
+ xxSmall: `${values.xxSmall}em`,
47
+ xSmall: `${values.xSmall}em`,
48
+ small: `${values.small}em`,
49
+ medium: `${values.medium}em`,
50
+ tablet: `${values.tablet}em`,
51
+ large: `${values.large}em`,
52
+ desktop: `${values.desktop}em`,
53
+ xLarge: `${values.xLarge}em`,
54
+ maxWidth: `${values.large - onePixel}em`
55
+ });
56
+ export default breakpoints;
57
+ export { breakpoints };
@@ -0,0 +1,138 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ import { additionalPrimitives } from './primitives';
26
+ const dataVisualization = {
27
+ rose12Primary: additionalPrimitives.rose12,
28
+ rose30Primary: additionalPrimitives.rose30,
29
+ rose45Primary: additionalPrimitives.rose45,
30
+ rose70Primary: additionalPrimitives.rose70,
31
+ rose110Primary: additionalPrimitives.rose110,
32
+ rose35Secondary: additionalPrimitives.rose35,
33
+ rose40Secondary: additionalPrimitives.rose40,
34
+ rose50Secondary: additionalPrimitives.rose50,
35
+ rose57Secondary: additionalPrimitives.rose57,
36
+ rose90Secondary: additionalPrimitives.rose90,
37
+ copper12Primary: additionalPrimitives.copper12,
38
+ copper30Primary: additionalPrimitives.copper30,
39
+ copper45Primary: additionalPrimitives.copper45,
40
+ copper70Primary: additionalPrimitives.copper70,
41
+ copper110Primary: additionalPrimitives.copper110,
42
+ copper35Secondary: additionalPrimitives.copper35,
43
+ copper40Secondary: additionalPrimitives.copper40,
44
+ copper50Secondary: additionalPrimitives.copper50,
45
+ copper57Secondary: additionalPrimitives.copper57,
46
+ copper90Secondary: additionalPrimitives.copper90,
47
+ honey12Primary: additionalPrimitives.honey12,
48
+ honey30Primary: additionalPrimitives.honey30,
49
+ honey45Primary: additionalPrimitives.honey45,
50
+ honey70Primary: additionalPrimitives.honey70,
51
+ honey110Primary: additionalPrimitives.honey110,
52
+ honey35Secondary: additionalPrimitives.honey35,
53
+ honey40Secondary: additionalPrimitives.honey40,
54
+ honey50Secondary: additionalPrimitives.honey50,
55
+ honey57Secondary: additionalPrimitives.honey57,
56
+ honey90Secondary: additionalPrimitives.honey90,
57
+ forest12Primary: additionalPrimitives.forest12,
58
+ forest30Primary: additionalPrimitives.forest30,
59
+ forest45Primary: additionalPrimitives.forest45,
60
+ forest70Primary: additionalPrimitives.forest70,
61
+ forest110Primary: additionalPrimitives.forest110,
62
+ forest35Secondary: additionalPrimitives.forest35,
63
+ forest40Secondary: additionalPrimitives.forest40,
64
+ forest50Secondary: additionalPrimitives.forest50,
65
+ forest57Secondary: additionalPrimitives.forest57,
66
+ forest90Secondary: additionalPrimitives.forest90,
67
+ aurora12Primary: additionalPrimitives.aurora12,
68
+ aurora30Primary: additionalPrimitives.aurora30,
69
+ aurora45Primary: additionalPrimitives.aurora45,
70
+ aurora70Primary: additionalPrimitives.aurora70,
71
+ aurora110Primary: additionalPrimitives.aurora110,
72
+ aurora35Secondary: additionalPrimitives.aurora35,
73
+ aurora40Secondary: additionalPrimitives.aurora40,
74
+ aurora50Secondary: additionalPrimitives.aurora50,
75
+ aurora57Secondary: additionalPrimitives.aurora57,
76
+ aurora90Secondary: additionalPrimitives.aurora90,
77
+ sea12Primary: additionalPrimitives.sea12,
78
+ sea30Primary: additionalPrimitives.sea30,
79
+ sea45Primary: additionalPrimitives.sea45,
80
+ sea70Primary: additionalPrimitives.sea70,
81
+ sea110Primary: additionalPrimitives.sea110,
82
+ sea35Secondary: additionalPrimitives.sea35,
83
+ sea40Secondary: additionalPrimitives.sea40,
84
+ sea50Secondary: additionalPrimitives.sea50,
85
+ sea57Secondary: additionalPrimitives.sea57,
86
+ sea90Secondary: additionalPrimitives.sea90,
87
+ sky12Primary: additionalPrimitives.sky12,
88
+ sky30Primary: additionalPrimitives.sky30,
89
+ sky45Primary: additionalPrimitives.sky45,
90
+ sky70Primary: additionalPrimitives.sky70,
91
+ sky110Primary: additionalPrimitives.sky110,
92
+ sky35Secondary: additionalPrimitives.sky35,
93
+ sky40Secondary: additionalPrimitives.sky40,
94
+ sky50Secondary: additionalPrimitives.sky50,
95
+ sky57Secondary: additionalPrimitives.sky57,
96
+ sky90Secondary: additionalPrimitives.sky90,
97
+ ocean12Primary: additionalPrimitives.ocean12,
98
+ ocean30Primary: additionalPrimitives.ocean30,
99
+ ocean45Primary: additionalPrimitives.ocean45,
100
+ ocean70Primary: additionalPrimitives.ocean70,
101
+ ocean110Primary: additionalPrimitives.ocean110,
102
+ ocean35Secondary: additionalPrimitives.ocean35,
103
+ ocean40Secondary: additionalPrimitives.ocean40,
104
+ ocean50Secondary: additionalPrimitives.ocean50,
105
+ ocean57Secondary: additionalPrimitives.ocean57,
106
+ ocean90Secondary: additionalPrimitives.ocean90,
107
+ violet12Primary: additionalPrimitives.violet12,
108
+ violet30Primary: additionalPrimitives.violet30,
109
+ violet45Primary: additionalPrimitives.violet45,
110
+ violet70Primary: additionalPrimitives.violet70,
111
+ violet110Primary: additionalPrimitives.violet110,
112
+ violet35Secondary: additionalPrimitives.violet35,
113
+ violet40Secondary: additionalPrimitives.violet40,
114
+ violet50Secondary: additionalPrimitives.violet50,
115
+ violet57Secondary: additionalPrimitives.violet57,
116
+ violet90Secondary: additionalPrimitives.violet90,
117
+ plum12Primary: additionalPrimitives.plum12,
118
+ plum30Primary: additionalPrimitives.plum30,
119
+ plum45Primary: additionalPrimitives.plum45,
120
+ plum70Primary: additionalPrimitives.plum70,
121
+ plum110Primary: additionalPrimitives.plum110,
122
+ plum35Secondary: additionalPrimitives.plum35,
123
+ plum40Secondary: additionalPrimitives.plum40,
124
+ plum50Secondary: additionalPrimitives.plum50,
125
+ plum57Secondary: additionalPrimitives.plum57,
126
+ plum90Secondary: additionalPrimitives.plum90,
127
+ stone12Primary: additionalPrimitives.stone12,
128
+ stone30Primary: additionalPrimitives.stone30,
129
+ stone45Primary: additionalPrimitives.stone45,
130
+ stone70Primary: additionalPrimitives.stone70,
131
+ stone110Primary: additionalPrimitives.stone110,
132
+ stone35Secondary: additionalPrimitives.stone35,
133
+ stone40Secondary: additionalPrimitives.stone40,
134
+ stone50Secondary: additionalPrimitives.stone50,
135
+ stone57Secondary: additionalPrimitives.stone57,
136
+ stone90Secondary: additionalPrimitives.stone90
137
+ };
138
+ export default dataVisualization;
@@ -0,0 +1,172 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ export const primitives = {
26
+ white: '#FFFFFF',
27
+ white10op75: '#FFFFFFBF',
28
+ grey11: '#F2F4F4',
29
+ grey12: '#E8EAEC',
30
+ grey14: '#D7DADE',
31
+ grey24: '#9EA6AD',
32
+ grey45: '#6A7883',
33
+ grey57: '#586874',
34
+ grey70: '#4A5B68',
35
+ grey82: '#3F515E',
36
+ grey100: '#334451',
37
+ grey100op75: '#334451BF',
38
+ grey125: '#273540',
39
+ blue12: '#E0EBF5',
40
+ blue45: '#2B7ABC',
41
+ blue57: '#0E68B3',
42
+ blue70: '#0A5A9E',
43
+ blue82: '#09508C',
44
+ green12: '#DCEEE4',
45
+ green45: '#03893D',
46
+ green57: '#027634',
47
+ green70: '#02672D',
48
+ green82: '#015B28',
49
+ orange12: '#FCE5D9',
50
+ orange30: '#F06E26',
51
+ orange45: '#CF4A00',
52
+ orange57: '#B34000',
53
+ orange70: '#9C3800',
54
+ orange82: '#8B3200',
55
+ red12: '#FCE4E5',
56
+ red45: '#E62429',
57
+ red57: '#C71F23',
58
+ red70: '#AE1B1F',
59
+ red82: '#9B181C'
60
+ };
61
+ export const additionalPrimitives = {
62
+ rose12: '#FEE4E4',
63
+ rose30: '#FB5D5D',
64
+ rose35: '#FA3F3F',
65
+ rose40: '#FA1A1A',
66
+ rose45: '#ED0000',
67
+ rose50: '#E00000',
68
+ rose57: '#CE0000',
69
+ rose70: '#B50000',
70
+ rose90: '#970000',
71
+ rose110: '#7F0000',
72
+ copper12: '#FFE5D3',
73
+ copper30: '#EE6D15',
74
+ copper35: '#DB6414',
75
+ copper40: '#CD5E12',
76
+ copper45: '#BF5811',
77
+ copper50: '#B45310',
78
+ copper57: '#A54C0F',
79
+ copper70: '#90420D',
80
+ copper90: '#77360B',
81
+ copper110: '#622D09',
82
+ honey12: '#F5E9CA',
83
+ honey30: '#C08A00',
84
+ honey35: '#A57600',
85
+ honey40: '#B07E00',
86
+ honey45: '#996E00',
87
+ honey50: '#916800',
88
+ honey57: '#856000',
89
+ honey70: '#745300',
90
+ honey90: '#5F4400',
91
+ honey110: '#4E3800',
92
+ forest12: '#DFEEE0',
93
+ forest30: '#55A459',
94
+ forest35: '#409945',
95
+ forest40: '#319135',
96
+ forest45: '#27872B',
97
+ forest50: '#248029',
98
+ forest57: '#217526',
99
+ forest70: '#1D6621',
100
+ forest90: '#18541B',
101
+ forest110: '#144516',
102
+ aurora12: '#DAEEE8',
103
+ aurora30: '#38A585',
104
+ aurora35: '#1E9975',
105
+ aurora40: '#0B9069',
106
+ aurora45: '#048660',
107
+ aurora50: '#047F5B',
108
+ aurora57: '#037453',
109
+ aurora70: '#036549',
110
+ aurora90: '#02533C',
111
+ aurora110: '#024531',
112
+ sea12: '#DAEEEF',
113
+ sea30: '#37A1AA',
114
+ sea35: '#1E95A0',
115
+ sea40: '#0A8C97',
116
+ sea45: '#00828E',
117
+ sea50: '#007B86',
118
+ sea57: '#00717B',
119
+ sea70: '#00626B',
120
+ sea90: '#005158',
121
+ sea110: '#004349',
122
+ sky12: '#DDECF3',
123
+ sky30: '#4E9CC0',
124
+ sky35: '#3890B8',
125
+ sky40: '#2887B2',
126
+ sky45: '#197EAB',
127
+ sky50: '#1777A2',
128
+ sky57: '#156D94',
129
+ sky70: '#135F81',
130
+ sky90: '#0F4E6A',
131
+ sky110: '#0D4058',
132
+ ocean12: '#DFEBFB',
133
+ ocean30: '#5694EB',
134
+ ocean35: '#4187E8',
135
+ ocean40: '#317DE6',
136
+ ocean45: '#2573DF',
137
+ ocean50: '#236DD3',
138
+ ocean57: '#2063C1',
139
+ ocean70: '#1C57A8',
140
+ ocean90: '#17478B',
141
+ ocean110: '#133B72',
142
+ violet12: '#F1E6F5',
143
+ violet30: '#B57FCC',
144
+ violet35: '#AC6FC6',
145
+ violet40: '#A564C2',
146
+ violet45: '#9E58BD',
147
+ violet50: '#994FB9',
148
+ violet57: '#9242B4',
149
+ violet70: '#7F399E',
150
+ violet90: '#682F82',
151
+ violet110: '#56276B',
152
+ plum12: '#F7E5F0',
153
+ plum30: '#D473B1',
154
+ plum35: '#CE60A7',
155
+ plum40: '#CA529F',
156
+ plum45: '#C54396',
157
+ plum50: '#C1368F',
158
+ plum57: '#BA2083',
159
+ plum70: '#A31C73',
160
+ plum90: '#87175F',
161
+ plum110: '#70134F',
162
+ stone12: '#EAEAEA',
163
+ stone30: '#939393',
164
+ stone35: '#878787',
165
+ stone40: '#7F7F7F',
166
+ stone45: '#767676',
167
+ stone50: '#6F6F6F',
168
+ stone57: '#666666',
169
+ stone70: '#585858',
170
+ stone90: '#494949',
171
+ stone110: '#3C3C3C'
172
+ };
@@ -0,0 +1,31 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ const forms = Object.freeze({
26
+ inputHeightSmall: '1.75rem',
27
+ inputHeightMedium: '2.375rem',
28
+ inputHeightLarge: '3rem'
29
+ });
30
+ export default forms;
31
+ export { forms };
@@ -0,0 +1,46 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ import { borders } from './borders';
26
+ import { transitions } from './transitions';
27
+ import { typography } from './typography';
28
+ import { spacing } from './spacing';
29
+ import { forms } from './forms';
30
+ import { media } from './media';
31
+ import { breakpoints } from './breakpoints';
32
+ import { shadows } from './shadows';
33
+ import { stacking } from './stacking';
34
+ const canvas = {
35
+ borders,
36
+ transitions,
37
+ typography,
38
+ spacing,
39
+ forms,
40
+ media,
41
+ breakpoints,
42
+ shadows,
43
+ stacking
44
+ };
45
+ export default canvas;
46
+ export { canvas };
@@ -0,0 +1,32 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ import { breakpoints } from './breakpoints';
26
+ const media = Object.freeze({
27
+ mediumMin: `min-width: ${breakpoints.medium}`,
28
+ largeMin: `min-width: ${breakpoints.large}`,
29
+ xLargeMin: `min-width: ${breakpoints.xLarge}`
30
+ });
31
+ export default media;
32
+ export { media };
@@ -0,0 +1,36 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ // use for consistent box shadows
26
+ const values = ['0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)', '0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)', '0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)'];
27
+ const shadows = Object.freeze({
28
+ depth1: values[0],
29
+ depth2: values[1],
30
+ depth3: values[2],
31
+ resting: values[0],
32
+ above: values[1],
33
+ topmost: values[2]
34
+ });
35
+ export default shadows;
36
+ export { shadows };
@@ -0,0 +1,45 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ const spacing = Object.freeze({
26
+ xxxSmall: '0.125rem',
27
+ // 2px
28
+ xxSmall: '0.375rem',
29
+ // 6px
30
+ xSmall: '0.5rem',
31
+ // 8px
32
+ small: '0.75rem',
33
+ // 12px
34
+ mediumSmall: '1rem',
35
+ // 16px
36
+ medium: '1.5rem',
37
+ // 24px
38
+ large: '2.25rem',
39
+ // 36px
40
+ xLarge: '3rem',
41
+ // 48px
42
+ xxLarge: '3.75rem' // 60px
43
+ });
44
+ export default spacing;
45
+ export { spacing };