Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bosens-China opened this issue Oct 1, 2024 · 1 comment

Comments

@bosens-China
Copy link

  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;
}
@murphy-wei
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants