@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
44 lines (43 loc) • 1.33 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 {
action_sheet_description_color: TOKENS.gray_7,
action_sheet_description_font_size: TOKENS.font_size_3,
action_sheet_description_line_height: TOKENS.line_height_1,
action_sheet_text_color: TOKENS.gray_8,
action_sheet_text_font_size: TOKENS.font_size_5,
action_sheet_cancel_padding_top: TOKENS.space_2,
action_sheet_cancel_padding_color: TOKENS.gray_2
};
};
exports.varCreator = varCreator;
const styleCreator = cv => {
return _reactNative.StyleSheet.create({
description: {
flexShrink: 0,
textAlign: 'center',
color: cv.action_sheet_description_color,
fontSize: cv.action_sheet_description_font_size,
lineHeight: cv.action_sheet_description_line_height,
paddingBottom: 12
},
description_alone: {
paddingTop: 12
},
button_text: {
fontSize: cv.action_sheet_text_font_size,
fontWeight: 'bold'
},
gap: {
height: cv.action_sheet_cancel_padding_top,
backgroundColor: cv.action_sheet_cancel_padding_color
}
});
};
exports.styleCreator = styleCreator;
//# sourceMappingURL=style.js.map