Skip to content

Commit 133153d

Browse files
committed
fix(kit): replace all instances of legacy faint, subtle tokens with outline token
1 parent 7634780 commit 133153d

File tree

17 files changed

+23
-23
lines changed

17 files changed

+23
-23
lines changed

packages/kit/src/accordion/AccordionItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type * as WPDS from "../theme";
55
import { AccordionItemProps as RadixAccordionItemProps } from "@radix-ui/react-accordion";
66

77
const StyledAccordionItem = styled(AccordionPrimitive.Item, {
8-
borderBottom: `1px solid ${theme.colors.subtle}`,
8+
borderBottom: `1px solid ${theme.colors.outline}`,
99
});
1010

1111
type AccordionItemProps = WPDS.VariantProps<typeof StyledAccordionItem> &

packages/kit/src/action-menu/ActionMenuContent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const NAME = "ActionMenuContent";
1414

1515
export const ContentStyles = {
1616
background: theme.colors.secondary,
17-
border: `solid 1px ${theme.colors.subtle}`,
17+
border: `solid 1px ${theme.colors.outline}`,
1818
borderRadius: theme.radii["050"],
1919
boxShadow: theme.shadows["300"],
2020
color: theme.colors.primary,

packages/kit/src/avatar/play.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default {
3535
const defaultArgs = {
3636
size: 200,
3737
css: {
38-
backgroundColor: theme.colors.subtle,
38+
backgroundColor: theme.colors.outline,
3939
},
4040
};
4141

packages/kit/src/button/Button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const Button = styled("button", {
4646
secondary: {
4747
background: theme.colors.secondary,
4848
color: theme.colors.onSecondary,
49-
border: "1px solid $subtle",
49+
border: "1px solid $outline",
5050
"@hover": {
5151
"&:hover": {
5252
background: theme.colors.gray400,

packages/kit/src/card/Card.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from "react";
22
import type * as WPDS from "../theme";
33
import { theme, styled } from "../theme";
4-
//
4+
55
const StyledCard = styled("div", {
66
padding: theme.space["150"],
7-
border: theme.colors.faint,
7+
border: theme.colors.outline,
88
borderRadius: theme.radii["012"],
99
borderWidth: "1px",
1010
borderStyle: "solid",

packages/kit/src/checkbox/Checkbox.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ const StyledCheckbox = styled(PrimitiveCheckbox.Root, {
3434
$$color: "$colors$onDisabled",
3535

3636
borderColor: "$colors$onDisabled",
37-
color: theme.colors.subtle,
37+
color: theme.colors.outline,
3838
},
3939

4040
"&[aria-checked='false']:not(:disabled)": {
41-
borderColor: "$colors$subtle",
41+
borderColor: "$colors$outline",
4242
},
4343

4444
variants: {
@@ -84,7 +84,7 @@ const StyledCheckbox = styled(PrimitiveCheckbox.Root, {
8484
css: {
8585
"&:not([aria-checked='false']):not(:disabled)": {
8686
$$backgroundColor: "$colors$secondary",
87-
$$color: "$colors$subtle",
87+
$$color: "$colors$outline",
8888
},
8989
},
9090
},
@@ -141,7 +141,7 @@ const StyledIndicator = styled(PrimitiveCheckbox.Indicator, {
141141
disabled: {
142142
true: {
143143
$$variantColor: "$colors$disabled",
144-
borderColor: "$colors$subtle",
144+
borderColor: "$colors$outline",
145145
color: "$colors$onDisabled",
146146
},
147147
},

packages/kit/src/divider/Divider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const StyledSeparator = Theme.styled(Separator.Root, {
1212
variants: {
1313
variant: {
1414
default: {
15-
backgroundColor: Theme.theme.colors.faint,
15+
backgroundColor: Theme.theme.colors.outline,
1616
},
1717
strong: {
1818
backgroundColor: Theme.theme.colors.primary,

packages/kit/src/input-search/InputSearchListHeading.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { Node } from "@react-types/shared";
99
import type * as WPDS from "../theme";
1010

1111
const StyledListItem = styled("li", {
12-
borderBlockStart: `1px solid ${theme.colors.faint}`,
12+
borderBlockStart: `1px solid ${theme.colors.outline}`,
1313
color: theme.colors.accessible,
1414
fontSize: theme.fontSizes["087"],
1515
marginBlockStart: "$050",

packages/kit/src/input-shared/InputShared.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const FloatingLabelStyles = {
99

1010
export const sharedInputStyles = {
1111
borderRadius: theme.radii["012"],
12-
borderColor: theme.colors.subtle,
12+
borderColor: theme.colors.outline,
1313
borderStyle: "solid",
1414
borderWidth: "1px",
1515
backgroundColor: theme.colors.secondary,

packages/kit/src/navigation-menu/NavigationMenuContent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const NAME = "NavigationMenuContent";
1313

1414
const StyledNavigationMenuContent = styled(NavigationMenuPrimitive.Content, {
1515
background: theme.colors.secondary,
16-
border: `solid 1px ${theme.colors.subtle}`,
16+
border: `solid 1px ${theme.colors.outline}`,
1717
borderRadius: theme.radii["012"],
1818
boxShadow: theme.shadows["200"],
1919
minWidth: "150px",

packages/kit/src/radio-group/RadioButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const ContainerCSS = Theme.css({
1313

1414
const StyledRadioButton = Theme.styled(RadioGroupPrimitive.Item, {
1515
backgroundColor: Theme.theme.colors.onPrimary,
16-
borderColor: Theme.theme.colors.subtle,
16+
borderColor: Theme.theme.colors.outline,
1717
borderStyle: "solid",
1818
borderRadius: "50%",
1919
borderWidth: "1px",

packages/kit/src/select/SelectGroup.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const SelectGroup = React.forwardRef<HTMLDivElement, SelectGroupProps>(
4848
{children}
4949
</StyledSelectGroup>
5050
<DividerContainer>
51-
<Divider css={{ backgroundColor: theme.colors.subtle }} />
51+
<Divider css={{ backgroundColor: theme.colors.outline }} />
5252
</DividerContainer>
5353
</>
5454
)

packages/kit/src/select/SelectItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const StyledItem = styled(SelectPrimitive.Item, {
2424
},
2525

2626
"&[data-highlighted]": {
27-
backgroundColor: theme.colors.faint,
27+
backgroundColor: theme.colors.outline,
2828
cursor: "pointer",
2929
},
3030
});

packages/kit/src/tabs/TabsList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { styled, theme } from "../theme";
88
const StyledTabsList = styled(TabsPrimitive.List, {
99
flexShrink: 0,
1010
display: "flex",
11-
boxShadow: `inset 0 -1px 0 0 ${theme.colors.faint}, 0 0 0 0 ${theme.colors.faint}`,
11+
boxShadow: `inset 0 -1px 0 0 ${theme.colors.outline}, 0 0 0 0 ${theme.colors.outline}`,
1212
gap: theme.space["075"],
1313
overflow: "auto",
1414
width: "fit-content",

packages/kit/src/tabs/TabsTrigger.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ const StyledTabsTrigger = styled(TabsPrimitive.Trigger, {
8484

8585
// styling when the element is disabled
8686
"&[disabled]": {
87-
color: theme.colors.subtle,
87+
color: theme.colors.outline,
8888
"&:hover::after": {
8989
...afterConsts,
90-
borderBottom: `1px solid ${theme.colors.faint}`,
90+
borderBottom: `1px solid ${theme.colors.outline}`,
9191
},
9292
},
9393
});

packages/kit/src/theme/play.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const StyledBox = styled("div", {
5050
fontWeight: theme.fontWeights.bold,
5151
},
5252
false: {
53-
backgroundColor: theme.colors.subtle,
53+
backgroundColor: theme.colors.outline,
5454
},
5555
},
5656
},

packages/kit/src/tooltip/TooltipContent.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const StyledContentWrapper = styled(TooltipPrimitive.Content, {
4040
borderRadius: theme.radii["012"],
4141
padding: theme.space["050"],
4242
color: theme.colors.primary,
43-
border: `solid 1px ${theme.colors.subtle}`,
43+
border: `solid 1px ${theme.colors.outline}`,
4444
backgroundColor: theme.colors.secondary,
4545
width: "144px", //set width as per design specs
4646
userSelect: "none",
@@ -120,7 +120,7 @@ export const TooltipContent = forwardRef<
120120
>
121121
{children}
122122
<StyledArrow
123-
stroke={theme.colors.subtle.value}
123+
stroke={theme.colors.outline.value}
124124
strokeWidth="2"
125125
strokeDasharray="0 30 28.284"
126126
/>

0 commit comments

Comments
 (0)