Skip to content

Commit

Permalink
Change name of added styles utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sroy3 committed Sep 3, 2024
1 parent 9d181a8 commit 7e283c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/k2-alpine/src/components/button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const Button: FC<PropsWithChildren<Props>> = ({
<Pressable
sx={{
backgroundColor: colors.background,
opacity: disabled ? theme.util.disabledOpacity : 1,
borderRadius: theme.util.borderRadius,
opacity: disabled ? theme.styles.disabledOpacity : 1,
borderRadius: theme.styles.borderRadius,
width: size === 'large' ? '100%' : '50%'
}}
onPress={onPress}>
Expand Down
4 changes: 2 additions & 2 deletions packages/k2-alpine/src/theme/theme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { makeTheme, useDripsyTheme } from 'dripsy'
import { darkModeColors, lightModeColors } from './tokens/colors'
import { text } from './tokens/text'
import { util } from './tokens/util'
import { styles } from './tokens/styles'

export const darkTheme = makeTheme({
types: {
Expand All @@ -10,7 +10,7 @@ export const darkTheme = makeTheme({
},
colors: darkModeColors,
text,
util
styles
})

export const lightTheme = {
Expand Down
4 changes: 0 additions & 4 deletions packages/k2-alpine/src/theme/tokens/util.ts

This file was deleted.

0 comments on commit 7e283c1

Please sign in to comment.