Fun with Custom CSS in Kanbanery
I’m learning CSS and what better playground (other than this blog) than my product, Kanbanery.com.
One of the features of the Pro plan at Kanbanery is that ability to apply custom CSS. Some people use it to make the header match their logo colors, but I wanted to try to completely change the look and feel of the site.
Here’s a step-by-step tutorial about how I made an innocent Kanbanery board, known for its professional and elegant style, into this monstrosity:
I created a board with some tasks and users to use as my CSS playground. Here’s what it looked like before adding any custom CSS. I did upload a custom logo and created user accounts with superhero logos as Gravatars.
Next, I created a blank CSS file and hosted it on my own web server so I could make updates quickly and see the results live. I pasted the URL into the form on the Custom CSS tab in my Kanbanery board.
Then, I had to decide which elements to change, and what they were called. The easiest way I found to do that was to use the inspector in Chrome Developer Tools and click on the elements that I wanted to change.
Just find the Chrome Developer Tools here:
Click on the magnifying glass and then on the element that you want information about.
One by one, I selected elements and changed their background colors to fit the superhero theme.
I noticed that my changes didn’t work consistently and faced a common frustration that I have with CSS and that’s the C part. The fact that the style sheets are cascading is super powerful, but keeping track of those inheritances when you’re just starting out and haven’t developed a good style for managing large CSS files or collections of files is tricky. It’s doubly so when intentionally overriding styles, but a friend told me an easy workaround. Just add the tag !important, and no matter in what order the styles are loaded, the one from the external stylesheet that is intended to override existing styles will be applied.
Then, to make it really wacky, I replaced the solid gray background of the board with a repeating image:
Suddenly, I couldn’t read the deadline warnings, so I set their background color to white:
I’ve never much liked the row at the top of the board, which serves only to expand and collapse columns. It’s a bit redundant if you don’t have a lot of columns, so I removed it by setting its height to zero:
Several people have asked about changing the column width so they can fit more columns on the screen. The width that our designer set is, I think, the most attractive, but I found a narrower width that works fine:
The board now looked much too fun for the default font. Initially I set the font to Comic Sans, but working with browser fonts is really limiting so I learned to use custom fonts, also hosted on my private server:
And then, just to learn how to work with shadows, I added a drop shadow around the avatars like this:
I’m not a fan of drop shadows, but I wanted to know how to do them with CSS because I haven’t touched CSS since before CSS3, so I left them in.
And the final result, which will probably infuriate the original designer, demonstrates just how much control the custom stylesheets feature gives to Kanbanery users. If you’ve customized your Kanbanery board with custom stylesheets, I’d love to see a screenshot.