Typography
HTML defines text structure; CSS classes define its appearance. Fonts and sizes come from the theme.
01 / Getting started
Vue 3 is the only required peer dependency. Install the package, import styles and select a theme. Use WlConfig for shared pt, locale and animation settings. Built-in labels are English by default; configure locale: wlLocaleRu for Russian.
pnpm add legato-ui vueimport { createApp } from "vue";
import "legato-ui/styles/reset.css";
import "legato-ui/styles/base.css";
import "legato-ui/styles/primitives.css";
import "legato-ui/themes/white.css";
import App from "./App.vue";
document.documentElement.dataset.wlTheme = "white";
createApp(App).mount("#app");The example imports Classic. For Legato, Legato Dark, Classic Dark, Newspaper, Gavia or Gavia Dark, import the matching CSS from legato-ui/themes/ and set data-wl-theme on the root element. Both Legato themes and both Gavia themes can use the same font stylesheet legato-ui/styles/fonts/legato.css.
Typography, layout and interface content. Rules and code examples.
HTML defines text structure; CSS classes define its appearance. Fonts and sizes come from the theme.
Set page width, columns, gap and breakpoints. Use library CSS classes and customise layout details with local CSS.
Choose what drives the layout: window width, container width or component behaviour. Below are four configurable examples.
Labels and messages explain what is happening and what to do next. Colour and styling support the text.
02 / Components
The catalogue contains 60 components. Each includes a configurable example, additional scenarios, API and accessibility guidance. Props, defaults, events, slots and v-model come from the manifest.
Examples, API and accessibility
Variants, sizes, disabled/loading, pt and accessibility guidance. The Vue SFC code matches the example on the page.
03 / Appearance
Tokens follow foundation → semantic → component layers and use the namespace --wl-*. Import theme CSS and select it through data-wl-theme. Seven themes share the same component DOM and behaviour.
04 / Icons
Pass to name an icon name from the built-in SVG catalogue. To add icons, use icons:sync and icons:check.
05 / Updating
Wl* exports, wl-* classes and --wl-* tokens keep their names. Before updating, read the notes for the target version and check your application.