[Dojo-interest] dgrid custom skin

Michael Schall mike.schall at gmail.com
Mon Feb 22 17:56:36 EST 2016


I am trying to create a custom skin based on claro.  I really only want to
change the base color away from blue.  I have my "skin" working in dojo
using less, but am having issues getting Stylus working on my machine for
the dgrid skin.

I have stylus installed, but I am having issues with the "nib" require.
I'm new to node/npm, but I can't seem to get this working.

I have looked at the following docs, but there is no help here getting my
environment setup.
https://github.com/SitePen/dgrid/blob/master/doc/usage/Customizing-Skins.md

I'm on windows and have installed Stylus using:
npm install stylus -g

I tried to pull in the dependencies using:
npm install

But still get the following:
Error: claro.styl:1:10
   1| @require 'nib/gradients';
---------------^
   2| @require 'nib/vendor';
   3|
   4| $dgrid-background ?= #fff;

failed to locate @require file nib/gradients.styl

    at Evaluator.visitImport
(C:\Users\mike\AppData\Roaming\npm\node_modules\stylus\lib\visitor\evaluator.js:901:21)
    at Evaluator.Visitor.visit
(C:\Users\mike\AppData\Roaming\npm\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit
(C:\Users\mike\AppData\Roaming\npm\node_modules\stylus\lib\visitor\evaluator.js:156:18)
    at Evaluator.visitRoot
(C:\Users\mike\AppData\Roaming\npm\node_modules\stylus\lib\visitor\evaluator.js:693:27)
    at Evaluator.Visitor.visit
(C:\Users\mike\AppData\Roaming\npm\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit
(C:\Users\mike\AppData\Roaming\npm\node_modules\stylus\lib\visitor\evaluator.js:156:18)
    at Evaluator.evaluate
(C:\Users\mike\AppData\Roaming\npm\node_modules\stylus\lib\visitor\evaluator.js:233:15)
    at Renderer.render
(C:\Users\mike\AppData\Roaming\npm\node_modules\stylus\lib\renderer.js:86:26)
    at
C:\Users\mike\AppData\Roaming\npm\node_modules\stylus\bin\stylus:656:15
    at tryToString (fs.js:414:3)

Does nib need to be installed globally for this to work?

Any pointers would be great!

Thanks

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20160222/f81b82b3/attachment.htm 


More information about the Dojo-interest mailing list