// Copyright (c) 2017-2025, CKSource Holding sp. z o.o. All rights reserved.
// For licensing, see LICENSE.md.

@use 'sass:map';

$u-def-spacing: 1em;
$u-def-spacings: (
	-4: .1,
	-3: .25,
	-2: .5,
	-1: .8,
	0: 1,
	1: 1.166,
	2: 1.333,
	3: 1.5,
	4: 1.666
);

@function u-spacing( $spacing ) {
	@return $u-def-spacing * map.get( $u-def-spacings, $spacing );
}
