tamagui theming

This commit is contained in:
Violet Caulfield
2025-01-25 07:05:51 -06:00
parent 90d6367131
commit 82a62b8337
5 changed files with 27 additions and 7 deletions

View File

@@ -83,7 +83,7 @@ export default function Album(props: AlbumProps): React.JSX.Element {
<XStack justifyContent="flex-end">
<Text
color={"$gray10"}
color={"$purpleGray"}
style={{ display: "block"}}
>
Total Runtime:

View File

@@ -104,7 +104,7 @@ export default function ItemDetail({
<Text
fontSize={"$6"}
color={"$gray10"}
color={"$purpleGray"}
>
{ item.Album ?? "" }
</Text>

View File

@@ -114,7 +114,7 @@ export default function PlayerScreen({ navigation }: { navigation: NativeStackNa
<Text
fontSize={"$6"}
color={"$gray10"}
color={"$purpleGray"}
>
{ nowPlaying!.album ?? "" }
</Text>

View File

@@ -74,7 +74,7 @@ export default function Playlist(props: PlaylistProps): React.JSX.Element {
<XStack justifyContent="flex-end">
<Text
color={"$gray10"}
color={"$purpleGray"}
style={{ display: "block"}}
>
Total Runtime:

View File

@@ -1,7 +1,18 @@
import { animations, tokens, themes, media, shorthands } from '@tamagui/config/v3'
import { createTamagui } from 'tamagui' // or '@tamagui/core'
import { animations, tokens as TamaguiTokens, media, shorthands } from '@tamagui/config/v3'
import { createTamagui, createTokens } from 'tamagui' // or '@tamagui/core'
import { headingFont, bodyFont } from './fonts.config'
const tokens = createTokens({
...TamaguiTokens,
color: {
purpleDark: "#070217",
purple: "#100538",
purpleGray: "#B5AADC",
white: "#ffffff",
black: "#000000"
},
})
const jellifyConfig = createTamagui({
animations,
fonts:{
@@ -11,7 +22,16 @@ const jellifyConfig = createTamagui({
media,
shorthands,
tokens,
themes,
themes: {
dark: {
background: tokens.color.purpleDark,
color: tokens.color.white
},
light: {
background: tokens.color.white,
color: tokens.color.purpleDark
}
}
});
export type JellifyConfig = typeof jellifyConfig