I wanted to make my command line shell prompt to be more noticeable and nicer with some color. I wanted to take advantage of 256 colors when available, but fall back to a simpler color scheme when only 8 colors are available, and to no colors if none are available.Continue reading post "Color shell prompt for available colors"
Dark theme for my site
This weekend, I implemented a dark theme for my site.Continue reading post "Dark theme for my site"
SCSS rgba color fallback mixin
Browser support for
rgba colors is very wide, basically working in everything but IE8- and really old browsers. In the name of progressive enhancement, it’s still good to give those browsers a fallback, the simplest being the solid version of the same color. This can be done by putting the property twice, once with a solid value and once with an
rgba value. The non-supporting browsers will take the solid color and ignore the
rgba, while the supporting browsers will take both, with the
rgba overriding. As an example:
color: #fff; color: rgba(1, 1, 1, 0.6);.
To that end, I created a mixin to do this automatically, similar to my