@fluentui-react-native/apple-theme 0.11.0 → 0.11.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.
- package/CHANGELOG.json +64 -1
- package/CHANGELOG.md +29 -2
- package/lib/appleColors.macos.d.ts +0 -3
- package/lib/appleColors.macos.d.ts.map +1 -1
- package/lib/appleColors.macos.js +197 -100
- package/lib/appleColors.macos.js.map +1 -1
- package/lib/appleColors.types.macos.d.ts +1 -24
- package/lib/appleColors.types.macos.d.ts.map +1 -1
- package/lib-commonjs/appleColors.macos.d.ts +0 -3
- package/lib-commonjs/appleColors.macos.d.ts.map +1 -1
- package/lib-commonjs/appleColors.macos.js +197 -101
- package/lib-commonjs/appleColors.macos.js.map +1 -1
- package/lib-commonjs/appleColors.types.macos.d.ts +1 -24
- package/lib-commonjs/appleColors.types.macos.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/appleColors.macos.ts +218 -108
- package/src/appleColors.types.macos.ts +1 -25
package/src/appleColors.macos.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemeColorDefinition } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import { ThemeColorDefinition, AliasColorTokens } from '@fluentui-react-native/theme-types';
|
|
2
2
|
import { getCurrentAppearance } from '@fluentui-react-native/theming-utils';
|
|
3
3
|
import { AppleSemanticPalette, FluentUIApplePalette } from './appleColors.types.macos';
|
|
4
4
|
import { PlatformColor, DynamicColorMacOS, ColorWithSystemEffectMacOS } from 'react-native-macos';
|
|
@@ -7,7 +7,7 @@ import { createMacOSAliasTokens } from './createMacOSAliasTokens';
|
|
|
7
7
|
import { getIsHighContrast } from './appleHighContrast.macos';
|
|
8
8
|
|
|
9
9
|
/** Creates a Palette of PlatformColors defined for macOS */
|
|
10
|
-
|
|
10
|
+
function getAppleSemanticPalette(): AppleSemanticPalette {
|
|
11
11
|
return {
|
|
12
12
|
labelColor: PlatformColor('labelColor'),
|
|
13
13
|
secondaryLabelColor: PlatformColor('secondaryLabelColor'),
|
|
@@ -57,10 +57,6 @@ export function getAppleSemanticPalette(): AppleSemanticPalette {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function getFluentUIApplePalette(): FluentUIApplePalette {
|
|
60
|
-
const appearance = Appearance.getColorScheme();
|
|
61
|
-
const mode = getCurrentAppearance(appearance, 'light');
|
|
62
|
-
const macOSAliasColorTokens = createMacOSAliasTokens(mode, getIsHighContrast());
|
|
63
|
-
|
|
64
60
|
return {
|
|
65
61
|
blue10: '#4F6BED',
|
|
66
62
|
blueMagenta20: '#8764B8',
|
|
@@ -256,35 +252,21 @@ function getFluentUIApplePalette(): FluentUIApplePalette {
|
|
|
256
252
|
light: '#FFF8DF',
|
|
257
253
|
dark: '#291F07',
|
|
258
254
|
}),
|
|
259
|
-
|
|
260
|
-
brandedBackground: macOSAliasColorTokens.brandBackground,
|
|
261
|
-
neutralBackgroundDisabled: macOSAliasColorTokens.neutralBackgroundDisabled,
|
|
262
|
-
brandForegroundDisabled: macOSAliasColorTokens.brandForeground1Disabled,
|
|
263
|
-
brandForegroundPressed: macOSAliasColorTokens.brandForeground1Pressed,
|
|
264
|
-
brandBackgroundPressed: macOSAliasColorTokens.brandBackgroundPressed,
|
|
265
|
-
brandBackgroundHovered: macOSAliasColorTokens.brandBackgroundHover,
|
|
266
|
-
neutralBackgroundInverted: macOSAliasColorTokens.neutralBackgroundInverted,
|
|
267
|
-
neutralForegroundInverted: macOSAliasColorTokens.neutralForegroundInverted,
|
|
268
|
-
neutralForeground2: macOSAliasColorTokens.neutralForeground2,
|
|
269
|
-
neutralBackground1: macOSAliasColorTokens.neutralBackground1,
|
|
270
|
-
neutralBackground2: macOSAliasColorTokens.neutralBackground2,
|
|
271
|
-
neutralStroke2: macOSAliasColorTokens.neutralStroke2,
|
|
272
|
-
neutralForeground3: macOSAliasColorTokens.neutralForeground3,
|
|
273
|
-
neutralBackground3: macOSAliasColorTokens.neutralBackground3,
|
|
274
|
-
neutralStrokeDisabled: macOSAliasColorTokens.neutralStrokeDisabled,
|
|
275
|
-
transparentBackground: macOSAliasColorTokens.transparentBackground,
|
|
276
|
-
transparentStroke: macOSAliasColorTokens.transparentStroke,
|
|
277
|
-
neutralForegroundDisabled: macOSAliasColorTokens.neutralForegroundDisabled,
|
|
278
|
-
neutralForeground2Pressed: macOSAliasColorTokens.neutralBackground2Pressed,
|
|
279
|
-
neutralBackground2Pressed: macOSAliasColorTokens.neutralBackground2Pressed,
|
|
280
255
|
};
|
|
281
256
|
}
|
|
257
|
+
|
|
258
|
+
function getMacOSAliasTokens(): AliasColorTokens {
|
|
259
|
+
const appearance = Appearance.getColorScheme();
|
|
260
|
+
const mode = getCurrentAppearance(appearance, 'light');
|
|
261
|
+
return createMacOSAliasTokens(mode, getIsHighContrast());
|
|
262
|
+
}
|
|
282
263
|
/** Creates a palette of colors for the apple theme, given the FluentUI Apple Palette and Apple Semantic Palette
|
|
283
264
|
* The fallback palette is loaded while we wait for the native theming module to load, or if the module is not found
|
|
284
265
|
*/
|
|
285
266
|
export function fallbackApplePalette(): ThemeColorDefinition {
|
|
286
267
|
const fluentUIApple = getFluentUIApplePalette();
|
|
287
268
|
const applePlatform = getAppleSemanticPalette();
|
|
269
|
+
const macOSAliasColorTokens = getMacOSAliasTokens();
|
|
288
270
|
return {
|
|
289
271
|
/* PaletteBackgroundColors & PaletteTextColors */
|
|
290
272
|
|
|
@@ -328,40 +310,40 @@ export function fallbackApplePalette(): ThemeColorDefinition {
|
|
|
328
310
|
inputPlaceholderText: applePlatform.placeholderTextColor,
|
|
329
311
|
|
|
330
312
|
// Set the default button tokens to match the Acrylic Button style
|
|
331
|
-
buttonBackground:
|
|
332
|
-
buttonBackgroundChecked:
|
|
333
|
-
buttonBackgroundHovered:
|
|
334
|
-
buttonBackgroundCheckedHovered:
|
|
335
|
-
buttonBackgroundPressed: ColorWithSystemEffectMacOS(
|
|
336
|
-
buttonBackgroundDisabled: ColorWithSystemEffectMacOS(
|
|
337
|
-
buttonBorder:
|
|
338
|
-
buttonText:
|
|
339
|
-
buttonTextHovered:
|
|
340
|
-
buttonTextChecked:
|
|
341
|
-
buttonTextCheckedHovered:
|
|
342
|
-
buttonTextPressed: ColorWithSystemEffectMacOS(
|
|
343
|
-
buttonTextDisabled: ColorWithSystemEffectMacOS(
|
|
344
|
-
|
|
345
|
-
buttonBorderDisabled:
|
|
346
|
-
buttonBorderFocused:
|
|
313
|
+
buttonBackground: macOSAliasColorTokens.neutralBackground1,
|
|
314
|
+
buttonBackgroundChecked: macOSAliasColorTokens.neutralBackground3,
|
|
315
|
+
buttonBackgroundHovered: macOSAliasColorTokens.neutralBackground3,
|
|
316
|
+
buttonBackgroundCheckedHovered: macOSAliasColorTokens.neutralBackground3,
|
|
317
|
+
buttonBackgroundPressed: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralBackground3, 'pressed'),
|
|
318
|
+
buttonBackgroundDisabled: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralBackground3, 'disabled'),
|
|
319
|
+
buttonBorder: macOSAliasColorTokens.transparentStroke,
|
|
320
|
+
buttonText: macOSAliasColorTokens.neutralForeground3,
|
|
321
|
+
buttonTextHovered: macOSAliasColorTokens.neutralForeground3,
|
|
322
|
+
buttonTextChecked: macOSAliasColorTokens.neutralForeground3,
|
|
323
|
+
buttonTextCheckedHovered: macOSAliasColorTokens.neutralForeground3,
|
|
324
|
+
buttonTextPressed: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralForeground3, 'pressed'),
|
|
325
|
+
buttonTextDisabled: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralForeground3, 'disabled'),
|
|
326
|
+
|
|
327
|
+
buttonBorderDisabled: macOSAliasColorTokens.transparentBackground,
|
|
328
|
+
buttonBorderFocused: macOSAliasColorTokens.transparentBackground,
|
|
347
329
|
|
|
348
330
|
primaryButtonBackground: fluentUIApple.communicationBlue,
|
|
349
331
|
primaryButtonBackgroundHovered: fluentUIApple.communicationBlue,
|
|
350
|
-
primaryButtonBackgroundPressed:
|
|
351
|
-
primaryButtonBackgroundDisabled:
|
|
332
|
+
primaryButtonBackgroundPressed: macOSAliasColorTokens.brandBackgroundPressed,
|
|
333
|
+
primaryButtonBackgroundDisabled: macOSAliasColorTokens.neutralBackgroundDisabled,
|
|
352
334
|
primaryButtonBorder: 'transparent',
|
|
353
335
|
primaryButtonBorderFocused: 'transparent',
|
|
354
|
-
primaryButtonText:
|
|
355
|
-
primaryButtonTextHovered:
|
|
356
|
-
primaryButtonTextPressed:
|
|
357
|
-
primaryButtonTextDisabled:
|
|
336
|
+
primaryButtonText: macOSAliasColorTokens.neutralForegroundInverted,
|
|
337
|
+
primaryButtonTextHovered: macOSAliasColorTokens.neutralForegroundInverted,
|
|
338
|
+
primaryButtonTextPressed: macOSAliasColorTokens.neutralForegroundInverted,
|
|
339
|
+
primaryButtonTextDisabled: macOSAliasColorTokens.brandForeground1Disabled,
|
|
358
340
|
|
|
359
341
|
accentButtonBackground: fluentUIApple.communicationBlue,
|
|
360
|
-
accentButtonText:
|
|
342
|
+
accentButtonText: macOSAliasColorTokens.neutralForegroundInverted,
|
|
361
343
|
|
|
362
344
|
menuBackground: 'transparent',
|
|
363
345
|
menuDivider: applePlatform.separatorColor,
|
|
364
|
-
menuIcon:
|
|
346
|
+
menuIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
|
|
365
347
|
menuHeader: applePlatform.headerTextColor,
|
|
366
348
|
menuItemBackgroundHovered: applePlatform.controlAccentColor,
|
|
367
349
|
menuItemBackgroundPressed: ColorWithSystemEffectMacOS(applePlatform.controlAccentColor, 'pressed'),
|
|
@@ -386,30 +368,30 @@ export function fallbackApplePalette(): ThemeColorDefinition {
|
|
|
386
368
|
/* ControlColorTokens */
|
|
387
369
|
|
|
388
370
|
// Set the default button tokens to match the Acrylic Button style
|
|
389
|
-
defaultBackground:
|
|
390
|
-
defaultBorder:
|
|
391
|
-
defaultContent:
|
|
392
|
-
defaultIcon:
|
|
393
|
-
|
|
394
|
-
defaultHoveredBackground:
|
|
395
|
-
defaultHoveredBorder:
|
|
396
|
-
defaultHoveredContent:
|
|
397
|
-
defaultHoveredIcon:
|
|
398
|
-
|
|
399
|
-
defaultFocusedBackground:
|
|
400
|
-
defaultFocusedBorder:
|
|
401
|
-
defaultFocusedContent:
|
|
402
|
-
defaultFocusedIcon:
|
|
403
|
-
|
|
404
|
-
defaultPressedBackground:
|
|
405
|
-
defaultPressedBorder:
|
|
406
|
-
defaultPressedContent:
|
|
407
|
-
defaultPressedIcon:
|
|
408
|
-
|
|
409
|
-
defaultDisabledBackground:
|
|
410
|
-
defaultDisabledBorder:
|
|
411
|
-
defaultDisabledContent:
|
|
412
|
-
defaultDisabledIcon:
|
|
371
|
+
defaultBackground: macOSAliasColorTokens.neutralBackground2,
|
|
372
|
+
defaultBorder: macOSAliasColorTokens.neutralStroke2,
|
|
373
|
+
defaultContent: macOSAliasColorTokens.neutralForeground2,
|
|
374
|
+
defaultIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
|
|
375
|
+
|
|
376
|
+
defaultHoveredBackground: macOSAliasColorTokens.neutralBackground3,
|
|
377
|
+
defaultHoveredBorder: macOSAliasColorTokens.neutralStroke2,
|
|
378
|
+
defaultHoveredContent: macOSAliasColorTokens.neutralForeground3,
|
|
379
|
+
defaultHoveredIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
|
|
380
|
+
|
|
381
|
+
defaultFocusedBackground: macOSAliasColorTokens.neutralBackground2,
|
|
382
|
+
defaultFocusedBorder: macOSAliasColorTokens.neutralStroke2,
|
|
383
|
+
defaultFocusedContent: macOSAliasColorTokens.neutralForeground2,
|
|
384
|
+
defaultFocusedIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
|
|
385
|
+
|
|
386
|
+
defaultPressedBackground: macOSAliasColorTokens.neutralBackground2Pressed,
|
|
387
|
+
defaultPressedBorder: macOSAliasColorTokens.neutralStroke2,
|
|
388
|
+
defaultPressedContent: macOSAliasColorTokens.neutralForeground2,
|
|
389
|
+
defaultPressedIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
|
|
390
|
+
|
|
391
|
+
defaultDisabledBackground: macOSAliasColorTokens.neutralBackground2,
|
|
392
|
+
defaultDisabledBorder: macOSAliasColorTokens.neutralStroke2,
|
|
393
|
+
defaultDisabledContent: macOSAliasColorTokens.neutralForegroundDisabled,
|
|
394
|
+
defaultDisabledIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
|
|
413
395
|
|
|
414
396
|
ghostBackground: 'transparent',
|
|
415
397
|
ghostBorder: 'transparent',
|
|
@@ -428,48 +410,48 @@ export function fallbackApplePalette(): ThemeColorDefinition {
|
|
|
428
410
|
|
|
429
411
|
ghostPressedBackground: 'transparent',
|
|
430
412
|
ghostPressedBorder: 'transparent',
|
|
431
|
-
ghostPressedContent:
|
|
432
|
-
ghostPressedIcon:
|
|
413
|
+
ghostPressedContent: macOSAliasColorTokens.brandForeground1Pressed,
|
|
414
|
+
ghostPressedIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
|
|
433
415
|
|
|
434
416
|
ghostDisabledBackground: 'transparent',
|
|
435
417
|
ghostDisabledBorder: 'transparent',
|
|
436
|
-
ghostDisabledContent:
|
|
437
|
-
ghostDisabledIcon:
|
|
418
|
+
ghostDisabledContent: macOSAliasColorTokens.brandForeground1Disabled,
|
|
419
|
+
ghostDisabledIcon: macOSAliasColorTokens.brandForeground1Disabled,
|
|
438
420
|
|
|
439
|
-
brandedBackground:
|
|
440
|
-
brandedBorder:
|
|
441
|
-
brandedContent:
|
|
442
|
-
brandedIcon:
|
|
421
|
+
brandedBackground: macOSAliasColorTokens.brandBackground,
|
|
422
|
+
brandedBorder: macOSAliasColorTokens.transparentStroke,
|
|
423
|
+
brandedContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
424
|
+
brandedIcon: macOSAliasColorTokens.neutralForegroundInverted,
|
|
443
425
|
|
|
444
|
-
brandedHoveredBackground:
|
|
426
|
+
brandedHoveredBackground: macOSAliasColorTokens.brandBackgroundHover,
|
|
445
427
|
brandedHoveredBorder: 'transparent',
|
|
446
|
-
brandedHoveredContent:
|
|
447
|
-
brandedHoveredIcon:
|
|
428
|
+
brandedHoveredContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
429
|
+
brandedHoveredIcon: macOSAliasColorTokens.neutralForegroundInverted,
|
|
448
430
|
|
|
449
431
|
brandedFocusedBackground: fluentUIApple.communicationBlue,
|
|
450
432
|
brandedFocusedBorder: 'transparent',
|
|
451
|
-
brandedFocusedContent:
|
|
452
|
-
brandedFocusedIcon:
|
|
433
|
+
brandedFocusedContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
434
|
+
brandedFocusedIcon: macOSAliasColorTokens.neutralForegroundInverted,
|
|
453
435
|
|
|
454
|
-
brandedPressedBackground:
|
|
436
|
+
brandedPressedBackground: macOSAliasColorTokens.brandBackgroundPressed, //ColorWithSystemEffectMacOS(fluentUIApple.communicationBlue, 'pressed'),
|
|
455
437
|
brandedPressedBorder: 'transparent',
|
|
456
|
-
brandedPressedContent:
|
|
457
|
-
brandedPressedIcon:
|
|
438
|
+
brandedPressedContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
439
|
+
brandedPressedIcon: macOSAliasColorTokens.neutralForegroundInverted,
|
|
458
440
|
|
|
459
|
-
brandedDisabledBackground:
|
|
441
|
+
brandedDisabledBackground: macOSAliasColorTokens.neutralBackgroundDisabled,
|
|
460
442
|
brandedDisabledBorder: 'transparent',
|
|
461
|
-
brandedDisabledContent:
|
|
462
|
-
brandedDisabledIcon:
|
|
443
|
+
brandedDisabledContent: macOSAliasColorTokens.brandForeground1Disabled,
|
|
444
|
+
brandedDisabledIcon: macOSAliasColorTokens.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
|
|
463
445
|
|
|
464
446
|
defaultCheckedBackground: fluentUIApple.communicationBlue,
|
|
465
|
-
defaultCheckedContent:
|
|
447
|
+
defaultCheckedContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
466
448
|
defaultCheckedHoveredBackground: fluentUIApple.communicationBlue,
|
|
467
|
-
defaultCheckedHoveredContent:
|
|
449
|
+
defaultCheckedHoveredContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
468
450
|
|
|
469
451
|
brandedCheckedBackground: fluentUIApple.communicationBlue,
|
|
470
|
-
brandedCheckedContent:
|
|
452
|
+
brandedCheckedContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
471
453
|
brandedCheckedHoveredBackground: fluentUIApple.communicationBlue,
|
|
472
|
-
brandedCheckedHoveredContent:
|
|
454
|
+
brandedCheckedHoveredContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
473
455
|
|
|
474
456
|
ghostCheckedBackground: 'transparent',
|
|
475
457
|
ghostCheckedContent: fluentUIApple.communicationBlue,
|
|
@@ -482,21 +464,149 @@ export function fallbackApplePalette(): ThemeColorDefinition {
|
|
|
482
464
|
ghostHoveredSecondaryContent: fluentUIApple.communicationBlue,
|
|
483
465
|
ghostPressedSecondaryContent: ColorWithSystemEffectMacOS(fluentUIApple.communicationBlue, 'deepPressed'),
|
|
484
466
|
|
|
485
|
-
brandedSecondaryContent:
|
|
486
|
-
brandedFocusedSecondaryContent:
|
|
487
|
-
brandedHoveredSecondaryContent:
|
|
488
|
-
brandedPressedSecondaryContent: ColorWithSystemEffectMacOS(
|
|
467
|
+
brandedSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
468
|
+
brandedFocusedSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
469
|
+
brandedHoveredSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
470
|
+
brandedPressedSecondaryContent: ColorWithSystemEffectMacOS(macOSAliasColorTokens.neutralForegroundInverted, 'pressed'),
|
|
489
471
|
|
|
490
|
-
defaultDisabledSecondaryContent:
|
|
491
|
-
defaultHoveredSecondaryContent:
|
|
492
|
-
defaultPressedSecondaryContent:
|
|
472
|
+
defaultDisabledSecondaryContent: macOSAliasColorTokens.brandForeground1Disabled,
|
|
473
|
+
defaultHoveredSecondaryContent: macOSAliasColorTokens.neutralForeground3,
|
|
474
|
+
defaultPressedSecondaryContent: macOSAliasColorTokens.neutralForegroundInverted,
|
|
493
475
|
|
|
494
476
|
checkboxBackground: fluentUIApple.communicationBlue,
|
|
495
|
-
checkboxBackgroundDisabled:
|
|
477
|
+
checkboxBackgroundDisabled: macOSAliasColorTokens.neutralBackgroundDisabled,
|
|
496
478
|
checkboxBorderColor: fluentUIApple.gray600,
|
|
497
|
-
checkmarkColor:
|
|
479
|
+
checkmarkColor: macOSAliasColorTokens.neutralForegroundInverted,
|
|
498
480
|
|
|
499
|
-
personaActivityRing:
|
|
481
|
+
personaActivityRing: macOSAliasColorTokens.neutralForegroundInverted,
|
|
500
482
|
personaActivityGlow: fluentUIApple.red10,
|
|
483
|
+
|
|
484
|
+
/* AliasColorTokens */
|
|
485
|
+
|
|
486
|
+
neutralForeground1: macOSAliasColorTokens.neutralForeground1,
|
|
487
|
+
neutralForeground1Hover: macOSAliasColorTokens.neutralForeground1Hover,
|
|
488
|
+
neutralForeground1Pressed: macOSAliasColorTokens.neutralForeground1Pressed,
|
|
489
|
+
neutralForeground1Selected: macOSAliasColorTokens.neutralForeground1Selected,
|
|
490
|
+
neutralForeground2: macOSAliasColorTokens.neutralForeground2,
|
|
491
|
+
neutralForeground2Hover: macOSAliasColorTokens.neutralForeground2Hover,
|
|
492
|
+
neutralForeground2Pressed: macOSAliasColorTokens.neutralForeground2Pressed,
|
|
493
|
+
neutralForeground2Selected: macOSAliasColorTokens.neutralForeground2Selected,
|
|
494
|
+
neutralForeground2BrandHover: macOSAliasColorTokens.neutralForeground2BrandHover,
|
|
495
|
+
neutralForeground2BrandPressed: macOSAliasColorTokens.neutralForeground2BrandPressed,
|
|
496
|
+
neutralForeground2BrandSelected: macOSAliasColorTokens.neutralForeground2BrandSelected,
|
|
497
|
+
neutralForeground3: macOSAliasColorTokens.neutralForeground3,
|
|
498
|
+
neutralForeground3Hover: macOSAliasColorTokens.neutralForeground3Hover,
|
|
499
|
+
neutralForeground3Pressed: macOSAliasColorTokens.neutralForeground3Pressed,
|
|
500
|
+
neutralForeground3Selected: macOSAliasColorTokens.neutralForeground3Selected,
|
|
501
|
+
neutralForeground3BrandHover: macOSAliasColorTokens.neutralForeground3BrandHover,
|
|
502
|
+
neutralForeground3BrandPressed: macOSAliasColorTokens.neutralForeground3BrandPressed,
|
|
503
|
+
neutralForeground3BrandSelected: macOSAliasColorTokens.neutralForeground3BrandSelected,
|
|
504
|
+
neutralForeground4: macOSAliasColorTokens.neutralForeground4,
|
|
505
|
+
neutralForegroundDisabled: macOSAliasColorTokens.neutralForegroundDisabled,
|
|
506
|
+
|
|
507
|
+
brandForegroundLink: macOSAliasColorTokens.brandForegroundLink,
|
|
508
|
+
brandForegroundLinkHover: macOSAliasColorTokens.brandForegroundLinkHover,
|
|
509
|
+
brandForegroundLinkPressed: macOSAliasColorTokens.brandForegroundLinkPressed,
|
|
510
|
+
brandForegroundLinkSelected: macOSAliasColorTokens.brandForegroundLinkSelected,
|
|
511
|
+
compoundBrandForeground1: macOSAliasColorTokens.compoundBrandForeground1,
|
|
512
|
+
compoundBrandForeground1Hover: macOSAliasColorTokens.compoundBrandForeground1Hover,
|
|
513
|
+
compoundBrandForeground1Pressed: macOSAliasColorTokens.compoundBrandForeground1Pressed,
|
|
514
|
+
brandForeground1: macOSAliasColorTokens.brandForeground1,
|
|
515
|
+
brandForeground1Disabled: macOSAliasColorTokens.brandForeground1Disabled,
|
|
516
|
+
brandForeground1Pressed: macOSAliasColorTokens.brandForeground1Pressed,
|
|
517
|
+
brandForeground2: macOSAliasColorTokens.brandForeground2,
|
|
518
|
+
|
|
519
|
+
neutralForegroundInverted: macOSAliasColorTokens.neutralForegroundInverted,
|
|
520
|
+
neutralForegroundOnBrand: macOSAliasColorTokens.neutralForegroundOnBrand,
|
|
521
|
+
neutralForegroundOnBrandHover: macOSAliasColorTokens.neutralForegroundOnBrandHover,
|
|
522
|
+
neutralForegroundOnBrandPressed: macOSAliasColorTokens.neutralForegroundOnBrandPressed,
|
|
523
|
+
neutralForegroundOnBrandSelected: macOSAliasColorTokens.neutralForegroundOnBrandSelected,
|
|
524
|
+
neutralForegroundInvertedLink: macOSAliasColorTokens.neutralForegroundInvertedLink,
|
|
525
|
+
neutralForegroundInvertedLinkHover: macOSAliasColorTokens.neutralForegroundInvertedLinkHover,
|
|
526
|
+
neutralForegroundInvertedLinkPressed: macOSAliasColorTokens.neutralForegroundInvertedLinkPressed,
|
|
527
|
+
neutralForegroundInvertedLinkSelected: macOSAliasColorTokens.neutralForegroundInvertedLinkSelected,
|
|
528
|
+
|
|
529
|
+
neutralBackground1: macOSAliasColorTokens.neutralBackground1,
|
|
530
|
+
neutralBackground1Hover: macOSAliasColorTokens.neutralBackground1Hover,
|
|
531
|
+
neutralBackground1Pressed: macOSAliasColorTokens.neutralBackground1Pressed,
|
|
532
|
+
neutralBackground1Selected: macOSAliasColorTokens.neutralBackground1Selected,
|
|
533
|
+
neutralBackground2: macOSAliasColorTokens.neutralBackground2,
|
|
534
|
+
neutralBackground2Hover: macOSAliasColorTokens.neutralBackground2Hover,
|
|
535
|
+
neutralBackground2Pressed: macOSAliasColorTokens.neutralBackground2Pressed,
|
|
536
|
+
neutralBackground2Selected: macOSAliasColorTokens.neutralBackground2Selected,
|
|
537
|
+
neutralBackground3: macOSAliasColorTokens.neutralBackground3,
|
|
538
|
+
neutralBackground3Hover: macOSAliasColorTokens.neutralBackground3Hover,
|
|
539
|
+
neutralBackground3Pressed: macOSAliasColorTokens.neutralBackground3Pressed,
|
|
540
|
+
neutralBackground3Selected: macOSAliasColorTokens.neutralBackground3Selected,
|
|
541
|
+
neutralBackground4: macOSAliasColorTokens.neutralBackground4,
|
|
542
|
+
neutralBackground4Hover: macOSAliasColorTokens.neutralBackground4Hover,
|
|
543
|
+
neutralBackground4Pressed: macOSAliasColorTokens.neutralBackground4Pressed,
|
|
544
|
+
neutralBackground4Selected: macOSAliasColorTokens.neutralBackground4Selected,
|
|
545
|
+
neutralBackground5: macOSAliasColorTokens.neutralBackground5,
|
|
546
|
+
neutralBackground5Hover: macOSAliasColorTokens.neutralBackground5Hover,
|
|
547
|
+
neutralBackground5Pressed: macOSAliasColorTokens.neutralBackground5Pressed,
|
|
548
|
+
neutralBackground5Selected: macOSAliasColorTokens.neutralBackground5Selected,
|
|
549
|
+
neutralBackground6: macOSAliasColorTokens.neutralBackground6,
|
|
550
|
+
neutralBackgroundInverted: macOSAliasColorTokens.neutralBackgroundInverted,
|
|
551
|
+
|
|
552
|
+
subtleBackground: macOSAliasColorTokens.subtleBackground,
|
|
553
|
+
subtleBackgroundHover: macOSAliasColorTokens.subtleBackgroundHover,
|
|
554
|
+
subtleBackgroundPressed: macOSAliasColorTokens.subtleBackgroundPressed,
|
|
555
|
+
subtleBackgroundSelected: macOSAliasColorTokens.subtleBackgroundSelected,
|
|
556
|
+
|
|
557
|
+
transparentBackground: macOSAliasColorTokens.transparentBackground,
|
|
558
|
+
transparentBackgroundHover: macOSAliasColorTokens.transparentBackgroundHover,
|
|
559
|
+
transparentBackgroundPressed: macOSAliasColorTokens.transparentBackgroundPressed,
|
|
560
|
+
transparentBackgroundSelected: macOSAliasColorTokens.transparentBackgroundSelected,
|
|
561
|
+
neutralBackgroundDisabled: macOSAliasColorTokens.neutralBackgroundDisabled,
|
|
562
|
+
|
|
563
|
+
neutralStencil1: macOSAliasColorTokens.neutralStencil1,
|
|
564
|
+
neutralStencil2: macOSAliasColorTokens.neutralStencil2,
|
|
565
|
+
|
|
566
|
+
brandBackground: macOSAliasColorTokens.brandBackground,
|
|
567
|
+
brandBackgroundHover: macOSAliasColorTokens.brandBackgroundHover,
|
|
568
|
+
brandBackgroundPressed: macOSAliasColorTokens.brandBackgroundPressed,
|
|
569
|
+
brandBackgroundDisabled: macOSAliasColorTokens.brandBackgroundDisabled,
|
|
570
|
+
brandBackgroundSelected: macOSAliasColorTokens.brandBackgroundSelected,
|
|
571
|
+
compoundBrandBackground1: macOSAliasColorTokens.compoundBrandBackground1,
|
|
572
|
+
compoundBrandBackground1Hover: macOSAliasColorTokens.compoundBrandBackground1Hover,
|
|
573
|
+
compoundBrandBackground1Pressed: macOSAliasColorTokens.compoundBrandBackground1Pressed,
|
|
574
|
+
|
|
575
|
+
brandBackgroundStatic: macOSAliasColorTokens.brandBackgroundStatic,
|
|
576
|
+
brandBackground2: macOSAliasColorTokens.brandBackground2,
|
|
577
|
+
|
|
578
|
+
neutralStrokeAccessible: macOSAliasColorTokens.neutralStrokeAccessible,
|
|
579
|
+
neutralStrokeAccessibleHover: macOSAliasColorTokens.neutralStrokeAccessibleHover,
|
|
580
|
+
neutralStrokeAccessiblePressed: macOSAliasColorTokens.neutralStrokeAccessiblePressed,
|
|
581
|
+
neutralStrokeAccessibleSelected: macOSAliasColorTokens.neutralStrokeAccessibleSelected,
|
|
582
|
+
neutralStroke1: macOSAliasColorTokens.neutralStroke1,
|
|
583
|
+
neutralStroke1Hover: macOSAliasColorTokens.neutralStroke1Hover,
|
|
584
|
+
neutralStroke1Pressed: macOSAliasColorTokens.neutralStroke1Pressed,
|
|
585
|
+
neutralStroke1Selected: macOSAliasColorTokens.neutralStroke1Selected,
|
|
586
|
+
neutralStroke2: macOSAliasColorTokens.neutralStroke2,
|
|
587
|
+
neutralStroke3: macOSAliasColorTokens.neutralStroke3,
|
|
588
|
+
brandStroke1: macOSAliasColorTokens.brandStroke1,
|
|
589
|
+
brandStroke2: macOSAliasColorTokens.brandStroke2,
|
|
590
|
+
compoundBrandStroke1: macOSAliasColorTokens.compoundBrandStroke1,
|
|
591
|
+
compoundBrandStroke1Hover: macOSAliasColorTokens.compoundBrandStroke1Hover,
|
|
592
|
+
compoundBrandStroke1Pressed: macOSAliasColorTokens.compoundBrandStroke1Pressed,
|
|
593
|
+
neutralStrokeDisabled: macOSAliasColorTokens.neutralStrokeDisabled,
|
|
594
|
+
|
|
595
|
+
transparentStroke: macOSAliasColorTokens.transparentStroke,
|
|
596
|
+
transparentStrokeInteractive: macOSAliasColorTokens.transparentStrokeInteractive,
|
|
597
|
+
transparentStrokeDisabled: macOSAliasColorTokens.transparentStrokeDisabled,
|
|
598
|
+
|
|
599
|
+
strokeFocus1: macOSAliasColorTokens.strokeFocus1,
|
|
600
|
+
strokeFocus2: macOSAliasColorTokens.strokeFocus2,
|
|
601
|
+
|
|
602
|
+
redBackground1: macOSAliasColorTokens.redBackground1,
|
|
603
|
+
redBackground2: macOSAliasColorTokens.redBackground2,
|
|
604
|
+
redBackground3: macOSAliasColorTokens.redBackground3,
|
|
605
|
+
redForeground1: macOSAliasColorTokens.redForeground1,
|
|
606
|
+
redForeground2: macOSAliasColorTokens.redForeground2,
|
|
607
|
+
redForeground3: macOSAliasColorTokens.redForeground3,
|
|
608
|
+
redBorderActive: macOSAliasColorTokens.redBorderActive,
|
|
609
|
+
redBorder1: macOSAliasColorTokens.redBorder1,
|
|
610
|
+
redBorder2: macOSAliasColorTokens.redBorder2,
|
|
501
611
|
};
|
|
502
612
|
}
|
|
@@ -204,28 +204,4 @@ interface FluentUIAppleBasePalette {
|
|
|
204
204
|
warningTint40: ColorValue;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
|
|
208
|
-
interface FluentAppleButtonTokens {
|
|
209
|
-
brandedBackground: ColorValue;
|
|
210
|
-
brandBackgroundHovered: ColorValue;
|
|
211
|
-
brandBackgroundPressed: ColorValue;
|
|
212
|
-
brandForegroundDisabled: ColorValue;
|
|
213
|
-
brandForegroundPressed: ColorValue;
|
|
214
|
-
neutralStrokeDisabled: ColorValue;
|
|
215
|
-
neutralBackgroundInverted: ColorValue;
|
|
216
|
-
neutralForegroundInverted: ColorValue;
|
|
217
|
-
neutralForeground2: ColorValue;
|
|
218
|
-
neutralBackground1: ColorValue;
|
|
219
|
-
neutralBackground2: ColorValue;
|
|
220
|
-
neutralBackgroundDisabled: ColorValue;
|
|
221
|
-
neutralBackground2Pressed: ColorValue;
|
|
222
|
-
neutralStroke2: ColorValue;
|
|
223
|
-
neutralForeground3: ColorValue;
|
|
224
|
-
neutralForegroundDisabled: ColorValue;
|
|
225
|
-
neutralForeground2Pressed: ColorValue;
|
|
226
|
-
neutralBackground3: ColorValue;
|
|
227
|
-
transparentBackground: ColorValue;
|
|
228
|
-
transparentStroke: ColorValue;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export type FluentUIApplePalette = FluentUIAppleBasePalette & FluentAppleButtonTokens;
|
|
207
|
+
export type FluentUIApplePalette = FluentUIAppleBasePalette;
|