diff --git a/ui/src/components/colors/story.js b/ui/src/components/colors/story.js new file mode 100644 index 00000000..8eeca76c --- /dev/null +++ b/ui/src/components/colors/story.js @@ -0,0 +1,56 @@ +const React = require('react'); +const Styled = require('styled-components'); + +const constants = require('../../shared/constants'); +const Column = require('../column'); +const Row = require('../row'); + +const { + default: styled +} = Styled; + +const { + storiesOf +} = require('@kadira/storybook'); + +const { + colors +} = constants; + +const StyledWrapper = styled.div` + display: inline-block; + float: left; + margin-left: 20px; +`; + +const Square = styled.div` + display: inline-block; + width: 100px; + height: 100px +`; + +storiesOf('Colors', module) + .add('default', () => { + const renderColors = Object.keys(colors.base).map( (color, index) => { + + const StyledSquare = styled(Square)` + background: ${colors.base[color]} + `; + + return ( + + + +

Alias: {color}

+

Hex: {colors.base[color]}

+
+
+ ); + }); + + return ( + + {renderColors} + + ); + }); \ No newline at end of file