@@ -3,14 +3,11 @@ import type { ViewStyle, ColorValue } from 'react-native';
33import { View , StyleSheet , Platform } from 'react-native' ;
44
55import { Text , ToggleButton } from '@fluentui/react-native' ;
6- import { createAliasTokens } from '@fluentui-react-native/default-theme' ;
76import type { SvgIconProps } from '@fluentui-react-native/icon' ;
87import { globalTokens } from '@fluentui-react-native/theme-tokens' ;
98import type { Theme } from '@fluentui-react-native/theme-types' ;
109import { useTheme } from '@fluentui-react-native/theme-types' ;
1110import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet' ;
12- import { getCurrentAppearance } from '@fluentui-react-native/theming-utils' ;
13- import { createOfficeAliasTokens } from '@fluentui-react-native/win32-theme' ;
1411import type { SvgProps } from 'react-native-svg' ;
1512import Svg , { G , Path } from 'react-native-svg' ;
1613
@@ -93,16 +90,7 @@ const getSwatch = (item) => {
9390const AliasColorTokensSwatchList : React . FunctionComponent = ( ) => {
9491 const theme = useTheme ( ) ;
9592
96- const isOfficeTheme =
97- theme . name === 'White' ||
98- theme . name === 'Colorful' ||
99- theme . name === 'DarkGray' ||
100- theme . name === 'Black' ||
101- theme . name === 'HighContrast' ;
102-
103- const aliasColorTokens = isOfficeTheme
104- ? createOfficeAliasTokens ( theme . name )
105- : createAliasTokens ( getCurrentAppearance ( theme . host . appearance , 'light' ) ) ;
93+ const aliasColorTokens = theme . colors ;
10694
10795 const aggregator = React . useCallback (
10896 ( colorName : string ) => {
0 commit comments