UNPKG

@fruits-chain/react-native-xiaoshu

Version:
46 lines • 1.29 kB
import { StyleSheet } from 'react-native'; export const varCreator = TOKENS => { return { description_l_font_size: TOKENS.font_size_5, description_l_line_height: TOKENS.line_height_4, description_m_font_size: TOKENS.font_size_4, description_m_line_height: TOKENS.line_height_2, description_s_font_size: TOKENS.font_size_4, description_s_line_height: TOKENS.line_height_1, description_label_color: TOKENS.gray_7, description_text_color: TOKENS.gray_8 }; }; export const styleCreator = cv => { return StyleSheet.create({ label_text: { color: cv.description_label_color }, content: { overflow: 'hidden', flex: 1, flexDirection: 'row', alignItems: 'center' }, content_text: { color: cv.description_text_color }, content_date_range: { flexDirection: 'column', alignItems: 'flex-start' }, size_l_text: { fontSize: cv.description_l_font_size, lineHeight: cv.description_l_line_height }, size_m_text: { fontSize: cv.description_m_font_size, lineHeight: cv.description_m_line_height }, size_s_text: { fontSize: cv.description_s_font_size, lineHeight: cv.description_s_line_height } }); }; //# sourceMappingURL=style.js.map