Skip to content

Commit

Permalink
feat: define native colors
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed May 19, 2024
1 parent eda249c commit 41b21eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/components/feed-column/category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function FeedCategory({
"flex items-center justify-between font-medium text-sm leading-loose px-2.5 py-[2px] rounded-md w-full transition-colors",
activedList?.level === levels.folder &&
activedList.name === data.name &&
"bg-[#C9C9C7]",
"bg-native-active",
)}
onClick={(e) => {
e.stopPropagation()
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/feed-column/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function FeedItem({
"flex items-center justify-between text-sm font-medium leading-loose w-full pr-2.5 py-[2px] rounded-md",
activedList?.level === levels.feed &&
activedList.id === feed.feedId &&
"bg-[#C9C9C7]",
"bg-native-active",
className,
)}
onClick={(e) => {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/pages/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function Component() {

return (
<div className="flex h-full">
<div className="w-64 pt-10 border-r shrink-0 bg-[#E1E0DF]">
<div className="w-64 pt-10 border-r shrink-0 bg-native">
<FeedColumn activedList={activedList} setActivedList={setActivedList} />
</div>
<Outlet
Expand Down
4 changes: 4 additions & 0 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ module.exports = {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
native: {
DEFAULT: "#E1E0DF",
active: "#C9C9C7",
},
},
borderRadius: {
lg: "var(--radius)",
Expand Down

0 comments on commit 41b21eb

Please sign in to comment.