1.0.0 • Published 7 months ago
@layoutaid/nuxt v1.0.0
Nuxt Layout Aid
A dead-simple Nuxt plugin that adds visual layout aid for integrating web pages.
During build, this module will be an empty string, making it dev-only.
Installation
npm
npm i -D @layoutaid/nuxtpnpm
pnpm add -D @layoutaid/nuxtyarn
yarn add -D @layoutaid/nuxtIn nuxt.config.ts
export default defineNuxtConfig({
modules: ['@layoutaid/nuxt'],
layoutAid: {
// Config goes here
},
})Features & options
Outline
Shows an outline around each element. Enable/disable with hotkey: ctrl + o

Customizable options:
// In Nuxt config
export default defineNuxtConfig({
modules: ['@layoutaid/nuxt'],
layoutAid: {
outline: {
color: 'red', // The color of the outlines
persist: true, // Enable persistence between reloads.
},
}
})Use outline: false to completely disable this feature.
Columns
Shows column guides. Enable/disable with hotkey: ctrl + g

Customizable options:
// In Nuxt config
export default defineNuxtConfig({
modules: ['@layoutaid/nuxt'],
layoutAid: {
color: 'rgba(85, 189, 234, 0.6)', // The color of the column guides
count: 14, // The number of columns
persist: true, // Enable persistence between reloads
}
})Use outline: false to completely disable this feature.
Show in prod
If for some reason you need the modules enabled in production build, use prod: true:
// In Nuxt config
export default defineNuxtConfig({
modules: ['@layoutaid/nuxt'],
layoutAid: {
prod: true,
}
})