// Gets a color value from color map, defined in colorDefinitions

/* @function color($colorName) {
    @return map-get($colors, $colorName);
} */

// Helper function for checking if theme exists in theme colors
@function theme-exists($key, $theme) {
    @if map-has-key($theme-values, $key) {
        @return map-has-key(map-get($theme-values, $key), $theme);
    }

    @return null;
}

// Helper function for getting a theme value
@function get-theme-value($key, $theme) {
    @return map-get(map-get($theme-values, $key), $theme);
}
