Skip to content

Commit

Permalink
fix: all issues related to the color after changing them
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaAmar committed Sep 26, 2024
1 parent cd4f6d1 commit 5bcf6ad
Show file tree
Hide file tree
Showing 63 changed files with 299 additions and 341 deletions.
2 changes: 1 addition & 1 deletion apps/docs/content/themes/gradient.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Remember, accessibility should always be a priority when designing with gradient
### Frequently Asked Questions

**Q1: How do I apply gradients to my UI components?**
If you want to add a gradient to a component that supports it, you can do so by using the gradient prop. For example, if you have a component that supports gradient styling and you want to apply a success-related gradient, you can use the gradient prop like this: gradient="suc". This will automatically apply the predefined success gradient style to the component.
If you want to add a gradient to a component that supports it, you can do so by using the gradient prop. For example, if you have a component that supports gradient styling and you want to apply a success-related gradient, you can use the gradient prop like this: gradient="s". This will automatically apply the predefined success gradient style to the component.

**Q2: Can I create my own custom gradient styles?**
Yes, you can! Pillar UI allows you to customize gradient styles by overriding the default gradient variables with your preferred gradient definitions. Use the --\*-gradient-custom variables to apply your custom gradient styles.
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/app/_components/colors/copyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const CopyButton = ({ item, value }: CopyButtonProps) => {
return (
<IconButton
variant={`${!copied ? 'outline' : 'soft'}`}
color="bg"
color="b"
icon={copied ? <Check /> : <Copy />}
title={`${copied ? 'Copied' : 'Copy'} Color`}
onClick={handleClick}
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/src/app/_components/docHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const DocHeader = ({ title, type, items, root, excerpt, slug, directory }
<Button
as="a"
size="xs"
color="bg"
color="b"
target="_blank"
href={`https://github.com/HamzaAmar/pillar-ui/blob/main/packages/${root}/${directory}`}
icon={<Github strokeWidth={2} />}
Expand All @@ -58,7 +58,7 @@ export const DocHeader = ({ title, type, items, root, excerpt, slug, directory }
href="https://github.com/HamzaAmar/pillar-ui/issues"
target="_blank"
variant="soft"
color="bg"
color="b"
icon={<Github strokeWidth={2} />}
size="xs"
>
Expand All @@ -69,7 +69,7 @@ export const DocHeader = ({ title, type, items, root, excerpt, slug, directory }
href="https://github.com/HamzaAmar/pillar-ui/discussions"
target="_blank"
variant="soft"
color="bg"
color="b"
icon={<Github strokeWidth={2} />}
size="xs"
>
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/src/app/_components/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const FooterItem = ({ href, text, external = false }: FooterItemProps) => {
<li>
<Text
transform="capitalize"
color="bg"
color="b"
low
as={external ? 'a' : Link}
className="footer_link"
Expand Down Expand Up @@ -42,7 +42,7 @@ const FooterNav = ({ links, title }: { title: string; links: FooterItemProps[] }
const footer = () => {
return (
<footer>
<Paper background="bg-3" as={Grid} p="lg" gap="sm" grid="repeat(4, minmax(1px, 1fr))" xs="1fr" lg="1fr 1fr">
<Paper background="b-3" as={Grid} p="lg" gap="sm" grid="repeat(4, minmax(1px, 1fr))" xs="1fr" lg="1fr 1fr">
<div>
<Logo width={100} />
<Text transform="first-letter-only" color="b" low>
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/app/_components/home/rtl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function RTLSupport() {
<Text weight="medium" size="md">
{title}
</Text>
<Text low color="bg">
<Text low color="b">
{description}
</Text>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const BreadcrumbColor = () => {
))}
</Breadcrumb>

<Breadcrumb color="bg">
<Breadcrumb color="b">
{breadcrumbsItems.map(({ name, link, current }) => (
<BreadcrumbItem current={current} key={name} link={link}>
{name}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function ButtonColor() {
<Button color="s">Hello World</Button>
<Button color="p">Hello World</Button>
<Button color="se">Hello World</Button>
<Button color="bg">Hello World</Button>
<Button color="b">Hello World</Button>
</Flex>

<Flex gap="sm" items="center" wrap>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ZoomPlus } from '@pillar-ui/icons'

export function ButtonCorner() {
return (
<Paper className="playground" border flow="sm" p="sm" background="bg-3" corner="sm">
<Paper className="playground" border flow="sm" p="sm" background="b-3" corner="sm">
<Flex gap="sm" items="center" wrap>
<Button corner="sharp">Hello World</Button>
<Button corner="xs">Hello World</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function ButtonFluid() {
<Button fluid color="se">
Hello World
</Button>
<Button fluid color="bg">
<Button fluid color="b">
Hello World
</Button>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ChipsColor = () => {
<Chips color="w">Hello</Chips>
<Chips color="p">Hello</Chips>
<Chips color="se">Hello</Chips>
<Chips color="bg">Hello</Chips>
<Chips color="b">Hello</Chips>
</>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const CodeColor = () => {
<Code color="s">{`console.log('Hello world Every thing is OK')`}</Code>
<Code color="w">{`console.log('Hello world Every thing is OK')`}</Code>
<Code color="p">{`console.log('Hello world Every thing is OK')`}</Code>
<Code color="bg">{`console.log('Hello world Every thing is OK')`}</Code>
<Code color="b">{`console.log('Hello world Every thing is OK')`}</Code>
<Code color="se">{`console.log('Hello world Every thing is OK')`}</Code>
</>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Flex, Paper } from '@pillar-ui/core'

const Box = (props: any) => {
return <Paper width="48px" ratio="1" background="bg-6" corner="sm" className="u_center" {...props} />
return <Paper width="48px" ratio="1" background="b-6" corner="sm" className="u_center" {...props} />
}

const boxes = Array.from({ length: 5 }, (_, index) => <Box key={index} />)
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/app/_components/playground/flex/flexGap.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Flex, Paper } from '@pillar-ui/core'

const Box = (props: any) => {
return <Paper width="48px" ratio="1" background="bg-6" corner="sm" className="u_center" {...props} />
return <Paper width="48px" ratio="1" background="b-6" corner="sm" className="u_center" {...props} />
}

const boxes = Array.from({ length: 5 }, (_, index) => <Box key={index} />)
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/src/app/_components/playground/flex/flexItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { Flex, Paper } from '@pillar-ui/core'
export const FlexItems = () => {
return (
<>
<Flex as={Paper} height="100" background="bg-5" gap="sm" items="center">
<Flex as={Paper} height="100" background="b-5" gap="sm" items="center">
Hello
</Flex>
<Flex as={Paper} height="100" background="bg-5" gap="sm" items="end">
<Flex as={Paper} height="100" background="b-5" gap="sm" items="end">
Hello
</Flex>
<Flex as={Paper} height="100" background="bg-5" gap="sm">
<Flex as={Paper} height="100" background="b-5" gap="sm">
Hello
</Flex>
</>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Flex, Paper } from '@pillar-ui/core'

const Box = (props: any) => {
return <Paper width="48px" ratio="1" background="bg-6" corner="sm" className="u_center" {...props} />
return <Paper width="48px" ratio="1" background="b-6" corner="sm" className="u_center" {...props} />
}

const boxes = Array.from({ length: 5 }, (_, index) => <Box key={index} />)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Flex, Paper } from '@pillar-ui/core'

const Box = (props: any) => {
return <Paper width="48px" ratio="1" background="bg-6" corner="sm" className="u_center" {...props} />
return <Paper width="48px" ratio="1" background="b-6" corner="sm" className="u_center" {...props} />
}

export const FlexNested = () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/app/_components/playground/flex/flexWrap.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Flex, Paper } from '@pillar-ui/core'

const Box = (props: any) => {
return <Paper width="48px" ratio="1" background="bg-6" corner="sm" className="u_center" {...props} />
return <Paper width="48px" ratio="1" background="b-6" corner="sm" className="u_center" {...props} />
}
const boxes = Array.from({ length: 5 }, (_, index) => <Box key={index} />)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const SelectColor = () => {
<Select color="p">
<Options />
</Select>
<Select color="bg">
<Select color="b">
<Options />
</Select>
<Select>
Expand Down
14 changes: 7 additions & 7 deletions apps/docs/src/app/_components/playground/grid/grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Box = (props: any) => {
justify="center"
items="center"
style={{ height: '30px' }}
background="bg-6"
background="b-6"
corner="sm"
{...props}
/>
Expand All @@ -21,7 +21,7 @@ const boxes = Array.from({ length: 5 }, (_, index) => (

export const GridPlayGround = () => {
return (
<Paper className="playground" border p="sm" background="bg-3" corner="sm">
<Paper className="playground" border p="sm" background="b-3" corner="sm">
<Avatar title="Success!" color="d" />
<Avatar title="Success!" color="w" />
<Avatar title="Success!" color="s" />
Expand All @@ -34,7 +34,7 @@ export const GridPlayGround = () => {

export const GridGap = () => {
return (
<Paper className="playground" border p="sm" flow="md" background="bg-3" corner="sm">
<Paper className="playground" border p="sm" flow="md" background="b-3" corner="sm">
<Grid grid="repeat(4,30px)" gap="2xs">
{boxes}
</Grid>
Expand Down Expand Up @@ -62,7 +62,7 @@ export const GridGap = () => {

export const GridJustify = () => {
return (
<Paper className="playground" border p="sm" background="bg-3" corner="sm">
<Paper className="playground" border p="sm" background="b-3" corner="sm">
<Grid grid="repeat(5,1fr)" gap="sm">
{boxes}
</Grid>
Expand All @@ -87,7 +87,7 @@ export const GridJustify = () => {

export const GridPlacement = () => {
return (
<Paper className="playground" border p="sm" background="bg-3" corner="sm">
<Paper className="playground" border p="sm" background="b-3" corner="sm">
<Grid grid="5rem 1fr x 100px 400px 100px" gap="sm">
<GridItem placement="1 / 3" as={Box}>
header
Expand All @@ -107,7 +107,7 @@ export const GridPlacement = () => {

export const Item = () => {
return (
<Paper className="playground" border p="sm" background="bg-3" corner="sm">
<Paper className="playground" border p="sm" background="b-3" corner="sm">
<Grid grid="100px 1fr 100px x 2rem minmax(6rem, 1fr) 2rem" gap="sm">
<GridItem placement="2/4" style={{ background: 'var(--B8)' }}>
Header
Expand All @@ -131,7 +131,7 @@ export const Item = () => {

export const GridGrid = () => {
return (
<Paper className="playground" border p="sm" background="bg-3" corner="sm">
<Paper className="playground" border p="sm" background="b-3" corner="sm">
<Grid grid="repeat(5, 1fr)" gap="sm">
<div style={{ height: '40px', background: 'var(--B6)' }} />
<div style={{ height: '40px', background: 'var(--B6)' }} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const HeadingColor = () => {
<Heading color="s">Hello World</Heading>
<Heading color="w">Hello World</Heading>
<Heading color="p">Hello World</Heading>
<Heading color="bg">Hello World</Heading>
<Heading color="b">Hello World</Heading>
<Heading color="se">Hello World</Heading>

<Heading low color="d">
Expand All @@ -22,7 +22,7 @@ export const HeadingColor = () => {
<Heading low color="p">
Hello World
</Heading>
<Heading low color="bg">
<Heading low color="b">
Hello World
</Heading>
<Heading low color="se">
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/src/app/_components/playground/link/linkColor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const LinkColor = () => {
<Link color="s">Hello World</Link>
<Link color="w">Hello World</Link>
<Link color="p">Hello World</Link>
<Link color="bg">Hello World</Link>
<Link color="b">Hello World</Link>
<Link color="se">Hello World</Link>

<Link low color="d">
Expand All @@ -22,7 +22,7 @@ export const LinkColor = () => {
<Link low color="p">
Hello World
</Link>
<Link low color="bg">
<Link low color="b">
Hello World
</Link>
<Link low color="se">
Expand Down
42 changes: 21 additions & 21 deletions apps/docs/src/app/_components/playground/paper/paperBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ export const PaperBackground = () => {
return (
<>
<Paper border width="30-char" ratio="1" />
<Paper border width="30-char" ratio="1" background="dan" />
<Paper border width="30-char" ratio="1" background="dan-5" />
<Paper border width="30-char" ratio="1" background="dan-10" />
<Paper border width="30-char" ratio="1" background="suc-5" />
<Paper border width="30-char" ratio="1" background="suc-8" />
<Paper border width="30-char" ratio="1" background="suc-11" />
<Paper border width="30-char" ratio="1" background="pri-12" />
<Paper border width="30-char" ratio="1" background="pri-10" />
<Paper border width="30-char" ratio="1" background="pri-8" />
<Paper border width="30-char" ratio="1" background="bg-1" />
<Paper border width="30-char" ratio="1" background="bg-4" />
<Paper border width="30-char" ratio="1" background="bg-8" />
<Paper border width="30-char" ratio="1" background="war-4" />
<Paper border width="30-char" ratio="1" background="war-8" />
<Paper border width="30-char" ratio="1" background="war-12" />
<Paper border width="30-char" ratio="1" background="sec-3" />
<Paper border width="30-char" ratio="1" background="sec-8" />
<Paper border width="30-char" ratio="1" background="sec-12" />
<Paper border width="30-char" ratio="1" background="opa-4" />
<Paper border width="30-char" ratio="1" background="opa-7" />
<Paper border width="30-char" ratio="1" background="opa-11" />
<Paper border width="30-char" ratio="1" background="d" />
<Paper border width="30-char" ratio="1" background="d-5" />
<Paper border width="30-char" ratio="1" background="d-10" />
<Paper border width="30-char" ratio="1" background="s-5" />
<Paper border width="30-char" ratio="1" background="s-8" />
<Paper border width="30-char" ratio="1" background="s-11" />
<Paper border width="30-char" ratio="1" background="p-12" />
<Paper border width="30-char" ratio="1" background="p-10" />
<Paper border width="30-char" ratio="1" background="p-8" />
<Paper border width="30-char" ratio="1" background="b-1" />
<Paper border width="30-char" ratio="1" background="b-4" />
<Paper border width="30-char" ratio="1" background="b-8" />
<Paper border width="30-char" ratio="1" background="w-4" />
<Paper border width="30-char" ratio="1" background="w-8" />
<Paper border width="30-char" ratio="1" background="w-12" />
<Paper border width="30-char" ratio="1" background="s-3" />
<Paper border width="30-char" ratio="1" background="s-8" />
<Paper border width="30-char" ratio="1" background="s-12" />
<Paper border width="30-char" ratio="1" background="o-4" />
<Paper border width="30-char" ratio="1" background="o-7" />
<Paper border width="30-char" ratio="1" background="o-11" />
</>
)
}
Loading

0 comments on commit 5bcf6ad

Please sign in to comment.