# unocss-onmax > Use when writing UnoCSS with presetOnmax workflow - covers attribute mode patterns, fluid spacing (f- prefix), scale-to-pixel (1px base), custom variants (hocus, reka-*, data-state), nimiq-css design system (nq-* utilities), and Reka UI integration. Apply when editing .vue files with UnoCSS attributes or configuring uno.config.ts. - Author: onmax - Repository: onmax/claude-config - Version: 20260122074021 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/onmax/claude-config - Web: https://mule.run/skillshub/@@onmax/claude-config~unocss-onmax:20260122074021 --- --- name: unocss-onmax description: Use when writing UnoCSS with presetOnmax workflow - covers attribute mode patterns, fluid spacing (f- prefix), scale-to-pixel (1px base), custom variants (hocus, reka-*, data-state), nimiq-css design system (nq-* utilities), and Reka UI integration. Apply when editing .vue files with UnoCSS attributes or configuring uno.config.ts. --- # UnoCSS with presetOnmax Workflow Custom UnoCSS workflow using `unocss-preset-onmax` with fluid sizing, 1px-base spacing, and attributify mode. ## Core Concepts | Concept | Pattern | Example | |---------|---------|---------| | **Attribute mode** | `attr="~ value"` | `flex="~ col gap-8"` | | **Fluid spacing** | `f-{util}-{size}` | `f-px-md`, `f-pt-2xl` | | **Scale-to-px** | 1rem = 4px | `p-16` = 16px | | **hocus** | hover + focus | `bg="neutral hocus:blue"` | | **size-X** | width + height | `size-40` = 40×40px | ## When to Load Sub-Files **Load based on task:** | Task | File | |------|------| | Configuring uno.config.ts | [preset-onmax.md](preset-onmax.md) | | Writing component styles | [attributify.md](attributify.md) | | Responsive typography/spacing | [fluid-sizing.md](fluid-sizing.md) | | State selectors, dark mode | [variants.md](variants.md) | | nimiq-css utilities (nq-*) | [nimiq-css.md](nimiq-css.md) | **DO NOT load all files.** Each ~400-800 tokens. Load only what's needed. ## Quick Reference ### Attribute Mode Syntax ```vue