全局样式
从主题添加全局样式。
使用 useRootStyles 标志并在您的主题中键入 styles.root 以设置任何元素的与主题相关的样式。
theme.jsconst theme = {useRootStyles: true,styles: {// Applies to <html />.root: {m: 0,p: 0,"*": {boxSizing: "border-box",},// Applies to <body />body: {fontSize: "sm",},},},}
useRootStyles: true 将 styles.root 应用到 html。
useRootStyles: false 将 styles.root 应用到 body。