diff --git a/pages/_docs/colors.md b/pages/_docs/colors.md
index 9fb3f2f3f..809ec81f9 100644
--- a/pages/_docs/colors.md
+++ b/pages/_docs/colors.md
@@ -3,49 +3,10 @@ title: Colors
menu: docs.colors
---
-
\ No newline at end of file
+## Base colors
+
+{% include example/colors-table.html %}
+
+## Light colors
+
+{% include example/colors-table.html light=true %}
diff --git a/pages/_includes/example/colors-table.html b/pages/_includes/example/colors-table.html
new file mode 100644
index 000000000..e12e50482
--- /dev/null
+++ b/pages/_includes/example/colors-table.html
@@ -0,0 +1,20 @@
+{% assign colors = include.colors | default: site.colors %}
+{% assign light = include.light %}
+
+
+
+ {% for color in colors %}
+
+
+
{{ color[0] | capitalize | first_letter }}
+
+
+ {{ color[1].title }}
+ bg-{{ color[0] }}{% if light %}-lt{% endif %}
+
+
+ {% endfor %}
+
+
+
+
diff --git a/pages/_plugins/jekyll-filters.rb b/pages/_plugins/jekyll-filters.rb
index ae660c3e4..8b2423f06 100644
--- a/pages/_plugins/jekyll-filters.rb
+++ b/pages/_plugins/jekyll-filters.rb
@@ -84,6 +84,11 @@ module Jekyll
input.gsub re, repl_str
end
+
+ def hex_to_rgb(color)
+ r, g, b = color.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/).captures
+ "rgb(#{r.hex}, #{g.hex}, #{b.hex})"
+ end
end
end