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

View File

@ -59,7 +59,7 @@ const SignUpView: FC<Props> = () => {
}, [handleValidation])
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 ">
<Logo width="64px" height="64px" />
</div>

View File

@ -1,2 +1,15 @@
.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 usePrice from '@lib/bigcommerce/use-price'
import CartItem from '../CartItem'
import s from './CartSidebarView.module.css'
const CartSidebarView: FC = () => {
const { data, isEmpty } = useCart()
@ -32,10 +33,10 @@ const CartSidebarView: FC = () => {
return (
<div
className={cn('h-full flex flex-col', {
'bg-secondary text-secondary': isEmpty,
'bg-red text-white': error,
'bg-green text-white': success,
className={cn(s.root, {
[s.empty]: error,
[s.empty]: success,
[s.empty]: isEmpty,
})}
>
<header className="px-4 pt-6 pb-4 sm:px-6">
@ -56,7 +57,7 @@ const CartSidebarView: FC = () => {
</header>
{isEmpty ? (
<div className="flex-1 px-4 flex flex-col justify-center items-center ">
<div className="flex-1 px-4 flex flex-col justify-center items-center">
<span className="border border-dashed border-primary rounded-full flex items-center justify-center w-16 h-16 p-12 bg-secondary text-secondary">
<Bag className="absolute" />
</span>