Skip to content

การตั้งค่า Config ใน UnoCSS

uno.config.ts
ts
import { defineConfig, presetWind } from "unocss";

export default defineConfig({
  presets: [
    presetWind(),
  ],
  theme: {
    colors: {
      brand: "#1e40af",
    },
  },
  rules: [
    ["custom-rule", { color: "purple" }],
  ],
});