@use 'sass:map';

/// @access private
///
/// Returns a theme's default and inverse text colors as a contrast pair.
///
/// Which of the two is the lighter color depends on the theme mode, so callers
/// should treat the list as `(default, inverse)` rather than `(light, dark)`.
///
/// @param {Map} $theme — A theme map created with the `daff-create-theme` function.
///
/// @return {List} — The theme's `text-color-default` and `text-color-inverse`.
@function daff-get-font-colors($theme) {
	@return (
		map.get($theme, 'text-color-default'),
		map.get($theme, 'text-color-inverse')
	);
}
