@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
56 lines (55 loc) • 1.54 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.varCreator = exports.styleCreator = void 0;
var _reactNative = require("react-native");
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
};
};
exports.varCreator = varCreator;
const styleCreator = cv => {
return _reactNative.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,
flexShrink: 1,
maxWidth: '100%'
},
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
}
});
};
exports.styleCreator = styleCreator;
//# sourceMappingURL=style.js.map