Skip to content

Commit

Permalink
Demo: fix sites theme color palettes (#2965)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrgulbis authored Dec 19, 2024
1 parent 20f6341 commit 30c217f
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions demo/site-pages/src/components/Breadcrumbs.sc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ export const Container = styled.div`
`;

export const Link = styled.a`
color: ${({ theme }) => theme.colors.n400};
color: ${({ theme }) => theme.palette.primary.main};
text-decoration: none;
font-size: 14px;
:last-child {
font-weight: 500;
color: ${({ theme }) => theme.colors.black};
color: ${({ theme }) => theme.palette.text.primary};
}
`;

Expand All @@ -22,5 +22,5 @@ export const Divider = styled.span`
width: 15px;
height: 1px;
margin: 0 10px 5px 10px;
background-color: ${({ theme }) => theme.colors.n200};
background-color: ${({ theme }) => theme.palette.primary.main};
`;
2 changes: 1 addition & 1 deletion demo/site-pages/src/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const TopLevelLinkContainer = styled.li`
const Link = styled.a<{ $active: boolean }>`
text-decoration: none;
padding: 5px 10px;
color: ${({ $active, theme }) => ($active ? theme.colors.primary : theme.colors.black)};
color: ${({ $active, theme }) => ($active ? theme.palette.primary.main : theme.palette.text.primary)};
&:hover {
text-decoration: underline;
Expand Down
2 changes: 1 addition & 1 deletion demo/site-pages/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const GlobalStyle = createGlobalStyle`
body {
margin: 0;
-webkit-text-size-adjust: none;
color: ${({ theme }) => theme.colors.textPrimary};
color: ${({ theme }) => theme.palette.text.primary};
font-family: ${({ theme }) => theme.fonts.primary};
font-weight: 400;
}
Expand Down
6 changes: 3 additions & 3 deletions demo/site-pages/src/topNavigation/TopNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const TopLevelNavigation = styled.ol`
list-style-type: none;
padding: 0;
margin: 0;
background-color: ${({ theme }) => theme.colors.primary};
background-color: ${({ theme }) => theme.palette.primary.main};
`;

const SubLevelNavigation = styled.ol`
Expand All @@ -57,7 +57,7 @@ const SubLevelNavigation = styled.ol`
min-width: 100px;
list-style-type: none;
padding: 5px;
background-color: ${({ theme }) => theme.colors.primary};
background-color: ${({ theme }) => theme.palette.primary.main};
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
`;

Expand All @@ -76,7 +76,7 @@ const TopLevelLinkContainer = styled.li`
const Link = styled.a<{ $active: boolean }>`
text-decoration: none;
padding: 5px 10px;
color: ${({ $active, theme }) => ($active ? theme.colors.white : theme.colors.n200)};
color: ${({ $active, theme }) => ($active ? theme.palette.text.inverted : theme.palette.primary.main)};
font-size: 12px;
&:hover {
Expand Down
4 changes: 2 additions & 2 deletions demo/site/src/common/blocks/TextLinkBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const TextLinkBlock = withPreview(
);

const Link = styled(LinkBlock)`
color: ${({ theme }) => theme.colors.black};
color: ${({ theme }) => theme.palette.text.primary};
&:hover {
color: ${({ theme }) => theme.colors.primary};
color: ${({ theme }) => theme.palette.primary.main};
}
`;
6 changes: 3 additions & 3 deletions demo/site/src/common/components/Breadcrumbs.sc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ export const Container = styled.div`
`;

export const Link = styled.a`
color: ${({ theme }) => theme.colors.n400};
color: ${({ theme }) => theme.palette.primary.main};
text-decoration: none;
font-size: 14px;
:last-child {
font-weight: 500;
color: ${({ theme }) => theme.colors.black};
color: ${({ theme }) => theme.palette.text.primary};
}
`;

Expand All @@ -22,7 +22,7 @@ export const Divider = styled.span`
width: 15px;
height: 1px;
margin: 0 10px 5px 10px;
background-color: ${({ theme }) => theme.colors.n200};
background-color: ${({ theme }) => theme.palette.primary.light};
`;

export const GridRoot = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion demo/site/src/common/helpers/CookiePlaceholders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ const Root = styled.div`
justify-content: center;
text-align: center;
align-items: center;
background-color: ${({ theme }) => theme.colors.n200};
background-color: ${({ theme }) => theme.palette.primary.light};
`;
4 changes: 2 additions & 2 deletions demo/site/src/layout/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ const TopLevelLinkContainer = styled.li`
const Link = styled(PageLink)`
text-decoration: none;
padding: 5px 10px;
color: ${({ theme }) => theme.colors.black};
color: ${({ theme }) => theme.palette.text.primary};
&:hover {
text-decoration: underline;
}
&.active {
color: ${({ theme }) => theme.colors.primary};
color: ${({ theme }) => theme.palette.primary.main};
}
`;

Expand Down
8 changes: 4 additions & 4 deletions demo/site/src/layout/topNavigation/TopNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const TopLevelNavigation = styled.ol`
list-style-type: none;
padding: 0;
margin: 0;
background-color: ${({ theme }) => theme.colors.primary};
background-color: ${({ theme }) => theme.palette.primary.main};
`;

const SubLevelNavigation = styled.ol`
Expand All @@ -47,7 +47,7 @@ const SubLevelNavigation = styled.ol`
min-width: 100px;
list-style-type: none;
padding: 5px;
background-color: ${({ theme }) => theme.colors.primary};
background-color: ${({ theme }) => theme.palette.primary.main};
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
`;

Expand All @@ -66,14 +66,14 @@ const TopLevelLinkContainer = styled.li`
const Link = styled(PageLink)`
text-decoration: none;
padding: 5px 10px;
color: ${({ theme }) => theme.colors.n200};
color: ${({ theme }) => theme.palette.text.primary};
font-size: 12px;
&:hover {
text-decoration: underline;
}
&.active {
color: ${({ theme }) => theme.colors.white};
color: ${({ theme }) => theme.palette.text.inverted};
}
`;
4 changes: 2 additions & 2 deletions demo/site/src/news/NewsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const Card = styled(Link)`
padding: 5px;
color: black;
text-decoration: none;
border: 1px solid ${({ theme }) => theme.colors.lightGray};
border: 1px solid ${({ theme }) => theme.palette.gray[200]};
&:hover {
border-color: ${({ theme }) => theme.colors.primary};
border-color: ${({ theme }) => theme.palette.primary.main};
}
`;

0 comments on commit 30c217f

Please sign in to comment.