From 6964fe1ad8f49091b1ca40a41bf5a7c93c05d33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=9E=AC=ED=9D=AC?= Date: Tue, 28 Nov 2023 15:32:43 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=EC=8A=A4=ED=81=AC=EB=A1=A4?= =?UTF-8?q?=EB=B0=94=20=EB=B0=8F=20=EB=8B=A4=ED=81=AC=EB=AA=A8=EB=93=9C=20?= =?UTF-8?q?=EB=B9=84=ED=99=9C=EC=84=B1=ED=99=94=20(#131)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/select/Select.tsx | 10 +++++----- src/contexts/ThemeProviderContext.tsx | 6 +++++- src/styles/globals.css | 7 +++++++ tailwind.config.js | 4 ++-- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/components/ui/select/Select.tsx b/src/components/ui/select/Select.tsx index 36a97c97..208b42f6 100644 --- a/src/components/ui/select/Select.tsx +++ b/src/components/ui/select/Select.tsx @@ -16,14 +16,14 @@ const SelectTrigger = React.forwardRef< {children} - + )) @@ -37,7 +37,7 @@ const SelectContent = React.forwardRef< - + diff --git a/src/contexts/ThemeProviderContext.tsx b/src/contexts/ThemeProviderContext.tsx index fe950067..f6cefd63 100644 --- a/src/contexts/ThemeProviderContext.tsx +++ b/src/contexts/ThemeProviderContext.tsx @@ -16,7 +16,11 @@ const ThemeProviderContext = ({ children }: ThemeProviderContextProps) => { if (!mounted) return null - return {children} + return ( + + {children} + + ) } export default ThemeProviderContext diff --git a/src/styles/globals.css b/src/styles/globals.css index df9986a1..c9618a5b 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -35,5 +35,12 @@ body { @apply h-full; @apply font-pretendard; + + &::-webkit-scrollbar { + /* 크롬, 사파리, 오페라 */ + display: none; + } + -ms-overflow-style: none; /* IE and 엣지 */ + scrollbar-width: none; /* 파이어폭스 */ } } diff --git a/tailwind.config.js b/tailwind.config.js index 6bafd840..62cc0421 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,5 +1,5 @@ const { createThemes } = require('tw-colors') -const { LIGHT_THEMES, DARK_THEMES } = require('./src/styles/colors') +const { LIGHT_THEMES } = require('./src/styles/colors') const { HEIGHT, BORDER_RADIUS } = require('./src/styles/sizes') /** @type {import('tailwindcss').Config} */ @@ -12,7 +12,7 @@ module.exports = { // Or if using `src` directory: './src/**/*.{js,ts,jsx,tsx,mdx}', ], - darkMode: 'false', + darkMode: ['class'], theme: { extend: { backgroundImage: () => ({