@@ -4,27 +4,47 @@ import type { TokenSettings } from '@fluentui-react-native/use-styling';
4
4
import type { FABTokens } from './FAB.types' ;
5
5
6
6
export const defaultFABColorTokens : TokenSettings < FABTokens , Theme > = ( t : Theme ) : FABTokens => ( {
7
- // Coloring same as primary
8
- backgroundColor : t . colors . brandedBackground ,
9
- color : t . colors . brandedContent ,
10
- borderColor : t . colors . brandedBorder ,
11
- iconColor : t . colors . brandedIcon ,
7
+ // Default coloring same as 'primary' or 'accent'
8
+ backgroundColor : t . colors . brandBackground ,
9
+ color : t . colors . neutralForegroundOnColor ,
10
+ iconColor : t . colors . neutralForegroundOnColor ,
12
11
disabled : {
13
- backgroundColor : t . colors . brandedDisabledBackground ,
14
- color : t . colors . brandedDisabledContent ,
15
- borderColor : t . colors . brandedDisabledBorder ,
16
- iconColor : t . colors . brandedDisabledIcon ,
12
+ backgroundColor : t . colors . neutralBackground5 ,
13
+ color : t . colors . neutralForegroundDisabled ,
14
+ iconColor : t . colors . neutralForegroundDisabled ,
17
15
} ,
18
16
pressed : {
19
- backgroundColor : t . colors . brandedPressedBackground ,
20
- color : t . colors . brandedPressedContent ,
21
- borderColor : t . colors . brandedPressedBorder ,
22
- iconColor : t . colors . brandedPressedIcon ,
17
+ backgroundColor : t . colors . brandBackgroundPressed ,
18
+ color : t . colors . neutralForegroundOnColor ,
19
+ iconColor : t . colors . neutralForegroundOnColor ,
23
20
} ,
24
21
focused : {
25
- backgroundColor : t . colors . brandedFocusedBackground ,
26
- color : t . colors . brandedFocusedContent ,
27
- borderColor : t . colors . brandedFocusedBorder ,
28
- iconColor : t . colors . brandedFocusedIcon ,
22
+ backgroundColor : t . colors . brandBackground ,
23
+ color : t . colors . neutralForegroundOnColor ,
24
+ borderColor : t . colors . strokeFocus2 ,
25
+ borderInnerColor : t . colors . strokeFocus1 ,
26
+ iconColor : t . colors . neutralForegroundOnColor ,
27
+ } ,
28
+ subtle : {
29
+ backgroundColor : t . colors . neutralBackground1 ,
30
+ color : t . colors . neutralForeground2 ,
31
+ iconColor : t . colors . neutralForeground2 ,
32
+ disabled : {
33
+ backgroundColor : t . colors . neutralBackground5 ,
34
+ color : t . colors . neutralForegroundDisabled ,
35
+ iconColor : t . colors . neutralForegroundDisabled ,
36
+ } ,
37
+ pressed : {
38
+ backgroundColor : t . colors . neutralBackground1Pressed ,
39
+ color : t . colors . neutralForeground2 ,
40
+ iconColor : t . colors . neutralForeground2 ,
41
+ } ,
42
+ focused : {
43
+ backgroundColor : t . colors . neutralBackground1 ,
44
+ color : t . colors . neutralForeground2 ,
45
+ borderColor : t . colors . strokeFocus2 ,
46
+ borderInnerColor : t . colors . strokeFocus1 ,
47
+ iconColor : t . colors . neutralForeground2 ,
48
+ } ,
29
49
} ,
30
50
} ) ;
0 commit comments