A demo React app built with π
styled-components
and β¨ polished
.
Every component has a folder beneath the src/
folder, with an index.js
containing the component and a style.js
containing the styled components used within that component.
colors
βββ App
βββ Tile
βββ Tiles
βββ global-styles.js # The global styles
βββ index.js
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β <App /> β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββ ββ
ββ ββ
ββ <BigTile /> ββ
ββ ββ
ββ ββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββ <Tiles /> ββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββ ββ ββ ββ ββ βββ
βββ <Tile /> ββ <Tile /> ββ <Tile /> ββ <Tile /> ββ <Tile /> βββ
βββ ββ ββ ββ ββ βββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
We take the entered color, convert it to HSL and render the same hue and saturation with lightness' of 0.1
, 0.3
, 0.5
, 0.7
and 0.9
.
git clone https://github.com/styled-components/color-schemer
cd color-schemer # Go to downloaded directory
npm install # Install dependencies
npm start # Start the development server
Copyright (c) 2017 Maximilian Stoiber. Licensed under the MIT License, see the LICENSE file for more information.