@crossed/ui
Version:
A universal & performant styling library for React Native, Next.js & React
40 lines (36 loc) • 983 B
text/typescript
/**
* Copyright (c) Paymium.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root of this projects source tree.
*/
import { composeStyles, createStyles } from '@crossed/styled';
export const styles = createStyles(({ colors, space }) => ({
box: {
base: {
backgroundColor: colors.background.secondary,
borderTopLeftRadius: 24,
borderTopRightRadius: 24,
},
},
container: {
base: {
paddingBottom: space['4xl'],
paddingTop: space.md,
maxHeight: '97%',
},
},
containerPadded: { base: { paddingHorizontal: space['4xl'] } },
maxHeight: { base: { maxHeight: '100%' } },
indicator: {
base: {
width: 54,
height: 5,
backgroundColor: colors.primary[20],
alignSelf: 'center',
borderRadius: 14,
},
},
}));
export const paddedContainerStyle = (padded: boolean) =>
composeStyles(padded && styles.containerPadded, padded && styles.container);