feat: create settings modal

This commit is contained in:
Sonny
2024-05-16 23:54:40 +02:00
committed by Sonny
parent 18b2eb2c5a
commit 53aa7bc22b
16 changed files with 205 additions and 19 deletions

6
inertia/lib/color.ts Normal file
View File

@@ -0,0 +1,6 @@
import hexRgb from 'hex-rgb';
export const rgba = (hex: string, alpha: number) => {
const rgb = hexRgb(hex, { format: 'array' }).slice(0, -1).join(',');
return `rgba(${rgb},${alpha})`;
};