Skip to content

[unocss] unmatched utility "scrollbar-width-auto" in shortcut "scrollbar" [unocss] unmatched utility "scrollbar-color-[var(--scrollbar-thumb)_var(--scrollbar-track)]" in shortcut "scrollbar" #16

Description

@bosens-China
  1. 按照文档安装依赖
  2. uno.config.ts
import {
  defineConfig,
  presetUno,
  presetIcons,
  transformerDirectives,
} from 'unocss';
import { presetScrollbar } from 'unocss-preset-scrollbar';

export default defineConfig({
  content: {
    filesystem: ['./src/**/*.{html,js,ts,jsx,tsx}'],
  },
  presets: [presetUno(), presetIcons(), presetScrollbar()],
  transformers: [transformerDirectives()],
});
  1. global.less
html,
body {
  @apply scrollbar scrollbar-rounded;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions