-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
3,666 additions
and
5,109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { styled, Text as DripsyText } from 'dripsy' | ||
import { | ||
TouchableHighlight as RNTouchableHighlight, | ||
TouchableOpacity as RNTouchableOpacity | ||
} from 'react-native' | ||
|
||
export const TouchableHighlight = styled(RNTouchableHighlight)() | ||
|
||
export const TouchableOpacity = styled(RNTouchableOpacity)() | ||
|
||
export const Text = styled(DripsyText, { | ||
themeKey: 'text', | ||
// default variant | ||
defaultVariant: 'body1' | ||
})({ | ||
// default color | ||
color: '$primaryText' | ||
}) | ||
|
||
export { | ||
View, | ||
TextInput, | ||
Image, | ||
ScrollView, | ||
Pressable, | ||
FlatList, | ||
SafeAreaView, | ||
ActivityIndicator | ||
} from 'dripsy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import React, { PropsWithChildren, type FC } from 'react' | ||
import { DripsyProvider } from 'dripsy' | ||
import { theme } from './theme' | ||
import { darkTheme } from './theme' | ||
|
||
export const K2AlpineThemeProvider: FC<PropsWithChildren> = ({ children }) => ( | ||
<DripsyProvider theme={theme}>{children}</DripsyProvider> | ||
<DripsyProvider theme={darkTheme}>{children}</DripsyProvider> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,154 +1,3 @@ | ||
// K2 Foundation - Typography | ||
// https://www.figma.com/file/hDSl4OUgXorDAtqPZtCUhB/K2-Foundation?type=design&node-id=3390-22100 | ||
|
||
export const text = { | ||
heading1: { | ||
fontFamily: 'Inter-Regular', | ||
fontSize: 60, | ||
lineHeight: 72 | ||
}, | ||
heading2: { | ||
fontFamily: 'Inter-Regular', | ||
fontSize: 48, | ||
lineHeight: 56 | ||
}, | ||
heading3: { | ||
fontFamily: 'Inter-Bold', | ||
fontSize: 34, | ||
lineHeight: 44 | ||
}, | ||
heading4: { | ||
fontFamily: 'Inter-Bold', | ||
fontSize: 24, | ||
lineHeight: 32 | ||
}, | ||
heading5: { | ||
fontFamily: 'Inter-Bold', | ||
fontSize: 20, | ||
lineHeight: 32 | ||
}, | ||
heading6: { | ||
fontFamily: 'Inter-Bold', | ||
fontSize: 16, | ||
lineHeight: 24 | ||
}, | ||
subtitle1: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 16, | ||
lineHeight: 28 | ||
}, | ||
subtitle2: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 14, | ||
lineHeight: 25 | ||
}, | ||
body1: { | ||
fontFamily: 'Inter-Regular', | ||
fontSize: 16, | ||
lineHeight: 24 | ||
}, | ||
body2: { | ||
fontFamily: 'Inter-Regular', | ||
fontSize: 14, | ||
lineHeight: 20 | ||
}, | ||
caption: { | ||
fontFamily: 'Inter-Regular', | ||
fontSize: 12, | ||
lineHeight: 20 | ||
}, | ||
overline: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 10, | ||
lineHeight: 16 | ||
}, | ||
|
||
// component styles | ||
alertTitle: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 14, | ||
lineHeight: 16 | ||
}, | ||
alertDescription: { | ||
fontFamily: 'Inter-Regular', | ||
fontSize: 12, | ||
lineHeight: 20 | ||
}, | ||
badgeLabel: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 12, | ||
lineHeight: 20 | ||
}, | ||
buttonLarge: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 18, | ||
lineHeight: 24 | ||
}, | ||
buttonMedium: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 14, | ||
lineHeight: 16 | ||
}, | ||
buttonSmall: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 12, | ||
lineHeight: 16 | ||
}, | ||
inputLabel: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 14, | ||
lineHeight: 16 | ||
}, | ||
helperText: { | ||
fontFamily: 'Inter-Regular', | ||
fontSize: 12, | ||
lineHeight: 20 | ||
}, | ||
inputText: { | ||
fontFamily: 'Inter-Regular', | ||
fontSize: 16, | ||
lineHeight: 24 | ||
}, | ||
chipLabelLarge: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 14, | ||
lineHeight: 20 | ||
}, | ||
chipLabelSmall: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 12, | ||
lineHeight: 20 | ||
}, | ||
tooltipLabel: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 12, | ||
lineHeight: 16 | ||
}, | ||
tableHeader: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 14, | ||
lineHeight: 20 | ||
}, | ||
menuItem: { | ||
fontFamily: 'Inter-Regular', | ||
fontSize: 14, | ||
lineHeight: 20 | ||
}, | ||
listSubHeader: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 14, | ||
lineHeight: 48 | ||
}, | ||
bottomNavigationLarge: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 12, | ||
lineHeight: 16 | ||
}, | ||
bottomNavigationSmall: { | ||
fontFamily: 'Inter-SemiBold', | ||
fontSize: 10, | ||
lineHeight: 16 | ||
} | ||
} | ||
export const text = {} | ||
|
||
export type TextVariant = keyof typeof text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.