Add desktop games, robot pet and TCG app
This commit is contained in:
1 parent
812503251b
commit
c664f573b8
55 files changed
+5090
-15
No files matched your search
@@ -0,0 +1,17 @@
|
||||
const energyColors: Record<string, string> = {
|
||||
fire: 'var(--red)',
|
||||
water: 'var(--blue)',
|
||||
grass: 'var(--green)',
|
||||
lightning: 'var(--yellow)',
|
||||
psychic: 'var(--magenta)',
|
||||
fairy: 'var(--magenta)',
|
||||
fighting: 'var(--orange)',
|
||||
dragon: 'var(--orange)',
|
||||
darkness: 'var(--muted)',
|
||||
metal: 'var(--cyan)',
|
||||
colorless: 'var(--foreground)'
|
||||
};
|
||||
|
||||
export function energyColor(type: string): string {
|
||||
return energyColors[type.toLowerCase()] ?? 'var(--foreground)';
|
||||
}
|
||||
Reference in new issue
Block a user