Nova 3 changes how you style and how you lay out a page. Version 2 styled through attributes that every component accepted, and shipped components for layout and text. Version 3 adopts Tailwind CSS: you write utility classes on plain elements, and Nova's components keep to what they are for.
What changed#
- Styling moved to Tailwind. The attributes every component inherited from BaseComponent, such as
BorderRadius, are gone. Each has a Tailwind or Nova utility class. BaseComponent maps them one by one. - Layout and text components were removed. Block, Container, Layout, Panel, Heading and Text are replaced by plain elements with utility classes. Autocomplete was removed as well.
- Component properties were renamed or removed. Buttons, fields, alerts and other components changed their properties. Each one has a note under Changed in v3, and the same note is linked from the component's own page.
- Stack is deprecated. It still ships in version 3. Stack to Tailwind replaces each of its properties with a flex utility.
A way through#
- Set up Tailwind with the Nova plugin, as described in Installation.
- Replace the styling attributes with utility classes, using the BaseComponent mapping.
- Replace the removed components. Each page under Removed in v3 shows the element and the classes that take its place.
- Update the components you use, one at a time, with the notes under Changed in v3.
If your application already runs on version 3, Changes within 3.x lists what behaves differently since then.