From 6978b4d4bbb2884ee6ed6aa47ce1803b65230a61 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Tue, 13 Oct 2020 14:34:24 -0300 Subject: [PATCH] Design Tweaks --- assets/global.css | 6 ++++-- components/cart/CartItem/CartItem.module.css | 2 +- components/cart/CartItem/CartItem.tsx | 6 +++--- components/cart/CartSidebarView/CartSidebarView.tsx | 2 +- components/icon/Minus.tsx | 2 +- components/icon/Plus.tsx | 4 ++-- components/product/Swatch/Swatch.module.css | 2 +- components/ui/Hero/Hero.tsx | 2 +- components/ui/Logo/Logo.tsx | 4 ++-- components/wishlist/WishlistCard/WishlistCard.module.css | 2 +- components/wishlist/WishlistCard/WishlistCard.tsx | 2 +- tailwind.config.js | 2 ++ 12 files changed, 20 insertions(+), 16 deletions(-) diff --git a/assets/global.css b/assets/global.css index 6f4a9297f..ea77c765c 100644 --- a/assets/global.css +++ b/assets/global.css @@ -2,8 +2,9 @@ :root { --bg-primary: white; + --bg-primary-hover: rgba(0, 0, 0, 0.075); + --bg-primary-accent: #ddd; --bg-secondary: black; - --bg-primary-accent: rgba(0, 0, 0, 0.075); --text-primary: black; --text-secondary: white; @@ -14,7 +15,8 @@ [data-theme='dark'] { --bg-primary: black; --bg-secondary: white; - --bg-primary-accent: rgba(255, 255, 255, 0.075); + --bg-primary-hover: rgba(255, 255, 255, 0.075); + --bg-primary-accent: #111; --text-primary: white; --text-secondary: black; diff --git a/components/cart/CartItem/CartItem.module.css b/components/cart/CartItem/CartItem.module.css index 17715c7dc..6165b05ed 100644 --- a/components/cart/CartItem/CartItem.module.css +++ b/components/cart/CartItem/CartItem.module.css @@ -1,6 +1,6 @@ .quantity { appearance: textfield; - @apply w-8 border-gray-300 border mx-3 rounded text-center text-sm; + @apply w-8 border-gray-300 border mx-3 rounded text-center text-sm text-black; } .quantity::-webkit-outer-spin-button, diff --git a/components/cart/CartItem/CartItem.tsx b/components/cart/CartItem/CartItem.tsx index 05a19c50b..77f3d719e 100644 --- a/components/cart/CartItem/CartItem.tsx +++ b/components/cart/CartItem/CartItem.tsx @@ -56,8 +56,8 @@ const CartItem = ({ return (
  • -
    - {item.name} +
    + {item.name}
    -
    +
    {price}
    diff --git a/tailwind.config.js b/tailwind.config.js index 8f193a039..6ad7d0975 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -17,6 +17,7 @@ module.exports = { 'accent-1': '#FAFAFA', 'accent-2': '#F1F3F5', 'accent-4': '#888', + 'accent-8': '#111111', violet: '#7928CA', pink: '#FF0080', cyan: '#50E3C2', @@ -26,6 +27,7 @@ module.exports = { primary: 'var(--bg-primary)', secondary: 'var(--bg-secondary)', 'primary-accent': 'var(--bg-primary-accent)', + 'primary-hover': 'var(--bg-primary-accent)', }, textColor: { base: 'var(--text-primary)',