JSPM

@aotearoan/neon

6.0.0-beta.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 76
  • Score
    100M100P100Q64907F
  • License MIT

Neon is a lightweight design library of VueJS components with minimal dependencies. It supports light and dark modes and can be extended to support multiple themes

Package Exports

  • @aotearoan/neon
  • @aotearoan/neon/src/sass/includes/_color-functions.scss
  • @aotearoan/neon/src/sass/includes/_color-mixins.scss
  • @aotearoan/neon/src/sass/includes/_globals.scss
  • @aotearoan/neon/src/sass/includes/_gradient.scss
  • @aotearoan/neon/src/sass/includes/_hidden.scss
  • @aotearoan/neon/src/sass/includes/_layout.scss
  • @aotearoan/neon/src/sass/includes/_math.scss
  • @aotearoan/neon/src/sass/includes/_note.scss
  • @aotearoan/neon/src/sass/includes/_outline.scss
  • @aotearoan/neon/src/sass/includes/_responsive.scss
  • @aotearoan/neon/src/sass/includes/_scrollbars.scss
  • @aotearoan/neon/src/sass/includes/_svg.scss
  • @aotearoan/neon/src/sass/includes/_toggle-mixins.scss
  • @aotearoan/neon/themes/classic
  • @aotearoan/neon/themes/sharp
  • @aotearoan/neon/themes/smooth

Readme

GitHub package.json version npm bundle size (scoped) GitHub last commit npm GitHub

Documentation & Demo

Full documentation is available on the demo site.

Installation

Install with NPM:

npm install @aotearoan/neon

or yarn:

yarn add @aotearoan/neon

Usage

Javascript/Typescript

Import components and supporting classes like so:

import { Component, Vue } from 'vue-property-decorator';
import { NeonLogo } from '@aotearoan/neon';

@Component({
  components: {
    NeonLogo,
  },
})
export default class App extends Vue {}

SASS

First select a theme:

  • smooth
  • classic
  • sharp

To use a theme without any customization simply import the basic theme file, e.g. to import the classic theme:

@use '~@aotearoan/neon/themes/classic';

If, however you would like to override/customize the theme then you need to include the following:

.app {
  &.neon-theme--classic {
    // override colors, palettes and other basic variables here BEFORE importing the theme, e.g. $neon-color-primary: #bada55
    @use '~@aotearoan/neon/themes/classic/theme';
    // include custom app SASS here (you can use neon's defined variables, mixins and functions)
    &.neon-mode--dark {
      // override dark mode specific variables here, e.g. $neon-border-color: #bada55
      @use '~@aotearoan/neon/themes/classic/dark';
      // include custom app dark mode SASS here (you can use neon's defined variables, mixins and functions)
    }
    &.neon-mode--light {
      // override light mode specific variables here, e.g. $neon-border-color: #bada55
      @use '~@aotearoan/neon/themes/classic/light';
      // include custom app light mode SASS here (you can use neon's defined variables, mixins and functions)
    }
  }
}

Finally, the theme and mode (light/dark) need to be set on the document, e.g. to set the classic theme and dark mode:

<html class="app neon neon-theme--classic neon-mode--dark">

Stargazers repo roster for @aotearoan/neon

Forkers repo roster for @aotearoan/neon