/**
 * Given two lists representing color palettes, this function finds the common colors between them.
 *
 * @param colorPalette A list of colors in the current palette.
 * @param designPalette A list of colors in the design palette.
 * @return A list of common colors present in both palettes.
 */
fun findMatchingColors(colorPalette: List<String>, designPalette: List<String>): List<String> {

    val matchingColors = mutableListOf<String>()

    // Iterate over each color in the colorPalette list
    for (color in colorPalette) {
        if (color in designPalette) {  // Check if the color is present in the designPalette
            matchingColors.add(color)  // Add the color to the matchingColors list
        }
    }

    return matchingColors
}
/**
 * Given two lists representing color palettes, this function finds the common colors between them.
 *
 * @param colorPalette A list of colors in the current palette.
 * @param designPalette A list of colors in the design palette.
 * @return A list of common colors present in both palettes.
 */
fun findMatchingColors(colorPalette: List<String>, designPalette: List<String>): List<String> {
/**
 * Given two lists representing color palettes, this function finds the common colors between them.
 *
 * @param colorPalette A list of colors in the current palette.
 * @param designPalette A list of colors in the design palette.
 * @return A list of common colors present in both palettes.
 */
fun findMatchingColors(colorPalette: List<String>, designPalette: List<String>): List<String> {

    val matchingColors = mutableListOf<String>()

    // Iterate over each color in the colorPalette list
    for (color in colorPalette) {
        if (color in designPalette) {  // Check if the color is present in the designPalette
            matchingColors.add(color)  // Add the color to the matchingColors list
        }
    }

    return matchingColors
}