Skip to content

Commit 81a22dd

Browse files
author
Max Shkutnyk
committed
Addressing coobooks styles issues
1 parent 0dc7b1c commit 81a22dd

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

fern/assets/input.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ button[class^="Sidebar-link-buttonWrapper"] {
265265
color: #ebebf8;
266266
white-space: nowrap;
267267
}
268+
/*
269+
Styles for cookbooks
270+
*/
271+
.dark-theme-text-color {
272+
color: var(--body-text);
273+
}
268274
}
269275

270276
.small-tag-container {
@@ -649,3 +655,4 @@ button[class^="Sidebar-link-buttonWrapper"] {
649655
:is(.dark) .simple-card-container {
650656
--divider-border-color: #2c2c2c;
651657
}
658+

fern/components/cookbooks/CookbooksPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import React from 'react';
22
import { Cookbooks } from './Cookbooks';
33

44
export const CookbookPage: React.FC = () => (
5-
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
5+
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 dark:dark-theme-text-color">
66
<div className="max-w-3xl">
77
<h1 className="text-3xl font-bold mb-4">Cookbooks</h1>
8-
<p className="text-gray-600 mb-8">
8+
<p className="text-gray-600 mb-8 dark:dark-theme-text-color">
99
Explore what you can build on Cohere's generative AI platform with our new interface.
1010
Search and filter cookbooks by title, description, or tags to find exactly what you need.
1111
</p>

fern/components/cookbooks/SearchBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const SearchBar: React.FC<SearchBarProps> = ({ searchQuery, setSearchQuer
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"
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"
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] border border-[#E5E5E5] hover:bg-gray-50";
11+
const unselectedTagClass = "bg-white text-[#666666] shadow-[0_0_0_1px_#E5E5E5] outline outline-1 outline-[#E5E5E5] hover:bg-gray-50";
1212

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

0 commit comments

Comments
 (0)