Skip to content

Commit

Permalink
finished
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbien committed May 23, 2019
1 parent d652580 commit c5c26cd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ const StyledButton = styled.button`
${createBoxStyles()};
${({ active }) =>
active ? createBorderStyles(true) : createBorderStyles(false)}
${({ active, theme }) =>
active &&
`background-image: ${
theme.hatchedBackground
};`}
&:active {
${({ isDisabled }) => !isDisabled && createBorderStyles(true)}
}
Expand Down
15 changes: 15 additions & 0 deletions src/components/common/themes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const themes = {};

themes.default = {
hatchedBackground:
"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIElEQVQYV2P8////fwYGBgZGRkZGMI0hABIFAbgEugAAQFQP/QfjEPcAAAAASUVORK5CYII=)",

canvas: "#ffffff",
material: "#ced0cf",
materialDark: "#9a9e9c",
Expand Down Expand Up @@ -38,6 +41,9 @@ themes.default = {
};

themes.water = {
hatchedBackground:
"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIElEQVQYV2P8////fwYGBgZGRkZGMI0hABIFAbgEugAAQFQP/QfjEPcAAAAASUVORK5CYII=)",

canvas: "#ffffff",
material: "#ced0cf",
materialDark: "#9a9e9c",
Expand Down Expand Up @@ -75,6 +81,9 @@ themes.water = {
};

themes.coldGray = {
hatchedBackground:
"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIElEQVQYV2P8////fwYGBgZGRkZGMI0hABIFAbgEugAAQFQP/QfjEPcAAAAASUVORK5CYII=)",

// background: "#CCF5AC",
// background: "#416165",
background: "#4C6663",
Expand Down Expand Up @@ -116,6 +125,9 @@ themes.coldGray = {
};

themes.lilacRoseDark = {
hatchedBackground:
"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIElEQVQYV2P8////fwYGBgZGRkZGMI0hABIFAbgEugAAQFQP/QfjEPcAAAAASUVORK5CYII=)",

background: "#3B3B58",

canvas: "#dab1c7",
Expand Down Expand Up @@ -155,6 +167,9 @@ themes.lilacRoseDark = {
};

themes.violetDark = {
hatchedBackground:
"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIElEQVQYV2P8////fwYGBgZGRkZGMI0hABIFAbgEugAAQFQP/QfjEPcAAAAASUVORK5CYII=)",

canvas: "#c47bcc",
material: "#652a6d",
materialDark: "#210e23",
Expand Down

0 comments on commit c5c26cd

Please sign in to comment.