2018-04-06 14:23:27 +03:00

34 lines
481 B
JavaScript

function dp(pixelDensity,x) {
return (pixelDensity * 25.4 < 120) ? x : x*(pixelDensity * 25.4/160);
}
function baseColor() {
return "#303030"
}
function primaryColor() {
return "#acacac"
}
function textColor() {
return "#a6aaa2"
}
function textAltColor() {
return "#434f4d"
}
function backgroundColor() {
return "#eeeeee"
}
function backgroundAltColor() {
return "#aaaaaa"
}
function baseFontSize(pixelDensity){
return dp(pixelDensity, 14);
}