From d87a8bbb5ba674f8f27b5355494e1d22a13209db Mon Sep 17 00:00:00 2001 From: okbel Date: Thu, 4 Feb 2021 15:29:36 -0300 Subject: [PATCH] decresed bundle size --- assets/base.css | 8 +--- assets/components.css | 2 +- .../common/Searchbar/Searchbar.module.css | 2 +- .../ProductSlider/ProductSlider.module.css | 4 +- components/ui/Button/Button.module.css | 2 +- components/ui/Input/Input.module.css | 2 +- package.json | 2 +- pages/search.tsx | 6 +-- tailwind.config.js | 3 +- yarn.lock | 43 +------------------ 10 files changed, 15 insertions(+), 59 deletions(-) diff --git a/assets/base.css b/assets/base.css index f854065ba..dfdaf1475 100644 --- a/assets/base.css +++ b/assets/base.css @@ -3,7 +3,6 @@ --primary-2: #f1f3f5; --secondary: #000000; --secondary-2: #111; - --selection: var(--cyan); --text-base: #000000; @@ -13,18 +12,14 @@ --hover: rgba(0, 0, 0, 0.075); --hover-1: rgba(0, 0, 0, 0.15); --hover-2: rgba(0, 0, 0, 0.25); - --cyan: #22b8cf; --green: #37b679; --red: #da3c3c; --pink: #e64980; --purple: #f81ce5; - --blue: #0070f3; - - --violet-light: #7048e8; --violet: #5f3dc4; - + --violet-light: #7048e8; --accents-0: #f8f9fa; --accents-1: #f1f3f5; --accents-2: #e9ecef; @@ -132,3 +127,4 @@ a { opacity: 1; } } + diff --git a/assets/components.css b/assets/components.css index ebebcc238..8c4c5a357 100644 --- a/assets/components.css +++ b/assets/components.css @@ -1,3 +1,3 @@ .fit { min-height: calc(100vh - 88px); -} +} \ No newline at end of file diff --git a/components/common/Searchbar/Searchbar.module.css b/components/common/Searchbar/Searchbar.module.css index 500483195..071a14ef0 100644 --- a/components/common/Searchbar/Searchbar.module.css +++ b/components/common/Searchbar/Searchbar.module.css @@ -7,7 +7,7 @@ } .input:focus { - @apply outline-none shadow-outline-2; + @apply outline-none shadow-outline-normal; } .iconContainer { diff --git a/components/product/ProductSlider/ProductSlider.module.css b/components/product/ProductSlider/ProductSlider.module.css index 5ad48cc3d..259d15801 100644 --- a/components/product/ProductSlider/ProductSlider.module.css +++ b/components/product/ProductSlider/ProductSlider.module.css @@ -15,7 +15,7 @@ .leftControl:hover, .rightControl:hover { - @apply outline-none shadow-outline-blue; + @apply outline-none shadow-outline-normal; } .leftControl { @@ -70,7 +70,7 @@ } .positionIndicator:focus .dot { - @apply shadow-outline-blue; + @apply shadow-outline-normal; } .positionIndicatorActive .dot { diff --git a/components/ui/Button/Button.module.css b/components/ui/Button/Button.module.css index df2be8802..5b563f496 100644 --- a/components/ui/Button/Button.module.css +++ b/components/ui/Button/Button.module.css @@ -7,7 +7,7 @@ } .root:focus { - @apply shadow-outline outline-none; + @apply shadow-outline-normal outline-none; } .root[data-active] { diff --git a/components/ui/Input/Input.module.css b/components/ui/Input/Input.module.css index 9ace85277..9daee1418 100644 --- a/components/ui/Input/Input.module.css +++ b/components/ui/Input/Input.module.css @@ -3,5 +3,5 @@ } .root:focus { - @apply outline-none shadow-outline-gray; + @apply outline-none shadow-outline-normal; } diff --git a/package.json b/package.json index 183ccf6df..8db481e69 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,6 @@ }, "dependencies": { "@reach/portal": "^0.11.2", - "@tailwindcss/ui": "^0.6.2", "@vercel/fetch": "^6.1.0", "body-scroll-lock": "^3.1.5", "bowser": "^2.11.0", @@ -60,6 +59,7 @@ "next": "^10.0.7-canary.3", "next-seo": "^4.11.0", "next-themes": "^0.0.4", + "postcss": "^8.2.4", "postcss-nesting": "^7.0.1", "react": "^17.0.1", "react-dom": "^17.0.1", diff --git a/pages/search.tsx b/pages/search.tsx index 88a6354cd..06d29d1b1 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -91,7 +91,7 @@ export default function Search({