Comments (9)
@EmilMoe I think @JonasDoebertin is looking to provide easy customization as it is on his check list, so we have to wait.
from keen-ui.
Hey @nivv, that is a problem with stylus-loader
. To fix, run:
npm install stylus@latest stylus-loader@latest
Then build the project or run dev.
from keen-ui.
At the moment there is no easy way to customize the colors in the built files. That's something I hope to have before 1.0.
For now, you can build from source:
-
Clone the repo:
git clone [email protected]:JosephusPaye/keen-ui.git
-
Move into the cloned folder and install the dependencies:
cd keen-ui && npm install
-
Customize the variables in the
keen-ui/src/styles/variables.styl
file. The$md-brand-primary
and$md-brand-accent
are the primary and secondary colors, respectively. -
Build (compile) the project:
npm run build:all
-
The
keen-ui/dist/keen-ui.css
andkeen-ui/dist/min/keen-ui.min.css
as well as the standalone component files inlib/
should now reflect your changes. -
To quickly test your changes, you can build the docs and then open the
docs/index.html
in your browser.npm run clean:docs && npm run build:docs
from keen-ui.
Since it isn't scoped it should be possible to override at least with !important
from keen-ui.
I'm not customizing it at the moment, but it sounds good !
from keen-ui.
I can't build the project. I've downloaded as zip from github and ran the commands above.
Getting the following:
Path must be a string. Received undefined
at assertPath (path.js:7:11)
at extname (path.js:1433:5)
at new SourceMapper (/Users/albin/Desktop/keen/node_modules/stylus/lib/visitor/sourcemapper.js:41:7)
at Renderer.render (/Users/albin/Desktop/keen/node_modules/stylus/lib/renderer.js:94:9)
at /Users/albin/Desktop/keen/node_modules/stylus-loader/index.js:149:12
at tryCatchReject (/Users/albin/Desktop/keen/node_modules/when/lib/makePromise.js:840:30)
at runContinuation1 (/Users/albin/Desktop/keen/node_modules/when/lib/makePromise.js:799:4)
at Fulfilled.when (/Users/albin/Desktop/keen/node_modules/when/lib/makePromise.js:590:4)
at Pending.run (/Users/albin/Desktop/keen/node_modules/when/lib/makePromise.js:481:13)
at Scheduler._drain (/Users/albin/Desktop/keen/node_modules/when/lib/Scheduler.js:62:19)
at Scheduler.drain (/Users/albin/Desktop/keen/node_modules/when/lib/Scheduler.js:27:9)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
@ ./src/UiTabHeaderItem.vue 2:0-234
from keen-ui.
@JosephusPaye Thanks! That worked!
from keen-ui.
A Customization guide has been added for v1.0 which shows how to change the primary and accent colors, and more.
from keen-ui.
@JosephusPaye thanks! Just a heads up, broken link in the new docs:
https://github.com/JosephusPaye/Keen-UI/blob/master/docs/Customization.md#customization
from keen-ui.
Related Issues (20)
- Add `ui-textbox__input-wrapper` around `ui-textbox__input` and `ui-textbox__textarea` HOT 4
- DatePicker: When yearRange is specified with descending array, month selection is broken. HOT 3
- How to dismiss a UiSnackbarContainer? HOT 2
- Missing @types/keen-ui HOT 2
- Having a size undependand on the root node's font-size HOT 3
- position of UiDatepicker not correct when combined with UiPopover/UiMenu HOT 1
- How I get outlined share icon? HOT 3
- Support for autocapitalize property
- ESLint CRLF Windows HOT 6
- Question - Overriding variables.scss HOT 3
- how to add button or link in ui-collasible header HOT 2
- UiSelect not working in Modal HOT 1
- UiSelect selected template HOT 3
- autocomplete on custom case
- Vue.js 3.0 and further plans HOT 13
- UiCalender is not rendering HOT 1
- Dart Sass deprecation warnings HOT 1
- keen-ui.js:8252 [UiRippleInk]: Trigger element not found. HOT 1
- UiSelect can no longer be used correctly in UiPopover HOT 1
- Click on calendar buttons (without type argument) triggers form submit event HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keen-ui.