weex-ui-demo
Version:
A rich interaction, lightweight, high performance UI library based on Weex
80 lines (76 loc) • 1.14 kB
JavaScript
export const STYLE_MAP = {
red: {
backgroundColor: '#FF5000'
},
yellow: {
backgroundColor: '#FFC900'
},
white: {
backgroundColor: '#FFFFFF',
borderColor: '#A5A5A5',
borderWidth: '1px'
},
blue: {
backgroundColor: '#0F8DE8'
},
green: {
backgroundColor: '#19be6b'
}
}
export const TEXT_STYLE_MAP = {
red: {
color: '#FFFFFF'
},
yellow: {
color: '#FFFFFF'
},
blue: {
color: '#FFFFFF'
},
white: {
color: '#3D3D3D'
},
green: {
color: '#FFFFFF'
}
}
export const BUTTON_STYLE_MAP = {
full: {
width: '702px',
height: '88px'
},
big: {
width: '339px',
height: '70px'
},
medium: {
width: '218px',
height: '60px'
},
small: {
width: '157px',
height: '44px'
}
}
export const TEXT_FONTSIZE_STYLE_MAP = {
full: {
fontSize: '36px'
},
big: {
fontSize: '32px'
},
medium: {
fontSize: '28px'
},
small: {
fontSize: '24px'
}
}
export const STYLE_SHADOW = {
gray: {
boxShadow: '0px 10px 15px rgba(183, 103, 22, 0.3)'
},
blue: {
boxShadow: '0px 8px 15px rgba(20, 130, 220, 0.3)'
}
}