Skip to content

Commit a9c98cd

Browse files
author
Max Shkutnyk
committed
adjust styles for dark mode
1 parent 55e603a commit a9c98cd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fern/components/cookbooks/Cookbooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { CookbookCard } from './CookbookCard';
55
import { TagCategories } from './types';
66
import { cookbooks } from './data/cookbooks';
77

8-
const CARD_COLORS = ['bg-[#EEF0EF]', 'bg-[#FDF2F0]', 'bg-[#F8F1F9]', 'bg-[#F0F2FB]'];
8+
const CARD_COLORS = ['bg-[#EEF0EF] dark:bg-[#bcc2bf]', 'bg-[#FDF2F0] dark:bg-[#e9ada2]', 'bg-[#F8F1F9] dark:bg-[#d2b1d7]', 'bg-[#F0F2FB] dark:bg-[#a9b3e0]'];
99

1010
export const Cookbooks: React.FC = () => {
1111
const [searchQuery, setSearchQuery] = useState('');

fern/components/cookbooks/SearchBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ interface SearchBarProps {
66
}
77

88
export const SearchBar: React.FC<SearchBarProps> = ({ searchQuery, setSearchQuery }) => (
9-
<div className="relative w-full">
9+
<div className="relative w-full dark:bg-[var(--header-background)]">
1010
<input
1111
type="text"
1212
placeholder="Search"
1313
value={searchQuery}
1414
onChange={(e) => setSearchQuery(e.target.value)}
15-
className="w-full px-4 py-2 pl-10 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-black"
15+
className="w-full px-4 py-2 pl-10 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-black dark:bg-transparent dark:text-white"
1616
/>
1717
<div className="absolute left-3 top-1/2 transform -translate-y-1/2">
1818
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" className="text-gray-400" viewBox="0 0 16 16">

fern/components/cookbooks/TagButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface TagButtonProps {
88

99
const tagButtonClass = "px-2 py-1 text-[12px] rounded-full transition-colors cursor-pointer font-normal";
1010
const selectedTagClass = "bg-[#333293] text-white hover:bg-[#333293]/90";
11-
const unselectedTagClass = "bg-white text-[#666666] shadow-[0_0_0_1px_#E5E5E5] outline outline-1 outline-[#E5E5E5] hover:bg-[#d4d4f0] hover:text-[#4d4d4d]";
11+
const unselectedTagClass = "bg-transparent text-[#666666] shadow-[0_0_0_1px_#E5E5E5] outline outline-1 outline-[#E5E5E5] hover:bg-[#d4d4f0] hover:text-[#4d4d4d] dark:dark-theme-text-color";
1212

1313
export const TagButton: React.FC<TagButtonProps> = ({ tag, isSelected, onClick }) => (
1414
<button

0 commit comments

Comments
 (0)