Skip to content

Commit f71a294

Browse files
committed
Show theme.colors tokens in the ColorTokensTest
1 parent 4356fe0 commit f71a294

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

apps/fluent-tester/src/TestComponents/ColorTokens/ColorTokenTest.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ import type { ViewStyle, ColorValue } from 'react-native';
33
import { View, StyleSheet, Platform } from 'react-native';
44

55
import { Text, ToggleButton } from '@fluentui/react-native';
6-
import { createAliasTokens } from '@fluentui-react-native/default-theme';
76
import type { SvgIconProps } from '@fluentui-react-native/icon';
87
import { globalTokens } from '@fluentui-react-native/theme-tokens';
98
import type { Theme } from '@fluentui-react-native/theme-types';
109
import { useTheme } from '@fluentui-react-native/theme-types';
1110
import { 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';
1411
import type { SvgProps } from 'react-native-svg';
1512
import Svg, { G, Path } from 'react-native-svg';
1613

@@ -93,16 +90,7 @@ const getSwatch = (item) => {
9390
const 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

Comments
 (0)