bootswatch icon indicating copy to clipboard operation
bootswatch copied to clipboard

Material Design theme

Open nickserv opened this issue 12 years ago • 22 comments

I think that Google's Material Design would make an interesting candidate for a bootswatch theme.

I have started work on this since I'm curious what it would look like with Bootstrap and I want to learn to create my own bootswatch, though I would be interested in eventually submitting my theme if there is an interest and I can complete it.

Note that the Material Design spec involves some things like animations and new kinds of components that could be difficult to replicate completely without implementing new features. However, I think this would still at least look nice with existing Bootstrap features, in the spirit of themes like Yeti and Cyborg.

nickserv avatar Jul 05 '14 10:07 nickserv

+1

This would be a great addition to Bootswatch. While a Material Design based theme might be similar to existing themes like Flatly, having one that's built to spec would be useful to a lot of people. And the specific design choices they've made are quite nice.

Agree we'd want to avoid entirely new components, but perhaps some animations in the spirit of Material Design could be achieved with CSS animations.

thomaspark avatar Jul 05 '14 16:07 thomaspark

Cool, I agree!

By the way, how do you think we should translate Material Design's button styles to Bootstrap's button classes?

Three types of main buttons are provided:

  • Floating action button, a circular button made of paper that lifts and emits ink reactions on press.
  • Raised button, a typically rectangular button made of paper that lifts and emits ink reactions on press.
  • Flat button, a button made of ink that emits ink reactions on press but does not lift.

It seems to me like raised button matches Bootstrap's styles the closest. However, if we made all btn-* classes a raised button, that would violate Material Design's idea for using raised buttons for inline buttons, flat buttons for modal buttons, and floating action buttons for direct actions.

Do you think that we could use different button styles (besides the color) for different btn-* classes? For example, btn-default could be flat, and btn-primary could be raised. However, that makes it kind of weird when they're both used next to each other. I'm starting to feel like we should just use raised buttons for everything, and maybe the other two buttons styles could be provided as special theme-only CSS classes, if that's not too inconsistent.

nickserv avatar Jul 05 '14 20:07 nickserv

+1

nkzawa avatar Jul 06 '14 08:07 nkzawa

:+1:

ghost avatar Jul 06 '14 08:07 ghost

I'd love to help :+1:

jenil avatar Jul 06 '14 08:07 jenil

:+1:

vinz243 avatar Jul 06 '14 09:07 vinz243

I haven't done much besides font and color changes yet, though in case anyone's interested here's my work so far:

Source Preview

nickserv avatar Jul 06 '14 10:07 nickserv

:+1:

There are a lot of nice examples/copy-paste options to find in the polymer stuff: http://www.polymer-project.org/docs/elements/paper-elements.html#paper-tabs

There are a lot of things that I would like from material that just aren't in baseline bootstrap, in addition to the above button things.

Just to try it out, did a little work on top of @nicolasmccurdy's, primarily with tabs:

Embedded dropdowns in tabs still look pretty bad...

Interested to see what else people come up with!

bollwyvl avatar Jul 11 '14 20:07 bollwyvl

I have been using Polymer's demo as inspiration. Thanks for the link, though.

Just to try it out, did a little work on top of @nicolasmccurdy's, primarily with tabs:

:+1: I like your tab bar change! However, the disabled link color school be changed (in fact, this is probably also an issue with the navbar that I forgot to fix). Additionally, I don't think the primary brand color works for highlighting the current tab.

Embedded dropdowns in tabs still look pretty bad…

I agree. I might get around to fixing the dropdown styles soon.

nickserv avatar Jul 11 '14 20:07 nickserv

Early going, but here's what I have so far:

https://github.com/thomaspark/bootswatch/tree/paper

thomaspark avatar Jul 12 '14 02:07 thomaspark

@thomaspark

Hi

Understand this is under development, and hope this is the correct place to comment, but I liked it so much I switched our internal business portal over to it.

One point is we were already using navbar-fixed-top and this is looking a bit odd using this theme at the moment, it looks larger in height than required.

Can you take a look, and see what you think?

Thanks

Steve

ghost avatar Aug 11 '14 19:08 ghost

Hey @Steve-John, the best time for feedback is while it's still under development.

The navbars will likely end up with a larger font size, which should suit its height better.

Feel free to post any other issues you run into with the theme.

thomaspark avatar Aug 12 '14 02:08 thomaspark

Landed in f88f3fb4acaf2d5f561370e00170ef358f1f1252.

thomaspark avatar Aug 13 '14 16:08 thomaspark

:+1:

nkzawa avatar Aug 13 '14 16:08 nkzawa

Hooray! I'm going to try to make a dark version from this great starting point. Thanks!

bollwyvl avatar Aug 14 '14 14:08 bollwyvl

I'm developing a Bootstrap theme based on Material Design as well, it is still under heavy developement but most of the work is done.

Not sure if it could be added to Bootswatch because I use some javascript to add some needed element (are about 50 lines of jQuery). It embeds RipplesJS, a script written by myself to add the ripple effect to the buttons, but it is not mandatory to get the theme works.

Repository: https://github.com/FezVrasta/bootstrap-material-design Demo: http://fezvrasta.github.io/bootstrap-material-design

FezVrasta avatar Aug 26 '14 09:08 FezVrasta

I'm tots interested in this. Time to fork!

KendallPark avatar Aug 28 '14 16:08 KendallPark

FezVrasta's theme is super cool ! Please integrate it in bootswatch. :D

jgoux avatar Sep 03 '14 06:09 jgoux

@jgoux thank you, I'm improving it day by day, hoping to make it looks like the original polymer paper one day ^_^ every help is very welcome!

FezVrasta avatar Sep 07 '14 11:09 FezVrasta

I would also like to see @FezVrasta's bootstrap-material-design in bootswatch. Love your work!!!

romdim avatar Nov 01 '14 13:11 romdim