// Copyright (c) roydukkey. All rights reserved.
// Licensed under the MIT. See LICENSE file in the project root for full license information.

@use 'sass:meta'
@use '@sass-fairy/exception/src/parameter-type'
@use 'is-dark'


///
/// @throw `#{$color}` is not a color.
///
@function is-light($color)

	@if meta.type-of($color) != 'color'
		@error parameter-type.parameter-type('is-light', 'color', $color, 'color')

	@return not is-dark.is-dark($color)
