Skip to content

Commit 27a1f1a

Browse files
authored
move switch to design tokens (#1866)
1 parent d2232b0 commit 27a1f1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/switch/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ class Switch extends Component<SwitchProps> {
171171
function createStyles({
172172
width = DEFAULT_WIDTH,
173173
height = DEFAULT_HEIGHT,
174-
onColor = Colors.primary,
175-
offColor = Colors.getColorTint(Colors.primary, 60),
176-
disabledColor = Colors.grey70,
174+
onColor = Colors.$backgroundPrimaryHeavy,
175+
offColor = Colors.$backgroundNeutralIdle,
176+
disabledColor = Colors.$backgroundDisabled,
177177
thumbColor = Colors.white,
178178
thumbSize = DEFAULT_THUMB_SIZE
179179
}: SwitchProps) {

0 commit comments

Comments
 (0)