Applies a theme to a DOM element ― by default <html>, theming every table on the page
(including tables inside portals and ones using the *Core components, which render no
outer element of their own to carry the variables). Variables the theme doesn't specify
are removed from the element, so the theme replaces any previously-applied one.
This basically does Object.assign(document.documentElement.style, themeToCssVars(theme))
except that Object.assign doesn't work on that style, so setProperty is used instead.
Applies a theme to a DOM element ― by default
<html>, theming every table on the page (including tables inside portals and ones using the*Corecomponents, which render no outer element of their own to carry the variables). Variables the theme doesn't specify are removed from the element, so the theme replaces any previously-applied one.This basically does
Object.assign(document.documentElement.style, themeToCssVars(theme))except thatObject.assigndoesn't work on thatstyle, sosetPropertyis used instead.