@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
37 lines (36 loc) • 1.11 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.varCreator = exports.styleCreator = void 0;
var _reactNative = require("react-native");
const varCreator = TOKENS => {
return {
notify_text_color: TOKENS.white,
notify_padding_vertical: TOKENS.space_2,
notify_padding_horizontal: TOKENS.space_4,
notify_font_size: TOKENS.font_size_4,
notify_line_height: TOKENS.line_height_1,
notify_primary_background_color: TOKENS.brand_6,
notify_success_background_color: TOKENS.green_6,
notify_error_background_color: TOKENS.red_6,
notify_warning_background_color: TOKENS.yellow_6
};
};
exports.varCreator = varCreator;
const styleCreator = cv => {
return _reactNative.StyleSheet.create({
notify: {
alignItems: 'center',
justifyContent: 'center',
paddingHorizontal: cv.notify_padding_horizontal,
paddingVertical: cv.notify_padding_vertical
},
text: {
fontSize: cv.notify_font_size,
lineHeight: cv.notify_line_height
}
});
};
exports.styleCreator = styleCreator;
//# sourceMappingURL=style.js.map
;