Working with Bootswatch themes #1171
-
I've noticed that each of the bootswatch themes have default elements but also variants of navbars and buttons. The sandstone theme, for example, shows three navbars on the bootswatch website. I went to see which one I'd get out of the box when I use this theme.
This will give me the top of the three navbars, in dark gray. This is fine, but I'm digging the softer contrast of the bottom of the three navbar, and am working to figure out the easiest way to create it. When I inspect the source for these, each of them differ in the last two of the four classes that they're assigned.
This says to me that I want a dark background and will probably need a light foreground too, so I add those navbar options to my YAML.
That gets part of the way... ... but isn't quite there. The active page (overview) is the wrong color, as is the hovered over link (materials). I can create a More generally, I'm also wondering from a design perspective how you've decided which variables to make accessible with YAML options. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi - thanks for the great write up. A couple of thoughts:
I'll post an update here, thanks for reporting this! |
Beta Was this translation helpful? Give feedback.
Hi - thanks for the great write up. A couple of thoughts:
We generally settled on supporting just a single navbar color for the various bootswatch themes (versus allowing the specification of dark, light, and so on). In the end, we felt the complexity of the dark and light variants, especially when the further mixing with dark and light overall themes, wasn't worth it. Instead, we actually expect you to do exactly what you are doing, and just use
yaml
orscss
to set the color you'd like.In this case, when you set that background color on the navbar, we should be attempting to generate an acceptable contrast color for the navbar elements, though clearly that isn't working at all in th…