在hbuilderx中,提示presetUno is not a function #24 Closed 4 tasks done xiaoqi-web opened this issue Jun 5, 2024· 1 comment Closed 4 tasks done 在hbuilderx中,提示presetUno is not a function #24 xiaoqi-web opened this issue Jun 5, 2024· 1 comment Comments xiaoqi-web comme...
UnoCSS is designedNOTto be/have: A CSS preprocessor (e.g.@apply) - but you can useshortcuts. Tailwind's plugin system - but you can write custom rules in seconds and share them as presets! Disclaimer 🧪 This package is trying to explore the possibilities of what an atomic CSS framewo...
It's possible defineConfig could be offered in a separate @unocss/config package if there were a desire to support that, but it's not something I'm asking for as I'm perfectly happy without it. If we'd like the official advice to be to import things from unocss because it's easier...
Once I import uno.css in main.ts: import 'uno.css' An error happened: ERROR in ./_virtual_\__uno.css 4:14-362 Module not found: Error: Can't resolve '../_virtual_/__uno.css' in '/MyProject/_virtual_\' My deps: "@unocss/webpack": "^0.32.1...
:boolean|TagifyOptions/*** Enable remToPx preset and the options of it* Only works when `presets` is not specified* @default false*/remToPx?:boolean|RemToPxOptions/*** E rules shortcuts index // See index.test.ts `themeAnimate configuration` for usage.exportfunctionnomarlizeTheme(theme:...
However, when we allow overriding the specific shortcut, expected behavior is merged config will remove the default utlity and will use the user's utility. defaultShortcuts:{btn:'rounded px-4'}exportinterfacePresetOptions{shortcutOverrides?:Exclude<Preset['shortcuts'],undefined>}exportfunctionpreset...
Similar toRules, a dynamic shortcut is the combination of a matcher RegExp and a handler function. shortcuts:[// you could still have object style{btn:'py-2 px-4 font-semibold rounded-lg shadow-md',},// dynamic shortcuts[/^btn-(.*)$/,([,c])=>`bg-${c}-400 text-${c}-100...
A CSS preprocessor (e.g.@apply) - but you can useshortcuts. Tailwind's plugin system - but you can write custom rules in seconds and share them as presets! Disclaimer 🧪 This package is trying to explore the possibilities of what an atomic CSS framework can be.Not production-ready, ye...
Similar to Rules, a dynamic shortcut is the combination of a matcher RegExp and a handler function.shortcuts: [ // you could still have object style { btn: 'py-2 px-4 font-semibold rounded-lg shadow-md', }, // dynamic shortcuts [/^btn-(.*)$/, ([, c]) => `bg-${c}-...
Similar toRules, a dynamic shortcut is the combination of a matcher RegExp and a handler function. shortcuts:[// you could still have object style{btn:'py-2 px-4 font-semibold rounded-lg shadow-md',},// dynamic shortcuts[/^btn-(.*)$/,([,c])=>`bg-${c}-400 text-${c}-100...