Skip to content

Commit

Permalink
style: change text color of sidebar and toc
Browse files Browse the repository at this point in the history
  • Loading branch information
shervinchen committed Nov 1, 2024
1 parent ea20964 commit 6279d2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export default function Sidebar() {
href={link.url}
className={
pathname === link.url
? 'py-1 px-0 text-base text-[#0070f3] active:font-semibold'
: 'py-1 px-0 text-base text-[#444] dark:text-[#888] active:font-semibold'
? 'py-1 px-0 text-base text-black dark:text-[#fff] font-semibold'
: 'py-1 px-0 text-base text-[#666] dark:text-[#666] hover:text-black dark:hover:text-[#fff]'
}
key={link.name}
>
Expand Down
5 changes: 2 additions & 3 deletions src/app/components/toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const Headings = ({
<a
href={`#${heading.id}`}
className={classNames(
'hover:text-gray-900 dark:hover:text-gray-100',
{
2: 'pl-0',
3: 'pl-4',
Expand All @@ -88,8 +87,8 @@ const Headings = ({
6: 'pl-16',
}[heading.level],
activeId === heading.id
? 'text-[#0070f3]'
: 'text-gray-600 dark:text-gray-400'
? 'text-black dark:text-[#fff] font-semibold'
: 'text-[#666] dark:text-[#666] hover:text-black dark:hover:text-[#fff]'
)}
onClick={(e) => {
e.preventDefault();
Expand Down

0 comments on commit 6279d2a

Please sign in to comment.