Thank you for reaching out!
In the Material 3 theme, both light and dark modes are included in a single CSS file, eliminating the need to import separate CSS files for each theme. This allows for an efficient way to switch between themes using only the component-relevant styles.
To enable the dark mode in the application, appending the e-dark-mode class to the body section of the application will automatically apply the dark theme. This method provides seamless theme switching without requiring additional CSS imports or full theme files.
Please refer the below documentation and let us know if you need further assistance.
We have attached the sample for your reference.
Attachment:
reactthemeswitchsample_4c02c510.zip