Skip to content

Commit 513b783

Browse files
committed
Move theme.js to themes/default.js
1 parent 8ee6088 commit 513b783

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { PropTypes, Component } from 'react'
22
import { injectGlobal, ThemeProvider } from 'styled-components'
33

4-
import theme from './theme'
4+
import theme from './themes/default'
55

66
injectGlobal`
77
body {
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
export const colors = {
1+
import { reverse } from 'arc-theme'
2+
3+
const theme = {}
4+
5+
theme.colors = {
26
primary: ['#1976d2', '#2196f3', '#71bcf7', '#c2e2fb'],
37
secondary: ['#c2185b', '#e91e63', '#f06292', '#f8bbd0'],
48
danger: ['#d32f2f', '#f44336', '#f8877f', '#ffcdd2'],
@@ -8,16 +12,12 @@ export const colors = {
812
white: ['#fff', '#fff', '#eee']
913
}
1014

11-
export const reverseColors = {}
12-
13-
Object.keys(colors).forEach((key) => {
14-
reverseColors[key] = [ ...colors[key] ].reverse()
15-
})
15+
theme.reverseColors = reverse(theme.colors)
1616

17-
export const fonts = {
17+
theme.fonts = {
1818
primary: 'Helvetica Neue, Helvetica, Roboto, sans-serif',
1919
pre: 'Consolas, Liberation Mono, Menlo, Courier, monospace',
2020
quote: 'Georgia, serif'
2121
}
2222

23-
export default { colors, reverseColors, fonts }
23+
export default theme

0 commit comments

Comments
 (0)