@use "sass:map";

@use "../../../mixins" as *;
@use "../../../utils" as *;
@use "../../palette" as *;
@use "../../text" as *;

$item-default-accent: (
  "dark": (
    "description-fg": fg(muted, dark),
    "title-fg": fg(base, dark),
  ),
  "light": (
    "description-fg": fg(muted, light),
    "title-fg": fg(base, light),
  ),
) !default;

@function map-to-item($theme, $accent, $colors) {
  $fg: map.get($colors, "bg");

  @return ("description-fg": fg-src($fg, muted), "title-fg": fg-src($fg, base));
}
