marmelab / ng-admin

Add an AngularJS admin GUI to any RESTful API
http://ng-admin-book.marmelab.com/
MIT License
3.95k stars 728 forks source link

Bootstrap theming #1180

Open thiagoterleski opened 8 years ago

thiagoterleski commented 8 years ago

Hi, How can I change the bootstrap theme? I would like to use one of the Bootswatch themes for bootstrap.

Phocea commented 8 years ago

Best would be to use a module bundler, like webpack, and repackage your own css. Has you can see in the source code, ng-admin/src/saas/ng-admin.scss is importing the boostrap and sb-admin theme. You will need to override or extend this.

Its actually not very modular at them moment. Would be great if we could have a ng-admin-only.scss only so we can choose to override any of the import in it (and ng-admin.scss would import that ng-admin-only. @jpetitcolas what do you think ?

jpetitcolas commented 8 years ago

@Phocea: I'm afraid it won't be sufficient. Bootstrap heavily rely on HTML structure via classes. But we can give it a try. If anyone is volunteer to write a PR, feel free to do so. :)