1.0.0 • Published 7 months ago

@layoutaid/nuxt v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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/nuxt

pnpm

pnpm add -D @layoutaid/nuxt

yarn

yarn add -D @layoutaid/nuxt

In 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

Outline demo

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

Columns demo

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,
    }
})
1.0.0

7 months ago

0.1.0

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago