Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/guide/presets.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ These are some of the most common and useful UnoCSS presets that I have summariz
| [presetWebFonts](https://unocss.dev/presets/web-fonts) | Use web fonts from Google Fonts, FontShare by simply providing the font names. | ❌ | ✅ |
| [presetTagify](https://unocss.dev/presets/tagify) | This enables the tagify mode for other presets. | ❌ | ✅ |
| [presetRemToPx](https://unocss.dev/presets/rem-to-px) | Converts rem to px for all utilities. | ❌ | ✅ |
| [presetScrollbar](https://github.com/unocss-community/unocss-preset-scrollbar) | Scrollbar for UnoCSS preset. | ❌ | ❌ |
| [presetMagicss](https://github.com/unpreset/unocss-preset-magicss) | Integrate magic animation into unocss preset. | ❌ | ❌ |

## Built-In Transformers
Expand Down
9 changes: 0 additions & 9 deletions docs/guide/started.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,6 @@ export interface UsefulOptions {
*/
remToPx?: boolean | RemToPxOptions

/**
* Enable scrollbar preset and the options of it
* Only works when `presets` is not specified
*
* @about [unocss-preset-scrollbar](https://github.com/action-hong/unocss-preset-scrollbar)
* @default false
*/
scrollbar?: boolean | PresetScrollbarDefaultOption

/**
* Enable magicss preset
*
Expand Down
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export default antfu({
'regexp/no-lazy-ends': 'off',
'regexp/no-useless-lazy': 'off',
},
ignores: ['docs/guide/postprocess.md', 'docs/guide/theme.md'],
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "0.9.1",
"private": true,
"packageManager": "pnpm@9.15.1",
"packageManager": "pnpm@9.15.4",
"scripts": {
"build": "pnpm -r -F=./packages/* run build",
"stub": "pnpm -r -F=./packages/* --parallel run stub",
Expand Down
10 changes: 0 additions & 10 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,6 @@ export interface UsefulOptions {
* @default false
*/
remToPx?: boolean | RemToPxOptions

/**
* Enable scrollbar preset and the options of it
* Only works when `presets` is not specified
*
* See: https://github.com/action-hong/unocss-preset-scrollbar
*
* @default false
*/
scrollbar?: boolean | PresetScrollbarDefaultOption
}
```

Expand Down
5 changes: 2 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"stub": "unbuild --stub"
},
"peerDependencies": {
"unocss": "^0.65.0"
"unocss": "^0.65.0 || ^65.4.0"
},
"peerDependenciesMeta": {
"unocss": {
Expand All @@ -68,7 +68,6 @@
"@unocss/transformer-variant-group": "catalog:",
"postcss": "catalog:",
"postcss-js": "catalog:",
"unocss-preset-magicss": "catalog:",
"unocss-preset-scrollbar": "catalog:"
"unocss-preset-magicss": "catalog:"
}
}
2 changes: 0 additions & 2 deletions packages/core/src/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const defaultOptions: UsefulOptions = {
typography: false,
tagify: false,
remToPx: false,
scrollbar: false,
magicss: false,

// transformers
Expand Down Expand Up @@ -104,7 +103,6 @@ async function resolvePresets(options: Required<UsefulOptions>) {
typography: import('@unocss/preset-typography').then(m => m.presetTypography),
tagify: import('@unocss/preset-tagify').then(m => m.presetTagify),
remToPx: import('@unocss/preset-rem-to-px').then(m => m.default),
scrollbar: import('unocss-preset-scrollbar').then(m => m.presetScrollbar),
magicss: import('unocss-preset-magicss').then(m => m.presetMagicss),
}

Expand Down
14 changes: 2 additions & 12 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import type { WebFontsOptions } from '@unocss/preset-web-fonts'
import type { CompileClassOptions } from '@unocss/transformer-compile-class'
import type { TransformerDirectivesOptions } from '@unocss/transformer-directives'
import type { TransformerVariantGroupOptions } from '@unocss/transformer-variant-group'
import type { PresetScrollbarDefaultOption } from 'unocss-preset-scrollbar'

type CustomStaticShortcut = [string | string[], StaticShortcut[1]] | [string | string[], StaticShortcut[1], StaticShortcut[2]]
export type CustomStaticShortcuts = CustomStaticShortcut[]
Expand Down Expand Up @@ -161,7 +160,7 @@ export interface UsefulOptions {
* Only works when `presets` is not specified
*
* @about [@unocss/preset-attributify](https://unocss.dev/presets/attributify)
* @default true
* @default false
*/
attributify?: boolean | AttributifyOptions

Expand All @@ -170,7 +169,7 @@ export interface UsefulOptions {
* Only works when `presets` is not specified
*
* @about [@unocss/preset-icons](https://unocss.dev/presets/icons)
* @default true
* @default false
*/
icons?: boolean | IconsOptions

Expand Down Expand Up @@ -212,15 +211,6 @@ export interface UsefulOptions {
*/
remToPx?: boolean | RemToPxOptions

/**
* Enable scrollbar preset and the options of it
* Only works when `presets` is not specified
*
* @about [unocss-preset-scrollbar](https://github.com/action-hong/unocss-preset-scrollbar)
* @default false
*/
scrollbar?: boolean | PresetScrollbarDefaultOption

/**
* Enable magicss preset
*
Expand Down
4 changes: 2 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "catalog:",
"typescript": "^5.7.2",
"unocss": "^0.65.3",
"typescript": "^5.7.3",
"unocss": "^65.4.0",
"unocss-preset-useful": "workspace:*",
"vite": "catalog:",
"vue-tsc": "catalog:"
Expand Down
Loading
Loading