Files
FixIt/assets/scss/core/functions/_rgba.scss
T
Cell dd6d320654 refactor!: build with Dart Sass and update Vercel deployment scripts (#746)
* BREAKING CHANGE: refactor with Dart Sass (supplement to #741)

* chore: update .gitignore to include .vercel and .env*.local

* CI: add build script for Hugo site deployment on Vercel

* CI: update build script for Hugo site deployment on Vercel

* refactor: update SCSS layout styles and introduce page-style mixin

* refactor: reorganize SCSS files and improve layout structure

* refactor: rename copy button classes and update related styles
2026-05-10 23:02:54 +08:00

11 lines
412 B
SCSS

@use "sass:string";
/// Build an rgba-like color from any source color expression.
/// @param {Color | String} $color - Source color, supports CSS vars such as fi-var(secondary).
/// @param {Number} $alpha [1] - Alpha channel value in range 0..1.
/// @example
/// color: fi-rgba(fi-var(secondary), 0.2);
@function rgba($color, $alpha: 1) {
@return string.unquote("rgb(from #{$color} r g b / #{$alpha})");
}