Skip to content

Commit 94752c5

Browse files
feat(docs): update color palette to use zinc shades for improved consistency
1 parent 959045a commit 94752c5

File tree

17 files changed

+119
-204
lines changed

17 files changed

+119
-204
lines changed

documentation/src/components/blog/post-paginator/index.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const PostPaginator = ({ posts, title }) => {
2222
)}
2323
>
2424
<div className="blog-sm:px-6 w-full px-4">
25-
<h2 className="m-0 mb-4 p-0 pl-4 text-2xl font-semibold text-refine-react-8 dark:text-refine-react-1">
25+
<h2 className="m-0 mb-4 p-0 pl-4 text-2xl font-semibold text-zinc-900 dark:text-zinc-100">
2626
{title}
2727
</h2>
2828
<div className="flex flex-col not-prose">
@@ -38,9 +38,9 @@ export const PostPaginator = ({ posts, title }) => {
3838
"p-5",
3939
"mb-5",
4040
"rounded-lg",
41-
"border border-refine-react-3 dark:border-refine-react-6",
42-
"bg-white dark:bg-refine-react-8",
43-
"hover:bg-gray-100 dark:hover:bg-refine-react-7",
41+
"border border-zinc-200 dark:border-zinc-700",
42+
"bg-white dark:bg-zinc-800",
43+
"hover:bg-zinc-100 dark:hover:bg-zinc-700",
4444
"not-prose",
4545
"no-underline",
4646
)}
@@ -50,26 +50,23 @@ export const PostPaginator = ({ posts, title }) => {
5050
rel="dofollow"
5151
className={clsx(
5252
"font-bold",
53-
"text-refine-react-8 dark:text-refine-react-1",
53+
"text-zinc-900 dark:text-zinc-100",
5454
"no-underline",
55-
"hover:text-gray-800 hover:no-underline dark:hover:text-gray-200",
55+
"hover:text-zinc-800 hover:no-underline dark:hover:text-zinc-200",
5656
)}
5757
>
5858
{post.title}
5959
</div>
6060

6161
<p
62-
className={clsx(
63-
"font-sm",
64-
"text-refine-react-5 dark:text-refine-react-4",
65-
)}
62+
className={clsx("font-sm", "text-zinc-600 dark:text-zinc-400")}
6663
>
6764
{post.description}
6865
</p>
6966

7067
<div
7168
id="post-info"
72-
className="flex items-center gap-2 text-sm text-refine-react-4 dark:text-refine-react-5"
69+
className="flex items-center gap-2 text-sm text-zinc-500 dark:text-zinc-400"
7370
>
7471
<Date date={post.date} formattedDate={post.formattedDate} />
7572
</div>

documentation/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function Home() {
3636
className={clsx("bg-zinc-900")}
3737
>
3838
<div className={clsx()}>
39-
<CommonHeader variant="landing" />
39+
<CommonHeader showThemeToggle={false} />
4040
<div
4141
className={clsx(
4242
"flex flex-col",

documentation/src/refine-theme/blog-hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const BlogHero: FC<Props> = ({ className }) => {
3939
"text-[32px] leading-[40px] landing-sm:text-[56px] landing-sm:leading-[72px]",
4040
)}
4141
>
42-
<div className={clsx("dark:text-gray-0 text-gray-900")}>Refine </div>
42+
<div className={clsx("dark:text-white text-zinc-900")}>Refine </div>
4343
<div
4444
className={clsx(
4545
"font-semibold",
@@ -56,7 +56,7 @@ export const BlogHero: FC<Props> = ({ className }) => {
5656
"text-base",
5757
"text-start landing-md:text-center",
5858
"max-w-[588px]",
59-
"dark:text-gray-400 text-gray-600",
59+
"dark:text-zinc-400 text-zinc-600",
6060
"pb-2",
6161
)}
6262
>

documentation/src/refine-theme/blog-layout.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,7 @@ export const RefineBlogLayout = (props: Props) => {
3838
>
3939
{/* If there's TOC, then we can say that this is a blog post page. */}
4040
{/* Then we can pass `trackProgress` prop to the header. */}
41-
<CommonHeader
42-
hasSticky={true}
43-
trackProgress={!!toc}
44-
variant="blog"
45-
className={clsx(
46-
"!bg-white dark:!bg-refine-react-8",
47-
"!bg-opacity-100 dark:!bg-opacity-100",
48-
)}
49-
/>
41+
<CommonHeader hasSticky={true} trackProgress={!!toc} />
5042
{props.showHero && <BlogHero />}
5143
<div
5244
className={clsx(

documentation/src/refine-theme/blog-toc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const BlogTOC = (props) => {
2727
"px-3",
2828
"pb-10",
2929
"pt-4 blog-lg:pt-9",
30-
"border-l dark:border-l-gray-700 border-l-gray-100",
30+
"border-l dark:border-l-zinc-700 border-l-zinc-100",
3131
!hasTOC && "invisible",
3232
"not-prose",
3333
)}

documentation/src/refine-theme/common-drawer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ const DrawerComponent: FC<PropsWithChildren<Props>> = ({
9090
"w-[240px] h-full",
9191
"ml-auto",
9292
"p-4",
93-
variant === "templates" && "bg-gray-0 dark:bg-gray-900 ",
93+
variant === "templates" && "bg-zinc-0 dark:bg-zinc-900 ",
9494
variant === "blog" && "bg-white dark:bg-refine-react-7",
95-
"border-l dark:border-gray-800",
95+
"border-l dark:border-zinc-800",
9696
"dark:shadow-[0_0_72px_24px_#14141F]",
9797
"shadow-[0_0_72px_24px_rgba(20, 20, 31, 0.50)]",
9898
)}
@@ -110,7 +110,7 @@ const DrawerComponent: FC<PropsWithChildren<Props>> = ({
110110
"items-center",
111111
"justify-between",
112112
"mb-10",
113-
"dark:text-gray-300 text-gray-900",
113+
"dark:text-zinc-300 text-zinc-900",
114114
)}
115115
>
116116
<h3 className={clsx("text-base", "font-semibold")}>{title}</h3>

0 commit comments

Comments
 (0)