Upgrade Guide
This page contains a detailed list of breaking changes and the steps required to upgrade your application to Vuetify 4
Quick Start with Vuetify MCP
The fastest way to check your project for breaking changes is with Vuetify MCP. To get started, run the following in your terminal:
# Claude Code
claude mcp add --transport http vuetify-mcp https://mcp.vuetifyjs.com/mcp
# Configure for hosted remote server
npx -y @vuetify/mcp config --remote
# Or configure for local installation
npx -y @vuetify/mcp config
Once the MCP server is set up and loaded you will gain access to new tools such as:
get_upgrade_guide: Get a list of all breaking changes in the upgrade guide.get_v4_breaking_changes: Get a list of all breaking changes in Vuetify 4.
Now, prompt your agent with the following:
Using the vuetify-mcp server, scan this project for Vuetify 3 to 4 breaking changes. List each issue found with the file, line number, and recommended fix.
This will automatically analyze your codebase and provide a tailored list of changes you need to make.
If you have any questions about the upgrade process, come visit us at community.vuetifyjs.com.
Multi-step migration
Several breaking changes in Vuetify 4 can be temporarily reverted by pasting short CSS or configuration snippets — notably CSS reset, typography, elevation, and grid. This means you can migrate incrementally: restore the legacy behavior first, then update each area at your own pace.
Even though these migrations mostly come down to adjusting CSS classes, manually reviewing every affected template can be time-consuming without automated visual regression tests. For large projects (typically over 200 components), we recommend scanning your codebase for relevant usage before starting:
- HTML elements —
<h1>through<h6>(affected by CSS reset) - Grid usage —
<v-row>and<v-col>, with specific focus on ad-hoc spacing adjustments (i.e. classes likemx-0,pa-0) - Grid attributes —
dense,align,justify,order,align-self(affected by grid changes) - Shadows —
elevation-*classes andelevationattributes or CSS overrides (affected by elevation changes) - CSS classes —
text-h1…text-h6,text-subtitle-1,text-body-2,text-caption,text-overline,elevation-*,offset-*(affected by typography)
Identify the areas with the highest usage first, apply the corresponding compatibility snippets, and then schedule the full class-by-class migration as a follow-up.
Sections tagged with
Styles
Style entry points
There are now pre-compiled entry points for the most common style changes. If you have a Sass file that only sets $color-pack: false or $utilities: false you can replace it with import 'vuetify/styles/core'. See Style entry points for more information.
CSS reset
The CSS reset has been mostly removed, with style normalisation being moved to individual components instead. You can inspect the exact changes to learn more. Here is the high level overview:
- global
* { padding: 0; margin: 0; }is gone - no longer resets all elements <button>,<input>,<select>have their browser-native borders and background colors.
If you notice browser styles adding unnecessary spaces and impact text size, it is recommended to assess the scope of visual regression and selectively apply spacing resets:
@layer vuetify-core.reset {
ul, ol, figure, details, summary {
padding: 0;
margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
margin: 0;
}
}
Restoring most of the previous reset styles would be heavy-handed, but will get the job done as well.
@layer vuetify-core.reset {
* { padding: 0; margin: 0; }
a:active, a:hover { outline-width: 0; }
code, kbd, pre, samp { font-family: monospace; }
pre { font-size: 1em; }
small { font-size: 80%; }
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top: -0.5em; }
textarea { resize: vertical; }
button,
input,
select,
textarea {
background-color: transparent;
border-style: none;
}
select {
-moz-appearance: none;
-webkit-appearance: none;
}
legend {
display: table;
max-width: 100%;
white-space: normal;
}
}
Applying without a build step
The snippets above are plain CSS and do not require Sass compiler — drop them into any stylesheet, or inline them within <style> block when using the CDN build:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vuetify@4/dist/vuetify.css">
<style>
@layer vuetify-core.reset {
ul, ol, figure, details, summary { padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
}
</style>
Place the <style> block after Vuetify’s stylesheet so the layer order declared in vuetify.css takes effect first. Subsequent @layer vuetify-core.reset { … } rules append to the existing layer and won’t override component styles.
Layers
Cascade layers are now being used everywhere. If you have other styles that are not using @layer they will now always take priority over vuetify.
If you were already using $layers: true in Vuetify 3, there are now five top-level layers instead of one.
- @layer base, vuetify, overrides;
+ @layer base, vuetify-core, vuetify-components, vuetify-overrides, vuetify-utilities, vuetify-final, overrides;
This can be used to easily interleave your own layers with ours:
@layer vuetify-core, base, vuetify-components, vuetify-overrides, overrides, vuetify-utilities, utilities, vuetify-final;
If you had any usages of @layer vuetify.* in your styles they should be replaced with your own layer name with an appropriate declaration order.
TypographyCodemod Available
The typography system has been updated from Material Design 2 to Material Design 3. The following replacements will have some minor font size differences:
| MD2 (Legacy) | MD3 (New) |
|---|---|
text-h1 | text-display-large (96px → 60px) |
text-h2 | text-display-large |
text-h3 | text-display-medium |
text-h4 | text-headline-large |
text-h5 | text-headline-small |
text-h6 | text-title-large |
text-subtitle-1 | text-body-large |
text-subtitle-2 | text-title-small |
text-body-1 | text-body-large |
text-body-2 | text-body-medium |
text-button | text-label-large (No uppercase) |
text-caption | text-body-small |
text-overline | text-label-medium (No uppercase) |
For detailed mapping and migration instructions, see Typography Migration.
Breakpoints
The default breakpoints have been reduced to better match modern device sizes:
| Breakpoint | Change |
|---|---|
| xs | 0 (unchanged) |
| sm | 600px (unchanged) |
| md | |
| lg | |
| xl | |
| xxl |
One of the components specifically impacted by those changes is VContainer. See the detailed information about those changes below.
v3 breakpoints can be restored with the following configuration:
export default createVuetify({
display: {
thresholds: {
md: 960,
lg: 1280,
xl: 1920,
xxl: 2560,
},
},
})
@use 'vuetify/settings' with (
$grid-breakpoints: (
'md': 960px,
'lg': 1280px,
'xl': 1920px,
'xxl': 2560px,
),
);
ElevationCodemod Available
Elevation classes (shadows) have been updated to Material Design 3 which uses 6 levels (0-5) instead of 25 (0-24).
| MD3 elevation levels |
|---|
elevation-0 (0dp) |
elevation-1 (1dp) |
elevation-2 (3dp) |
elevation-3 (6dp) |
elevation-4 (8dp) |
elevation-5 (12dp) |
* “dp” (density-independent pixels) is a relative unit from Material Design
See Elevation migration for details and tips to restore legacy MD2 levels if needed.
Themes
The default theme has been changed from light to system. This means that the default theme will now be the same as the user’s system preference. You can change this by setting the defaultTheme theme option:
export default createVuetify({
+ theme: {
+ defaultTheme: 'light',
+ },
})
Theme colors now support transparency. rgb(var(--v-theme-color)) will continue to work the same as before, but rgba(var(--v-theme-color), 0.8) should be changed to either color-mix(in srgb, rgb(var(--v-theme-color)) 80%, transparent) or rgb(from rgb(var(--v-theme-color)) / 0.8) when used with a transparent theme color.
Components
VBtn display
In Vuetify 3, VField’s layout was changed from display: flex to display: grid to better handle its internal elements. However, the grid implementation had limitations with gap control, so in Vuetify 4 we’ve reverted back to using display: flex.
The $button-stacked-icon-margin Sass variable has been removed and replaced with $button-stacked-gap. This change allows for more consistent and flexible spacing between elements within the field. If you modified this value, update its variable target:
@use 'vuetify/settings' with (
- $button-stacked-icon-margin: 8px,
+ $button-stacked-gap,
);
VBtn text-transform
The default text-transform of uppercase has been removed. To restore the previous behavior, set the text-transform prop to uppercase.
- Set it in the Sass variables for buttons:
@use 'vuetify/settings' with (
$button-text-transform: 'uppercase',
)
- Set it as a global default:
import { createVuetify } from 'vuetify'
const vuetify = createVuetify({
defaults: {
VBtn: {
class: 'text-uppercase',
// or if you are using $utilities: false
style: 'text-transform: uppercase;',
},
},
})
- Manually type uppercase letters:
- <v-btn>button</v-btn>
+ <v-btn>BUTTON</v-btn>
VBadge
The $badge-dot-border-radius Sass variable has been changed from 4.5px to 50%. Both values produce the same result for the default dot size. If your app increases dot size and prefer them square-ish, you might want to undo the change.
@use 'vuetify/settings' with (
- $badge-dot-border-radius: 4.5px,
+ $badge-dot-border-radius: 50%,
);
VContainer
Container component won’t center the content vertically when paired with fill-height. If you depend on this behavior, you can supplement the missing styles with utility classes:
<v-container
- class="fill-height"
+ class="fill-height d-flex align-center flex-wrap"
/>
Max widths
The calculation for $container-max-widths has changed to round values down to the nearest 100px for more predictable sizing. With the default breakpoints, this results in the following container widths:
| Breakpoint | Change |
|---|---|
| md | |
| lg | |
| xl | |
| xxl |
VCounter
VCounter is used to display the counter hint under VTextField, VTextarea and VFieldInput. The $counter-color and color was replaced in favor of opacity. If you modified this value, move it to target CSS class directly:
.v-counter {
opacity: 1;
color: /* your $counter-color */;
}
VDatePicker
multiple="range" emits only the start and end dates instead of everything in between. Use something like date-fns’ eachDayOfInterval if you need all dates in the range.
- ['2023-09-28', '2023-09-29', '2023-09-30', '2023-10-01', '2023-10-02']
+ ['2023-09-28', '2023-10-02']
VFileInput
Removed the $file-input-details-padding-inline Sass variable.
@use 'vuetify/settings' with (
- $file-input-details-padding-inline: <value>
+ $input-details-padding-inline: <value>
);
VFormCodemod Available
Slot variables are no longer refs, read-only values passed to slots are now unwrapped:
<VForm>
<template #default="{ isValid, validate }">
<VBtn @click="validate" text="validate" />
- Form is {{ isValid.value ? 'valid' : 'invalid' }}
+ Form is {{ isValid ? 'valid' : 'invalid' }}
</template>
</VForm>
The following properties are affected:
- errors
- isDisabled
- isReadonly
- isValidating
- isValid
- items
VRadioGroup
Removed the $radio-group-details-padding-inline Sass variable.
@use 'vuetify/settings' with (
- $radio-group-details-padding-inline: <value>
+ $input-details-padding-inline: <value>
);
VSelect/VCombobox/VAutocompleteCodemod Available
item in slots has been renamed to internalItem for consistency with VList and VDataTable. item is still available but is now an alias for internalItem.raw which seems like the most common use case.
You can rename:
<VSelect item-title="name">
- <template #item="{ item, props }">
- <VListItem v-bind="props" :title="item.title" />
+ <template #item="{ internalItem, props }">
+ <VListItem v-bind="props" :title="internalItem.title" />
</template>
</VSelect>
Or alias:
<VSelect>
- <template #item="{ item, props }">
+ <template #item="{ internalItem: item, props }">
<VListItem v-bind="props" :title="item.raw.name" />
</template>
</VSelect>
Or remove .raw:
<VSelect>
<template #item="{ item, props }">
- <VListItem v-bind="props" :title="item.raw.name" />
+ <VListItem v-bind="props" :title="item.name" />
</template>
</VSelect>
VSnackbarCodemod Available
This component has its internal HTML structure overhauled to incorporate header and prepend slots
Removed the multi-line prop and the $snackbar-multi-line-wrapper-min-height Sass variable. It can be replaced with min-height equivalent.
<VSnackbar
v-model="visible"
- multi-line
+ min-height="68"
:text="message"
/>
VSnackbarQueueCodemod Available
This component has been rewritten to enable showing multiple snackbars at once
The default slot has been renamed to item. The slot props remain the same.
<v-snackbar-queue v-model="messages">
- <template v-slot:default="{ item }">
+ <template v-slot:item="{ item }">
<v-snackbar v-bind="item" />
</template>
</v-snackbar-queue>
VTextField
Removed the $text-field-details-padding-inline Sass variable.
@use 'vuetify/settings' with (
- $text-field-details-padding-inline: <value>
+ $input-details-padding-inline: <value>
);
Grid System (VRow and VCol)
The grid system has been refactored to use CSS gap instead of negative margins on rows and padding on columns. This change provides more flexibility and predictable spacing behavior.
Layout mechanism changes
| Previous | New |
|---|---|
Negative margins (margin: -12px) | No margins on VRow |
| Gaps from padding | No default padding, utilizes CSS gap |
Widths from hardcoded percentage (e.g., 75% for .v-col-9) | Calculated width accounting for gaps |
Prop changes on VRowCodemod Available
| Previous | New |
|---|---|
dense | density="compact" or gap="8" |
align prop on VRow | use utility class (e.g., align-start) |
justify prop on VRow | use utility class (e.g., justify-center) |
align-content prop on VRow | use utility class (e.g., align-content-center) |
align-sm, justify-md, etc. | use responsive utility classes |
| no fine-grained control over gap | gap prop accepts number, string, or [x, y] |
Prop changes on VColCodemod Available
| Previous | New |
|---|---|
order prop on VCol | use utility class (e.g., order-1) |
props like order-sm, order-md, etc. | use responsive utility classes (e.g., order-sm-1) |
align-self prop on VCol | use utility class (e.g., align-self-center) |
.offset-{n} (offset classes) | offset prop |
Offset class changes
Offset classes have been renamed from .offset-* to .v-col-offset-* for namespace consistency:
- <v-col offset="3" offset-md="2">
+ <v-col offset="3" offset-md="2"> <!-- Props still work the same -->
The component props (offset, offset-sm, etc.) continue to work unchanged, but if you were using the CSS classes directly, update them:
- <div class="v-col offset-6">
+ <div class="v-col v-col-offset-6">
Sass variables cleanup
$form-grid-gutter was replaced with $grid-density. New values subtract values from the default gutter
- $form-grid-gutter: $spacer * 2 !default;
+ $grid-density: ('default': 0, 'comfortable': -1, 'compact': -2) !default;
Sass variable $grid-gutters was removed. If your existing project had some custom definition set for this variable, you might want to adjust the variables below:
@use 'vuetify/settings' with (
$avatar-margin-end: 8px;
$avatar-margin-start: 8px;
$icon-left-margin-left: 8px;
$icon-margin-end: 8px;
$icon-margin-start: 8px;
$icon-btn-margin-start: 8px;
$icon-btn-margin-end: 8px;
}
Restoring the legacy grid behavior
If you need to maintain the previous grid behavior (negative margins and column padding), see the Grid Legacy Mode guide.
Defaults
undefined values are now skipped when merging prop defaults. This button would have been grey in v3, but is now green:
createVuetify({
defaults: {
VBtn: { color: 'green' },
},
})
<VDefaultsProvider :defaults="{ VBtn: { color: undefined }}">
<VBtn />
</VDefaultsProvider>
Replace undefined with null if you do actually want it to override the global default value.