Styles
Learn about the styles available on the nuxt-tour module.
Default stylesheet
nuxt-tour injects a single tour.css file with sensible defaults. It uses CSS custom properties (--nt-*) so you can override any value without touching the source file or ejecting anything.
To disable the default stylesheet and supply your own:
nuxt.config.ts
export default defineNuxtConfig({
tour: { injectCSS: false },
});
Customising with CSS variables
All design tokens are declared on #nt-tooltip. Override whichever you need in your global CSS:
assets/css/tour-theme.css
#nt-tooltip {
--nt-bg: #1e1e2e;
--nt-text: #cdd6f4;
--nt-subtext: #a6adc8;
--nt-border-color: #45475a;
--nt-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
--nt-radius: 10px;
--nt-btn-bg: #cba6f7;
--nt-btn-color: #1e1e2e;
--nt-btn-radius: 8px;
--nt-highlight-color: #cba6f7;
}
No build step required
No Sass, no ejecting — just CSS. The variables are scoped to
#nt-tooltip so they won't leak into the rest of your app.CSS variable reference
--nt-border-color
Default
#e2e8f0Tooltip border and arrow border colour.
--nt-bg
Default
#ffffffTooltip background colour.
--nt-text
Default
#0f172aTitle and body text colour.
--nt-subtext
Default
#64748bSub-text and progress counter colour.
--nt-highlight-color
Default
#0ea5e9Outline colour on the highlighted element.
--nt-radius
Default
6pxTooltip border radius.
--nt-shadow
Default
0 2px 10px ...Tooltip box shadow.
--nt-z-index
Default
9999Tooltip z-index.
--nt-max-width
Default
370pxMaximum tooltip width.
--nt-padding
Default
12px 16pxTooltip inner padding.
--nt-gap
Default
6pxGap between header, body, and actions sections.
--nt-arrow-size
Default
12pxSize of the Popper.js arrow.
--nt-highlight-offset
Default
8pxoutline-offset on the highlighted target element.--nt-highlight-radius
Default
4pxBorder radius of the highlight outline.
--nt-backdrop-bg
Default
rgba(0,0,0,0.5)Backdrop overlay colour.
--nt-backdrop-z
Default
9998Backdrop z-index (should be one below
--nt-z-index).--nt-btn-bg
Default
#020617Next / Finish button background.
--nt-btn-color
Default
#ffffffNext / Finish button text colour.
--nt-btn-radius
Default
5pxButton border radius.
--nt-btn-height
Default
32pxButton height.
--nt-btn-padding
Default
4px 14pxButton inner padding.
--nt-btn-font-size
Default
14pxButton font size.
--nt-btn-font-weight
Default
500Button font weight.
--nt-btn-gap
Default
6pxGap between button icon and label.