Migrate to Mantine v8 and Design Changes (#961)

* mantine v8 migration

* various design changes and improvements
This commit is contained in:
Jeff 2025-06-24 00:04:36 -07:00 committed by GitHub
parent bea55d48a8
commit c1330d92b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
473 changed files with 12469 additions and 11607 deletions

View file

@ -0,0 +1,16 @@
.thumb {
background: var(--theme-colors-foreground);
}
.track {
background-color: var(--theme-colors-surface);
border: 1px solid var(--theme-colors-border);
input:checked + & {
background-color: var(--theme-colors-primary-filled);
& > .thumb {
background: var(--theme-colors-primary-contrast);
}
}
}

View file

@ -0,0 +1,23 @@
import type { SwitchProps as MantineSwitchProps } from '@mantine/core';
import { Switch as MantineSwitch } from '@mantine/core';
import styles from './switch.module.css';
type SwitchProps = MantineSwitchProps;
export const Switch = ({ classNames, ...props }: SwitchProps) => {
return (
<MantineSwitch
classNames={{
input: styles.input,
root: styles.root,
thumb: styles.thumb,
track: styles.track,
...classNames,
}}
withThumbIndicator={false}
{...props}
/>
);
};