@use "sass:map";

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

$radio-default-accent: (
  "dark": (
    "border-active": rgba(pcolor(blue, 5), 1),
    "bg": rgba(pcolor(blue, 3), 1),
    "fg": rgba(#fff, 0.6),
  ),
  "light": (
    "border-active": rgba(pcolor(blue, 5), 1),
    "bg": rgba(pcolor(blue, 3), 1),
    "fg": rgba(#000, 0.6),
  ),
) !default;

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

  // prettier-ignore
  @return (
    "border-active": rgba(darken($bg, 15%), 1), 
    "bg": rgba($bg, 1),
  );
}
