Skip to content

Commit aaafd1d

Browse files
update
1 parent a863005 commit aaafd1d

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

ui/react-example/src/components/MainContent/MainContentDiffExampleCode.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const getCode = ({ theme, type }: { theme: "light" | "dark"; type: "react" | "vu
1010
? `import { DiffView, DiffFile, DiffModeEnum } from "@git-diff-view/react";
1111
import { generateDiffFile } from "@git-diff-view/file";
1212
import "@git-diff-view/react/styles/diff-view.css";
13+
// or if you have your own tailwindcss setup
14+
import "@git-diff-view/react/styles/diff-view-pure.css";
1315
1416
// git mode, use \`git diff\` output to render
1517
const getDiffFile = () => {
@@ -35,6 +37,8 @@ const App = () => {
3537
import { DiffView, DiffFile, DiffModeEnum } from "@git-diff-view/vue";
3638
import { generateDiffFile } from "@git-diff-view/file";
3739
import "@git-diff-view/vue/styles/diff-view.css";
40+
// or if you have your own tailwindcss setup
41+
import "@git-diff-view/react/styles/diff-view-pure.css";
3842
3943
// git mode, use \`git diff\` output to render
4044
const getDiffFile = () => {

ui/react-example/src/components/PlayGround/ReactPlayGround.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const ReactPlayGround = () => {
4040
return (
4141
<Card className="p-0" withBorder>
4242
<Box className="flex items-center px-2 py-2 font-sans text-[14px]">
43-
<IconBrandReact size="16" color="rgb(8,126,164)" className="mr-2" /> React
43+
<IconBrandReact size="16" color="#75c3d9" className="mr-2" /> React
4444
</Box>
4545
<SandpackProvider
4646
template="vite-react-ts"

ui/react-example/src/views/Main/MainContent.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
getThemeColor,
1515
Container,
1616
} from "@mantine/core";
17+
import { IconBrandReact, IconBrandSolidjs, IconBrandSvelte, IconBrandVue } from "@tabler/icons-react";
1718
import { useMemo, useState } from "react";
1819

1920
import { MainContentDiffAdvance, MainContentDiffConfig, MainContentDiffExample } from "../../components/MainContent";
@@ -37,7 +38,11 @@ export const MainContent = () => {
3738
<Title>Git Diff View</Title>
3839
<Space h="12" />
3940
<Text size="lg" component="div">
40-
A <Code>Diff</Code> view component for React / Vue / Solid / Svelte,
41+
A <Code>Diff</Code> view component for{" "}
42+
<IconBrandReact className="inline text-[1.1em]" color="#75c3d9" size="1em" /> React /{" "}
43+
<IconBrandVue className="inline text-[1.1em]" color="#42b883" size="1em" /> Vue /{" "}
44+
<IconBrandSolidjs className="inline text-[1.1em]" color="#5176b7" size="1em" /> Solid /{" "}
45+
<IconBrandSvelte className="inline text-[1.1em]" color="#eb5027" size="1em" /> Svelte,
4146
<Highlight highlight={["easy to use", "feature complete"]} color={color}>
4247
The most one component what easy to use and feature complete.
4348
</Highlight>

0 commit comments

Comments
 (0)