Skip to content

Commit

Permalink
docs: update tokens to new names
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Jul 31, 2024
1 parent aafa6a5 commit 231ee9b
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/src/components/BlockQuote/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const StyledWrapper = styled.div`
border-left: 3px solid ${theme.orbit.paletteInkDark};
padding: ${theme.orbit.spaceMedium};
background: ${theme.orbit.paletteCloudLight};
border-radius: ${theme.orbit.borderRadiusNormal};
border-radius: ${theme.orbit.borderRadius100};
${StyledAnchor} + & {
margin-top: ${theme.orbit.spaceXXSmall} !important;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ComponentStatus/ComponentStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const StyledContainer = styled.div`
${({ theme }) => css`
position: relative;
border: 1px solid ${theme.orbit.paletteCloudNormal};
border-radius: ${theme.orbit.borderRadiusLarge};
border-radius: ${theme.orbit.borderRadius150};
overflow: hidden;
`};
`;
Expand Down
6 changes: 3 additions & 3 deletions docs/src/components/ComponentStructure/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const StyledTab = styled.button<{ active: boolean }>`
${({ theme, active }) => css`
padding: 14px ${theme.orbit.spaceMedium};
margin-bottom: -1px;
border-top-left-radius: ${theme.orbit.borderRadiusLarge};
border-top-right-radius: ${theme.orbit.borderRadiusLarge};
border-top-left-radius: ${theme.orbit.borderRadius150};
border-top-right-radius: ${theme.orbit.borderRadius150};
border: 1px solid transparent;
border-bottom: none;
${active &&
Expand All @@ -48,7 +48,7 @@ StyledTab.defaultProps = { theme: docsTheme };
const StyledPanel = styled.div`
${({ theme }) => css`
border: 1px solid ${theme.orbit.paletteCloudNormal};
border-radius: ${theme.orbit.borderRadiusLarge};
border-radius: ${theme.orbit.borderRadius150};
`};
`;
StyledPanel.defaultProps = { theme: docsTheme };
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/Container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const StyledContainer = styled.div`
justify-content: space-between;
gap: ${theme.orbit.spaceSmall};
padding: ${theme.orbit.spaceXLarge};
border-radius: ${theme.orbit.borderRadiusLarge};
border-radius: ${theme.orbit.borderRadius150};
background: ${theme.orbit.paletteCloudLight};
& > img {
max-width: 100%;
justify-self: center;
background: ${theme.orbit.paletteWhite};
border-radius: ${theme.orbit.borderRadiusLarge};
border-radius: ${theme.orbit.borderRadius150};
padding: ${theme.orbit.spaceXLarge};
}
`};
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/Guidelines/GuidelineImages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const GuidelineContainer = styled.div<{ type: "do" | "dont"; coloredBorder: bool
width: 100%;
${resolveBorders};
background: ${theme.orbit.paletteCloudLight};
border-radius: ${theme.orbit.borderRadiusNormal};
border-radius: ${theme.orbit.borderRadius100};
`}
`;

Expand All @@ -24,7 +24,7 @@ const ImageContainer = styled.div<ImageContainerProps>`
${({ theme }) => css`
width: 100%;
background: ${theme.orbit.paletteWhite};
border-radius: ${theme.orbit.borderRadiusNormal};
border-radius: ${theme.orbit.borderRadius100};
padding: ${theme.orbit.spaceXLarge};
`}
`;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/Guidelines/GuidelinesSideBySide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const StyledContainer = styled.div<{ type: "do" | "dont"; coloredBorder: boolean
${({ theme }) => css`
padding: ${theme.orbit.spaceMedium} ${theme.orbit.spaceLarge};
background: ${theme.orbit.paletteCloudLight};
border-radius: ${theme.orbit.borderRadiusNormal};
border-radius: ${theme.orbit.borderRadius100};
width: 100%;
${resolveBorders};
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/Guidelines/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface ImageContainerProps extends GuidelineType {
const StyledComponent = styled.div<GuidelineComponent>`
${({ theme }) => css`
background: ${theme.orbit.paletteCloudLight};
border-radius: ${theme.orbit.borderRadiusNormal};
border-radius: ${theme.orbit.borderRadius100};
padding: ${theme.orbit.spaceMedium};
${resolveBorders};
p + & {
Expand All @@ -52,7 +52,7 @@ const StyledComponent = styled.div<GuidelineComponent>`
const StyledImageContainer = styled.div<ImageContainerProps>`
${({ theme, type }) => css`
background: ${theme.orbit.paletteWhite};
border-radius: ${theme.orbit.borderRadiusNormal};
border-radius: ${theme.orbit.borderRadius100};
border-top: 3px solid
${type === "do" ? theme.orbit.paletteGreenNormal : theme.orbit.paletteRedNormal};
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/ImagesDownloadList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const StyledAnchor = styled.a`
padding: ${theme.orbit.paddingButtonSmallWithLeftIcon};
padding-top: ${theme.orbit.spaceXXSmall};
height: ${theme.orbit.heightButtonSmall};
border-radius: ${theme.orbit.borderRadiusNormal};
border-radius: ${theme.orbit.borderRadius100};
transition: all ${theme.orbit.durationFast} ease-in;
&:hover,
Expand All @@ -42,7 +42,7 @@ const ImageWrap = styled.div<ImageWrapProps>`
${({ theme, width }) => css`
padding: ${theme.orbit.spaceSmall};
border: 1px solid ${theme.orbit.borderColorCard};
border-radius: ${theme.orbit.borderRadiusNormal};
border-radius: ${theme.orbit.borderRadius100};
margin-top: ${theme.orbit.spaceMedium};
width: ${width};
margin-right: 2%;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/Palette/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const isLight = (hex: string) => {
export const resolveBorders =
({ order, isFull, isMiddle, isLeft, isFullBottom, isRight, isExpanded }: BorderProps) =>
({ theme }) => {
const radius = theme.orbit.borderRadiusLarge;
const radius = theme.orbit.borderRadius150;

if (order === "only") {
if (isExpanded) {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/Search/SearchButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const StyledIcon = styled.span<{ type: Type }>`
background: ${type === "primary"
? theme.orbit.paletteProductLightActive
: theme.orbit.paletteCloudNormal};
border-radius: ${theme.orbit.borderRadiusNormal};
border-radius: ${theme.orbit.borderRadius100};
`}
`;

Expand Down

0 comments on commit 231ee9b

Please sign in to comment.