Preset Manyone UI
UnoCSS preset with utility classes for Manyone UI.
Installation
Since our @manyone packages are private on npmjs you must authenticate to install it with npm login
.
If you’re not part of the Manyone organisation on npmjs.com, reach out to Caroline, Patrik or Lau.
Configuration
UnoCSS Preset
To use the Manyone UI UnoCSS preset, you need to import it in your uno.config.ts
file:
If you need the breakpoints as a ts const they can be imported as well:
Fonts
To get the fonts you must import the .css
that register the @font-faces used in the UnoCSS preset:
Usage
This preset provide a set of utility classes for Manyone UI.
For example, you can use the following classes to style your text:
UnoCSS Rules
Rules included covers:
- Typography
- Colors
- Spacing (coming soon)
For all rules and shortcuts included in this preset, please refer directly to the source code.
Typography
text-headline-lg
text-headline-md
text-headline-sm
text-body-lg
text-body-md
text-body-sm
See more examples here.
Colors
Colors can either be used via the set theme colors in utility classes such as bg
or text
:
Light mode
bg-many-fg-secondary
text-many-fg-primary
bg-many-fg-stroke
text-many-fg-primary
Dark mode
bg-many-fg-secondary
text-many-fg-primary
bg-many-fg-stroke
text-many-fg-primary
Or you can use the CSS variables directly:
They can also be imported in js/ts files:
To get an overview of all variables and theme colors check the source code.
Spacing
Might be included in the future.