Code Monkey home page Code Monkey logo

element-theme's People

Contributors

baiyaaaaa avatar dasantonym avatar helloyou2012 avatar jingsam avatar leopoldthecoder avatar qingwei-li avatar rodrigoddalmeida avatar sqchenxiyuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

element-theme's Issues

lib/task.js下的一个bug

lib/task.js 34行

fs.writeFileSync(varsPath, fs.readFileSync(path.resolve(process.cwd(), config.config)), 'utf-8')

应该是

fs.writeFileSync(varsPath, fs.readFileSync(path.resolve(process.cwd(), opts.config || config.config)), 'utf-8')

否则 et -c (--config) 设置了路径会无效并报错找不到config.config路径文件

et with laravel

Hello
I've figured out how to make et work with laravel by making element_variables.scss generate a folder inside my assets/css folder.
Now I would like 'et' to be started each time I change the element_variables.scss file and I'm using "npm run watch".
Would you have an idea on how to dot it please ?

MessageBox 弹框

在vue项目中会报错$attrs is readonly和$listeners is readonly

Doesn't acknowledge config argument

I'm running et -c resources/assets/less/element-variables.scss from the root of my project but the generator seems to be ignoring the argument and looking for element-variables.scss in the working directory.

Error: ENOENT: no such file or directory, open '/Users/richard/Sites/test/element-variables.scss'

If I run it from resources/assets/less it asks me to install element-theme-chalk

et 无法在 node v8 版本跑起来

2018-05-07 3 21 10

大概是因为在 v6 版本构建的,没办法在 v8 版本运行 et。 目前解决方案是 nvm 切换到 v6 版本把theme跑一遍再切换 v8 版本 npm run dev

"Components" option has no any effect

Using this config, CSS for all components is always generated.

const buildOptions =  {
  browsers: ['ie > 10', 'last 2 versions'],
  out: path + 'theme',
  config: path + 'element-variables.scss',
  minimize: false,
  components: ['button', 'input', 'select']
}

[Error - input.scss] Undefined variable: "$--input-clear-hover-color"

Versions

element-theme: 2.0.1
element-ui: 2.0.7
element-theme-chalk: 2.0.7

Problem

When I run et -i, I get the file element-variables.scss. This file doesn't contain the variable $--input-clear-hover-color. And when I run et, I get the following output:

$>et

\ build element theme

events.js:160
      throw er; // Unhandled 'error' event
      ^
Error: node_modules\element-theme-chalk\src\input.scss
Error: Undefined variable: "$--input-clear-hover-color".
        on line 19 of node_modules/element-theme-chalk/src/input.scss
>>       color: $--input-clear-hover-color;
   -------------^

    at Object.module.exports.renderSync (C:\Users\rvanrent080817\AppData\Local\Yarn\config\global\node_modules\node-sass\lib\index
.js:439:16)
    at DestroyableTransform._transform (C:\Users\rvanrent080817\AppData\Local\Yarn\config\global\node_modules\gulp-sass\index.js:1
57:36)
    at DestroyableTransform.Transform._read (C:\Users\rvanrent080817\AppData\Local\Yarn\config\global\node_modules\readable-stream
\lib\_stream_transform.js:182:10)
    at DestroyableTransform.Transform._write (C:\Users\rvanrent080817\AppData\Local\Yarn\config\global\node_modules\readable-strea
m\lib\_stream_transform.js:170:83)
    at doWrite (C:\Users\rvanrent080817\AppData\Local\Yarn\config\global\node_modules\readable-stream\lib\_stream_writable.js:406:
64)
    at writeOrBuffer (C:\Users\rvanrent080817\AppData\Local\Yarn\config\global\node_modules\readable-stream\lib\_stream_writable.j
s:395:5)
    at DestroyableTransform.Writable.write (C:\Users\rvanrent080817\AppData\Local\Yarn\config\global\node_modules\readable-stream\
lib\_stream_writable.js:322:11)
    at write (C:\Users\rvanrent080817\AppData\Local\Yarn\config\global\node_modules\gulp\node_modules\readable-stream\lib\_stream_
readable.js:623:24)
    at flow (C:\Users\rvanrent080817\AppData\Local\Yarn\config\global\node_modules\gulp\node_modules\readable-stream\lib\_stream_r
eadable.js:632:7)
    at DestroyableTransform.pipeOnReadable (C:\Users\rvanrent080817\AppData\Local\Yarn\config\global\node_modules\gulp\node_module
s\readable-stream\lib\_stream_readable.js:664:5)

How am I supposed to fix this?

upgrade to 2.x failed

I tried to upgrade to 2.x

I do uptrade element-theme to "^2.0.1"
and install element-theme-chalk to "^2.0.7"

but when I tried to run "et", still throw Error " please install 'element-theme-default' ", that make me crazy almost

pls help me, thanks!

Variables that use colour() function can't be customised

As I was trying to customise the colours, I found using variables set using the color() function wouldn't inherit from the local scope of variables. So:

  --color-base-black: color(var(--color-black) h(+6) s(33%) l(18%));

Will always use the #000 set to --color-black in theme-default/src/common/vars.css rather than whatever you set it to in your custom element-variables.css file.

layout布局的问题

响应式布局的时候。1200和1920差距很大,这样就导致1400,1600的分辨率的时候误差很大

load config from package.json

{
  "element-theme": {
    "config": "variables/file/path",
    "out": "theme/output/path",
    "minimize": true,
    "browsers": []
  }
}

Feature Request: Configure component files to build

Thanks! This is already working really well.

I'm using components of the entire element-ui library so I don't need to generate a css file for every single component. Just base.css and the components that I'm using. It would cool if there was a way you could tell the cli to only build theme files that are necessary.

"components": [
  "button",
  "select",
  "option"
]

If you are open to the idea I can submit a PR.

Crashed with npm v3.10.9

When I try to make my own theme, it throws error below, can you help me solve this issue?
Thanks.

$ node -v
v6.9.1

$ npm -v
3.10.9

$ et --version
0.2.0

$ et -i

√ Generator variables file

$ et

√ build theme font
- build element theme

events.js:160
      throw er; // Unhandled 'error' event
      ^
Error: ENOENT: no such file or directory, open '\node_modules\element-theme-default\src\vue-popup\lib\popup.css'
    at Error (native)

RTL support?

Any guide for RTL support?

Dont suggest RTL.css for patch 😞

监听代码在首次运行时如何让其不影响其他运行重复反馈

将监听代码加入到框架构建的开发模式(webpack.dev.conf.js)下,为什么启动的时候会有多余重复的命令打印出来

使用方式:

var et = require('element-theme')
// watch mode
et.watch({
  config: './src/assets/varieties.css',
  out: './src/assets/css'
})

以下是控制台打印的重复命令提示:


webpack: wait until bundle finished: /index.html
√ build theme font
webpack built 8995c2f2442cf844547a in 7292ms
Hash: 8995c2f2442cf844547a
Version: webpack 1.14.0
Time: 7292ms
                                 Asset       Size  Chunks             Chunk Names
static/fonts/element-icons.a61be9c.eot    13.5 kB          [emitted]  
static/fonts/element-icons.b02bdc1.ttf    13.2 kB          [emitted]  
  static/img/element-icons.09162bc.svg    17.4 kB          [emitted]  
                                app.js    4.22 MB       0  [emitted]  app
                            index.html  249 bytes          [emitted]  
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks       Chunk Names
    index.html  1.47 MB       0       
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
webpack: wait until bundle finished: /app.js
webpack building...
webpack built a844ddcd769a07a2993d in 1152ms
Hash: a844ddcd769a07a2993d
Version: webpack 1.14.0
Time: 1152ms
                                 Asset      Size  Chunks             Chunk Names
static/fonts/element-icons.a61be9c.eot   13.5 kB                     
static/fonts/element-icons.b02bdc1.ttf   13.2 kB                     
  static/img/element-icons.09162bc.svg   17.4 kB                     
                                app.js   4.24 MB       0  [emitted]  app
  0.8995c2f2442cf844547a.hot-update.js   25.6 kB       0  [emitted]  app
  8995c2f2442cf844547a.hot-update.json  36 bytes          [emitted]  
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks       Chunk Names
    index.html  1.47 MB       0       
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
webpack building...
webpack built a844ddcd769a07a2993d in 882ms
Hash: a844ddcd769a07a2993d
Version: webpack 1.14.0
Time: 882ms
                                 Asset     Size  Chunks       Chunk Names
static/fonts/element-icons.a61be9c.eot  13.5 kB               
static/fonts/element-icons.b02bdc1.ttf  13.2 kB               
  static/img/element-icons.09162bc.svg  17.4 kB               
                                app.js  4.24 MB       0       app
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks       Chunk Names
    index.html  1.47 MB       0       
webpack: bundle is now VALID.
√ watch element theme

按官网手册,在项目中安装et,在node_modules/.bin下执行 et -i 路径问题。

手册地址:http://element.eleme.io/#/zh-CN/component/custom-theme
我执行:
F:\my-work\backstage-admin\node_modules\.bin>et -i
× Pleace install element-theme-default``
最后我修改了一下路径
修改的js文件:
F:\my-work\backstage-admin\node_modules\element-theme\lib\config.js
修改的代码:
`exports.themePath = path.resolve(process.cwd(), '../../node_modules/element-theme-default')`
(原谅我不知道怎么在这里贴图)

编译主题的时候,应该忽略 common/var.scss 或者不要编译自定义生成的变量文件

fs.writeFileSync(varsPath, fs.readFileSync(path.resolve(process.cwd(), opts.config || config.config)), 'utf-8')

stream = gulp.src([opts.config || config.config, path.resolve(config.themePath, './src/' + cssFiles + '.scss')])

第一行这里已经将自定义的变量文件内容拷贝到了 common/var.scss 里面了,为什么在第二行那里还要将自定义的变量文件加到 gulp.src 那里?我的项目有自己的颜色变量,我在生成的变量文件那里引用我项目的变量文件,这个工具这样子处理的话,我引用的路径永远都写不对

初始化文件成功,但是编译不成功

初始化文件成功,但是编译不成功

已经npm update 过了

billsMBP:www bill$ node_modules/.bin/et -i

✔ Generator variables file

billsMBP:www bill$ npm run theme-once

[email protected] theme-once /Users/workplace/www
et -o ./src/assets/theme

✔ build theme font
[10:04:31] gulp-postcss: autocomplete.css
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/input.css:129:7: variable '--color-dark-white' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/input.css:130:7: variable '--color-light-silver' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/autocomplete.css:35:7: variable '--color-extra-light-black' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/autocomplete.css:53:9: variable '--color-base-gray' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/autocomplete.css:18:7: variable '--color-base-gray' is undefined and used without a fallback
⠸ build element theme[10:04:31] gulp-postcss: breadcrumb.css
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/breadcrumb.css:13:7: variable '--color-extra-light-silver' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/breadcrumb.css:34:13: variable '--color-light-silver' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/breadcrumb.css:21:11: variable '--color-extra-light-black' is undefined and used without a fallback
⠼ build element theme[10:04:31] gulp-postcss: button.css
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/button.css:89:11: variable '--color-base-gray' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/button.css:90:11: variable '--color-extra-light-silver' is undefined and used without a fallback
⠴ build element theme[10:04:31] gulp-postcss: cascader.css
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/input.css:129:7: variable '--color-dark-white' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/input.css:130:7: variable '--color-light-silver' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/cascader.css:48:9: variable '--color-light-silver' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/cascader.css:127:9: variable '--select-option-disabled-background' is undefined and used without a fallback
⠧ build element theme[10:04:31] gulp-postcss: color-picker.css
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/color-picker.css:165:7: variable '--color-base-black' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/color-picker.css:260:7: variable '--color-base-gray' is undefined and used without a fallback
⠇ build element theme[10:04:32] gulp-postcss: date-picker.css
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/date-picker/picker-panel.css:106:5: variable '--color-dark-white' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/date-picker/time-picker.css:78:7: variable '--color-base-silver' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/input.css:129:7: variable '--color-dark-white' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/input.css:130:7: variable '--color-light-silver' is undefined and used without a fallback
⠏ build element theme[10:04:32] gulp-postcss: dialog.css
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/dialog.css:58:7: variable '--color-base-black' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/dialog.css:63:7: variable '--color-extra-light-black' is undefined and used without a fallback
[10:04:32] gulp-postcss: dropdown.css
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/button.css:89:11: variable '--color-base-gray' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/button.css:90:11: variable '--color-extra-light-silver' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/dropdown.css:9:5: variable '--color-extra-light-black' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/dropdown.css:31:5: variable '--color-base-gray' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/dropdown.css:66:9: variable '--color-extra-light-silver' is undefined and used without a fallback
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/dropdown.css:54:9: variable '--color-base-gray' is undefined and used without a fallback
⠋ build element theme[10:04:32] gulp-postcss: form.css
postcss-custom-properties: /Users/workplace/www/node_modules/element-theme-default/src/form.css:53:7: variable '--color-extra-light-black' is undefined and used without a fallback
⠼ build element theme

events.js:160
throw er; // Unhandled 'error' event
^
Error: /Users/workplace/www/node_modules/element-theme-default/src/upload.css:73:7: Unable to parse color from string "var(--color-extra-light-silver)"
at /Users/workplace/www/node_modules/element-theme-default/src/upload.css:73:7
at Object.Color (/Users/workplace/www/node_modules/color/index.js:34:10)
at Color (/Users/workplace/www/node_modules/color/index.js:11:10)
at rgba (/Users/workplace/www/node_modules/postcss-sass-color-functions/index.js:19:12)
at handleFunction (/Users/workplace/www/node_modules/postcss-sass-color-functions/index.js:111:25)
at /Users/workplace/www/node_modules/postcss-sass-color-functions/index.js:80:16
at Object.tryCatch [as try] (/Users/workplace/www/node_modules/postcss-message-helpers/index.js:53:12)
at transformDecl (/Users/workplace/www/node_modules/postcss-sass-color-functions/index.js:79:31)
at /Users/workplace/www/node_modules/postcss/lib/container.js:192:28
at /Users/workplace/www/node_modules/postcss/lib/container.js:148:26
at Rule.each (/Users/workplace/www/node_modules/postcss/lib/container.js:114:22)

npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "theme-once"
npm ERR! node v6.9.1
npm ERR! npm v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] theme-once: et -o ./src/assets/theme
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] theme-once script 'et -o ./src/assets/theme'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the www package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! et -o ./src/assets/theme
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs www
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls www
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/workplace/www/npm-debug.log

et -i , please install `element-theme-chalk`

根据readme提示,安装了
image

但是在.bin目录:et -i 报错:please install element-theme-chalk
但是在element-theme-chalk/element-theme-chalk是安装成功的
为何?

element-theme/lib/task.js line 34

element-theme/lib/task.js

line 34 s.writeFileSync(varsPath, fs.readFileSync(path.resolve(process.cwd(), config.config)), 'utf-8')
=> s.writeFileSync(varsPath, fs.readFileSync(path.resolve(process.cwd(), opts.config)), 'utf-8')

若是拿着psd设计稿,应该是怎样的一个工作流

以前做web页面都是拿着psd来切图,按像素来切出一个个小块
现在用到element-ui,
一个实际的问题
Slider 组件,如果我现在想着slider中间的圆滑块改成一个火车头的图片,滑动条改成一个铁轨.
我psd应该是什么尺寸的设计图,
改的步骤又是什么样子的?
是把火车图切下来,比较如30*30px,然后放slider对应的css中作为background-image吗?

theme-chalk

How to use with theme-chalk?
Looks like theme-chalk is using scss, and element-theme assumes themes are using css and fails (here).

更新有一些安全隐患的包

运行

$ npm audit
                                                                                
                       === npm audit security report ===                        
                                                                                
┌──────────────────────────────────────────────────────────────────────────────┐
│                                Manual Review                                 │
│            Some vulnerabilities require your attention to resolve            │
│                                                                              │
│         Visit https://go.npm.me/audit-guide for additional guidance          │
└──────────────────────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Regular Expression Denial of Service                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ element-theme [dev]                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ element-theme > gulp > vinyl-fs > glob-stream > glob >       │
│               │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://nodesecurity.io/advisories/118                       │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Regular Expression Denial of Service                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ element-theme [dev]                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ element-theme > gulp > vinyl-fs > glob-stream > minimatch    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://nodesecurity.io/advisories/118                       │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Regular Expression Denial of Service                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ element-theme [dev]                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ element-theme > gulp > vinyl-fs > glob-watcher > gaze >      │
│               │ globule > glob > minimatch                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://nodesecurity.io/advisories/118                       │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Regular Expression Denial of Service                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ element-theme [dev]                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ element-theme > gulp > vinyl-fs > glob-watcher > gaze >      │
│               │ globule > minimatch                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://nodesecurity.io/advisories/118                       │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low           │ Prototype Pollution                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ lodash                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=4.17.5                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ element-theme [dev]                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ element-theme > gulp > vinyl-fs > glob-watcher > gaze >      │
│               │ globule > lodash                                             │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://nodesecurity.io/advisories/577                       │
└───────────────┴──────────────────────────────────────────────────────────────┘
found 5 vulnerabilities (1 low, 4 high) in 14731 scanned packages
  5 vulnerabilities require manual review. See the full report for details.

表格头部 字体颜色和背景色被编译成一样了

最近重新执行了

node_modules/.bin/et -o chalk_theme

发现样式改动了很多,表格的字体颜色和背景色被设置成一个颜色了

不确定 依赖包 element-theme-chalk 有没有被更新过

想了解 element-theme-chalk 和 element的版本相关性是怎样的

You tried to parse SCSS with the standard CSS parser

After upgrading all my dependencies, I get the following error:

$ et -w -c resources/assets/element/element.scss -o resources/assets/element/theme/

⠙ watch element theme

events.js:183
      throw er; // Unhandled 'error' event
      ^
Error: /resources/assets/element/element.scss:407:34: Unknown word
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser

How can I solve this?

How to extend the stylesheet in "element-variables.css"?

I want to change the background color of the table, but neither "table-body-background" nor "table-body-background" works. Does it support to extend the variables defined in "element-variables.css"? Are there any documents?

按需生成css, 生成结果中没有指定模块的css集合 index.css

var et = require('element-theme')
et.watch({
    browsers: ["ie > 9", "last 2 versions"],
    config: './src/scss/element-variables.css',
    out: './src/scss/element-theme',
    watch: './element-theme.js',
    theme: "element-theme-default",
    minimize: false,
    components: [ "button", "input", "menu", "index" ],
});

最终生成的文件列表

├── base.css
├── button.css
├── element-variables.css
├── fonts
│   ├── element-icons.ttf
│   └── element-icons.woff
├── input.css
└── menu.css

能否生成一个指定组件css的集合

Upgrading from 0.7.x to 2.0.1 failed with default chalk theme

Hi, I used to have the following versions work fine with ElementUI 1.4.

   "element-theme": "^0.7.1",
   "element-theme-default": "^1.2.2",

Now I'm trying to upgrade to ElementUI 2.0 with the following theme packages:

    "element-theme": "2.0.1",
    "element-theme-chalk": "2.0.8",

I ran et -i which generated a default chalk theme file, and then et failed with the following error messages:

- build element theme

events.js:160
      throw er; // Unhandled 'error' event
      ^
Error: client\webpack\base\styles\element-variables-chalk.css
Error: Invalid CSS after "...mary) s(99%) l(": expected expression (e.g. 1px
, bold), was "*0.9));"
        on line 17 of client/webpack/base/styles/element-variables-chalk.css

>> dary: color(var(--color-primary) s(99%) l(*0.9));
   ------------------------------------------^

    at Object.module.exports.renderSync (C:\Users\jiaxi\Source\Repos\Toronto
\src\websites\Toronto\Portal.Web\node_modules\node-sass\lib\index.js:439:16)

    at DestroyableTransform._transform (C:\Users\jiaxi\Source\Repos\Toronto\
src\websites\Toronto\Portal.Web\node_modules\gulp-sass\index.js:157:36)
    at DestroyableTransform.Transform._read (C:\Users\jiaxi\Source\Repos\Tor
onto\src\websites\Toronto\Portal.Web\node_modules\through2\node_modules\read
able-stream\lib\_stream_transform.js:182:10)
    at DestroyableTransform.Transform._write (C:\Users\jiaxi\Source\Repos\To
ronto\src\websites\Toronto\Portal.Web\node_modules\through2\node_modules\rea
dable-stream\lib\_stream_transform.js:170:83)
    at doWrite (C:\Users\jiaxi\Source\Repos\Toronto\src\websites\Toronto\Por
tal.Web\node_modules\through2\node_modules\readable-stream\lib\_stream_writa
ble.js:406:64)
    at writeOrBuffer (C:\Users\jiaxi\Source\Repos\Toronto\src\websites\Toron
to\Portal.Web\node_modules\through2\node_modules\readable-stream\lib\_stream
_writable.js:395:5)
    at DestroyableTransform.Writable.write (C:\Users\jiaxi\Source\Repos\Toro
nto\src\websites\Toronto\Portal.Web\node_modules\through2\node_modules\reada
ble-stream\lib\_stream_writable.js:322:11)
    at write (C:\Users\jiaxi\Source\Repos\Toronto\src\websites\Toronto\Porta
l.Web\node_modules\vinyl-fs\node_modules\readable-stream\lib\_stream_readabl
e.js:623:24)
    at flow (C:\Users\jiaxi\Source\Repos\Toronto\src\websites\Toronto\Portal
.Web\node_modules\vinyl-fs\node_modules\readable-stream\lib\_stream_readable
.js:632:7)
    at DestroyableTransform.pipeOnReadable (C:\Users\jiaxi\Source\Repos\Toro
nto\src\websites\Toronto\Portal.Web\node_modules\vinyl-fs\node_modules\reada
ble-stream\lib\_stream_readable.js:664:5)

Line 17 of the default theme file is:

    --color-secondary: color(var(--color-primary) s(99%) l(*0.9));

Any help is appreciated. Thanks!!

Upgrading postcss-salad?

I get npm warnings on deprecating fs-promise:

npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support

These dependencies come from [email protected], and the most recent version of postcss-salad is 2.0.1. Any plans of upgrading this dependency to remove the deprecation warnings?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.