Skip to content

jczzq/element-theme-nio

Repository files navigation

element-theme-nio

基于element-ui的个性主题。 stars issues forks

Github

示例

Installation

npm i element-theme-nio

Usage

Use Sass import

@import 'element-theme-nio';

Or Use webpack

import 'element-theme-nio';

构建时按需引入主题需要在babel.config.js设置styleLibraryName

module.exports = {
  presets: ["@vue/app"],
  plugins: [
    [
      "component",
      {
        libraryName: "element-ui",
        styleLibraryName: "~node_modules/element-theme-nio/lib"
      }
    ]
  ]
};

Or

<link rel="stylesheet" href="path/to/node_modules/element-theme-nio/lib/index.css">

Import on demand

import 'element-theme-nio/lib/input.css';
import 'element-theme-nio/lib/select.css';
// ...