@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
32 lines (31 loc) • 868 B
JavaScript
import { StyleSheet } from 'react-native';
export const varCreator = TOKENS => {
return {
checkbox_icon_size: 20,
checkbox_icon_color: TOKENS.gray_6,
checkbox_icon_disabled_color: TOKENS.gray_5,
checkbox_checked_icon_color: TOKENS.brand_6,
checkbox_checked_icon_disabled_color: TOKENS.gray_5,
checkbox_label_color: TOKENS.gray_8,
checkbox_label_margin: TOKENS.space_2,
checkbox_disabled_label_color: TOKENS.gray_6
};
};
export const styleCreator = cv => {
return StyleSheet.create({
checkbox: {
flexDirection: 'row',
alignItems: 'center'
},
label: {
color: cv.checkbox_label_color,
lineHeight: cv.checkbox_icon_size,
minHeight: cv.checkbox_icon_size
},
label_disabled: {
color: cv.checkbox_disabled_label_color
}
});
};
//# sourceMappingURL=style.js.map
;