@instructure/shared-types 9.5.2-snapshot-1 → 10.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/CHANGELOG.md CHANGED
@@ -3,9 +3,18 @@
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.5.2-snapshot-1](https://github.com/instructure/instructure-ui/compare/v9.5.1...v9.5.2-snapshot-1) (2024-07-31)
6
+ # [10.0.0](https://github.com/instructure/instructure-ui/compare/v9.5.1...v10.0.0) (2024-07-31)
7
7
 
8
- **Note:** Version bump only for package @instructure/shared-types
8
+
9
+ ### Features
10
+
11
+ * **many:** rewrite color system ([1e5809e](https://github.com/instructure/instructure-ui/commit/1e5809e28dee8c2a71703a429609b8d2f95d76e6))
12
+ * **shared-types,ui-theme-tokens:** add transparent colors to the palette ([7219606](https://github.com/instructure/instructure-ui/commit/7219606144114fd4bf4048177dfe31ee81de76d9))
13
+
14
+
15
+ ### BREAKING CHANGES
16
+
17
+ * **many:** Breaks color overrides in certain cases
9
18
 
10
19
 
11
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/shared-types",
3
- "version": "9.5.2-snapshot-1",
3
+ "version": "10.0.0",
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,111 @@
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
+ white10op75: string
28
+
29
+ grey11: string
30
+ grey12: string
31
+ grey14: string
32
+ grey24: string
33
+ grey45: string
34
+ grey57: string
35
+ grey70: string
36
+ grey82: string
37
+ grey100: string
38
+ grey100op75: string
39
+ grey125: string
40
+
41
+ blue12: string
42
+ blue45: string
43
+ blue57: string
44
+ blue70: string
45
+ blue82: string
46
+
47
+ green12: string
48
+ green45: string
49
+ green57: string
50
+ green70: string
51
+ green82: string
41
52
 
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']
53
+ orange12: string
54
+ orange30: string
55
+ orange45: string
56
+ orange57: string
57
+ orange70: string
58
+ orange82: string
59
+
60
+ red12: string
61
+ red45: string
62
+ red57: string
63
+ red70: string
64
+ red82: string
54
65
  }
55
66
 
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']
67
+ type Contrasts = {
68
+ white1010: Primitives['white']
69
+ white1010op75: Primitives['white10op75']
70
+
71
+ grey1111: Primitives['grey11']
72
+ grey1214: Primitives['grey12'] | Primitives['grey14']
73
+ grey1424: Primitives['grey14'] | Primitives['grey24']
74
+ grey2424: Primitives['grey24']
75
+ grey4570: Primitives['grey45'] | Primitives['grey70']
76
+ grey5782: Primitives['grey57'] | Primitives['grey82']
77
+ grey100100: Primitives['grey100']
78
+ grey100100op75: Primitives['grey100op75']
79
+ grey125125: Primitives['grey125']
80
+
81
+ blue1212: Primitives['blue12']
82
+ blue4570: Primitives['blue45'] | Primitives['blue70']
83
+ blue5782: Primitives['blue57'] | Primitives['blue82']
84
+
85
+ green1212: Primitives['green12']
86
+ green4570: Primitives['green45'] | Primitives['green70']
87
+ green5782: Primitives['green57'] | Primitives['green82']
88
+
89
+ orange1212: Primitives['orange12']
90
+ orange3045: Primitives['orange30'] | Primitives['orange45']
91
+ orange4570: Primitives['orange45'] | Primitives['orange70']
92
+ orange5782: Primitives['orange57'] | Primitives['orange82']
93
+
94
+ red1212: Primitives['red12']
95
+ red4570: Primitives['red45'] | Primitives['red70']
96
+ red5782: Primitives['red57'] | Primitives['red82']
69
97
  }
70
98
 
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']
99
+ type UI = {
100
+ surfacePagePrimary: Contrasts['white1010']
101
+ surfacePageSecondary: Contrasts['grey1111']
102
+ surfaceCardPrimary: Contrasts['white1010']
103
+ surfaceCardSecondary: Contrasts['grey1111']
104
+ surfaceDark: Contrasts['grey100100']
105
+
106
+ textTitle: Contrasts['grey125125']
107
+ textDescription: Contrasts['grey125125']
108
+ textBody: Contrasts['grey125125']
109
+ textTimestamp: Contrasts['grey5782']
110
+ textAuthor: Contrasts['grey5782']
111
+ textDatapoint: Contrasts['grey5782']
112
+ textLink: Contrasts['blue4570']
113
+ textPlaceholder: Contrasts['grey2424']
114
+ textSuccess: Contrasts['green4570']
115
+ textWarning: Contrasts['orange4570']
116
+ textError: Contrasts['red4570']
117
+
118
+ lineStroke: Contrasts['grey1424']
119
+ lineDivider: Contrasts['grey1214']
120
+
121
+ surfaceOverlayGrey: Contrasts['grey100100op75']
122
+ surfaceOverlayWhite: Contrasts['white1010op75']
123
+ surfaceDivider: Contrasts['grey1424']
84
124
  }
85
125
 
86
126
  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']
127
+ primitives: Primitives
128
+ contrasts: Contrasts
129
+ ui: UI
140
130
  }
141
131
 
142
- export type { BaseColors, TextColors, BorderColors, BackgroundColors, Colors }
132
+ 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'