Newer
Older
gnexus-ui-kit / src / scss / components / _badges.scss
@use "../kit-deps" as *;
@use "typography" as *;

.badge {
	background: $color-primary;
	color: $color-black;
	padding: $space-1 $space-2;
	font-size: $font-size-sm;
	font-weight: $font-weight-semibold;
	line-height: $line-height-base;
	letter-spacing: $letter-spacing-wide;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	min-height: 24px;

	&.badge-success {
		background: $color-success;
	}

	&.badge-warning {
		background: $color-warning;
	}

	&.badge-error,
	&.badge-danger {
		background: $color-error;
	}

	&.badge-info {
		background: $color-info;
		color: $color-black;
	}

	&.badge-secondary {
		background: $color-secondary;
		color: $color-black;
	}

	&.badge-primary-outline {
		color: $color-text-light;
		border: $border-width-base solid $color-text-light;
		background: transparent;
		padding: ($space-1 - 2px) $space-2;
	}
}