@fluentui-react-native/apple-theme 0.28.17 → 0.29.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.
Files changed (119) hide show
  1. package/CHANGELOG.md +43 -1
  2. package/lib/__tests__/apple-theme.test.d.ts +1 -1
  3. package/lib/__tests__/apple-theme.test.js +42 -41
  4. package/lib/__tests__/apple-theme.test.js.map +1 -1
  5. package/lib/appleColors.ios.d.ts +1 -1
  6. package/lib/appleColors.ios.js +174 -174
  7. package/lib/appleColors.ios.js.map +1 -1
  8. package/lib/appleColors.macos.d.ts +1 -1
  9. package/lib/appleColors.macos.js +367 -367
  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.d.ts.map +1 -1
  15. package/lib/appleColors.types.macos.js +1 -1
  16. package/lib/appleHighContrast.macos.d.ts +1 -1
  17. package/lib/appleHighContrast.macos.js +3 -3
  18. package/lib/appleHighContrast.macos.js.map +1 -1
  19. package/lib/appleShadows.ios.d.ts +1 -1
  20. package/lib/appleShadows.ios.js +4 -4
  21. package/lib/appleShadows.ios.js.map +1 -1
  22. package/lib/appleShadows.macos.d.ts +1 -1
  23. package/lib/appleShadows.macos.js +2 -2
  24. package/lib/appleShadows.macos.js.map +1 -1
  25. package/lib/appleTheme.ios.d.ts +1 -1
  26. package/lib/appleTheme.ios.js +122 -122
  27. package/lib/appleTheme.ios.js.map +1 -1
  28. package/lib/appleTheme.macos.d.ts +53 -53
  29. package/lib/appleTheme.macos.js +68 -68
  30. package/lib/appleTheme.macos.js.map +1 -1
  31. package/lib/appleTypography.ios.d.ts +1 -1
  32. package/lib/appleTypography.ios.js +50 -50
  33. package/lib/appleTypography.ios.js.map +1 -1
  34. package/lib/appleTypography.macos.d.ts +1 -1
  35. package/lib/appleTypography.macos.js +62 -62
  36. package/lib/appleTypography.macos.js.map +1 -1
  37. package/lib/createAppleTheme.d.ts +1 -1
  38. package/lib/createAppleTheme.ios.d.ts +1 -1
  39. package/lib/createAppleTheme.ios.js +14 -14
  40. package/lib/createAppleTheme.ios.js.map +1 -1
  41. package/lib/createAppleTheme.js +3 -3
  42. package/lib/createAppleTheme.js.map +1 -1
  43. package/lib/createAppleTheme.macos.d.ts +1 -1
  44. package/lib/createAppleTheme.macos.js +23 -23
  45. package/lib/createAppleTheme.macos.js.map +1 -1
  46. package/lib/createFontAliasTokens.ios.d.ts +1 -1
  47. package/lib/createFontAliasTokens.ios.js +2 -2
  48. package/lib/createFontAliasTokens.ios.js.map +1 -1
  49. package/lib/createMacOSAliasTokens.d.ts +1 -1
  50. package/lib/createMacOSAliasTokens.js +5 -5
  51. package/lib/createMacOSAliasTokens.js.map +1 -1
  52. package/lib/createiOSAliasTokens.d.ts +1 -1
  53. package/lib/createiOSAliasTokens.js +5 -5
  54. package/lib/createiOSAliasTokens.js.map +1 -1
  55. package/lib/getMacOSTokens.d.ts +443 -435
  56. package/lib/getMacOSTokens.js +35 -45
  57. package/lib/getMacOSTokens.js.map +1 -1
  58. package/lib/index.d.ts +1 -1
  59. package/lib/index.js +1 -1
  60. package/lib-commonjs/__tests__/apple-theme.test.d.ts +1 -1
  61. package/lib-commonjs/__tests__/apple-theme.test.js +47 -46
  62. package/lib-commonjs/__tests__/apple-theme.test.js.map +1 -1
  63. package/lib-commonjs/appleColors.ios.d.ts +1 -1
  64. package/lib-commonjs/appleColors.ios.js +181 -182
  65. package/lib-commonjs/appleColors.ios.js.map +1 -1
  66. package/lib-commonjs/appleColors.macos.d.ts +1 -1
  67. package/lib-commonjs/appleColors.macos.js +379 -374
  68. package/lib-commonjs/appleColors.macos.js.map +1 -1
  69. package/lib-commonjs/appleColors.types.ios.d.ts +15 -15
  70. package/lib-commonjs/appleColors.types.ios.js +3 -3
  71. package/lib-commonjs/appleColors.types.macos.d.ts +146 -146
  72. package/lib-commonjs/appleColors.types.macos.d.ts.map +1 -1
  73. package/lib-commonjs/appleColors.types.macos.js +3 -3
  74. package/lib-commonjs/appleHighContrast.macos.d.ts +1 -1
  75. package/lib-commonjs/appleHighContrast.macos.js +8 -9
  76. package/lib-commonjs/appleHighContrast.macos.js.map +1 -1
  77. package/lib-commonjs/appleShadows.ios.d.ts +1 -1
  78. package/lib-commonjs/appleShadows.ios.js +10 -11
  79. package/lib-commonjs/appleShadows.ios.js.map +1 -1
  80. package/lib-commonjs/appleShadows.macos.d.ts +1 -1
  81. package/lib-commonjs/appleShadows.macos.js +7 -8
  82. package/lib-commonjs/appleShadows.macos.js.map +1 -1
  83. package/lib-commonjs/appleTheme.ios.d.ts +1 -1
  84. package/lib-commonjs/appleTheme.ios.js +128 -128
  85. package/lib-commonjs/appleTheme.ios.js.map +1 -1
  86. package/lib-commonjs/appleTheme.macos.d.ts +53 -53
  87. package/lib-commonjs/appleTheme.macos.js +76 -76
  88. package/lib-commonjs/appleTheme.macos.js.map +1 -1
  89. package/lib-commonjs/appleTypography.ios.d.ts +1 -1
  90. package/lib-commonjs/appleTypography.ios.js +54 -55
  91. package/lib-commonjs/appleTypography.ios.js.map +1 -1
  92. package/lib-commonjs/appleTypography.macos.d.ts +1 -1
  93. package/lib-commonjs/appleTypography.macos.js +65 -66
  94. package/lib-commonjs/appleTypography.macos.js.map +1 -1
  95. package/lib-commonjs/createAppleTheme.d.ts +1 -1
  96. package/lib-commonjs/createAppleTheme.ios.d.ts +1 -1
  97. package/lib-commonjs/createAppleTheme.ios.js +21 -22
  98. package/lib-commonjs/createAppleTheme.ios.js.map +1 -1
  99. package/lib-commonjs/createAppleTheme.js +8 -9
  100. package/lib-commonjs/createAppleTheme.js.map +1 -1
  101. package/lib-commonjs/createAppleTheme.macos.d.ts +1 -1
  102. package/lib-commonjs/createAppleTheme.macos.js +32 -33
  103. package/lib-commonjs/createAppleTheme.macos.js.map +1 -1
  104. package/lib-commonjs/createFontAliasTokens.ios.d.ts +1 -1
  105. package/lib-commonjs/createFontAliasTokens.ios.js +12 -10
  106. package/lib-commonjs/createFontAliasTokens.ios.js.map +1 -1
  107. package/lib-commonjs/createMacOSAliasTokens.d.ts +1 -1
  108. package/lib-commonjs/createMacOSAliasTokens.js +10 -10
  109. package/lib-commonjs/createMacOSAliasTokens.js.map +1 -1
  110. package/lib-commonjs/createiOSAliasTokens.d.ts +1 -1
  111. package/lib-commonjs/createiOSAliasTokens.js +10 -10
  112. package/lib-commonjs/createiOSAliasTokens.js.map +1 -1
  113. package/lib-commonjs/getMacOSTokens.d.ts +443 -435
  114. package/lib-commonjs/getMacOSTokens.js +53 -62
  115. package/lib-commonjs/getMacOSTokens.js.map +1 -1
  116. package/lib-commonjs/index.d.ts +1 -1
  117. package/lib-commonjs/index.js +30 -10
  118. package/lib-commonjs/index.js.map +1 -1
  119. package/package.json +60 -60
@@ -5,378 +5,378 @@ import { getIsHighContrast } from './appleHighContrast.macos';
5
5
  import { createMacOSColorAliasTokens } from './createMacOSAliasTokens';
6
6
  /** Creates a Palette of PlatformColors defined for macOS */
7
7
  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
- };
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
+ };
46
46
  }
47
47
  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
- };
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
+ };
243
243
  }
244
244
  /** Creates a palette of colors for the apple theme, given the FluentUI Apple Palette and Apple Semantic Palette
245
245
  * The fallback palette is loaded while we wait for the native theming module to load, or if the module is not found
246
246
  */
247
247
  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,
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,
317
- defaultHoveredBackground: macOSAliasColorTokens.neutralBackground3,
318
- defaultHoveredBorder: macOSAliasColorTokens.neutralStroke2,
319
- defaultHoveredContent: macOSAliasColorTokens.neutralForeground3,
320
- defaultHoveredIcon: macOSAliasColorTokens.neutralForeground3,
321
- defaultFocusedBackground: macOSAliasColorTokens.neutralBackground2,
322
- defaultFocusedBorder: macOSAliasColorTokens.neutralStroke2,
323
- defaultFocusedContent: macOSAliasColorTokens.neutralForeground2,
324
- defaultFocusedIcon: macOSAliasColorTokens.neutralForeground3,
325
- defaultPressedBackground: macOSAliasColorTokens.neutralBackground2Pressed,
326
- defaultPressedBorder: macOSAliasColorTokens.neutralStroke2,
327
- defaultPressedContent: macOSAliasColorTokens.neutralForeground2,
328
- defaultPressedIcon: macOSAliasColorTokens.neutralForeground3,
329
- defaultDisabledBackground: macOSAliasColorTokens.neutralBackground2,
330
- defaultDisabledBorder: macOSAliasColorTokens.neutralStroke2,
331
- defaultDisabledContent: macOSAliasColorTokens.neutralForegroundDisabled,
332
- defaultDisabledIcon: macOSAliasColorTokens.neutralForeground3,
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,
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
- };
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
+ };
381
381
  }
382
- //# sourceMappingURL=appleColors.macos.js.map
382
+ //# sourceMappingURL=appleColors.macos.js.map