Or you could use the new MICL library, which implements the latest Material Design 3 Expressive specification. Simple to use, straightforward HTML and very little JavaScript. Supporting theme-switching and light- and dark-modes is easy, because the library uses design tokens to set colors, backgrounds, fonts, etc.