@fluentui-react-native/apple-theme 0.29.0 → 0.29.3

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 (95) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +1 -1
  3. package/lib/__tests__/apple-theme.test.d.ts +1 -1
  4. package/lib/__tests__/apple-theme.test.js +41 -42
  5. package/lib/appleColors.ios.d.ts +1 -1
  6. package/lib/appleColors.ios.js +174 -174
  7. package/lib/appleColors.macos.d.ts +1 -1
  8. package/lib/appleColors.macos.d.ts.map +1 -1
  9. package/lib/appleColors.macos.js +367 -369
  10. package/lib/appleColors.macos.js.map +1 -1
  11. package/lib/appleColors.types.ios.d.ts +15 -15
  12. package/lib/appleColors.types.ios.js +1 -1
  13. package/lib/appleColors.types.macos.d.ts +146 -146
  14. package/lib/appleColors.types.macos.js +1 -1
  15. package/lib/appleHighContrast.macos.d.ts +1 -1
  16. package/lib/appleHighContrast.macos.js +3 -3
  17. package/lib/appleShadows.ios.d.ts +1 -1
  18. package/lib/appleShadows.ios.js +4 -4
  19. package/lib/appleShadows.macos.d.ts +1 -1
  20. package/lib/appleShadows.macos.js +2 -2
  21. package/lib/appleTheme.ios.d.ts +1 -1
  22. package/lib/appleTheme.ios.js +122 -122
  23. package/lib/appleTheme.macos.d.ts +53 -53
  24. package/lib/appleTheme.macos.js +68 -68
  25. package/lib/appleTypography.ios.d.ts +1 -1
  26. package/lib/appleTypography.ios.js +50 -50
  27. package/lib/appleTypography.macos.d.ts +2 -2
  28. package/lib/appleTypography.macos.js +63 -63
  29. package/lib/createAppleTheme.d.ts +1 -1
  30. package/lib/createAppleTheme.ios.d.ts +1 -1
  31. package/lib/createAppleTheme.ios.js +14 -14
  32. package/lib/createAppleTheme.js +3 -3
  33. package/lib/createAppleTheme.macos.d.ts +1 -1
  34. package/lib/createAppleTheme.macos.d.ts.map +1 -1
  35. package/lib/createAppleTheme.macos.js +19 -23
  36. package/lib/createAppleTheme.macos.js.map +1 -1
  37. package/lib/createFontAliasTokens.ios.d.ts +1 -1
  38. package/lib/createFontAliasTokens.ios.js +2 -2
  39. package/lib/createMacOSAliasTokens.d.ts +1 -1
  40. package/lib/createMacOSAliasTokens.js +5 -5
  41. package/lib/createiOSAliasTokens.d.ts +1 -1
  42. package/lib/createiOSAliasTokens.js +5 -5
  43. package/lib/getMacOSTokens.d.ts +435 -443
  44. package/lib/getMacOSTokens.js +45 -35
  45. package/lib/index.d.ts +1 -1
  46. package/lib/index.js +1 -1
  47. package/lib-commonjs/__tests__/apple-theme.test.d.ts +1 -1
  48. package/lib-commonjs/__tests__/apple-theme.test.js +46 -47
  49. package/lib-commonjs/appleColors.ios.d.ts +1 -1
  50. package/lib-commonjs/appleColors.ios.js +180 -180
  51. package/lib-commonjs/appleColors.macos.d.ts +1 -1
  52. package/lib-commonjs/appleColors.macos.d.ts.map +1 -1
  53. package/lib-commonjs/appleColors.macos.js +372 -380
  54. package/lib-commonjs/appleColors.macos.js.map +1 -1
  55. package/lib-commonjs/appleColors.types.ios.d.ts +15 -15
  56. package/lib-commonjs/appleColors.types.ios.js +3 -3
  57. package/lib-commonjs/appleColors.types.macos.d.ts +146 -146
  58. package/lib-commonjs/appleColors.types.macos.js +3 -3
  59. package/lib-commonjs/appleHighContrast.macos.d.ts +1 -1
  60. package/lib-commonjs/appleHighContrast.macos.js +6 -6
  61. package/lib-commonjs/appleShadows.ios.d.ts +1 -1
  62. package/lib-commonjs/appleShadows.ios.js +9 -9
  63. package/lib-commonjs/appleShadows.macos.d.ts +1 -1
  64. package/lib-commonjs/appleShadows.macos.js +6 -6
  65. package/lib-commonjs/appleTheme.ios.d.ts +1 -1
  66. package/lib-commonjs/appleTheme.ios.js +128 -128
  67. package/lib-commonjs/appleTheme.macos.d.ts +53 -53
  68. package/lib-commonjs/appleTheme.macos.js +74 -74
  69. package/lib-commonjs/appleTypography.ios.d.ts +1 -1
  70. package/lib-commonjs/appleTypography.ios.js +53 -53
  71. package/lib-commonjs/appleTypography.macos.d.ts +2 -2
  72. package/lib-commonjs/appleTypography.macos.js +65 -65
  73. package/lib-commonjs/createAppleTheme.d.ts +1 -1
  74. package/lib-commonjs/createAppleTheme.ios.d.ts +1 -1
  75. package/lib-commonjs/createAppleTheme.ios.js +20 -20
  76. package/lib-commonjs/createAppleTheme.js +7 -7
  77. package/lib-commonjs/createAppleTheme.macos.d.ts +1 -1
  78. package/lib-commonjs/createAppleTheme.macos.d.ts.map +1 -1
  79. package/lib-commonjs/createAppleTheme.macos.js +27 -31
  80. package/lib-commonjs/createAppleTheme.macos.js.map +1 -1
  81. package/lib-commonjs/createFontAliasTokens.ios.d.ts +1 -1
  82. package/lib-commonjs/createFontAliasTokens.ios.js +10 -12
  83. package/lib-commonjs/createMacOSAliasTokens.d.ts +1 -1
  84. package/lib-commonjs/createMacOSAliasTokens.js +10 -10
  85. package/lib-commonjs/createiOSAliasTokens.d.ts +1 -1
  86. package/lib-commonjs/createiOSAliasTokens.js +10 -10
  87. package/lib-commonjs/getMacOSTokens.d.ts +435 -443
  88. package/lib-commonjs/getMacOSTokens.js +59 -51
  89. package/lib-commonjs/index.d.ts +1 -1
  90. package/lib-commonjs/index.js +10 -30
  91. package/package.json +27 -26
  92. package/src/appleColors.macos.ts +0 -2
  93. package/src/appleTypography.macos.ts +1 -1
  94. package/src/createAppleTheme.macos.ts +0 -4
  95. package/eslint.config.js +0 -3
@@ -1,382 +1,380 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
- // @ts-ignore
3
1
  import { PlatformColor, DynamicColorMacOS, ColorWithSystemEffectMacOS } from 'react-native-macos';
4
2
  import { getIsHighContrast } from './appleHighContrast.macos';
5
3
  import { createMacOSColorAliasTokens } from './createMacOSAliasTokens';
6
4
  /** Creates a Palette of PlatformColors defined for macOS */
7
5
  function getAppleSemanticPalette() {
8
- return {
9
- labelColor: PlatformColor('labelColor'),
10
- secondaryLabelColor: PlatformColor('secondaryLabelColor'),
11
- tertiaryLabelColor: PlatformColor('tertiaryLabelColor'),
12
- quaternaryLabelColor: PlatformColor('quaternaryLabelColor'),
13
- textColor: PlatformColor('textColor'),
14
- placeholderTextColor: PlatformColor('placeholderTextColor'),
15
- textBackgroundColor: PlatformColor('textBackgroundColor'),
16
- selectedTextColor: PlatformColor('selectedTexColor'),
17
- selectedTextBackgroundColor: PlatformColor('selectedTextBackgroundColor'),
18
- keyboardFocusIndicatorColor: PlatformColor('keyboardFocusIndicatorColor'),
19
- unemphasizedSelectedTextColor: PlatformColor('unemphasizedSelectedTextColor'),
20
- unemphasizedSelectedTextBackgroundColor: PlatformColor('unemphasizedSelectedTextBackgroundColor'),
21
- linkColor: PlatformColor('linkColor'),
22
- separatorColor: PlatformColor('separatorColor'),
23
- selectedContentBackgroundColor: PlatformColor('selectedContentBackgroundColor'),
24
- unemphasizedSelectedContentBackgroundColor: PlatformColor('unemphasizedSelectedContentBackgroundColor'),
25
- selectedMenuItemTextColor: PlatformColor('selectedMenuItemTextColor'),
26
- gridColor: PlatformColor('gridColor'),
27
- headerTextColor: PlatformColor('headerTextColor'),
28
- alternatingOddContentBackgroundColor: PlatformColor('alternatingOddContentBackgroundColor'),
29
- alternatingEvenContentBackgroundColor: PlatformColor('alternatingOddContentBackgroundColor'),
30
- controlAccentColor: PlatformColor('controlAccentColor'),
31
- controlColor: PlatformColor('controlColor'),
32
- controlBackgroundColor: PlatformColor('controlBackgroundColor'),
33
- controlTextColor: PlatformColor('controlTextColor'),
34
- disabledControlTextColor: PlatformColor('disabledControlTextColor'),
35
- selectedControlColor: PlatformColor('selectedControlColor'),
36
- selectedControlTextColor: PlatformColor('selectedControlTextColor'),
37
- alternateSelectedControlTextColor: PlatformColor('alternateSelectedControlTextColor'),
38
- scrubberTexturedBackground: PlatformColor('scrubberTexturedBackground'),
39
- windowBackgroundColor: PlatformColor('windowBackgroundColor'),
40
- windowFrameTextColor: PlatformColor('windowFrameTextColor'),
41
- underPageBackgroundColor: PlatformColor('underPageBackgroundColor'),
42
- findHighlightColor: PlatformColor('findHighlightColor'),
43
- highlightColor: PlatformColor('highlightColor'),
44
- shadowColor: PlatformColor('shadowColor'),
45
- };
6
+ return {
7
+ labelColor: PlatformColor('labelColor'),
8
+ secondaryLabelColor: PlatformColor('secondaryLabelColor'),
9
+ tertiaryLabelColor: PlatformColor('tertiaryLabelColor'),
10
+ quaternaryLabelColor: PlatformColor('quaternaryLabelColor'),
11
+ textColor: PlatformColor('textColor'),
12
+ placeholderTextColor: PlatformColor('placeholderTextColor'),
13
+ textBackgroundColor: PlatformColor('textBackgroundColor'),
14
+ selectedTextColor: PlatformColor('selectedTexColor'),
15
+ selectedTextBackgroundColor: PlatformColor('selectedTextBackgroundColor'),
16
+ keyboardFocusIndicatorColor: PlatformColor('keyboardFocusIndicatorColor'),
17
+ unemphasizedSelectedTextColor: PlatformColor('unemphasizedSelectedTextColor'),
18
+ unemphasizedSelectedTextBackgroundColor: PlatformColor('unemphasizedSelectedTextBackgroundColor'),
19
+ linkColor: PlatformColor('linkColor'),
20
+ separatorColor: PlatformColor('separatorColor'),
21
+ selectedContentBackgroundColor: PlatformColor('selectedContentBackgroundColor'),
22
+ unemphasizedSelectedContentBackgroundColor: PlatformColor('unemphasizedSelectedContentBackgroundColor'),
23
+ selectedMenuItemTextColor: PlatformColor('selectedMenuItemTextColor'),
24
+ gridColor: PlatformColor('gridColor'),
25
+ headerTextColor: PlatformColor('headerTextColor'),
26
+ alternatingOddContentBackgroundColor: PlatformColor('alternatingOddContentBackgroundColor'),
27
+ alternatingEvenContentBackgroundColor: PlatformColor('alternatingOddContentBackgroundColor'),
28
+ controlAccentColor: PlatformColor('controlAccentColor'),
29
+ controlColor: PlatformColor('controlColor'),
30
+ controlBackgroundColor: PlatformColor('controlBackgroundColor'),
31
+ controlTextColor: PlatformColor('controlTextColor'),
32
+ disabledControlTextColor: PlatformColor('disabledControlTextColor'),
33
+ selectedControlColor: PlatformColor('selectedControlColor'),
34
+ selectedControlTextColor: PlatformColor('selectedControlTextColor'),
35
+ alternateSelectedControlTextColor: PlatformColor('alternateSelectedControlTextColor'),
36
+ scrubberTexturedBackground: PlatformColor('scrubberTexturedBackground'),
37
+ windowBackgroundColor: PlatformColor('windowBackgroundColor'),
38
+ windowFrameTextColor: PlatformColor('windowFrameTextColor'),
39
+ underPageBackgroundColor: PlatformColor('underPageBackgroundColor'),
40
+ findHighlightColor: PlatformColor('findHighlightColor'),
41
+ highlightColor: PlatformColor('highlightColor'),
42
+ shadowColor: PlatformColor('shadowColor'),
43
+ };
46
44
  }
47
45
  function getFluentUIApplePalette() {
48
- return {
49
- blue10: '#4F6BED',
50
- blueMagenta20: '#8764B8',
51
- blueMagenta30: '#5C2E91',
52
- communicationBlue: DynamicColorMacOS({
53
- light: '#0078D4',
54
- dark: '#1890F1',
55
- }),
56
- communicationBlueShade10: DynamicColorMacOS({
57
- light: '#106EBE',
58
- dark: '#1890F1',
59
- }),
60
- communicationBlueShade20: DynamicColorMacOS({
61
- light: '#005A9E',
62
- dark: '#3AA0F3',
63
- }),
64
- communicationBlueShade30: DynamicColorMacOS({
65
- light: '#004578',
66
- dark: '#6CB8F6',
67
- }),
68
- communicationBlueTint10: DynamicColorMacOS({
69
- light: '#2B88D8',
70
- dark: '#0078D4',
71
- }),
72
- communicationBlueTint20: DynamicColorMacOS({
73
- light: '#C7E0F4',
74
- dark: '#004C87',
75
- }),
76
- communicationBlueTint30: DynamicColorMacOS({
77
- light: '#DEECF9',
78
- dark: '#043862',
79
- }),
80
- communicationBlueTint40: DynamicColorMacOS({
81
- light: '#EFF6FC',
82
- dark: '#092C47',
83
- }),
84
- cyan20: '#038387',
85
- cyan30: '#005B70',
86
- cyanBlue10: '#0078D4',
87
- cyanBlue20: '#004E8C',
88
- dangerPrimary: DynamicColorMacOS({
89
- light: '#D92C2C',
90
- dark: 'transparent',
91
- }),
92
- dangerShade10: DynamicColorMacOS({
93
- light: '#C32727',
94
- dark: '#transparent',
95
- }),
96
- dangerShade20: DynamicColorMacOS({
97
- light: '#A52121',
98
- dark: 'transparent',
99
- }),
100
- dangerShade30: DynamicColorMacOS({
101
- light: '#791818',
102
- dark: 'transparent',
103
- }),
104
- dangerTint10: DynamicColorMacOS({
105
- light: '#DD4242',
106
- dark: 'transparent',
107
- }),
108
- dangerTint20: DynamicColorMacOS({
109
- light: '#E87979',
110
- dark: 'transparent',
111
- }),
112
- dangerTint30: DynamicColorMacOS({
113
- light: '#F4B9B9',
114
- dark: 'transparent',
115
- }),
116
- dangerTint40: DynamicColorMacOS({
117
- light: '#F9D9D9',
118
- dark: 'transparent',
119
- }),
120
- gray20: '#69797E',
121
- gray25: '#F8F8F8',
122
- gray30: '#7A7574',
123
- gray40: '#393939',
124
- gray50: '#F1F1F1',
125
- gray100: '#E1E1E1',
126
- gray200: '#C8C8C8',
127
- gray300: '#ACACAC',
128
- gray400: '#919191',
129
- gray500: '#6E6E6E',
130
- gray600: '#404040',
131
- gray700: '#303030',
132
- gray800: '#292929',
133
- gray900: '#212121',
134
- gray950: '#141414',
135
- green10: '#498205',
136
- green20: '#0B6A0B',
137
- magenta10: '#C239B3',
138
- magenta20: '#881798',
139
- magentaPink10: '#E3008C',
140
- orange20: '#CA5010',
141
- orange30: '#8E562E',
142
- orangeYellow20: '#986F0B',
143
- pinkRed10: '#750B1C',
144
- presenceAvailable: DynamicColorMacOS({
145
- light: '#6BB700',
146
- dark: '#92C353',
147
- }),
148
- presenceAway: DynamicColorMacOS({
149
- light: '#FFAA44',
150
- dark: '#F8D22A',
151
- }),
152
- presenceBlocked: DynamicColorMacOS({
153
- light: '#C50F1F',
154
- dark: '#D74553',
155
- }),
156
- presenceBusy: DynamicColorMacOS({
157
- light: '#C50F1F',
158
- dark: '#D74553',
159
- }),
160
- presenceDnd: DynamicColorMacOS({
161
- light: '#C50F1F',
162
- dark: '#D74553',
163
- }),
164
- presenceOffline: DynamicColorMacOS({
165
- light: '#8A8886',
166
- dark: '#979593',
167
- }),
168
- presenceOof: DynamicColorMacOS({
169
- light: '#B4009E',
170
- dark: '#E959D9',
171
- }),
172
- presenceUnknown: DynamicColorMacOS({
173
- light: '#8A8886',
174
- dark: '#979593',
175
- }),
176
- red10: '#D13438',
177
- red20: '#A4262C',
178
- successPrimary: DynamicColorMacOS({
179
- light: '#13A10E',
180
- dark: '#979593',
181
- }),
182
- successShade10: DynamicColorMacOS({
183
- light: '#11910D',
184
- dark: '#20BA53',
185
- }),
186
- successShade20: DynamicColorMacOS({
187
- light: '#0F7A0B',
188
- dark: '#3BC569',
189
- }),
190
- successShade30: DynamicColorMacOS({
191
- light: '#0B5A08',
192
- dark: '#67D48B',
193
- }),
194
- successTint10: DynamicColorMacOS({
195
- light: '#27AC22',
196
- dark: '#0D9D3D',
197
- }),
198
- successTint20: DynamicColorMacOS({
199
- light: '#5EC65A',
200
- dark: '#096B29',
201
- }),
202
- successTint30: DynamicColorMacOS({
203
- light: '#A7E3A5',
204
- dark: '#043615',
205
- }),
206
- successTint40: DynamicColorMacOS({
207
- light: '#CEF0CD',
208
- dark: '#021D0B',
209
- }),
210
- warningPrimary: DynamicColorMacOS({
211
- light: '#FFD335',
212
- dark: '#FFC328',
213
- }),
214
- warningShade10: DynamicColorMacOS({
215
- light: '#E6BE30',
216
- dark: '#FFC83E',
217
- }),
218
- warningShade20: DynamicColorMacOS({
219
- light: '#C2A129',
220
- dark: '#FFDD15',
221
- }),
222
- warningShade30: DynamicColorMacOS({
223
- light: '#8F761E',
224
- dark: '#FFDD87',
225
- }),
226
- warningTint10: DynamicColorMacOS({
227
- light: '#FFD94E',
228
- dark: '#E0AB24',
229
- }),
230
- warningTint20: DynamicColorMacOS({
231
- light: '#FFE586',
232
- dark: '#997518',
233
- }),
234
- warningTint30: DynamicColorMacOS({
235
- light: '#FFF2C3',
236
- dark: '#4D3A0C',
237
- }),
238
- warningTint40: DynamicColorMacOS({
239
- light: '#FFF8DF',
240
- dark: '#291F07',
241
- }),
242
- };
46
+ return {
47
+ blue10: '#4F6BED',
48
+ blueMagenta20: '#8764B8',
49
+ blueMagenta30: '#5C2E91',
50
+ communicationBlue: DynamicColorMacOS({
51
+ light: '#0078D4',
52
+ dark: '#1890F1',
53
+ }),
54
+ communicationBlueShade10: DynamicColorMacOS({
55
+ light: '#106EBE',
56
+ dark: '#1890F1',
57
+ }),
58
+ communicationBlueShade20: DynamicColorMacOS({
59
+ light: '#005A9E',
60
+ dark: '#3AA0F3',
61
+ }),
62
+ communicationBlueShade30: DynamicColorMacOS({
63
+ light: '#004578',
64
+ dark: '#6CB8F6',
65
+ }),
66
+ communicationBlueTint10: DynamicColorMacOS({
67
+ light: '#2B88D8',
68
+ dark: '#0078D4',
69
+ }),
70
+ communicationBlueTint20: DynamicColorMacOS({
71
+ light: '#C7E0F4',
72
+ dark: '#004C87',
73
+ }),
74
+ communicationBlueTint30: DynamicColorMacOS({
75
+ light: '#DEECF9',
76
+ dark: '#043862',
77
+ }),
78
+ communicationBlueTint40: DynamicColorMacOS({
79
+ light: '#EFF6FC',
80
+ dark: '#092C47',
81
+ }),
82
+ cyan20: '#038387',
83
+ cyan30: '#005B70',
84
+ cyanBlue10: '#0078D4',
85
+ cyanBlue20: '#004E8C',
86
+ dangerPrimary: DynamicColorMacOS({
87
+ light: '#D92C2C',
88
+ dark: 'transparent',
89
+ }),
90
+ dangerShade10: DynamicColorMacOS({
91
+ light: '#C32727',
92
+ dark: '#transparent',
93
+ }),
94
+ dangerShade20: DynamicColorMacOS({
95
+ light: '#A52121',
96
+ dark: 'transparent',
97
+ }),
98
+ dangerShade30: DynamicColorMacOS({
99
+ light: '#791818',
100
+ dark: 'transparent',
101
+ }),
102
+ dangerTint10: DynamicColorMacOS({
103
+ light: '#DD4242',
104
+ dark: 'transparent',
105
+ }),
106
+ dangerTint20: DynamicColorMacOS({
107
+ light: '#E87979',
108
+ dark: 'transparent',
109
+ }),
110
+ dangerTint30: DynamicColorMacOS({
111
+ light: '#F4B9B9',
112
+ dark: 'transparent',
113
+ }),
114
+ dangerTint40: DynamicColorMacOS({
115
+ light: '#F9D9D9',
116
+ dark: 'transparent',
117
+ }),
118
+ gray20: '#69797E',
119
+ gray25: '#F8F8F8',
120
+ gray30: '#7A7574',
121
+ gray40: '#393939',
122
+ gray50: '#F1F1F1',
123
+ gray100: '#E1E1E1',
124
+ gray200: '#C8C8C8',
125
+ gray300: '#ACACAC',
126
+ gray400: '#919191',
127
+ gray500: '#6E6E6E',
128
+ gray600: '#404040',
129
+ gray700: '#303030',
130
+ gray800: '#292929',
131
+ gray900: '#212121',
132
+ gray950: '#141414',
133
+ green10: '#498205',
134
+ green20: '#0B6A0B',
135
+ magenta10: '#C239B3',
136
+ magenta20: '#881798',
137
+ magentaPink10: '#E3008C',
138
+ orange20: '#CA5010',
139
+ orange30: '#8E562E',
140
+ orangeYellow20: '#986F0B',
141
+ pinkRed10: '#750B1C',
142
+ presenceAvailable: DynamicColorMacOS({
143
+ light: '#6BB700',
144
+ dark: '#92C353',
145
+ }),
146
+ presenceAway: DynamicColorMacOS({
147
+ light: '#FFAA44',
148
+ dark: '#F8D22A',
149
+ }),
150
+ presenceBlocked: DynamicColorMacOS({
151
+ light: '#C50F1F',
152
+ dark: '#D74553',
153
+ }),
154
+ presenceBusy: DynamicColorMacOS({
155
+ light: '#C50F1F',
156
+ dark: '#D74553',
157
+ }),
158
+ presenceDnd: DynamicColorMacOS({
159
+ light: '#C50F1F',
160
+ dark: '#D74553',
161
+ }),
162
+ presenceOffline: DynamicColorMacOS({
163
+ light: '#8A8886',
164
+ dark: '#979593',
165
+ }),
166
+ presenceOof: DynamicColorMacOS({
167
+ light: '#B4009E',
168
+ dark: '#E959D9',
169
+ }),
170
+ presenceUnknown: DynamicColorMacOS({
171
+ light: '#8A8886',
172
+ dark: '#979593',
173
+ }),
174
+ red10: '#D13438',
175
+ red20: '#A4262C',
176
+ successPrimary: DynamicColorMacOS({
177
+ light: '#13A10E',
178
+ dark: '#979593',
179
+ }),
180
+ successShade10: DynamicColorMacOS({
181
+ light: '#11910D',
182
+ dark: '#20BA53',
183
+ }),
184
+ successShade20: DynamicColorMacOS({
185
+ light: '#0F7A0B',
186
+ dark: '#3BC569',
187
+ }),
188
+ successShade30: DynamicColorMacOS({
189
+ light: '#0B5A08',
190
+ dark: '#67D48B',
191
+ }),
192
+ successTint10: DynamicColorMacOS({
193
+ light: '#27AC22',
194
+ dark: '#0D9D3D',
195
+ }),
196
+ successTint20: DynamicColorMacOS({
197
+ light: '#5EC65A',
198
+ dark: '#096B29',
199
+ }),
200
+ successTint30: DynamicColorMacOS({
201
+ light: '#A7E3A5',
202
+ dark: '#043615',
203
+ }),
204
+ successTint40: DynamicColorMacOS({
205
+ light: '#CEF0CD',
206
+ dark: '#021D0B',
207
+ }),
208
+ warningPrimary: DynamicColorMacOS({
209
+ light: '#FFD335',
210
+ dark: '#FFC328',
211
+ }),
212
+ warningShade10: DynamicColorMacOS({
213
+ light: '#E6BE30',
214
+ dark: '#FFC83E',
215
+ }),
216
+ warningShade20: DynamicColorMacOS({
217
+ light: '#C2A129',
218
+ dark: '#FFDD15',
219
+ }),
220
+ warningShade30: DynamicColorMacOS({
221
+ light: '#8F761E',
222
+ dark: '#FFDD87',
223
+ }),
224
+ warningTint10: DynamicColorMacOS({
225
+ light: '#FFD94E',
226
+ dark: '#E0AB24',
227
+ }),
228
+ warningTint20: DynamicColorMacOS({
229
+ light: '#FFE586',
230
+ dark: '#997518',
231
+ }),
232
+ warningTint30: DynamicColorMacOS({
233
+ light: '#FFF2C3',
234
+ dark: '#4D3A0C',
235
+ }),
236
+ warningTint40: DynamicColorMacOS({
237
+ light: '#FFF8DF',
238
+ dark: '#291F07',
239
+ }),
240
+ };
243
241
  }
244
242
  /** Creates a palette of colors for the apple theme, given the FluentUI Apple Palette and Apple Semantic Palette
245
243
  * The fallback palette is loaded while we wait for the native theming module to load, or if the module is not found
246
244
  */
247
245
  export function fallbackApplePalette(mode) {
248
- const fluentUIApple = getFluentUIApplePalette();
249
- const applePlatform = getAppleSemanticPalette();
250
- const macOSAliasColorTokens = createMacOSColorAliasTokens(mode, getIsHighContrast());
251
- return {
252
- ...macOSAliasColorTokens,
253
- /* PaletteBackgroundColors & PaletteTextColors */
254
- background: applePlatform.windowBackgroundColor,
255
- bodyStandoutBackground: applePlatform.underPageBackgroundColor,
256
- bodyFrameBackground: applePlatform.windowBackgroundColor,
257
- bodyFrameDivider: applePlatform.separatorColor,
258
- bodyText: applePlatform.labelColor,
259
- bodyTextChecked: applePlatform.labelColor,
260
- subText: applePlatform.secondaryLabelColor,
261
- bodyDivider: applePlatform.separatorColor,
262
- disabledBackground: fluentUIApple.gray100,
263
- disabledText: applePlatform.tertiaryLabelColor,
264
- disabledBodyText: applePlatform.tertiaryLabelColor,
265
- focusBorder: 'transparent',
266
- variantBorder: applePlatform.separatorColor,
267
- errorText: fluentUIApple.dangerPrimary,
268
- inputBorder: applePlatform.separatorColor,
269
- inputBackground: applePlatform.textBackgroundColor,
270
- inputFocusBorderAlt: applePlatform.keyboardFocusIndicatorColor,
271
- inputText: applePlatform.textColor,
272
- inputPlaceholderText: applePlatform.placeholderTextColor,
273
- // Set the default button tokens to match the Acrylic Button style
274
- buttonBackground: macOSAliasColorTokens.neutralBackground1,
275
- buttonBackgroundChecked: macOSAliasColorTokens.neutralBackground3,
276
- buttonBackgroundHovered: macOSAliasColorTokens.neutralBackground3,
277
- buttonBackgroundPressed: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralBackground3, 'pressed'),
278
- buttonBackgroundDisabled: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralBackground3, 'disabled'),
279
- buttonBorder: macOSAliasColorTokens.transparentStroke,
280
- buttonText: macOSAliasColorTokens.neutralForeground3,
281
- buttonTextHovered: macOSAliasColorTokens.neutralForeground3,
282
- buttonTextChecked: macOSAliasColorTokens.neutralForeground3,
283
- buttonTextPressed: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralForeground3, 'pressed'),
284
- buttonTextDisabled: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralForeground3, 'disabled'),
285
- buttonBorderDisabled: macOSAliasColorTokens.transparentBackground,
286
- buttonBorderFocused: macOSAliasColorTokens.transparentBackground,
287
- primaryButtonBackground: fluentUIApple.communicationBlue,
288
- primaryButtonBackgroundHovered: fluentUIApple.communicationBlue,
289
- primaryButtonBackgroundPressed: macOSAliasColorTokens.brandBackgroundPressed,
290
- primaryButtonBackgroundDisabled: macOSAliasColorTokens.neutralBackgroundDisabled,
291
- primaryButtonBorder: 'transparent',
292
- primaryButtonBorderFocused: 'transparent',
293
- primaryButtonText: macOSAliasColorTokens.neutralForegroundInverted,
294
- primaryButtonTextHovered: macOSAliasColorTokens.neutralForegroundInverted,
295
- primaryButtonTextPressed: macOSAliasColorTokens.neutralForegroundInverted,
296
- primaryButtonTextDisabled: macOSAliasColorTokens.brandForeground1Disabled,
297
- accentButtonBackground: fluentUIApple.communicationBlue,
298
- menuBackground: 'transparent',
299
- menuDivider: applePlatform.separatorColor,
300
- menuIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
301
- menuItemBackgroundHovered: applePlatform.controlAccentColor,
302
- menuItemBackgroundPressed: ColorWithSystemEffectMacOS(applePlatform.controlAccentColor, 'pressed'),
303
- menuItemText: applePlatform.labelColor,
304
- menuItemTextHovered: 'white',
305
- listHeaderBackgroundHovered: applePlatform.headerTextColor,
306
- listHeaderBackgroundPressed: applePlatform.headerTextColor,
307
- actionLink: applePlatform.linkColor,
308
- link: applePlatform.linkColor,
309
- linkHovered: applePlatform.linkColor,
310
- linkPressed: applePlatform.selectedControlColor,
311
- /* ControlColorTokens */
312
- // Set the default button tokens to match the Acrylic Button style
313
- defaultBackground: macOSAliasColorTokens.neutralBackground2,
314
- defaultBorder: macOSAliasColorTokens.neutralStroke2,
315
- defaultContent: macOSAliasColorTokens.neutralForeground2,
316
- defaultIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
317
- defaultHoveredBackground: macOSAliasColorTokens.neutralBackground3,
318
- defaultHoveredBorder: macOSAliasColorTokens.neutralStroke2,
319
- defaultHoveredContent: macOSAliasColorTokens.neutralForeground3,
320
- defaultHoveredIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
321
- defaultFocusedBackground: macOSAliasColorTokens.neutralBackground2,
322
- defaultFocusedBorder: macOSAliasColorTokens.neutralStroke2,
323
- defaultFocusedContent: macOSAliasColorTokens.neutralForeground2,
324
- defaultFocusedIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
325
- defaultPressedBackground: macOSAliasColorTokens.neutralBackground2Pressed,
326
- defaultPressedBorder: macOSAliasColorTokens.neutralStroke2,
327
- defaultPressedContent: macOSAliasColorTokens.neutralForeground2,
328
- defaultPressedIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
329
- defaultDisabledBackground: macOSAliasColorTokens.neutralBackground2,
330
- defaultDisabledBorder: macOSAliasColorTokens.neutralStroke2,
331
- defaultDisabledContent: macOSAliasColorTokens.neutralForegroundDisabled,
332
- defaultDisabledIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
333
- ghostBackground: 'transparent',
334
- ghostBorder: 'transparent',
335
- ghostContent: fluentUIApple.communicationBlue,
336
- ghostIcon: fluentUIApple.communicationBlue,
337
- ghostHoveredBackground: 'transparent',
338
- ghostHoveredBorder: 'transparent',
339
- ghostHoveredContent: fluentUIApple.communicationBlue,
340
- ghostHoveredIcon: fluentUIApple.communicationBlue,
341
- ghostFocusedBackground: 'transparent',
342
- ghostFocusedBorder: 'transparent',
343
- ghostFocusedContent: fluentUIApple.communicationBlue,
344
- ghostFocusedIcon: fluentUIApple.communicationBlue,
345
- ghostPressedBackground: 'transparent',
346
- ghostPressedBorder: 'transparent',
347
- ghostPressedContent: macOSAliasColorTokens.brandForeground1Pressed,
348
- ghostPressedIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
349
- ghostDisabledBackground: 'transparent',
350
- ghostDisabledBorder: 'transparent',
351
- ghostDisabledContent: macOSAliasColorTokens.brandForeground1Disabled,
352
- ghostDisabledIcon: macOSAliasColorTokens.brandForeground1Disabled,
353
- brandedBackground: macOSAliasColorTokens.brandBackground,
354
- brandedDisabledBorder: 'transparent',
355
- defaultCheckedBackground: fluentUIApple.communicationBlue,
356
- defaultCheckedContent: macOSAliasColorTokens.neutralForegroundInverted,
357
- defaultCheckedHoveredBackground: fluentUIApple.communicationBlue,
358
- defaultCheckedHoveredContent: macOSAliasColorTokens.neutralForegroundInverted,
359
- ghostCheckedBackground: 'transparent',
360
- ghostCheckedContent: fluentUIApple.communicationBlue,
361
- ghostCheckedHoveredBackground: 'transparent',
362
- ghostCheckedHoveredContent: fluentUIApple.communicationBlue,
363
- ghostCheckedHoveredBorder: 'transparent',
364
- ghostSecondaryContent: fluentUIApple.communicationBlue,
365
- ghostFocusedSecondaryContent: fluentUIApple.communicationBlue,
366
- ghostHoveredSecondaryContent: fluentUIApple.communicationBlue,
367
- ghostPressedSecondaryContent: ColorWithSystemEffectMacOS(fluentUIApple.communicationBlue, 'deepPressed'),
368
- brandedSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
369
- brandedFocusedSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
370
- brandedHoveredSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
371
- brandedPressedSecondaryContent: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralForegroundInverted, 'pressed'),
372
- defaultHoveredSecondaryContent: macOSAliasColorTokens.neutralForeground3,
373
- defaultPressedSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
374
- checkboxBackground: fluentUIApple.communicationBlue,
375
- checkboxBackgroundDisabled: macOSAliasColorTokens.neutralBackgroundDisabled,
376
- checkboxBorderColor: fluentUIApple.gray600,
377
- checkmarkColor: macOSAliasColorTokens.neutralForegroundInverted,
378
- personaActivityRing: macOSAliasColorTokens.neutralForegroundInverted,
379
- personaActivityGlow: fluentUIApple.red10,
380
- };
246
+ const fluentUIApple = getFluentUIApplePalette();
247
+ const applePlatform = getAppleSemanticPalette();
248
+ const macOSAliasColorTokens = createMacOSColorAliasTokens(mode, getIsHighContrast());
249
+ return {
250
+ ...macOSAliasColorTokens,
251
+ /* PaletteBackgroundColors & PaletteTextColors */
252
+ background: applePlatform.windowBackgroundColor,
253
+ bodyStandoutBackground: applePlatform.underPageBackgroundColor,
254
+ bodyFrameBackground: applePlatform.windowBackgroundColor,
255
+ bodyFrameDivider: applePlatform.separatorColor,
256
+ bodyText: applePlatform.labelColor,
257
+ bodyTextChecked: applePlatform.labelColor,
258
+ subText: applePlatform.secondaryLabelColor,
259
+ bodyDivider: applePlatform.separatorColor,
260
+ disabledBackground: fluentUIApple.gray100,
261
+ disabledText: applePlatform.tertiaryLabelColor,
262
+ disabledBodyText: applePlatform.tertiaryLabelColor,
263
+ focusBorder: 'transparent',
264
+ variantBorder: applePlatform.separatorColor,
265
+ errorText: fluentUIApple.dangerPrimary,
266
+ inputBorder: applePlatform.separatorColor,
267
+ inputBackground: applePlatform.textBackgroundColor,
268
+ inputFocusBorderAlt: applePlatform.keyboardFocusIndicatorColor,
269
+ inputText: applePlatform.textColor,
270
+ inputPlaceholderText: applePlatform.placeholderTextColor,
271
+ // Set the default button tokens to match the Acrylic Button style
272
+ buttonBackground: macOSAliasColorTokens.neutralBackground1,
273
+ buttonBackgroundChecked: macOSAliasColorTokens.neutralBackground3,
274
+ buttonBackgroundHovered: macOSAliasColorTokens.neutralBackground3,
275
+ buttonBackgroundPressed: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralBackground3, 'pressed'),
276
+ buttonBackgroundDisabled: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralBackground3, 'disabled'),
277
+ buttonBorder: macOSAliasColorTokens.transparentStroke,
278
+ buttonText: macOSAliasColorTokens.neutralForeground3,
279
+ buttonTextHovered: macOSAliasColorTokens.neutralForeground3,
280
+ buttonTextChecked: macOSAliasColorTokens.neutralForeground3,
281
+ buttonTextPressed: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralForeground3, 'pressed'),
282
+ buttonTextDisabled: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralForeground3, 'disabled'),
283
+ buttonBorderDisabled: macOSAliasColorTokens.transparentBackground,
284
+ buttonBorderFocused: macOSAliasColorTokens.transparentBackground,
285
+ primaryButtonBackground: fluentUIApple.communicationBlue,
286
+ primaryButtonBackgroundHovered: fluentUIApple.communicationBlue,
287
+ primaryButtonBackgroundPressed: macOSAliasColorTokens.brandBackgroundPressed,
288
+ primaryButtonBackgroundDisabled: macOSAliasColorTokens.neutralBackgroundDisabled,
289
+ primaryButtonBorder: 'transparent',
290
+ primaryButtonBorderFocused: 'transparent',
291
+ primaryButtonText: macOSAliasColorTokens.neutralForegroundInverted,
292
+ primaryButtonTextHovered: macOSAliasColorTokens.neutralForegroundInverted,
293
+ primaryButtonTextPressed: macOSAliasColorTokens.neutralForegroundInverted,
294
+ primaryButtonTextDisabled: macOSAliasColorTokens.brandForeground1Disabled,
295
+ accentButtonBackground: fluentUIApple.communicationBlue,
296
+ menuBackground: 'transparent',
297
+ menuDivider: applePlatform.separatorColor,
298
+ menuIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
299
+ menuItemBackgroundHovered: applePlatform.controlAccentColor,
300
+ menuItemBackgroundPressed: ColorWithSystemEffectMacOS(applePlatform.controlAccentColor, 'pressed'),
301
+ menuItemText: applePlatform.labelColor,
302
+ menuItemTextHovered: 'white',
303
+ listHeaderBackgroundHovered: applePlatform.headerTextColor,
304
+ listHeaderBackgroundPressed: applePlatform.headerTextColor,
305
+ actionLink: applePlatform.linkColor,
306
+ link: applePlatform.linkColor,
307
+ linkHovered: applePlatform.linkColor,
308
+ linkPressed: applePlatform.selectedControlColor,
309
+ /* ControlColorTokens */
310
+ // Set the default button tokens to match the Acrylic Button style
311
+ defaultBackground: macOSAliasColorTokens.neutralBackground2,
312
+ defaultBorder: macOSAliasColorTokens.neutralStroke2,
313
+ defaultContent: macOSAliasColorTokens.neutralForeground2,
314
+ defaultIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
315
+ defaultHoveredBackground: macOSAliasColorTokens.neutralBackground3,
316
+ defaultHoveredBorder: macOSAliasColorTokens.neutralStroke2,
317
+ defaultHoveredContent: macOSAliasColorTokens.neutralForeground3,
318
+ defaultHoveredIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
319
+ defaultFocusedBackground: macOSAliasColorTokens.neutralBackground2,
320
+ defaultFocusedBorder: macOSAliasColorTokens.neutralStroke2,
321
+ defaultFocusedContent: macOSAliasColorTokens.neutralForeground2,
322
+ defaultFocusedIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
323
+ defaultPressedBackground: macOSAliasColorTokens.neutralBackground2Pressed,
324
+ defaultPressedBorder: macOSAliasColorTokens.neutralStroke2,
325
+ defaultPressedContent: macOSAliasColorTokens.neutralForeground2,
326
+ defaultPressedIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
327
+ defaultDisabledBackground: macOSAliasColorTokens.neutralBackground2,
328
+ defaultDisabledBorder: macOSAliasColorTokens.neutralStroke2,
329
+ defaultDisabledContent: macOSAliasColorTokens.neutralForegroundDisabled,
330
+ defaultDisabledIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
331
+ ghostBackground: 'transparent',
332
+ ghostBorder: 'transparent',
333
+ ghostContent: fluentUIApple.communicationBlue,
334
+ ghostIcon: fluentUIApple.communicationBlue,
335
+ ghostHoveredBackground: 'transparent',
336
+ ghostHoveredBorder: 'transparent',
337
+ ghostHoveredContent: fluentUIApple.communicationBlue,
338
+ ghostHoveredIcon: fluentUIApple.communicationBlue,
339
+ ghostFocusedBackground: 'transparent',
340
+ ghostFocusedBorder: 'transparent',
341
+ ghostFocusedContent: fluentUIApple.communicationBlue,
342
+ ghostFocusedIcon: fluentUIApple.communicationBlue,
343
+ ghostPressedBackground: 'transparent',
344
+ ghostPressedBorder: 'transparent',
345
+ ghostPressedContent: macOSAliasColorTokens.brandForeground1Pressed,
346
+ ghostPressedIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
347
+ ghostDisabledBackground: 'transparent',
348
+ ghostDisabledBorder: 'transparent',
349
+ ghostDisabledContent: macOSAliasColorTokens.brandForeground1Disabled,
350
+ ghostDisabledIcon: macOSAliasColorTokens.brandForeground1Disabled,
351
+ brandedBackground: macOSAliasColorTokens.brandBackground,
352
+ brandedDisabledBorder: 'transparent',
353
+ defaultCheckedBackground: fluentUIApple.communicationBlue,
354
+ defaultCheckedContent: macOSAliasColorTokens.neutralForegroundInverted,
355
+ defaultCheckedHoveredBackground: fluentUIApple.communicationBlue,
356
+ defaultCheckedHoveredContent: macOSAliasColorTokens.neutralForegroundInverted,
357
+ ghostCheckedBackground: 'transparent',
358
+ ghostCheckedContent: fluentUIApple.communicationBlue,
359
+ ghostCheckedHoveredBackground: 'transparent',
360
+ ghostCheckedHoveredContent: fluentUIApple.communicationBlue,
361
+ ghostCheckedHoveredBorder: 'transparent',
362
+ ghostSecondaryContent: fluentUIApple.communicationBlue,
363
+ ghostFocusedSecondaryContent: fluentUIApple.communicationBlue,
364
+ ghostHoveredSecondaryContent: fluentUIApple.communicationBlue,
365
+ ghostPressedSecondaryContent: ColorWithSystemEffectMacOS(fluentUIApple.communicationBlue, 'deepPressed'),
366
+ brandedSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
367
+ brandedFocusedSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
368
+ brandedHoveredSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
369
+ brandedPressedSecondaryContent: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralForegroundInverted, 'pressed'),
370
+ defaultHoveredSecondaryContent: macOSAliasColorTokens.neutralForeground3,
371
+ defaultPressedSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
372
+ checkboxBackground: fluentUIApple.communicationBlue,
373
+ checkboxBackgroundDisabled: macOSAliasColorTokens.neutralBackgroundDisabled,
374
+ checkboxBorderColor: fluentUIApple.gray600,
375
+ checkmarkColor: macOSAliasColorTokens.neutralForegroundInverted,
376
+ personaActivityRing: macOSAliasColorTokens.neutralForegroundInverted,
377
+ personaActivityGlow: fluentUIApple.red10,
378
+ };
381
379
  }
382
- //# sourceMappingURL=appleColors.macos.js.map
380
+ //# sourceMappingURL=appleColors.macos.js.map