Skip to content

Commit 3f799ae

Browse files
feat(docs): use zinc template
1 parent 94752c5 commit 3f799ae

File tree

28 files changed

+85
-105
lines changed

28 files changed

+85
-105
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const BlogPostPageView = ({ children }) => {
6262
<Link
6363
to="/blog"
6464
className={clsx(
65-
"text-refine-react-5 dark:text-refine-react-4",
65+
"text-zinc-600 dark:text-zinc-400",
6666
"text-sm no-underline",
6767
"flex",
6868
"items-center",
@@ -72,7 +72,7 @@ export const BlogPostPageView = ({ children }) => {
7272
<ChevronLeft /> Back to blog
7373
</Link>
7474
<div className="flex items-center gap-3 px-2 py-1 not-prose">
75-
<span className="text-refine-react-5 dark:text-refine-react-4 text-sm">
75+
<span className="text-zinc-600 dark:text-zinc-400 text-sm">
7676
Share on
7777
</span>
7878
<TwitterShareButton
@@ -119,14 +119,14 @@ export const BlogPostPageView = ({ children }) => {
119119
<div className="mt-6 blog-lg:mt-10 mb-6 text-sm">
120120
<div
121121
className={clsx(
122-
"flex items-center gap-2 text-refine-reac-5 dark:text-refine-react-4 not-prose",
122+
"flex items-center gap-2 text-zinc-600 dark:text-zinc-400 not-prose",
123123
"ml-4 blog-md:ml-0",
124124
)}
125125
>
126126
<Date date={date} formattedDate={formattedDate} />
127127
{typeof readingTime !== "undefined" && (
128128
<>
129-
<span className="w-[4px] h-[4px] rounded-full bg-refine-reac-5 dark:bg-refine-react-4 " />
129+
<span className="w-[4px] h-[4px] rounded-full bg-zinc-600 dark:bg-zinc-400 " />
130130
<ReadingTime readingTime={readingTime} />
131131
</>
132132
)}

documentation/src/components/blog/featured-blog-post-item/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export const FeaturedBlogPostItem = () => {
5050
<Link
5151
className={clsx(
5252
"text-xs",
53-
"bg-refine-react-3 dark:bg-refine-react-7",
54-
"text-refine-react-8 dark:text-refine-react-3",
53+
"bg-zinc-200 dark:bg-zinc-700",
54+
"text-zinc-900 dark:text-zinc-300",
5555
"no-underline",
5656
"rounded-full",
5757
"px-2 py-1",
@@ -73,7 +73,7 @@ export const FeaturedBlogPostItem = () => {
7373
<div
7474
className={clsx(
7575
"mb-4",
76-
"text-gray-700 dark:text-refine-react-3",
76+
"text-zinc-700 dark:text-zinc-300",
7777
"text-xl",
7878
"font-lg",
7979
"font-bold",
@@ -85,7 +85,7 @@ export const FeaturedBlogPostItem = () => {
8585
<div
8686
className={clsx(
8787
"line-clamp-3",
88-
"text-gray-700 dark:text-refine-react-4",
88+
"text-zinc-700 dark:text-zinc-400",
8989
"text-sm",
9090
)}
9191
>
@@ -96,7 +96,7 @@ export const FeaturedBlogPostItem = () => {
9696
<div className="flex items-center gap-2">
9797
<span
9898
className={clsx(
99-
"text-gray-600 dark:text-refine-react-5",
99+
"text-zinc-600 dark:text-zinc-500",
100100
"text-xs",
101101
"leading-6",
102102
"no-underline",

documentation/src/components/blog/featured-blog-post-items/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ import clsx from "clsx";
66

77
export const FeaturedBlogPostItems = ({ items }) => {
88
return (
9-
<div
10-
className={clsx(
11-
"w-screen",
12-
"bg-refine-react-1 dark:bg-refine-react-dark-code",
13-
)}
14-
>
9+
<div className={clsx("w-screen", "bg-zinc-100 dark:bg-zinc-900")}>
1510
<div
1611
className={clsx(
1712
"blog-sm:max-w-[592px]",

documentation/src/components/blog/icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const Twitter = (props: React.SVGProps<SVGSVGElement>): JSX.Element => (
7474
height={24}
7575
fill="currentColor"
7676
rx={12}
77-
className={clsx("text-refine-react-1 dark:text-black", props.className)}
77+
className={clsx("text-zinc-100 dark:text-black", props.className)}
7878
/>
7979
<path
8080
fill="currentColor"

documentation/src/components/blog/tags/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export const Tags = () => {
1717
"rounded-full",
1818
"py-1",
1919
"px-3",
20-
"text-refine-react-8 dark:text-refine-react-3",
21-
"bg-refine-react-3 dark:bg-refine-react-7",
20+
"text-zinc-900 dark:text-zinc-300",
21+
"bg-zinc-200 dark:bg-zinc-700",
2222
"whitespace-nowrap",
2323
)}
2424
key={tag.permalink}

documentation/src/components/integrations/card/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Card: React.FC<LargeCardProps> = ({
2525
"flex gap-4 sm:gap-8",
2626
"no-underline",
2727
"p-4 sm:p-8",
28-
"border border-gray-200 dark:border-gray-700",
28+
"border border-zinc-200 dark:border-zinc-700",
2929
"rounded-2xl",
3030
)}
3131
rel="noreferrer"
@@ -36,13 +36,13 @@ const Card: React.FC<LargeCardProps> = ({
3636

3737
<div className={clsx("flex flex-col gap-2")}>
3838
<div
39-
className={clsx("text-gray-700 dark:text-gray-200", "font-semibold")}
39+
className={clsx("text-zinc-700 dark:text-zinc-200", "font-semibold")}
4040
>
4141
{title}
4242
</div>
4343
<div
4444
className={clsx(
45-
"text-gray-600 dark:text-gray-300",
45+
"text-zinc-600 dark:text-zinc-300",
4646
"text-xs sm:text-sm",
4747
)}
4848
// biome-ignore lint/security/noDangerouslySetInnerHtml: explicitly disabled
@@ -75,7 +75,7 @@ const Card: React.FC<LargeCardProps> = ({
7575
fill="#FF4C4D"
7676
/>
7777
</svg>
78-
<span className={clsx("text-gray-500")}>by</span>
78+
<span className={clsx("text-zinc-500")}>by</span>
7979
<span className={clsx("underline")}>{contributor.name}</span>
8080
</a>
8181
);

documentation/src/pages/integrations/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const Title = ({
1414
<div
1515
className={clsx(
1616
"font-semibold",
17-
"text-gray-700 dark:text-gray-200",
17+
"text-zinc-700 dark:text-zinc-200",
1818
"text-base sm:text-2xl",
1919
className,
2020
)}
@@ -74,7 +74,7 @@ const Integrations: React.FC = () => {
7474
<div
7575
className={clsx(
7676
"font-semibold",
77-
"text-gray-700 dark:text-gray-200",
77+
"text-zinc-700 dark:text-zinc-200",
7878
"text-xl sm:text-[40px] sm:leading-[56px]",
7979
)}
8080
>
@@ -83,7 +83,7 @@ const Integrations: React.FC = () => {
8383
<div
8484
className={clsx(
8585
"font-semibold",
86-
"text-gray-700 dark:text-gray-300",
86+
"text-zinc-700 dark:text-zinc-300",
8787
"text-xs sm:text-base",
8888
"mt-4 sm:mt-8",
8989
)}
@@ -96,7 +96,7 @@ const Integrations: React.FC = () => {
9696
<div
9797
className={clsx(
9898
"my-10",
99-
"border-b border-gray-200 dark:border-gray-700",
99+
"border-b border-zinc-200 dark:border-zinc-700",
100100
)}
101101
/>
102102

documentation/src/pages/templates/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const Templates: React.FC = () => {
152152
className={clsx(
153153
"text-base",
154154
"font-semibold",
155-
"dark:text-gray-300 text-gray-900",
155+
"dark:text-zinc-300 text-zinc-900",
156156
"pl-4",
157157
)}
158158
>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const BlogHero: FC<Props> = ({ className }) => {
1212
"landing-md:mx-auto",
1313
"w-full",
1414
"pt-4 blog-md:pt-12 pb-16 px-6",
15-
"bg-white dark:bg-refine-react-8",
15+
"bg-white dark:bg-zinc-900",
1616
className,
1717
)}
1818
>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const RefineBlogLayout = (props: Props) => {
3434
return (
3535
<CommonLayout
3636
{...layoutProps}
37-
className={clsx("bg-white dark:bg-refine-react-8")}
37+
className={clsx("bg-white dark:bg-zinc-900")}
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. */}

0 commit comments

Comments
 (0)