Blog: Jeremy Warner
Jeremy Warner's Blog
Posts
Categories
Tags
Jeremy Warner's Blog
Posts
Categories
Tags
  • New Colors!

New Colors!

I've updated the site with new colors, updated some styling, and introduced custom colors on the tags and categories. I ended up cribbing pretty heavily off of Material Design chips for the tags and categories - don't break what works, I suppose.

It's nice working in a Vue environment, so I can focus on making what I want happen instead of learning how XYZ framework should be hooked together.

Consistent Colors

It's a pretty common pattern, but I enjoyed setting up the color calculation for the tags. I've got a preset list of colors, and then based on the text of the tag, I compute a number, mod it by the size of the tag color list, and then use that as the list index. This means everywhere I use the same tag text, I can compute a consistent color, and new tags automatically get a new color - no other config needed.

Last Updated:: 5/5/25, 3:16 AM
Contributors: Jeremy Warner