feat: 새 설문조사 모듈 UI

This commit is contained in:
Hide_D committed 2022-05-16 01:41:10 +09:00
1 parent 99242ac3d3
commit 9f363e46fc
13 files changed
+650 -19

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import _colorNames from 'css-color-names';
const colorNames = _colorNames as Record<string, string>;
const colors: string[] = [
"red", "orange", "yellow", "green", "blue", "navy", "purple"
].map(color => colorNames[color]);
export function formatVoteColor(type: number): string {
return colors[type % colors.length];
}