




  var lp = (function (exports) {
    var siteColors = exports.siteColors = exports.siteColors || {};

    var _colors = {
          "svart": "#000000",
      "svart": "#000000",           "morkgra": "#222222",
      "morkgra": "#222222",           "ljusgra": "#e7e7e9",
      "ljusgra": "#e7e7e9",           "vit": "#ffffff",
      "vit": "#ffffff",           "kmhrod": "#d0021b",
      "kmh-rod": "#d0021b",           "rosamork": "#e9c6d4",
      "rosa-mork": "#e9c6d4",           "rosamellan": "#fdf0f5",
      "rosa-mellan": "#fdf0f5",           "rosaljus": "#fef8fa",
      "rosa-ljus": "#fef8fa"        };

    siteColors.getAll = function () {
      return _colors;
    };

    siteColors.get = function (colorSlug, defaultColor) {
      if (typeof _colors[colorSlug] === 'string') {
        return _colors[colorSlug];
      }
      return defaultColor;
    };

    siteColors.getSlug = function (colorName) {
      return colorName
        .toLowerCase() // All lowercase
        .replace(/å|ä/g, 'a') // replace åä with a
        .replace(/ö/g, 'o') // replace ö with o
        .replace(/[^a-z0-9]+/g, '-') // replace anything but a-z with -
        .replace(/^-+|-+$/g, ''); // remove invalid trailing and leading
    };

    return exports;
  })(lp || {});

