unocss-preset-primitives
unocss-preset-primitives copied to clipboard
Utilities and variants for styling headlessui, radix-ui, kobalte state or custom one ;)
```ts``` Type 'Preset' is not assignable to type 'PresetOrFactory | PresetOrFactory[]'. Type 'import("C:/Users/86159/Desktop/test/makeui/node_modules/.pnpm/@[email protected]/node_modules/@unocss/core/dist/index").Preset' is not assignable to type 'import("C:/Users/86159/Desktop/test/makeui/node_modules/.pnpm/@[email protected]/node_modules/@unocss/core/dist/index").Preset'. Types of property 'rules' are incompatible. Type 'import("C:/Users/86159/Desktop/test/makeui/node_modules/.pnpm/@[email protected]/node_modules/@unocss/core/dist/index").Rule[] | undefined' is...
When using the class `ui-not-invalid:bg-red` for example the following css is generated: ```css .ui-not-invalid\:bg-red[data]:not([data-invalid]), :where([data]:not([data-invalid])) .ui-not-invalid\:bg-red:not(data) { --un-bg-opacity:1; background-color:rgb(248 113 113 / var(--un-bg-opacity)); } ``` For `ui-not-selected:bg-red` it looks like...
I am using Kobalte and want to style a select item when it is highlighted differently than when it is selected, but therefore I have to chain two variants: ```tsx...
I was interested what this preset does and so I looked at the source code. I saw that there was no autocomplete so I added it. Currently only tested in...
i wanna give you money!!
I installed the most recent versions of `unocss` (0.62.2) and `unocss-preset-primitives` (0.0.2-beta.1), but when applying the plugin, the typescript gets mad:  My project typescript version is at 5.3.3. ---...
The variants `ui-expanded` of Kobalte `ContextMenu.Sub` will follow the `ui-expanded` of `ContextMenu`, rather than being independent of each other. I tried to modify the plugin like this, which can fix...