/*
 * SPDX-FileCopyrightText: © Adrien Plazas <adrien.plazas@puri.sm>
 * SPDX-FileCopyrightText: © Bob Ham <bob.ham@puri.sm>
 * SPDX-FileCopyrightText: © Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm>
 * SPDX-FileCopyrightText: © Guido Günther <agx@sigxcpu.org>
 * SPDX-FileCopyrightText: © Heather Ellsworth <heather.ellsworth@puri.sm>
 * SPDX-FileCopyrightText: © Julian Richen <julian@richen.io>
 * SPDX-FileCopyrightText: © Julian Sparber <julian@sparber.net>
 * SPDX-FileCopyrightText: © Sebastien Lafargue <slafargue@gnome.org>
 * SPDX-FileCopyrightText: © Zander Brown <zbrown@gnome.org>
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

@function gtkalpha($c,$a) {
  @return unquote("alpha(#{$c},#{$a})");
}

@function gtkmix($c1,$c2,$r) {
  $ratio: 1 -  $r / 100%; // match SCSS mix()
  @return unquote("mix(#{$c1},#{$c2},#{$ratio})");
}

@function gtkshade($c,$s) {
  @return unquote("shade(#{$c},#{$s})");
}

@function gtkcolor($c) {
  @return unquote("@#{$c}");
}
