@instructure/shared-types 9.3.0 → 9.3.1-pr-snapshot-1721304755254

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/CHANGELOG.md CHANGED
@@ -3,6 +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
+ ## [9.3.1-pr-snapshot-1721304755254](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.3.1-pr-snapshot-1721304755254) (2024-07-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * **many:** rewrite color system ([aa974cb](https://github.com/instructure/instructure-ui/commit/aa974cb7c60d1e54b7cb1801fbbb82559989fd80))
12
+ * **shared-types,ui-code-editor,ui-theme-tokens:** update color primitives ([517a1f6](https://github.com/instructure/instructure-ui/commit/517a1f60d3ac1eb0fa609e55da0cbf07ee9d8240))
13
+
14
+
15
+ ### BREAKING CHANGES
16
+
17
+ * **many:** Breaks color overrides in certain cases
18
+
19
+
20
+
21
+
22
+
6
23
  # [9.3.0](https://github.com/instructure/instructure-ui/compare/v9.2.0...v9.3.0) (2024-07-17)
7
24
 
8
25
  **Note:** Version bump only for package @instructure/shared-types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/shared-types",
3
- "version": "9.3.0",
3
+ "version": "9.3.1-pr-snapshot-1721304755254",
4
4
  "description": "Shared TypeScript typings for Instructure UI packages.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "homepage": "https://instructure.design/#shared-types",
package/src/Colors.ts CHANGED
@@ -22,121 +22,100 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- type BaseColors = {
26
- brand: string
27
- link: string
28
- electric: string
29
- shamrock: string
30
- barney: string
31
- crimson: string
32
- fire: string
33
- licorice: string
34
- oxford: string
35
- ash: string
36
- slate: string
37
- tiara: string
38
- porcelain: string
25
+ type Primitives = {
39
26
  white: string
40
- }
27
+ grey11: string
28
+ grey12: string
29
+ grey14: string
30
+ grey24: string
31
+ grey45: string
32
+ grey57: string
33
+ grey70: string
34
+ grey82: string
35
+ grey100: string
36
+ grey125: string
37
+
38
+ blue12: string
39
+ blue45: string
40
+ blue57: string
41
+ blue70: string
42
+ blue82: string
43
+
44
+ green12: string
45
+ green45: string
46
+ green57: string
47
+ green70: string
48
+ green82: string
41
49
 
42
- type TextColors = {
43
- textDarkest: BaseColors['licorice']
44
- textDark: BaseColors['ash']
45
- textLight: BaseColors['porcelain']
46
- textLightest: BaseColors['white']
47
- textBrand: BaseColors['brand']
48
- textLink: BaseColors['link']
49
- textAlert: BaseColors['barney']
50
- textInfo: BaseColors['brand']
51
- textSuccess: BaseColors['shamrock']
52
- textDanger: BaseColors['crimson']
53
- textWarning: BaseColors['fire']
50
+ orange12: string
51
+ orange30: string
52
+ orange45: string
53
+ orange57: string
54
+ orange70: string
55
+ orange82: string
56
+
57
+ red12: string
58
+ red45: string
59
+ red57: string
60
+ red70: string
61
+ red82: string
54
62
  }
55
63
 
56
- type BackgroundColors = {
57
- backgroundDarkest: BaseColors['licorice']
58
- backgroundDark: BaseColors['ash']
59
- backgroundMedium: BaseColors['tiara']
60
- backgroundLight: BaseColors['porcelain']
61
- backgroundLightest: BaseColors['white']
62
- backgroundBrand: BaseColors['brand']
63
- backgroundBrandSecondary: BaseColors['oxford']
64
- backgroundAlert: BaseColors['barney']
65
- backgroundInfo: BaseColors['brand']
66
- backgroundSuccess: BaseColors['shamrock']
67
- backgroundDanger: BaseColors['crimson']
68
- backgroundWarning: BaseColors['fire']
64
+ type Contrasts = {
65
+ white1010: Primitives['white']
66
+ grey1111: Primitives['grey11']
67
+ grey1214: Primitives['grey12'] | Primitives['grey14']
68
+ grey1424: Primitives['grey14'] | Primitives['grey24']
69
+ grey4570: Primitives['grey45'] | Primitives['grey70']
70
+ grey5782: Primitives['grey57'] | Primitives['grey82']
71
+ grey100100: Primitives['grey100']
72
+ grey125125: Primitives['grey125']
73
+
74
+ blue1212: Primitives['blue12']
75
+ blue4570: Primitives['blue45'] | Primitives['blue70']
76
+ blue5782: Primitives['blue57'] | Primitives['blue82']
77
+
78
+ green1212: Primitives['green12']
79
+ green4570: Primitives['green45'] | Primitives['green70']
80
+ green5782: Primitives['green57'] | Primitives['green82']
81
+
82
+ orange1212: Primitives['orange12']
83
+ orange3045: Primitives['orange30'] | Primitives['orange45']
84
+ orange4570: Primitives['orange45'] | Primitives['orange70']
85
+ orange5782: Primitives['orange57'] | Primitives['orange82']
86
+
87
+ red1212: Primitives['red12']
88
+ red4570: Primitives['red45'] | Primitives['red70']
89
+ red5782: Primitives['red57'] | Primitives['red82']
69
90
  }
70
91
 
71
- type BorderColors = {
72
- borderLightest: BaseColors['white']
73
- borderLight: BaseColors['porcelain']
74
- borderMedium: BaseColors['tiara']
75
- borderDark: BaseColors['ash']
76
- borderDarkest: BaseColors['licorice']
77
- borderBrand: BaseColors['brand']
78
- borderAlert: BaseColors['barney']
79
- borderInfo: BaseColors['brand']
80
- borderSuccess: BaseColors['shamrock']
81
- borderDanger: BaseColors['crimson']
82
- borderWarning: BaseColors['fire']
83
- borderDebug: BaseColors['crimson']
92
+ type UI = {
93
+ surfacePagePrimary: Contrasts['white1010']
94
+ surfacePageSecondary: Contrasts['grey1111']
95
+ surfaceCardPrimary: Contrasts['white1010']
96
+ surfaceCardSecondary: Contrasts['grey1111']
97
+ surfaceDark: Contrasts['grey100100']
98
+
99
+ textTitle: Contrasts['grey125125']
100
+ textDescription: Contrasts['grey125125']
101
+ textBody: Contrasts['grey125125']
102
+ textTimestamp: Contrasts['grey5782']
103
+ textAuthor: Contrasts['grey5782']
104
+ textDatapoint: Contrasts['grey5782']
105
+ textLink: Contrasts['blue4570']
106
+ textPlaceholder: Contrasts['grey1424']
107
+ textSuccess: Contrasts['green4570']
108
+ textWarning: Contrasts['orange4570']
109
+ textError: Contrasts['red4570']
110
+
111
+ stroke: Contrasts['grey1424']
112
+ divider: Contrasts['grey1214']
84
113
  }
85
114
 
86
115
  type Colors = {
87
- values: BaseColors
88
- text: TextColors
89
- background: BackgroundColors
90
- border: BorderColors
91
- brand: string
92
- link: string
93
- electric: string
94
- shamrock: string
95
- barney: string
96
- crimson: string
97
- fire: string
98
- licorice: string
99
- oxford: string
100
- ash: string
101
- slate: string
102
- tiara: string
103
- porcelain: string
104
- white: string
105
- borderLightest: BaseColors['white']
106
- borderLight: BaseColors['porcelain']
107
- borderMedium: BaseColors['tiara']
108
- borderDark: BaseColors['ash']
109
- borderDarkest: BaseColors['licorice']
110
- borderBrand: BaseColors['brand']
111
- borderAlert: BaseColors['barney']
112
- borderInfo: BaseColors['brand']
113
- borderSuccess: BaseColors['shamrock']
114
- borderDanger: BaseColors['crimson']
115
- borderWarning: BaseColors['fire']
116
- borderDebug: BaseColors['crimson']
117
- backgroundDarkest: BaseColors['licorice']
118
- backgroundDark: BaseColors['ash']
119
- backgroundMedium: BaseColors['tiara']
120
- backgroundLight: BaseColors['porcelain']
121
- backgroundLightest: BaseColors['white']
122
- backgroundBrand: BaseColors['brand']
123
- backgroundBrandSecondary: BaseColors['oxford']
124
- backgroundAlert: BaseColors['barney']
125
- backgroundInfo: BaseColors['brand']
126
- backgroundSuccess: BaseColors['shamrock']
127
- backgroundDanger: BaseColors['crimson']
128
- backgroundWarning: BaseColors['fire']
129
- textDarkest: BaseColors['licorice']
130
- textDark: BaseColors['ash']
131
- textLight: BaseColors['porcelain']
132
- textLightest: BaseColors['white']
133
- textBrand: BaseColors['brand']
134
- textLink: BaseColors['link']
135
- textAlert: BaseColors['barney']
136
- textInfo: BaseColors['brand']
137
- textSuccess: BaseColors['shamrock']
138
- textDanger: BaseColors['crimson']
139
- textWarning: BaseColors['fire']
116
+ primitives: Primitives
117
+ contrasts: Contrasts
118
+ ui: UI
140
119
  }
141
120
 
142
- export type { BaseColors, TextColors, BorderColors, BackgroundColors, Colors }
121
+ export type { Colors, Primitives, Contrasts, UI }
@@ -87,3 +87,5 @@ export interface InstUIComponent
87
87
  InstUIBaseComponent {
88
88
  originalType?: any
89
89
  }
90
+
91
+ export type Themes = 'contrast45' | 'contrast70'