@use 'sass:list';

//
// Applies !important rule based on context.
//
// Requires `$important_contexts` list variable to be defined!
//
// @since    1.0.0
// @version  2.0.0
//
// @param  string $context
//
@function _important( $context ) {

	@if list.index( $important_contexts, $context ) {
		@return !important;
	} @else {
		@return null;
	}
}
