Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions components/ThemeSwitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ const ThemeSwitch = () => {
leaveFrom="transform opacity-100 scale-100"
leaveTo="transform opacity-0 scale-95"
>
<MenuItems className="ring-opacity-5 absolute right-0 z-50 mt-2 w-32 origin-top-right divide-y divide-gray-100 rounded-md bg-white ring-1 shadow-lg ring-black focus:outline-hidden dark:bg-gray-800">
<MenuItems className="ring-opacity-5 absolute right-0 z-50 mt-2 w-32 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black focus:outline-hidden dark:bg-gray-800">
<RadioGroup value={theme} onChange={setTheme}>
<div className="p-1">
<Radio value="light">
<MenuItem>
{({ focus }) => (
<button
className={`${focus ? 'bg-primary-600 text-white' : ''} group flex w-full items-center rounded-md px-2 py-2 text-sm`}
className={`${focus ? 'bg-yellow-300 text-black' : ''} group flex w-full items-center rounded-md px-2 py-2 text-sm`}
>
<div className="mr-2">
<Sun />
Expand All @@ -100,7 +100,7 @@ const ThemeSwitch = () => {
{({ focus }) => (
<button
className={`${
focus ? 'bg-primary-600 text-white' : ''
focus ? 'bg-gray-800 text-white' : ''
} group flex w-full items-center rounded-md px-2 py-2 text-sm`}
>
<div className="mr-2">
Expand All @@ -116,7 +116,9 @@ const ThemeSwitch = () => {
{({ focus }) => (
<button
className={`${
focus ? 'bg-primary-600 text-white' : ''
focus
? 'bg-gradient-to-r from-gray-300 via-white to-gray-300 text-black'
: ''
} group flex w-full items-center rounded-md px-2 py-2 text-sm`}
>
<div className="mr-2">
Expand Down