Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
theme files
Browse files Browse the repository at this point in the history
  • Loading branch information
rossmoody authored and imptrx committed Jul 23, 2019
1 parent 6e960a2 commit 16bbcc6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/theme/welcome-dark.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import ITheme from './theme-interface'
import defaultTheme from './brave-default'
import colors from './colors'

const welcomeDarkTheme: ITheme = {
...defaultTheme,
name: 'Welcome Dark',
color: {
...defaultTheme.color,
text: colors.white,
panelBackground: colors.grey900
}
}

export default welcomeDarkTheme
16 changes: 16 additions & 0 deletions src/theme/welcome-light.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import ITheme from './theme-interface'
import defaultTheme from './brave-default'
import colors from './colors'

const welcomeLightTheme: ITheme = {
...defaultTheme,
name: 'Welcome Light',
color: {
...defaultTheme.color,
text: colors.neutral900,
panelBackground: '#F9F9FD',
panelBackgroundSecondary: colors.neutral000
}
}

export default welcomeLightTheme
7 changes: 7 additions & 0 deletions stories/features/welcome/story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@

import * as React from 'react'
import { storiesOf } from '@storybook/react'
import welcomeLightTheme from '../../../src/theme/welcome-light'
import welcomeDarkTheme from '../../../src/theme/welcome-dark'
import { withThemesProvider } from 'storybook-addon-styled-component-theme'
import { withKnobs, boolean } from '@storybook/addon-knobs'
import { FullPageStory } from '../../storyUtils'
// Components
import WelcomePage from './page/index'

// Themes
const themes = [welcomeLightTheme, welcomeDarkTheme]

storiesOf('Feature Components/Welcome', module)
.addDecorator(FullPageStory)
.addDecorator(withThemesProvider(themes))
.addDecorator(withKnobs)
.add('Page', () => {
return (
Expand Down

0 comments on commit 16bbcc6

Please sign in to comment.