@instructure/ui-themes 11.7.8-snapshot-10 → 11.7.8-snapshot-11

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 (135) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/es/themes/newThemeTokens/componentTypes/segmentedControl.js +1 -0
  3. package/es/themes/newThemeTokens/componentTypes/skeletonLoader.js +1 -0
  4. package/es/themes/newThemeTokens/dark/components/baseButton.js +47 -47
  5. package/es/themes/newThemeTokens/dark/components/segmentedControl.js +105 -0
  6. package/es/themes/newThemeTokens/dark/components/sideNavBarItem.js +1 -1
  7. package/es/themes/newThemeTokens/dark/components/sideNavBarNew.js +1 -3
  8. package/es/themes/newThemeTokens/dark/components/skeletonLoader.js +49 -0
  9. package/es/themes/newThemeTokens/dark/index.js +5 -1
  10. package/es/themes/newThemeTokens/dark/semantics.js +8 -4
  11. package/es/themes/newThemeTokens/legacyCanvas/components/segmentedControl.js +105 -0
  12. package/es/themes/newThemeTokens/legacyCanvas/components/sideNavBarNew.js +1 -3
  13. package/es/themes/newThemeTokens/legacyCanvas/components/skeletonLoader.js +49 -0
  14. package/es/themes/newThemeTokens/legacyCanvas/index.js +5 -1
  15. package/es/themes/newThemeTokens/legacyCanvas/semantics.js +4 -0
  16. package/es/themes/newThemeTokens/legacyCanvasHighContrast/components/segmentedControl.js +105 -0
  17. package/es/themes/newThemeTokens/legacyCanvasHighContrast/components/sideNavBarNew.js +1 -3
  18. package/es/themes/newThemeTokens/legacyCanvasHighContrast/components/skeletonLoader.js +49 -0
  19. package/es/themes/newThemeTokens/legacyCanvasHighContrast/index.js +5 -1
  20. package/es/themes/newThemeTokens/legacyCanvasHighContrast/semantics.js +4 -0
  21. package/es/themes/newThemeTokens/light/components/baseButton.js +47 -47
  22. package/es/themes/newThemeTokens/light/components/segmentedControl.js +105 -0
  23. package/es/themes/newThemeTokens/light/components/sideNavBarItem.js +1 -1
  24. package/es/themes/newThemeTokens/light/components/sideNavBarNew.js +1 -3
  25. package/es/themes/newThemeTokens/light/components/skeletonLoader.js +49 -0
  26. package/es/themes/newThemeTokens/light/index.js +5 -1
  27. package/es/themes/newThemeTokens/light/semantics.js +8 -4
  28. package/lib/themes/newThemeTokens/componentTypes/segmentedControl.js +5 -0
  29. package/lib/themes/newThemeTokens/componentTypes/skeletonLoader.js +5 -0
  30. package/lib/themes/newThemeTokens/dark/components/baseButton.js +47 -47
  31. package/lib/themes/newThemeTokens/dark/components/segmentedControl.js +111 -0
  32. package/lib/themes/newThemeTokens/dark/components/sideNavBarItem.js +1 -1
  33. package/lib/themes/newThemeTokens/dark/components/sideNavBarNew.js +1 -3
  34. package/lib/themes/newThemeTokens/dark/components/skeletonLoader.js +55 -0
  35. package/lib/themes/newThemeTokens/dark/index.js +5 -1
  36. package/lib/themes/newThemeTokens/dark/semantics.js +8 -4
  37. package/lib/themes/newThemeTokens/legacyCanvas/components/segmentedControl.js +111 -0
  38. package/lib/themes/newThemeTokens/legacyCanvas/components/sideNavBarNew.js +1 -3
  39. package/lib/themes/newThemeTokens/legacyCanvas/components/skeletonLoader.js +55 -0
  40. package/lib/themes/newThemeTokens/legacyCanvas/index.js +5 -1
  41. package/lib/themes/newThemeTokens/legacyCanvas/semantics.js +4 -0
  42. package/lib/themes/newThemeTokens/legacyCanvasHighContrast/components/segmentedControl.js +111 -0
  43. package/lib/themes/newThemeTokens/legacyCanvasHighContrast/components/sideNavBarNew.js +1 -3
  44. package/lib/themes/newThemeTokens/legacyCanvasHighContrast/components/skeletonLoader.js +55 -0
  45. package/lib/themes/newThemeTokens/legacyCanvasHighContrast/index.js +5 -1
  46. package/lib/themes/newThemeTokens/legacyCanvasHighContrast/semantics.js +4 -0
  47. package/lib/themes/newThemeTokens/light/components/baseButton.js +47 -47
  48. package/lib/themes/newThemeTokens/light/components/segmentedControl.js +111 -0
  49. package/lib/themes/newThemeTokens/light/components/sideNavBarItem.js +1 -1
  50. package/lib/themes/newThemeTokens/light/components/sideNavBarNew.js +1 -3
  51. package/lib/themes/newThemeTokens/light/components/skeletonLoader.js +55 -0
  52. package/lib/themes/newThemeTokens/light/index.js +5 -1
  53. package/lib/themes/newThemeTokens/light/semantics.js +8 -4
  54. package/package.json +3 -3
  55. package/src/themes/newThemeTokens/componentTypes/baseButton.ts +12 -12
  56. package/src/themes/newThemeTokens/componentTypes/index.ts +4 -0
  57. package/src/themes/newThemeTokens/componentTypes/segmentedControl.ts +63 -0
  58. package/src/themes/newThemeTokens/componentTypes/sideNavBarNew.ts +1 -2
  59. package/src/themes/newThemeTokens/componentTypes/skeletonLoader.ts +50 -0
  60. package/src/themes/newThemeTokens/dark/components/baseButton.ts +30 -30
  61. package/src/themes/newThemeTokens/dark/components/segmentedControl.ts +91 -0
  62. package/src/themes/newThemeTokens/dark/components/sideNavBarItem.ts +1 -1
  63. package/src/themes/newThemeTokens/dark/components/sideNavBarNew.ts +6 -2
  64. package/src/themes/newThemeTokens/dark/components/skeletonLoader.ts +51 -0
  65. package/src/themes/newThemeTokens/dark/index.ts +4 -0
  66. package/src/themes/newThemeTokens/dark/semantics.ts +13 -8
  67. package/src/themes/newThemeTokens/legacyCanvas/components/segmentedControl.ts +91 -0
  68. package/src/themes/newThemeTokens/legacyCanvas/components/sideNavBarNew.ts +6 -2
  69. package/src/themes/newThemeTokens/legacyCanvas/components/skeletonLoader.ts +51 -0
  70. package/src/themes/newThemeTokens/legacyCanvas/index.ts +4 -0
  71. package/src/themes/newThemeTokens/legacyCanvas/semantics.ts +5 -0
  72. package/src/themes/newThemeTokens/legacyCanvasHighContrast/components/segmentedControl.ts +91 -0
  73. package/src/themes/newThemeTokens/legacyCanvasHighContrast/components/sideNavBarNew.ts +6 -2
  74. package/src/themes/newThemeTokens/legacyCanvasHighContrast/components/skeletonLoader.ts +51 -0
  75. package/src/themes/newThemeTokens/legacyCanvasHighContrast/index.ts +4 -0
  76. package/src/themes/newThemeTokens/legacyCanvasHighContrast/semantics.ts +5 -0
  77. package/src/themes/newThemeTokens/light/components/baseButton.ts +30 -30
  78. package/src/themes/newThemeTokens/light/components/segmentedControl.ts +91 -0
  79. package/src/themes/newThemeTokens/light/components/sideNavBarItem.ts +1 -1
  80. package/src/themes/newThemeTokens/light/components/sideNavBarNew.ts +6 -2
  81. package/src/themes/newThemeTokens/light/components/skeletonLoader.ts +51 -0
  82. package/src/themes/newThemeTokens/light/index.ts +4 -0
  83. package/src/themes/newThemeTokens/light/semantics.ts +13 -8
  84. package/tokens/canvas/source.json +1 -1
  85. package/tsconfig.build.tsbuildinfo +1 -1
  86. package/types/themes/newThemeTokens/componentTypes/baseButton.d.ts +12 -12
  87. package/types/themes/newThemeTokens/componentTypes/baseButton.d.ts.map +1 -1
  88. package/types/themes/newThemeTokens/componentTypes/index.d.ts +4 -0
  89. package/types/themes/newThemeTokens/componentTypes/index.d.ts.map +1 -1
  90. package/types/themes/newThemeTokens/componentTypes/segmentedControl.d.ts +41 -0
  91. package/types/themes/newThemeTokens/componentTypes/segmentedControl.d.ts.map +1 -0
  92. package/types/themes/newThemeTokens/componentTypes/sideNavBarNew.d.ts +0 -2
  93. package/types/themes/newThemeTokens/componentTypes/sideNavBarNew.d.ts.map +1 -1
  94. package/types/themes/newThemeTokens/componentTypes/skeletonLoader.d.ts +26 -0
  95. package/types/themes/newThemeTokens/componentTypes/skeletonLoader.d.ts.map +1 -0
  96. package/types/themes/newThemeTokens/dark/components/baseButton.d.ts +52 -52
  97. package/types/themes/newThemeTokens/dark/components/baseButton.d.ts.map +1 -1
  98. package/types/themes/newThemeTokens/dark/components/segmentedControl.d.ts +104 -0
  99. package/types/themes/newThemeTokens/dark/components/segmentedControl.d.ts.map +1 -0
  100. package/types/themes/newThemeTokens/dark/components/sideNavBarNew.d.ts +0 -2
  101. package/types/themes/newThemeTokens/dark/components/sideNavBarNew.d.ts.map +1 -1
  102. package/types/themes/newThemeTokens/dark/components/skeletonLoader.d.ts +27 -0
  103. package/types/themes/newThemeTokens/dark/components/skeletonLoader.d.ts.map +1 -0
  104. package/types/themes/newThemeTokens/dark/index.d.ts.map +1 -1
  105. package/types/themes/newThemeTokens/dark/semantics.d.ts +8 -4
  106. package/types/themes/newThemeTokens/dark/semantics.d.ts.map +1 -1
  107. package/types/themes/newThemeTokens/legacyCanvas/components/segmentedControl.d.ts +83 -0
  108. package/types/themes/newThemeTokens/legacyCanvas/components/segmentedControl.d.ts.map +1 -0
  109. package/types/themes/newThemeTokens/legacyCanvas/components/sideNavBarNew.d.ts +0 -2
  110. package/types/themes/newThemeTokens/legacyCanvas/components/sideNavBarNew.d.ts.map +1 -1
  111. package/types/themes/newThemeTokens/legacyCanvas/components/skeletonLoader.d.ts +27 -0
  112. package/types/themes/newThemeTokens/legacyCanvas/components/skeletonLoader.d.ts.map +1 -0
  113. package/types/themes/newThemeTokens/legacyCanvas/index.d.ts.map +1 -1
  114. package/types/themes/newThemeTokens/legacyCanvas/semantics.d.ts +4 -0
  115. package/types/themes/newThemeTokens/legacyCanvas/semantics.d.ts.map +1 -1
  116. package/types/themes/newThemeTokens/legacyCanvasHighContrast/components/segmentedControl.d.ts +83 -0
  117. package/types/themes/newThemeTokens/legacyCanvasHighContrast/components/segmentedControl.d.ts.map +1 -0
  118. package/types/themes/newThemeTokens/legacyCanvasHighContrast/components/sideNavBarNew.d.ts +0 -2
  119. package/types/themes/newThemeTokens/legacyCanvasHighContrast/components/sideNavBarNew.d.ts.map +1 -1
  120. package/types/themes/newThemeTokens/legacyCanvasHighContrast/components/skeletonLoader.d.ts +27 -0
  121. package/types/themes/newThemeTokens/legacyCanvasHighContrast/components/skeletonLoader.d.ts.map +1 -0
  122. package/types/themes/newThemeTokens/legacyCanvasHighContrast/index.d.ts.map +1 -1
  123. package/types/themes/newThemeTokens/legacyCanvasHighContrast/semantics.d.ts +4 -0
  124. package/types/themes/newThemeTokens/legacyCanvasHighContrast/semantics.d.ts.map +1 -1
  125. package/types/themes/newThemeTokens/light/components/baseButton.d.ts +52 -52
  126. package/types/themes/newThemeTokens/light/components/baseButton.d.ts.map +1 -1
  127. package/types/themes/newThemeTokens/light/components/segmentedControl.d.ts +104 -0
  128. package/types/themes/newThemeTokens/light/components/segmentedControl.d.ts.map +1 -0
  129. package/types/themes/newThemeTokens/light/components/sideNavBarNew.d.ts +0 -2
  130. package/types/themes/newThemeTokens/light/components/sideNavBarNew.d.ts.map +1 -1
  131. package/types/themes/newThemeTokens/light/components/skeletonLoader.d.ts +27 -0
  132. package/types/themes/newThemeTokens/light/components/skeletonLoader.d.ts.map +1 -0
  133. package/types/themes/newThemeTokens/light/index.d.ts.map +1 -1
  134. package/types/themes/newThemeTokens/light/semantics.d.ts +8 -4
  135. package/types/themes/newThemeTokens/light/semantics.d.ts.map +1 -1
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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
- ## [11.7.8-snapshot-10](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8-snapshot-10) (2026-10-02)
6
+ ## [11.7.8-snapshot-11](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8-snapshot-11) (2026-10-02)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-themes
9
9
 
@@ -23,11 +23,31 @@
23
23
  */
24
24
 
25
25
  const baseButton = semantic => ({
26
+ primaryBackground: semantic.color.institutional.brandButtonPrimaryBgd,
27
+ primaryBorderColor: semantic.color.institutional.brandButtonPrimaryBgd,
28
+ primaryColor: semantic.color.institutional.brandButtonPrimaryText,
29
+ primaryHoverBackground: {
30
+ value: semantic.color.institutional.brandButtonPrimaryBgd,
31
+ modify: {
32
+ type: "lighten",
33
+ value: 0.2,
34
+ space: "hsl"
35
+ }
36
+ },
37
+ primaryHoverBorderColor: {
38
+ value: semantic.color.institutional.brandButtonPrimaryBgd,
39
+ modify: {
40
+ type: "lighten",
41
+ value: 0.2,
42
+ space: "hsl"
43
+ }
44
+ },
45
+ primaryHoverTextColor: semantic.color.institutional.brandButtonPrimaryText,
26
46
  primaryActiveBackground: {
27
47
  value: semantic.color.institutional.brandButtonPrimaryBgd,
28
48
  modify: {
29
49
  type: "darken",
30
- value: 0.1,
50
+ value: 0.15,
31
51
  space: "hsl"
32
52
  }
33
53
  },
@@ -35,14 +55,11 @@ const baseButton = semantic => ({
35
55
  value: semantic.color.institutional.brandButtonPrimaryBgd,
36
56
  modify: {
37
57
  type: "darken",
38
- value: 0.1,
58
+ value: 0.15,
39
59
  space: "hsl"
40
60
  }
41
61
  },
42
62
  primaryActiveTextColor: semantic.color.institutional.brandButtonPrimaryText,
43
- primaryBackground: semantic.color.institutional.brandButtonPrimaryBgd,
44
- primaryBorderColor: semantic.color.institutional.brandButtonPrimaryBgd,
45
- primaryColor: semantic.color.institutional.brandButtonPrimaryText,
46
63
  primaryDisabledBackgroundColor: semantic.color.background.interactive.action.primary.disabled,
47
64
  primaryDisabledBorderColor: semantic.color.stroke.interactive.action.primary.disabled,
48
65
  primaryDisabledTextColor: semantic.color.text.interactive.action.primary.disabled,
@@ -71,23 +88,6 @@ const baseButton = semantic => ({
71
88
  space: "hsl"
72
89
  }
73
90
  },
74
- primaryHoverBackground: {
75
- value: semantic.color.institutional.brandButtonPrimaryBgd,
76
- modify: {
77
- type: "darken",
78
- value: 0.1,
79
- space: "hsl"
80
- }
81
- },
82
- primaryHoverBorderColor: {
83
- value: semantic.color.institutional.brandButtonPrimaryBgd,
84
- modify: {
85
- type: "darken",
86
- value: 0.1,
87
- space: "hsl"
88
- }
89
- },
90
- primaryHoverTextColor: semantic.color.institutional.brandButtonPrimaryText,
91
91
  primaryInverseActiveBackground: semantic.color.background.interactive.action.primaryOnColor.active,
92
92
  primaryInverseBackground: semantic.color.background.interactive.action.primaryOnColor.base,
93
93
  primaryInverseBorderColor: semantic.color.stroke.interactive.action.primaryOnColor.base,
@@ -104,15 +104,25 @@ const baseButton = semantic => ({
104
104
  primaryOnColorDisabledTextColor: semantic.color.text.interactive.action.primaryOnColor.disabled,
105
105
  primaryOnColorHoverBorderColor: semantic.color.stroke.interactive.action.primaryOnColor.hover,
106
106
  primaryOnColorHoverTextColor: semantic.color.text.interactive.action.primaryOnColor.hover,
107
- secondaryActiveBackground: {
107
+ secondaryBackground: semantic.color.institutional.brandButtonSecondaryBgd,
108
+ secondaryBorderColor: {
108
109
  value: semantic.color.institutional.brandButtonSecondaryBgd,
109
110
  modify: {
110
- type: "darken",
111
- value: 0.1,
111
+ type: "alpha",
112
+ value: 0,
112
113
  space: "hsl"
113
114
  }
114
115
  },
115
- secondaryActiveBorderColor: {
116
+ secondaryColor: semantic.color.institutional.brandButtonSecondaryText,
117
+ secondaryHoverBackground: {
118
+ value: semantic.color.institutional.brandButtonSecondaryBgd,
119
+ modify: {
120
+ type: "lighten",
121
+ value: 0.4,
122
+ space: "hsl"
123
+ }
124
+ },
125
+ secondaryHoverBorderColor: {
116
126
  value: semantic.color.institutional.brandButtonSecondaryBgd,
117
127
  modify: {
118
128
  type: "alpha",
@@ -120,9 +130,16 @@ const baseButton = semantic => ({
120
130
  space: "hsl"
121
131
  }
122
132
  },
123
- secondaryActiveTextColor: semantic.color.institutional.brandButtonSecondaryText,
124
- secondaryBackground: semantic.color.institutional.brandButtonSecondaryBgd,
125
- secondaryBorderColor: {
133
+ secondaryHoverTextColor: semantic.color.institutional.brandButtonSecondaryText,
134
+ secondaryActiveBackground: {
135
+ value: semantic.color.institutional.brandButtonSecondaryBgd,
136
+ modify: {
137
+ type: "darken",
138
+ value: 0.15,
139
+ space: "hsl"
140
+ }
141
+ },
142
+ secondaryActiveBorderColor: {
126
143
  value: semantic.color.institutional.brandButtonSecondaryBgd,
127
144
  modify: {
128
145
  type: "alpha",
@@ -130,7 +147,7 @@ const baseButton = semantic => ({
130
147
  space: "hsl"
131
148
  }
132
149
  },
133
- secondaryColor: semantic.color.institutional.brandButtonSecondaryText,
150
+ secondaryActiveTextColor: semantic.color.institutional.brandButtonSecondaryText,
134
151
  secondaryDisabledBackgroundColor: semantic.color.background.interactive.action.secondary.disabled,
135
152
  secondaryDisabledBorderColor: semantic.color.stroke.interactive.action.secondary.disabled,
136
153
  secondaryDisabledTextColor: semantic.color.text.interactive.action.secondary.disabled,
@@ -144,23 +161,6 @@ const baseButton = semantic => ({
144
161
  },
145
162
  secondaryGhostColor: semantic.color.institutional.brandButtonSecondaryText,
146
163
  secondaryGhostHoverBackground: semantic.color.institutional.brandButtonSecondaryBgd,
147
- secondaryHoverBackground: {
148
- value: semantic.color.institutional.brandButtonSecondaryBgd,
149
- modify: {
150
- type: "lighten",
151
- value: 0.1,
152
- space: "hsl"
153
- }
154
- },
155
- secondaryHoverBorderColor: {
156
- value: semantic.color.institutional.brandButtonSecondaryBgd,
157
- modify: {
158
- type: "alpha",
159
- value: 0,
160
- space: "hsl"
161
- }
162
- },
163
- secondaryHoverTextColor: semantic.color.institutional.brandButtonSecondaryText,
164
164
  secondaryOnColorActiveBorderColor: semantic.color.stroke.interactive.action.secondaryOnColor.active,
165
165
  secondaryOnColorActiveTextColor: semantic.color.text.interactive.action.secondaryOnColor.active,
166
166
  secondaryOnColorDisabledBorderColor: semantic.color.stroke.interactive.action.secondaryOnColor.disabled,
@@ -0,0 +1,105 @@
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 segmentedControl = semantic => ({
26
+ selectedItemBackgroundColor: semantic.color.institutional.brandButtonPrimaryBgd,
27
+ trackBackgroundColor: semantic.color.institutional.brandButtonSecondaryBgd,
28
+ trackBackgroundDisabledColor: semantic.color.background.interactive.action.secondary.disabled,
29
+ selectedItemTextColor: semantic.color.institutional.brandButtonPrimaryText,
30
+ unselectedItemTextColor: semantic.color.institutional.brandButtonSecondaryText,
31
+ unselectedItemTextDisabledColor: semantic.color.text.interactive.action.secondary.disabled,
32
+ selectedItemTextDisabledColor: semantic.color.text.interactive.action.primary.disabled,
33
+ selectedItemBackgroundDisabledColor: semantic.color.background.interactive.action.primary.disabled,
34
+ selectedItemBackgroundActiveColor: {
35
+ value: semantic.color.institutional.brandButtonPrimaryBgd,
36
+ modify: {
37
+ type: "darken",
38
+ value: 0.15,
39
+ space: "hsl"
40
+ }
41
+ },
42
+ selectedItemBackgroundHoverColor: {
43
+ value: semantic.color.institutional.brandButtonPrimaryBgd,
44
+ modify: {
45
+ type: "lighten",
46
+ value: 0.2,
47
+ space: "hsl"
48
+ }
49
+ },
50
+ unselectedItemBackgroundHoverColor: {
51
+ value: semantic.color.institutional.brandButtonSecondaryBgd,
52
+ modify: {
53
+ type: "lighten",
54
+ value: 0.4,
55
+ space: "hsl"
56
+ }
57
+ },
58
+ unselectedItemBackgroundActiveColor: {
59
+ value: semantic.color.institutional.brandButtonSecondaryBgd,
60
+ modify: {
61
+ type: "darken",
62
+ value: 0.15,
63
+ space: "hsl"
64
+ }
65
+ },
66
+ selectedItemShadow: {
67
+ 0: {
68
+ x: semantic.dropShadow.x.elevation1.dropshadow1,
69
+ y: semantic.dropShadow.y.elevation1.dropshadow1,
70
+ blur: semantic.dropShadow.blur.elevation1.dropshadow1,
71
+ spread: semantic.dropShadow.spread.elevation1.dropshadow1,
72
+ color: semantic.color.dropShadow.shadowColor1,
73
+ type: "dropShadow"
74
+ },
75
+ 1: {
76
+ x: semantic.dropShadow.x.elevation1.dropshadow2,
77
+ y: semantic.dropShadow.y.elevation1.dropshadow2,
78
+ blur: semantic.dropShadow.blur.elevation1.dropshadow2,
79
+ spread: semantic.dropShadow.spread.elevation1.dropshadow2,
80
+ color: semantic.color.dropShadow.shadowColor2,
81
+ type: "dropShadow"
82
+ }
83
+ },
84
+ itemPaddingHorizontalLg: semantic.spacing.padding.interactive.horizontal.xl,
85
+ itemPaddingHorizontalMd: semantic.spacing.padding.interactive.horizontal.lg,
86
+ itemPaddingHorizontalSm: semantic.spacing.padding.interactive.horizontal.md,
87
+ itemPaddingHorizontalXs: semantic.spacing.padding.interactive.horizontal.sm,
88
+ trackPadding: semantic.spacing.spaceXs,
89
+ itemGapLg: semantic.spacing.spaceMd,
90
+ itemGapMd: semantic.spacing.spaceSm,
91
+ itemGapSm: semantic.spacing.spaceXs,
92
+ trackGap: semantic.spacing.space2xs,
93
+ heightLg: semantic.size.interactive.height.lg,
94
+ heightMd: semantic.size.interactive.height.md,
95
+ heightSm: semantic.size.interactive.height.sm,
96
+ itemBorderRadius: semantic.borderRadius.interactive.base,
97
+ TrackBorderRadius: semantic.borderRadius.xl,
98
+ fontFamily: semantic.fontFamily.base,
99
+ fontWeight: semantic.fontWeight.interactive,
100
+ lineHeight: semantic.lineHeight.standalone.base,
101
+ fontSizeLg: "1.125rem",
102
+ fontSizeMd: semantic.fontSize.textBase,
103
+ fontSizeSm: semantic.fontSize.textSm
104
+ });
105
+ export default segmentedControl;
@@ -34,7 +34,7 @@ const sideNavBarItem = semantic => ({
34
34
  hoverBackgroundColor: semantic.color.institutional.globalNavLinkHover,
35
35
  lineHeight: semantic.lineHeight.paragraph.base,
36
36
  linkTextDecoration: "none",
37
- selectedBackgroundColor: semantic.color.institutional.brandPrimary,
37
+ selectedBackgroundColor: semantic.color.background.brand,
38
38
  selectedFontColor: semantic.color.institutional.brandGlobalNavMenuItemTextColorActive,
39
39
  innerFocusOutlineColor: semantic.color.stroke.interactive.focusRing.base,
40
40
  outerFocusOutlineColor: semantic.color.transparentColor,
@@ -101,9 +101,7 @@ const sideNavBarNew = semantic => ({
101
101
  },
102
102
  institutionLogo: {
103
103
  textColor: semantic.color.text.base,
104
- strokeColor: semantic.color.stroke.muted
105
- },
106
- insitutionLogo: {
104
+ strokeColor: semantic.color.stroke.muted,
107
105
  padding: semantic.spacing.spaceSm,
108
106
  gap: semantic.spacing.spaceMd
109
107
  }
@@ -0,0 +1,49 @@
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 skeletonLoader = semantic => ({
26
+ backgroundColor: semantic.color.background.skeleton.backgroundColor,
27
+ shimmerColor: semantic.color.background.skeleton.shimmerColor,
28
+ textHeightXs: semantic.fontSize.textBase,
29
+ textHeightXxs: semantic.fontSize.textXs,
30
+ textHeightSm: semantic.fontSize.textLg,
31
+ textHeightMd: "1.5rem",
32
+ textHeightLg: semantic.fontSize.textXl,
33
+ textHeightXl: "2rem",
34
+ textHeightXxl: semantic.fontSize.text2xl,
35
+ textPaddingXxs: "0.1875rem",
36
+ textPaddingXs: "0.125rem",
37
+ textPaddingSm: "0.15625rem",
38
+ textPaddingMd: "0.1875rem",
39
+ textPaddingLg: "0.21875rem",
40
+ textPaddingXl: "0.25rem",
41
+ textPaddingXxl: "0.28125rem",
42
+ textBorderRadius: semantic.borderRadius.sm,
43
+ imageBorderRadius: semantic.borderRadius.md,
44
+ avatarBorderRadius: semantic.borderRadius.full,
45
+ duration: "1500ms",
46
+ bezier: "0.42, 0, 0.58, 1",
47
+ motion: "ease-in-out"
48
+ });
49
+ export default skeletonLoader;
@@ -88,10 +88,12 @@ import radioInput from "./components/radioInput.js";
88
88
  import rangeInput from "./components/rangeInput.js";
89
89
  import ratingIcon from "./components/ratingIcon.js";
90
90
  import rgbaInput from "./components/rgbaInput.js";
91
+ import segmentedControl from "./components/segmentedControl.js";
91
92
  import select from "./components/select.js";
92
93
  import sideNavBar from "./components/sideNavBar.js";
93
94
  import sideNavBarItem from "./components/sideNavBarItem.js";
94
95
  import sideNavBarNew from "./components/sideNavBarNew.js";
96
+ import skeletonLoader from "./components/skeletonLoader.js";
95
97
  import slider from "./components/slider.js";
96
98
  import sourceCodeEditor from "./components/sourceCodeEditor.js";
97
99
  import spinner from "./components/spinner.js";
@@ -229,7 +231,9 @@ const theme = {
229
231
  Chart: chart,
230
232
  Card: card,
231
233
  Banner: banner,
232
- MobileSharedTokens: mobileSharedTokens
234
+ MobileSharedTokens: mobileSharedTokens,
235
+ SkeletonLoader: skeletonLoader,
236
+ SegmentedControl: segmentedControl
233
237
  }
234
238
  };
235
239
  export default theme;
@@ -61,7 +61,7 @@ const semantics = primitives => ({
61
61
  "base": primitives.color.navy.navy10,
62
62
  "hover": primitives.color.white,
63
63
  "active": primitives.color.navy.navy30,
64
- "disabled": primitives.color.grey.grey150
64
+ "disabled": primitives.color.grey.grey130
65
65
  },
66
66
  "secondary": {
67
67
  "base": primitives.color.navy.navy130,
@@ -365,6 +365,10 @@ const semantics = primitives => ({
365
365
  "warning": primitives.color.honey.honey160,
366
366
  "error": primitives.color.red.red160,
367
367
  "neutral": primitives.color.grey.grey160
368
+ },
369
+ "skeleton": {
370
+ "backgroundColor": primitives.color.grey.grey110,
371
+ "shimmerColor": primitives.color.grey.grey90
368
372
  }
369
373
  },
370
374
  "stroke": {
@@ -401,7 +405,7 @@ const semantics = primitives => ({
401
405
  "base": primitives.color.navy.navy10,
402
406
  "hover": primitives.color.white,
403
407
  "active": primitives.color.navy.navy30,
404
- "disabled": primitives.color.grey.grey150
408
+ "disabled": primitives.color.grey.grey130
405
409
  },
406
410
  "secondary": {
407
411
  "base": primitives.color.navy.navy130,
@@ -547,7 +551,7 @@ const semantics = primitives => ({
547
551
  "base": primitives.color.navy.navy170,
548
552
  "hover": primitives.color.navy.navy170,
549
553
  "active": primitives.color.navy.navy170,
550
- "disabled": primitives.color.grey.grey100
554
+ "disabled": primitives.color.grey.grey170
551
555
  },
552
556
  "ai": {
553
557
  "base": primitives.color.white,
@@ -657,7 +661,7 @@ const semantics = primitives => ({
657
661
  "base": primitives.color.navy.navy170,
658
662
  "hover": primitives.color.navy.navy170,
659
663
  "active": primitives.color.navy.navy170,
660
- "disabled": primitives.color.grey.grey100
664
+ "disabled": primitives.color.grey.grey170
661
665
  },
662
666
  "primaryOnColor": {
663
667
  "base": primitives.color.navy.navy160,
@@ -0,0 +1,105 @@
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 segmentedControl = semantic => ({
26
+ selectedItemBackgroundColor: semantic.color.institutional.brandButtonPrimaryBgd,
27
+ trackBackgroundColor: semantic.color.institutional.brandButtonSecondaryBgd,
28
+ trackBackgroundDisabledColor: semantic.color.background.interactive.action.secondary.disabled,
29
+ selectedItemTextColor: semantic.color.institutional.brandButtonPrimaryText,
30
+ unselectedItemTextColor: semantic.color.institutional.brandButtonSecondaryText,
31
+ unselectedItemTextDisabledColor: semantic.color.text.interactive.action.secondary.disabled,
32
+ selectedItemTextDisabledColor: semantic.color.text.interactive.action.primary.disabled,
33
+ selectedItemBackgroundDisabledColor: semantic.color.background.interactive.action.primary.disabled,
34
+ selectedItemBackgroundActiveColor: {
35
+ value: semantic.color.institutional.brandButtonPrimaryBgd,
36
+ modify: {
37
+ type: "darken",
38
+ value: 0.1,
39
+ space: "hsl"
40
+ }
41
+ },
42
+ selectedItemBackgroundHoverColor: {
43
+ value: semantic.color.institutional.brandButtonPrimaryBgd,
44
+ modify: {
45
+ type: "darken",
46
+ value: 0.1,
47
+ space: "hsl"
48
+ }
49
+ },
50
+ unselectedItemBackgroundHoverColor: {
51
+ value: semantic.color.institutional.brandButtonSecondaryBgd,
52
+ modify: {
53
+ type: "darken",
54
+ value: 0.1,
55
+ space: "hsl"
56
+ }
57
+ },
58
+ unselectedItemBackgroundActiveColor: {
59
+ value: semantic.color.institutional.brandButtonSecondaryBgd,
60
+ modify: {
61
+ type: "darken",
62
+ value: 0.1,
63
+ space: "hsl"
64
+ }
65
+ },
66
+ selectedItemShadow: {
67
+ 0: {
68
+ x: semantic.dropShadow.x.elevation1.dropshadow1,
69
+ y: semantic.dropShadow.y.elevation1.dropshadow1,
70
+ blur: semantic.dropShadow.blur.elevation1.dropshadow1,
71
+ spread: semantic.dropShadow.spread.elevation1.dropshadow1,
72
+ color: semantic.color.dropShadow.shadowColor1,
73
+ type: "dropShadow"
74
+ },
75
+ 1: {
76
+ x: semantic.dropShadow.x.elevation1.dropshadow2,
77
+ y: semantic.dropShadow.y.elevation1.dropshadow2,
78
+ blur: semantic.dropShadow.blur.elevation1.dropshadow2,
79
+ spread: semantic.dropShadow.spread.elevation1.dropshadow2,
80
+ color: semantic.color.dropShadow.shadowColor2,
81
+ type: "dropShadow"
82
+ }
83
+ },
84
+ itemPaddingHorizontalLg: semantic.spacing.padding.interactive.horizontal.xl,
85
+ itemPaddingHorizontalMd: semantic.spacing.padding.interactive.horizontal.lg,
86
+ itemPaddingHorizontalSm: semantic.spacing.padding.interactive.horizontal.md,
87
+ itemPaddingHorizontalXs: semantic.spacing.padding.interactive.horizontal.sm,
88
+ trackPadding: semantic.spacing.spaceXs,
89
+ itemGapLg: semantic.spacing.spaceMd,
90
+ itemGapMd: semantic.spacing.spaceSm,
91
+ itemGapSm: semantic.spacing.spaceXs,
92
+ trackGap: semantic.spacing.space2xs,
93
+ heightLg: semantic.size.interactive.height.lg,
94
+ heightMd: semantic.size.interactive.height.md,
95
+ heightSm: semantic.size.interactive.height.sm,
96
+ itemBorderRadius: semantic.borderRadius.interactive.base,
97
+ TrackBorderRadius: semantic.borderRadius.xl,
98
+ fontFamily: semantic.fontFamily.base,
99
+ fontWeight: semantic.fontWeight.interactive,
100
+ lineHeight: semantic.lineHeight.standalone.base,
101
+ fontSizeLg: "1.125rem",
102
+ fontSizeMd: semantic.fontSize.textBase,
103
+ fontSizeSm: semantic.fontSize.textSm
104
+ });
105
+ export default segmentedControl;
@@ -101,9 +101,7 @@ const sideNavBarNew = semantic => ({
101
101
  },
102
102
  institutionLogo: {
103
103
  textColor: semantic.color.text.onColor,
104
- strokeColor: semantic.color.stroke.base
105
- },
106
- insitutionLogo: {
104
+ strokeColor: semantic.color.stroke.base,
107
105
  padding: semantic.spacing.spaceSm,
108
106
  gap: semantic.spacing.spaceMd
109
107
  }
@@ -0,0 +1,49 @@
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 skeletonLoader = semantic => ({
26
+ backgroundColor: semantic.color.background.skeleton.backgroundColor,
27
+ shimmerColor: semantic.color.background.skeleton.shimmerColor,
28
+ textHeightXs: semantic.fontSize.textBase,
29
+ textHeightXxs: semantic.fontSize.textXs,
30
+ textHeightSm: semantic.fontSize.textLg,
31
+ textHeightMd: "1.5rem",
32
+ textHeightLg: semantic.fontSize.textXl,
33
+ textHeightXl: "2rem",
34
+ textHeightXxl: semantic.fontSize.text2xl,
35
+ textPaddingXxs: "0.1875rem",
36
+ textPaddingXs: "0.125rem",
37
+ textPaddingSm: "0.15625rem",
38
+ textPaddingMd: "0.1875rem",
39
+ textPaddingLg: "0.21875rem",
40
+ textPaddingXl: "0.25rem",
41
+ textPaddingXxl: "0.28125rem",
42
+ textBorderRadius: semantic.borderRadius.sm,
43
+ imageBorderRadius: semantic.borderRadius.md,
44
+ avatarBorderRadius: semantic.borderRadius.full,
45
+ duration: "1500ms",
46
+ bezier: "0.42, 0, 0.58, 1",
47
+ motion: "ease-in-out"
48
+ });
49
+ export default skeletonLoader;
@@ -88,10 +88,12 @@ import radioInput from "./components/radioInput.js";
88
88
  import rangeInput from "./components/rangeInput.js";
89
89
  import ratingIcon from "./components/ratingIcon.js";
90
90
  import rgbaInput from "./components/rgbaInput.js";
91
+ import segmentedControl from "./components/segmentedControl.js";
91
92
  import select from "./components/select.js";
92
93
  import sideNavBar from "./components/sideNavBar.js";
93
94
  import sideNavBarItem from "./components/sideNavBarItem.js";
94
95
  import sideNavBarNew from "./components/sideNavBarNew.js";
96
+ import skeletonLoader from "./components/skeletonLoader.js";
95
97
  import slider from "./components/slider.js";
96
98
  import sourceCodeEditor from "./components/sourceCodeEditor.js";
97
99
  import spinner from "./components/spinner.js";
@@ -229,7 +231,9 @@ const theme = {
229
231
  Chart: chart,
230
232
  Card: card,
231
233
  Banner: banner,
232
- MobileSharedTokens: mobileSharedTokens
234
+ MobileSharedTokens: mobileSharedTokens,
235
+ SkeletonLoader: skeletonLoader,
236
+ SegmentedControl: segmentedControl
233
237
  }
234
238
  };
235
239
  export default theme;
@@ -372,6 +372,10 @@ const semantics = primitives => ({
372
372
  "warning": primitives.color.honey.honey20,
373
373
  "error": primitives.color.red.red20,
374
374
  "neutral": primitives.color.grey.grey20
375
+ },
376
+ "skeleton": {
377
+ "backgroundColor": primitives.color.grey.grey70,
378
+ "shimmerColor": primitives.color.grey.grey50
375
379
  }
376
380
  },
377
381
  "stroke": {