Skip to content

Commit

Permalink
Modify to use semantic color name
Browse files Browse the repository at this point in the history
  • Loading branch information
chacha912 committed Aug 6, 2024
1 parent bcb4af5 commit efce2dc
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion components/CodeBlock/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function CopyButtonBox({ value, timeout = 1000 }: { value: string; timeout?: num
<CopyButton value={value} timeout={timeout}>
{({ copied, copy }) => (
<>
<Button size="sm" variant="outline" colorPalette="white" onClick={copy} title="Copy to clipboard">
<Button size="sm" variant="outline" colorPalette="neutral" onClick={copy} title="Copy to clipboard">
<Icon type="copy" />
</Button>
{copied && (
Expand Down
4 changes: 2 additions & 2 deletions components/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ export function Header(): ReactElement {
<div className="header_util">
<Flex gap="200" hideBelow="md">
{!!isLoggedIn ? (
<Button asChild variant="outline" colorPalette="gray">
<Button asChild variant="outline" colorPalette="neutral">
<Link href={`${process.env.NEXT_PUBLIC_DASHBOARD_PATH}`}>Dashboard</Link>
</Button>
) : (
<>
<Button asChild variant="outline" colorPalette="gray">
<Button asChild variant="outline" colorPalette="neutral">
<Link href={`${process.env.NEXT_PUBLIC_DASHBOARD_PATH}/login`}>Sign in</Link>
</Button>
<Button asChild>
Expand Down
4 changes: 2 additions & 2 deletions components/exampleView/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ function SidebarBottom({
return (
<div className="sidebar_bottom">
<Flex gap="200" mt="400">
<Button asChild colorPalette="gray" flex="1">
<Button asChild colorPalette="neutral" flex="1">
<Link href={codeURL} target="_blank" rel="noreferrer">
GitHub
</Link>
</Button>
{shareButton && (
<Button asChild colorPalette="gray" flex="2">
<Button asChild colorPalette="neutral" flex="2">
<Link href="#">Share to invite other</Link>
</Button>
)}
Expand Down
2 changes: 1 addition & 1 deletion docs/sample.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ main();`} language="javascript" withCopyButton/>
</div>
</CodeBlock.ContentWrapper>

<Button colorPalette="gray">
<Button colorPalette="neutral">
<Icon type="book" />
<span>Learn more about the [SUBSUBSECTION]</span>
</Button>
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"eslint-config-next": "13.0.0",
"postcss-path-replace": "^1.0.4",
"typescript": "4.8.4",
"yorkie-ui-test": "^0.0.13"
"yorkie-ui-test": "^0.0.15"
}
}
4 changes: 2 additions & 2 deletions pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ const Custom404: NextPage = () => {
Back to home
</Link>
</Button>
<Button asChild variant="outline" size="lg" colorPalette="gray" flex={{ base: '1', md: 'none' }}>
<Button asChild variant="outline" size="lg" colorPalette="neutral" flex={{ base: '1', md: 'none' }}>
<Link href="https://discord.gg/MVEAwz9sBy" target="_blank" rel="noreferrer">
<Icon type="discord" />
Discord
</Link>
</Button>
<Button asChild variant="outline" size="lg" colorPalette="gray" flex={{ base: '1', md: 'none' }}>
<Button asChild variant="outline" size="lg" colorPalette="neutral" flex={{ base: '1', md: 'none' }}>
<Link href="https://github.com/yorkie-team/dashboard/issues" target="_blank" rel="noreferrer">
<Icon type="github" />
GitHub
Expand Down
4 changes: 2 additions & 2 deletions pages/community.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ const Community: NextPage = () => {
<br className="br_tablet" /> discussions.
</p>
<Flex order="4" gap="600" mt="800" width="full">
<Button asChild variant="outline" size="lg" colorPalette="gray" flex={{ base: '1', md: 'none' }}>
<Button asChild variant="outline" size="lg" colorPalette="neutral" flex={{ base: '1', md: 'none' }}>
<Link href="https://discord.gg/MVEAwz9sBy" target="_blank" rel="noreferrer">
<Icon type="discord" />
Discord
</Link>
</Button>
<Button asChild variant="outline" size="lg" colorPalette="gray" flex={{ base: '1', md: 'none' }}>
<Button asChild variant="outline" size="lg" colorPalette="neutral" flex={{ base: '1', md: 'none' }}>
<Link href="https://github.com/yorkie-team/dashboard/issues" target="_blank" rel="noreferrer">
<Icon type="github" />
GitHub
Expand Down
10 changes: 5 additions & 5 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const Home: NextPage = () => {
Getting Started
</Link>
</Button>
<Button asChild size="lg" variant="outline" colorPalette="white" width={{ base: 'full', sm: 'fit' }}>
<Button asChild size="lg" variant="outline" colorPalette="neutral" width={{ base: 'full', sm: 'fit' }}>
<Link href="/docs">
<Icon type="book" />
Read documentation
Expand Down Expand Up @@ -271,7 +271,7 @@ const Home: NextPage = () => {
peer&apos;s awareness of the data being edited. It is used to track which users are currently
editing the document.
</p>
<Button asChild mt="600" width={{ base: 'full', sm: 'fit' }} colorPalette="gray">
<Button asChild mt="600" width={{ base: 'full', sm: 'fit' }} colorPalette="neutral">
<Link href="/products#document-and-presence">
<Icon type="book" />
Learn more about Document and Presence
Expand All @@ -290,7 +290,7 @@ const Home: NextPage = () => {
real-time. With Dashboard, users can quickly and easily supervise the data warehouse and ensure that
it is functioning properly.
</p>
<Button asChild mt="600" width={{ base: 'full', sm: 'fit' }} colorPalette="gray">
<Button asChild mt="600" width={{ base: 'full', sm: 'fit' }} colorPalette="neutral">
<Link href="/products#dashboard">
<Icon type="book" />
Learn more about Dashboard
Expand All @@ -309,7 +309,7 @@ const Home: NextPage = () => {
own premises. Whether you want the convenience of cloud or the control of a self-hosted server,
Yorkie has you covered.
</p>
<Button asChild mt="600" width={{ base: 'full', sm: 'fit' }} colorPalette="gray">
<Button asChild mt="600" width={{ base: 'full', sm: 'fit' }} colorPalette="neutral">
<Link href="/products#self-hosted-server">
<Icon type="book" />
Learn more about Self-Hosted Server
Expand Down Expand Up @@ -382,7 +382,7 @@ const Home: NextPage = () => {
zIndex="float"
wrap="wrap"
>
<Button asChild size="lg" width={{ base: 'full', sm: 'fit' }} colorPalette="white" variant="outline">
<Button asChild size="lg" width={{ base: 'full', sm: 'fit' }} colorPalette="neutral" variant="outline">
<Link href="https://discord.gg/MVEAwz9sBy" target="_blank" rel="noreferrer">
<Icon type="smile" />
Contact
Expand Down
2 changes: 1 addition & 1 deletion pages/products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const Products: NextPage = () => {
asChild
mt={{ base: '800', md: '0' }}
width={{ base: 'full', md: 'fit' }}
colorPalette="gray"
colorPalette="neutral"
position={{ base: 'static', md: 'absolute' }}
top={0}
right={0}
Expand Down

0 comments on commit efce2dc

Please sign in to comment.