Skip to content

预检

¥Preflights

你可以从配置中注入原始 CSS 作为预检。解决后的 theme 可用于自定义 CSS。

¥You can inject raw CSS as preflights from the configuration. The resolved theme is available to customize the CSS.

ts
preflights: [
  {
    getCSS: ({ theme }) => `

      * {
        color: ${theme.colors.gray?.[700] ?? '#333'};
        padding: 0;
        margin: 0;
      }
    `,
  },
]