feat: 优化颜色选择器页面

This commit is contained in:
奔跑的面条
2023-02-25 22:28:09 +08:00
parent a8ac40770d
commit 9598965bda
3 changed files with 84 additions and 40 deletions
+5
View File
@@ -91,6 +91,11 @@ export function darken(color: string, concentration: number) {
* @param hsl
* @returns
*/
export function hslToHexa(hslString: string): string {
const color = Color(hslString);
return color.hexa()
}
export function hslToHex(hslString: string): string {
const color = Color(hslString);
return color.hex()