4
0
forked from crowetic/commerce

Changes night mode

This commit is contained in:
Belen Curcio 2020-10-26 17:33:43 -03:00
parent daaa2a483f
commit ada8fa59be
4 changed files with 26 additions and 12 deletions

View File

@ -1,13 +1,13 @@
:root { :root {
--primary: white; --primary: #ffffff;
--primary-2: #f1f3f5; --primary-2: #f1f3f5;
--secondary: black; --secondary: #000000;
--secondary-2: #111; --secondary-2: #111;
--selection: var(--cyan); --selection: var(--cyan);
--text-base: black; --text-base: #000000;
--text-primary: black; --text-primary: #000000;
--text-secondary: white; --text-secondary: white;
--hover: rgba(0, 0, 0, 0.075); --hover: rgba(0, 0, 0, 0.075);
@ -38,9 +38,9 @@
} }
[data-theme='dark'] { [data-theme='dark'] {
--primary: black; --primary: #000000;
--primary-2: #111; --primary-2: #111;
--secondary: white; --secondary: #000000;
--secondary-2: #f1f3f5; --secondary-2: #f1f3f5;
--hover: rgba(255, 255, 255, 0.075); --hover: rgba(255, 255, 255, 0.075);
--hover-1: rgba(255, 255, 255, 0.15); --hover-1: rgba(255, 255, 255, 0.15);

View File

@ -59,7 +59,7 @@ const SignUpView: FC<Props> = () => {
}, [handleValidation]) }, [handleValidation])
return ( return (
<div className="w-96 flex flex-col justify-between p-3"> <div className="w-80 flex flex-col justify-between p-3">
<div className="flex justify-center pb-12 "> <div className="flex justify-center pb-12 ">
<Logo width="64px" height="64px" /> <Logo width="64px" height="64px" />
</div> </div>

View File

@ -1,2 +1,15 @@
.root { .root {
@apply h-full flex flex-col;
}
.root.empty {
@apply bg-secondary text-secondary;
}
.root.success {
@apply bg-green text-white;
}
.root.error {
@apply bg-red text-white;
} }

View File

@ -7,6 +7,7 @@ import { useUI } from '@components/ui/context'
import useCart from '@lib/bigcommerce/cart/use-cart' import useCart from '@lib/bigcommerce/cart/use-cart'
import usePrice from '@lib/bigcommerce/use-price' import usePrice from '@lib/bigcommerce/use-price'
import CartItem from '../CartItem' import CartItem from '../CartItem'
import s from './CartSidebarView.module.css'
const CartSidebarView: FC = () => { const CartSidebarView: FC = () => {
const { data, isEmpty } = useCart() const { data, isEmpty } = useCart()
@ -32,10 +33,10 @@ const CartSidebarView: FC = () => {
return ( return (
<div <div
className={cn('h-full flex flex-col', { className={cn(s.root, {
'bg-secondary text-secondary': isEmpty, [s.empty]: error,
'bg-red text-white': error, [s.empty]: success,
'bg-green text-white': success, [s.empty]: isEmpty,
})} })}
> >
<header className="px-4 pt-6 pb-4 sm:px-6"> <header className="px-4 pt-6 pb-4 sm:px-6">