Skip to content

Commit 9ef3329

Browse files
committed
refactor: move styles/ into src/theme/ tree
1 parent f7a2a65 commit 9ef3329

60 files changed

Lines changed: 382 additions & 380 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/components/Appbar/AppbarHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
getAppbarBorders,
1919
} from './utils';
2020
import { useInternalTheme } from '../../core/theming';
21-
import shadow from '../../styles/shadow';
21+
import shadow from '../../theme/shadow';
2222
import type { ThemeProp } from '../../types';
2323

2424
export type Props = Omit<

src/components/Appbar/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import type { ColorValue, StyleProp, ViewStyle } from 'react-native';
33
import { StyleSheet, Animated } from 'react-native';
44

5-
import { white } from '../../styles/themes/colors';
5+
import { white } from '../../theme/colors';
66
import type { InternalTheme, Theme, ThemeProp } from '../../types';
77

88
export type AppbarModes = 'small' | 'medium' | 'large' | 'center-aligned';

src/components/Avatar/AvatarIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
33

44
import { useInternalTheme } from '../../core/theming';
5-
import { white } from '../../styles/themes/colors';
5+
import { white } from '../../theme/colors';
66
import type { ThemeProp } from '../../types';
77
import getContrastingColor from '../../utils/getContrastingColor';
88
import Icon, { IconSource } from '../Icon';

src/components/Avatar/AvatarText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from 'react-native';
1010

1111
import { useInternalTheme } from '../../core/theming';
12-
import { white } from '../../styles/themes/colors';
12+
import { white } from '../../theme/colors';
1313
import type { ThemeProp } from '../../types';
1414
import getContrastingColor from '../../utils/getContrastingColor';
1515
import Text from '../Typography/Text';

src/components/Button/utils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ViewStyle } from 'react-native';
22

3-
import { black, white } from '../../styles/themes/colors';
4-
import { tokens } from '../../styles/themes/tokens';
3+
import { black, white } from '../../theme/colors';
4+
import { tokens } from '../../theme/tokens';
55
import type { InternalTheme, Theme } from '../../types';
66
import { splitStyles } from '../../utils/splitStyles';
77

src/components/Card/CardCover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Image, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
33

44
import { getCardCoverStyle } from './utils';
55
import { useInternalTheme } from '../../core/theming';
6-
import { grey200 } from '../../styles/themes/colors';
6+
import { grey200 } from '../../theme/colors';
77
import type { ThemeProp } from '../../types';
88
import { splitStyles } from '../../utils/splitStyles';
99

src/components/Checkbox/CheckboxItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Checkbox from './Checkbox';
1313
import CheckboxAndroid from './CheckboxAndroid';
1414
import CheckboxIOS from './CheckboxIOS';
1515
import { useInternalTheme } from '../../core/theming';
16-
import { tokens } from '../../styles/themes/tokens';
16+
import { tokens } from '../../theme/tokens';
1717
import type { ThemeProp, TypescaleKey } from '../../types';
1818
import TouchableRipple, {
1919
Props as TouchableRippleProps,

src/components/Checkbox/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { tokens } from '../../styles/themes/tokens';
1+
import { tokens } from '../../theme/tokens';
22
import type { InternalTheme } from '../../types';
33

44
const { stateOpacity } = tokens.md.ref;

src/components/Chip/Chip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import useLatestCallback from 'use-latest-callback';
1717

1818
import { ChipAvatarProps, getChipColors } from './helpers';
1919
import { useInternalTheme } from '../../core/theming';
20-
import { white } from '../../styles/themes/colors';
20+
import { white } from '../../theme/colors';
2121
import type { $Omit, EllipsizeProp, Theme, ThemeProp } from '../../types';
2222
import hasTouchHandler from '../../utils/hasTouchHandler';
2323
import type { IconSource } from '../Icon';

src/components/Chip/helpers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { ColorValue, StyleProp, ViewStyle } from 'react-native';
22

33
import color from 'color';
44

5-
import { tokens } from '../../styles/themes/tokens';
5+
import { tokens } from '../../theme/tokens';
66
import type { InternalTheme, Theme } from '../../types';
77

88
const md3 = (theme: InternalTheme) => theme as Theme;

0 commit comments

Comments
 (0)