Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css file is missing in cljsjs/antd/development #11

Open
narocath opened this issue Nov 26, 2017 · 7 comments
Open

css file is missing in cljsjs/antd/development #11

narocath opened this issue Nov 26, 2017 · 7 comments

Comments

@narocath
Copy link

I get an error because it can't find the file, the only file that there is in this directory is the antd.inc.js , any ideas?

@mitchgillin
Copy link

mitchgillin commented Dec 4, 2017

I think you have to use the CDN to access it in your index.html (or your head[] in handler.clj if you used the figwheel template).

(include-css "https://cdnjs.cloudflare.com/ajax/libs/antd/2.13.10/antd.css")

@narocath
Copy link
Author

narocath commented Dec 9, 2017

I did thank you and worked, but how to change the theme color? I thought to import the antd.less and use
lein-less to recompile less to css but I get an error on .make-color-classes(); SyntaxError: variable @#ffc0cb-6 is undefined I think antd generate .less variables from the changed color.

@jiacai2050
Copy link

jiacai2050 commented Jul 28, 2018

@priornix
Copy link
Owner

priornix commented Aug 8, 2018

Thanks @jiacai2050 for the links, I have updated the documentation to include the different methods for including the CSS files and added the example (thanks @dfuenzalida) in the documentation.

@priornix
Copy link
Owner

@narocath Can we close this?

@headwinds
Copy link

headwinds commented Aug 17, 2018

this makes it clear how to load the css but to @narocath question - how do we update the theme colors to matching our project's branding?

In the main ant design theme docs it mentions being able to set it in the package.json but what's clojure version of that? I assume somewhere in the project.clj file?!

It would be nice to be able to this:

:theme {
  "primary-color" "#1DA57A"
  ;; etc for other colors
}

It seems there is no documentation in antizer for setting the theme - sorry if I missed it but I couldn't find any

@narocath
Copy link
Author

sorry for the late response, yes you can and thank you for your time guys! Also a solution like @headwinds suggestion I think would serve better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants