maputnik/src/theme.js

113 lines
1.7 KiB
JavaScript
Raw Normal View History

2016-09-08 19:47:29 +02:00
const caps = {
2016-09-10 15:15:17 +02:00
textTransform: 'uppercase',
letterSpacing: '.2em'
2016-09-08 19:47:29 +02:00
}
2016-09-10 16:05:04 +02:00
export const fullHeight = {
position: "fixed",
top: 0,
bottom: 0,
height: "100%",
}
2016-09-09 11:29:18 +02:00
const baseColors = {
black: '#242424',
gray: '#313131',
midgray: '#778',
2016-09-09 14:09:02 +02:00
lowgray: '#dcdcdc',
2016-09-09 11:29:18 +02:00
white: '#fff',
blue: '#00d9f7',
2016-09-09 16:58:48 +02:00
green: '#B4C7AD',
2016-09-09 11:29:18 +02:00
orange: '#fb3',
red: '#f04',
}
2016-09-08 19:47:29 +02:00
2016-09-09 11:29:18 +02:00
const themeColors = {
primary: baseColors.gray,
secondary: baseColors.midgray,
default: baseColors.gray,
info: baseColors.blue,
success: baseColors.green,
warning: baseColors.orange,
error: baseColors.red
}
2016-09-08 19:47:29 +02:00
2016-09-10 16:11:43 +02:00
export const colors = {
2016-09-09 11:29:18 +02:00
...baseColors,
...themeColors
}
2016-09-08 19:47:29 +02:00
2016-09-13 19:46:44 +02:00
export const inputBase = {
display: 'block',
border: '1px solid rgb(36, 36, 36)',
height: 30,
width: '100%',
paddingLeft: 5,
paddingRight: 5,
backgroundColor: colors.gray,
}
2016-09-09 14:09:02 +02:00
const scale = [3, 5, 10, 30, 40]
2016-09-09 11:29:18 +02:00
const fontSizes = [28, 24, 20, 16, 14, 12, 10]
const border = {
2016-09-10 15:15:17 +02:00
borderColor: colors.black,
borderRadius: 0,
2016-09-09 11:29:18 +02:00
}
const dark = {
2016-09-10 15:15:17 +02:00
name: 'Dark',
color: colors.white,
2016-09-09 18:53:57 +02:00
fontFamily: 'Roboto, sans-serif',
2016-09-10 15:15:17 +02:00
scale,
2016-09-09 11:29:18 +02:00
fontSizes,
2016-09-10 15:15:17 +02:00
colors,
inverted: colors.midGray,
2016-09-09 11:29:18 +02:00
...border,
2016-09-09 14:09:02 +02:00
Block: {
2016-09-10 15:15:17 +02:00
backgroundColor: colors.gray,
2016-09-09 11:29:18 +02:00
...border,
borderLeft: 0,
borderRight: 0,
marginBottom: 0,
2016-09-09 12:08:33 +02:00
paddingBottom: 0,
2016-09-09 11:29:18 +02:00
},
PanelHeader: {
marginRight: -10,
2016-09-09 12:08:33 +02:00
marginBottom: 0,
fontSize: fontSizes[5],
2016-09-09 11:29:18 +02:00
fontWeight: 400,
color: colors.white,
},
2016-09-10 15:15:17 +02:00
Button: {
color: '#00d9f7',
},
Menu: {
color: '#00d9f7',
backgroundColor: '#000'
},
Message: {
color: '#111',
opacity: 15/16
},
2016-09-09 11:29:18 +02:00
Header: {
fontWeight: 400,
},
2016-09-09 14:09:02 +02:00
ButtonCircle : {
},
Toolbar: {
fontWeight: 400,
minHeight: scale[3]
},
2016-09-09 18:53:57 +02:00
Label: {
fontWeight: 300,
},
2016-09-09 14:09:02 +02:00
Input: {
2016-09-09 18:53:57 +02:00
fontWeight: 300,
2016-09-09 14:09:02 +02:00
fontSize: fontSizes[5],
},
2016-09-08 19:47:29 +02:00
}
export default dark