Skip to content

Commit 76cee97

Browse files
feat(docs): update colors
1 parent 07486ba commit 76cee97

23 files changed

+109
-124
lines changed

documentation/docs/advanced-tutorials/auth/auth0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const Login: React.FC = () => {
9797

9898
After clicking the `Login` button, you will be directed to the auth0 login screen.
9999

100-
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/auth0/auth0-login-min.gif" className="border border-gray-200 rounded" alt="auth0-login" />
100+
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/auth0/auth0-login-min.gif" className="border border-zinc-200 rounded" alt="auth0-login" />
101101

102102
## Auth Provider
103103

documentation/docs/advanced-tutorials/web3/ethereum-signin.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export const Login: React.FC = () => {
194194
</p>
195195
</details>
196196

197-
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/web3/login-min.gif" alt="ethereum-login" className="border border-gray-200 rounded" />
197+
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/web3/login-min.gif" alt="ethereum-login" className="border border-zinc-200 rounded" />
198198

199199
## Create Dashboard
200200

@@ -258,7 +258,7 @@ export const DashboardPage: React.FC = () => {
258258
</p>
259259
</details>
260260

261-
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/web3/dashboard.jpg" alt="refine-dashboard" className="border border-gray-200 rounded" />
261+
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/web3/dashboard.jpg" alt="refine-dashboard" className="border border-zinc-200 rounded" />
262262

263263
Now lets customize **Refine** dashboard. Send your test ethereum via **Refine** dashboard and Metamask.
264264

@@ -411,11 +411,11 @@ export const DashboardPage: React.FC = () => {
411411
</p>
412412
</details>
413413

414-
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/web3/customize.jpg" alt="refine-customize" className="border border-gray-200 rounded" />
414+
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/web3/customize.jpg" alt="refine-customize" className="border border-zinc-200 rounded" />
415415

416416
We can now request to send ethereum through our **Refine** dashboard and also view your account details on [Etherscan Ropsten Test Network](https://ropsten.etherscan.io/)
417417

418-
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/web3/overview-min.gif" alt="refine-overview" className="border border-gray-200 rounded" />
418+
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/web3/overview-min.gif" alt="refine-overview" className="border border-zinc-200 rounded" />
419419

420420
## Example
421421

documentation/docs/data/packages/supabase/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ You will find the Google Auth option in the Auth providers section; enable it an
13701370

13711371
Here is the result:
13721372

1373-
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/data-provider/supabase/social-login-min.gif" className="border border-gray-200 rounded" alt="socialLogin" />
1373+
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/data-provider/supabase/social-login-min.gif" className="border border-zinc-200 rounded" alt="socialLogin" />
13741374

13751375
## Let's recap what we have done so far
13761376

@@ -1423,7 +1423,7 @@ For live features to work automatically, we set `liveMode: "auto"` in the option
14231423

14241424
### Let see how real-time feature works in the app
14251425

1426-
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/data-provider/supabase/real-time-min.gif" className="border border-gray-200 rounded" alt="realTime" />
1426+
<img src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/img/guides-and-concepts/data-provider/supabase/real-time-min.gif" className="border border-zinc-200 rounded" alt="realTime" />
14271427

14281428
:::tip
14291429

documentation/docs/getting-started/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npm create refine-app@latest
2020
```
2121

2222
<figure>
23-
<img className="w-full rounded-lg border border-solid border-gray-200 dark:border-gray-700" src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/refine-vite-mui-rest-auth-screenshot.webp" alt="Example result" />
23+
<img className="w-full rounded-lg border border-solid border-zinc-200 dark:border-zinc-700" src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/refine-vite-mui-rest-auth-screenshot.webp" alt="Example result" />
2424
<figcaption className="text-center">A Refine app created with CLI using Vite + Material UI + REST API + Custom Auth Provider</figcaption>
2525
</figure>
2626

documentation/src/refine-theme/ai-landing-join-the-waitlist-cta.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export const JoinWaitlist = ({ className }: { className?: string }) => {
1717
"border-none",
1818
"no-underline",
1919
"cursor-pointer",
20-
"dark:bg-orange-500 bg-refine-indigo",
21-
"dark:text-white text-white",
20+
"dark:bg-refine-green-alt bg-refine-indigo",
21+
"dark:text-gray-900 text-white",
2222
"rounded-full",
2323
"w-max",
2424
"min-h-12",

documentation/src/refine-theme/common-codeblock-string.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,9 @@ export const CodeBlockString = ({
9797
className={clsx(
9898
"refine-common-code-block",
9999
language && `language-${language}`,
100-
"rounded-lg",
100+
"rounded-xl",
101101
"bg-refine-react-light-code",
102102
"dark:bg-refine-react-dark-code",
103-
"border",
104-
"border-gray-300",
105-
"dark:border-0",
106103
"mb-6",
107104
"relative",
108105
"refine-wider-container",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const CommonDetails = (props) => {
1717
className={clsx(
1818
props.className,
1919
"refine-details",
20-
"border dark:border-gray-700 border-gray-300",
20+
"border dark:border-zinc-700 border-zinc-200",
2121
"rounded-lg",
2222
"overflow-hidden",
2323
"mb-4",

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

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const CommonHeader = ({
6161
"landing-md:backdrop-blur-[12px]",
6262
"z-[-1]",
6363
!isLanding &&
64-
"bg-gray-0 bg-opacity-80 dark:bg-zinc-900 dark:bg-opacity-80",
64+
"bg-white bg-opacity-80 dark:bg-zinc-900 dark:bg-opacity-80",
6565
isLanding && "bg-zinc-900 bg-opacity-80",
6666
"pointer-events-none",
6767
className,
@@ -92,17 +92,17 @@ export const CommonHeader = ({
9292
<Link to="/" onContextMenu={openFigma}>
9393
<RefineCoreLogoIcon
9494
className={clsx(
95-
!isLanding && "text-gray-900 dark:text-gray-0",
96-
isLanding && "text-gray-0",
95+
!isLanding && "text-zinc-900 dark:text-white",
96+
isLanding && "text-white",
9797
)}
9898
/>
9999
</Link>
100100
</div>
101101
<button
102102
type="button"
103103
className={clsx(
104-
!isLanding && "text-gray-900 dark:text-gray-0",
105-
isLanding && "text-gray-0",
104+
!isLanding && "text-zinc-900 dark:text-white",
105+
isLanding && "text-white",
106106
"block landing-md:hidden",
107107
)}
108108
onClick={() => setIsModalOpen(true)}
@@ -226,8 +226,8 @@ const NavLinksDesktop = ({
226226
className={clsx(
227227
"whitespace-nowrap",
228228
!isLanding &&
229-
"text-gray-900 dark:text-gray-0 hover:text-gray-900 dark:hover:text-gray-0",
230-
isLanding && "text-gray-0 hover:text-gray-0",
229+
"text-zinc-900 dark:text-white hover:text-zinc-900 dark:hover:text-white",
230+
isLanding && "text-white hover:text-white",
231231
"hover:no-underline",
232232
"transition-colors",
233233
)}
@@ -240,7 +240,7 @@ const NavLinksDesktop = ({
240240
className={clsx(
241241
"h-6",
242242
"w-[1px]",
243-
!isLanding && "bg-gray-300 dark:bg-zinc-600",
243+
!isLanding && "bg-zinc-300 dark:bg-zinc-600",
244244
isLanding && "bg-zinc-600",
245245
)}
246246
/>
@@ -250,8 +250,8 @@ const NavLinksDesktop = ({
250250
className={clsx(
251251
"whitespace-nowrap",
252252
!isLanding &&
253-
"text-gray-900 dark:text-gray-0 hover:text-gray-900 dark:hover:text-gray-0",
254-
isLanding && "text-gray-0 hover:text-gray-0",
253+
"text-zinc-900 dark:text-white hover:text-zinc-900 dark:hover:text-white",
254+
isLanding && "text-white hover:text-white",
255255
"hover:no-underline",
256256
"transition-colors",
257257
)}
@@ -295,7 +295,7 @@ const MobileMenuModal = ({
295295
"fixed",
296296
"inset-0",
297297
"z-[999]",
298-
!isLanding && "bg-gray-0 dark:bg-zinc-900",
298+
!isLanding && "bg-white dark:bg-zinc-900",
299299
isLanding && "bg-zinc-900",
300300
"flex",
301301
"flex-col",
@@ -310,15 +310,15 @@ const MobileMenuModal = ({
310310
"px-4",
311311
"h-16",
312312
"border-b",
313-
!isLanding && "border-gray-200 dark:border-zinc-700",
313+
!isLanding && "border-zinc-200 dark:border-zinc-700",
314314
isLanding && "border-zinc-700",
315315
)}
316316
>
317317
<Link to="/" onClick={onClose}>
318318
<RefineCoreLogoIcon
319319
className={clsx(
320-
!isLanding && "text-gray-900 dark:text-white",
321-
isLanding && "text-gray-0",
320+
!isLanding && "text-zinc-900 dark:text-white",
321+
isLanding && "text-white",
322322
)}
323323
/>
324324
</Link>
@@ -329,8 +329,8 @@ const MobileMenuModal = ({
329329
"flex",
330330
"items-center",
331331
"gap-2",
332-
!isLanding && "text-gray-900 dark:text-white",
333-
isLanding && "text-gray-0",
332+
!isLanding && "text-zinc-900 dark:text-white",
333+
isLanding && "text-white",
334334
"text-sm",
335335
"font-normal",
336336
)}
@@ -378,9 +378,9 @@ const MobileMenuModal = ({
378378
"px-4",
379379
"py-3.5",
380380
!isLanding &&
381-
"bg-gray-100 dark:bg-zinc-800 hover:bg-gray-200 dark:hover:bg-zinc-700 rounded-lg text-gray-900 dark:text-white",
381+
"bg-zinc-100 dark:bg-zinc-800 hover:bg-zinc-200 dark:hover:bg-zinc-700 rounded-lg text-zinc-900 dark:text-white",
382382
isLanding &&
383-
"bg-zinc-800 hover:bg-zinc-700 rounded-lg text-gray-0",
383+
"bg-zinc-800 hover:bg-zinc-700 rounded-lg text-white",
384384
"text-sm",
385385
"font-normal",
386386
"hover:no-underline",
@@ -396,7 +396,7 @@ const MobileMenuModal = ({
396396
<div
397397
className={clsx(
398398
"h-[1px]",
399-
!isLanding && "bg-gray-200 dark:bg-zinc-700",
399+
!isLanding && "bg-zinc-200 dark:bg-zinc-700",
400400
isLanding && "bg-zinc-700",
401401
"my-6",
402402
)}
@@ -415,8 +415,8 @@ const MobileMenuModal = ({
415415
"px-4",
416416
"py-3.5",
417417
!isLanding &&
418-
"bg-gray-100 dark:bg-zinc-800 hover:bg-gray-200 dark:hover:bg-zinc-700 rounded-lg text-gray-900 dark:text-white",
419-
isLanding && "bg-zinc-800 hover:bg-zinc-700 rounded-lg text-gray-0",
418+
"bg-zinc-100 dark:bg-zinc-800 hover:bg-zinc-200 dark:hover:bg-zinc-700 rounded-lg text-zinc-900 dark:text-white",
419+
isLanding && "bg-zinc-800 hover:bg-zinc-700 rounded-lg text-white",
420420
"text-sm",
421421
"font-normal",
422422
"hover:no-underline",
@@ -434,7 +434,7 @@ const MobileMenuModal = ({
434434
"py-6",
435435
"border-t",
436436
!isLanding &&
437-
"border-gray-200 dark:border-zinc-700 bg-gray-50 dark:bg-black",
437+
"border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-black",
438438
isLanding && "border-zinc-700 bg-black",
439439
)}
440440
>
@@ -444,8 +444,8 @@ const MobileMenuModal = ({
444444
<div
445445
className={clsx(
446446
"ml-4",
447-
!isLanding && "text-gray-900 dark:text-white",
448-
isLanding && "text-gray-0",
447+
!isLanding && "text-zinc-900 dark:text-white",
448+
isLanding && "text-white",
449449
)}
450450
>
451451
If you like Refine, don’t forget to star us on GitHub!

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const CommonLayout = (props: Props) => {
4444
"main-wrapper",
4545
"min-h-[100dvh]",
4646
"flex flex-col",
47-
"dark:bg-zinc-900 bg-gray-0",
47+
"dark:bg-zinc-900 bg-white",
4848
className,
4949
)}
5050
>

documentation/src/refine-theme/common-show-source-prompt.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export const CommonShowSourcePrompt = ({ path }: Props) => {
1818
"flex items-center",
1919
"gap-2",
2020
"rounded-lg",
21-
"dark:bg-gray-700",
22-
"bg-gray-100",
21+
"dark:bg-zinc-950",
22+
"bg-zinc-50",
2323
"mb-6",
2424
)}
2525
>
26-
<GithubIcon className="ml-1.5 w-5 h-5 text-gray-800 dark:text-gray-100" />
26+
<GithubIcon className="ml-1.5 w-5 h-5 text-zinc-900 dark:text-white" />
2727
<a
2828
href={path}
2929
target="_blank"

0 commit comments

Comments
 (0)