forked from crowetic/commerce
Changes night mode
This commit is contained in:
parent
daaa2a483f
commit
ada8fa59be
@ -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);
|
||||||
|
@ -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>
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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">
|
||||||
@ -56,7 +57,7 @@ const CartSidebarView: FC = () => {
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
{isEmpty ? (
|
{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">
|
<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" />
|
<Bag className="absolute" />
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user