From 6c974b237a9b7a8bd8f294d210157e19acf4c7fe Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Fri, 5 Mar 2021 23:50:11 -0800 Subject: button styling --- frontend/src/components/Form/Button.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'frontend/src/components/Form/Button.js') diff --git a/frontend/src/components/Form/Button.js b/frontend/src/components/Form/Button.js index e69de29..7396ca1 100644 --- a/frontend/src/components/Form/Button.js +++ b/frontend/src/components/Form/Button.js @@ -0,0 +1,30 @@ +import styled, {css} from 'styled-components' +import {Border, ButtonLike, DropShadow, Rounded} from "./mixins"; + +const Base = css` + ${DropShadow} + ${Rounded} + ${ButtonLike} + margin-right: 2em; +` + +const Primary = css` + ${Base}; + border: none; + color: ${p => p.theme.colors.background}; + background-color: ${p => p.theme.colors.text}; +` +const Secondary = css` + ${Base}; + ${Border}; + color: ${p => p.theme.colors.text}; + background-color: ${p => p.theme.colors.background}; +` + +export const Button = styled.button` + ${p => p.secondary ? css`${Primary}` : css`${Secondary}` } +` + +export const SubmitButton = styled.input` + ${Primary} +` \ No newline at end of file -- cgit v1.2.3