Skip to content

Commit

Permalink
Merge pull request #333 from omnifed/309-feature-update-neutral-palet…
Browse files Browse the repository at this point in the history
…te-to-page

309 feature update neutral palette to page
  • Loading branch information
caseybaggz committed Aug 1, 2024
2 parents 0345599 + 96ca616 commit 71bb4fd
Show file tree
Hide file tree
Showing 69 changed files with 549 additions and 555 deletions.
2 changes: 1 addition & 1 deletion docs/app/components/ApiLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const apiLinkStyles = css({
transition: 'all 200ms ease-in-out',
_hover: {
bgColor: 'action.navigation.hover',
color: 'neutral.text.inverse !important',
color: 'page.text.inverse !important',
textStyle: 'link',
},
})
Expand Down
6 changes: 3 additions & 3 deletions docs/app/components/CategoryList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function CategoryCard(props: CategoryCardProps) {
<Link
href={item!.route!}
className={vstack({
bgColor: 'neutral.surface.100',
bgColor: 'page.surface.100',
display: 'block',
h: '15rem',
overflow: 'hidden',
Expand Down Expand Up @@ -76,7 +76,7 @@ function CategoryCard(props: CategoryCardProps) {
>
<p
className={css({
color: 'neutral.text.initial !important',
color: 'page.text.initial !important',
textStyle: 'body-xl !important',
})}
>
Expand All @@ -99,7 +99,7 @@ export default function CategoryList(props: CategoryListProps) {
<header>
<p
className={css({
color: 'neutral.text.initial !important',
color: 'page.text.initial !important',
pb: '2 !important',
textStyle: 'h2 !important',
})}
Expand Down
4 changes: 2 additions & 2 deletions docs/app/components/CodePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function PreviewLayout(props: PropsWithChildren<PreviewLayoutProps>) {
</header>
<section
className={vstack({
bgColor: 'neutral.surface.100',
bgColor: 'page.surface.100',
border: '3px solid',
borderColor: 'info.border.initial',
borderRadius: 'xl',
Expand All @@ -83,7 +83,7 @@ export function PreviewLayout(props: PropsWithChildren<PreviewLayoutProps>) {
>
<span
className={css({
bgColor: 'neutral.surface.initial',
bgColor: 'page.surface.initial',
pxi: '2',
rounded: 'md',
position: 'absolute',
Expand Down
6 changes: 3 additions & 3 deletions docs/app/components/FeatureHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function FeatureHeader(
<section
className={vstack({
alignItems: 'flex-start',
bgColor: 'neutral.surface.100',
bgColor: 'page.surface.100',
h: 'full',
justify: 'center',
pxi: {
Expand Down Expand Up @@ -104,7 +104,7 @@ export default function FeatureHeader(
},
'&:is([data-category=touch-target])': {
cerberusGradient: 'purple',
color: 'neutral.surface.300',
color: 'page.surface.300',
},
'&:is([data-category=forms])': {
cerberusGradient: 'blue',
Expand All @@ -117,7 +117,7 @@ export default function FeatureHeader(
'&:is([data-category=utilities])': {
gradientFrom: 'action.bg.initial',
gradientTo: 'action.border.initial',
color: 'neutral.surface.200',
color: 'page.surface.200',
},
})}
>
Expand Down
4 changes: 2 additions & 2 deletions docs/app/components/MatchSideNavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function MatchSideNavItem(props: HeadingItem | LinkItem) {
return (
<p
className={css({
color: 'neutral.text.100',
color: 'page.text.100',
textStyle: 'h6',
textTransform: 'uppercase',
})}
Expand Down Expand Up @@ -76,7 +76,7 @@ export default function MatchSideNavItem(props: HeadingItem | LinkItem) {
bgGradient: 'to-r',
gradientFrom: 'warning.border.initial',
gradientTo: 'info.border.initial',
color: 'neutral.surface.initial',
color: 'page.surface.initial',
display: 'inline-block',
fontWeight: '600',
lineHeight: 'initial',
Expand Down
8 changes: 4 additions & 4 deletions docs/app/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const navLogoContent = (
rounded: 'sm',
textStyle: 'body-xl',
_active: {
color: 'neutral.text.initial',
color: 'page.text.initial',
},
_focusVisible: focusStates._focusVisible,
})}
Expand Down Expand Up @@ -115,11 +115,11 @@ export function Nav() {
<ul
className={hstack({
border: '1px solid',
borderColor: 'neutral.border.initial',
borderColor: 'page.border.initial',
gap: '0',
w: 'full',
'& li:nth-child(2)': {
borderColor: 'neutral.border.initial',
borderColor: 'page.border.initial',
borderLeft: '1px solid',
borderRight: '1px solid',
md: {
Expand Down Expand Up @@ -214,7 +214,7 @@ export function Nav() {
<li>
<p
className={css({
color: 'neutral.text.100',
color: 'page.text.100',
h: '1.5rem',
pt: '1px',
textStyle: 'body-xs',
Expand Down
4 changes: 2 additions & 2 deletions docs/app/components/OnThisPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ export default function OnThisPage() {
<div
className={css({
borderLeft: '1px solid',
borderColor: 'neutral.border.initial',
borderColor: 'page.border.initial',
h: 'fit-content',
paddingInlineStart: '6',
})}
>
<p
className={css({
color: 'neutral.text.100',
color: 'page.text.100',
textStyle: 'h6',
mb: '4',
})}
Expand Down
2 changes: 1 addition & 1 deletion docs/app/components/OverviewList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function OverviewList(props: OverviewListProps) {
<Show when={Boolean(props.intro)}>
<li
className={css({
color: 'neutral.text.100',
color: 'page.text.100',
pb: '4',
textStyle: 'body-xl',
})}
Expand Down
6 changes: 3 additions & 3 deletions docs/app/components/PageTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function PageTabs(props: TabProps) {
description={props.description}
className={css({
borderBottom: 'none',
bgColor: 'neutral.surface.100',
bgColor: 'page.surface.100',
justifyContent: 'space-evenly',
mb: '8',
overflowX: 'auto',
Expand Down Expand Up @@ -73,7 +73,7 @@ export function OverviewPageTabs(props: OverviewPageTabsProps) {
description={props.description}
className={css({
borderBottom: 'none',
bgColor: 'neutral.surface.100',
bgColor: 'page.surface.100',
justifyContent: 'space-evenly',
mb: '8',
overflowX: 'auto',
Expand Down Expand Up @@ -156,7 +156,7 @@ const tabOverrideStyles = css({
},
_hover: {
bgColor: 'action.navigation.hover',
color: 'neutral.surface.initial',
color: 'page.surface.initial',
},
_selected: {
bgGradient: 'to-bl',
Expand Down
6 changes: 3 additions & 3 deletions docs/app/components/PaletteSwatch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export function PaletteAvatar(props: PropsWithChildren<PaletteAvatar>) {
data-palette={props.palette}
className={circle({
border: '1px solid',
borderColor: 'neutral.border.initial',
borderColor: 'page.border.initial',
size: '4',
_neutralPalette: {
bgColor: 'neutral.surface.initial',
_pagePalette: {
bgColor: 'page.surface.initial',
},
_actionPalette: {
bgColor: 'action.bg.initial',
Expand Down
2 changes: 1 addition & 1 deletion docs/app/components/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default memo(function SideNav(props: PropsWithChildren<SideNavProps>) {
<div
className={css({
paddingInlineStart: '6',
borderColor: 'neutral.border.100',
borderColor: 'page.border.100',
borderRight: '1px solid',
})}
>
Expand Down
6 changes: 3 additions & 3 deletions docs/app/icons/[name]/components/IconDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function IconDetails(props: IconDetailsProps) {
columns: 12,
lg: {
borderBottom: '1px solid',
borderColor: 'neutral.border.initial',
borderColor: 'page.border.initial',
mb: '8',
pb: '8',
},
Expand All @@ -43,7 +43,7 @@ export default function IconDetails(props: IconDetailsProps) {
<div
className={vstack({
justify: 'center',
bgColor: 'neutral.surface.200',
bgColor: 'page.surface.200',
h: PREVIEW_SIZE,
rounded: 'md',
})}
Expand Down Expand Up @@ -72,7 +72,7 @@ export default function IconDetails(props: IconDetailsProps) {
{sizes.map((size) => (
<li
className={vstack({
bgColor: 'neutral.surface.200',
bgColor: 'page.surface.200',
h: `calc(${PREVIEW_SIZE} / 4)`,
justify: 'center',
rounded: 'md',
Expand Down
4 changes: 2 additions & 2 deletions docs/app/icons/all/components/icons-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ export default function IconsList(props: IconsListProps) {
<Link
className={vstack({
display: 'flex !important',
bgColor: 'neutral.surface.200',
bgColor: 'page.surface.200',
h: 'full',
justify: 'center !important',
w: 'full',
rounded: 'md',
transition: 'background-color, color 250ms ease-in-out',
_hover: {
bgColor: 'action.navigation.initial',
color: 'neutral.surface.100 !important',
color: 'page.surface.100 !important',
},
})}
href={`/icons/${name}`}
Expand Down
6 changes: 3 additions & 3 deletions docs/app/icons/all/components/searchable-icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function SearchableIcons() {
>
<div
className={css({
bgColor: 'neutral.surface.initial',
bgColor: 'page.surface.initial',
position: 'sticky',
py: '2',
top: '-1.75rem',
Expand All @@ -30,7 +30,7 @@ export default function SearchableIcons() {
bottom: '-1.8rem',
bgGradient: 'to-b',
content: '""',
gradientFrom: 'neutral.surface.initial',
gradientFrom: 'page.surface.initial',
gradientTo: 'transparent',
h: '8',
left: '0',
Expand All @@ -46,7 +46,7 @@ export default function SearchableIcons() {
<input
className={css({
border: '1px solid',
borderColor: 'neutral.border.initial',
borderColor: 'page.border.initial',
borderRadius: 'full',
p: '4',
w: 'full',
Expand Down
2 changes: 1 addition & 1 deletion docs/app/preset/animation/components/animation-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function PulsePreview() {
<div
className={square({
animation: 'pulse 2s infinite',
bgColor: 'neutral.surface.300',
bgColor: 'page.surface.300',
rounded: 'md',
size: '10rem',
})}
Expand Down
2 changes: 1 addition & 1 deletion docs/app/preset/animation/doc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function PulsePreview() {
<div
className={square({
animation: 'pulse 2s infinite',
bgColor: 'neutral.surface.300',
bgColor: 'page.surface.300',
rounded: 'md',
size: '10rem',
})}
Expand Down
Loading

0 comments on commit 71bb4fd

Please sign in to comment.