forked from akanyan/STARTLINER
feat: phase 2
Newfound motivation
This commit is contained in:
22
src/util.ts
Normal file
22
src/util.ts
Normal file
@ -0,0 +1,22 @@
|
||||
import { updatePrimaryPalette } from '@primevue/themes';
|
||||
import { Package } from './types';
|
||||
|
||||
export const changePrimaryColor = (game: 'Ongeki' | 'Chunithm') => {
|
||||
const color = game === 'Ongeki' ? 'pink' : 'yellow';
|
||||
|
||||
updatePrimaryPalette({
|
||||
50: `{${color}.50}`,
|
||||
100: `{${color}.100}`,
|
||||
200: `{${color}.200}`,
|
||||
300: `{${color}.300}`,
|
||||
400: `{${color}.400}`,
|
||||
500: `{${color}.500}`,
|
||||
600: `{${color}.600}`,
|
||||
700: `{${color}.700}`,
|
||||
800: `{${color}.800}`,
|
||||
900: `{${color}.900}`,
|
||||
950: `{${color}.950}`,
|
||||
});
|
||||
};
|
||||
|
||||
export const pkgKey = (pkg: Package) => `${pkg.namespace}-${pkg.name}`;
|
Reference in New Issue
Block a user