mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
migrate to typescript
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import type { ColorValue } from '@/core/color.ts';
|
||||
|
||||
const defaultColor: ColorValue = '000000';
|
||||
|
||||
export const DEFAULT_ICON_COLOR: ColorValue = defaultColor;
|
||||
export const DEFAULT_ACCOUNT_COLOR: ColorValue = defaultColor;
|
||||
export const DEFAULT_CATEGORY_COLOR: ColorValue = defaultColor;
|
||||
|
||||
const allAvailableColors: ColorValue[] = [
|
||||
'000000', // black
|
||||
'8e8e93', // gray
|
||||
'ff3b30', // red
|
||||
'ff2d55', // pink
|
||||
'ff6b22', // deep orange
|
||||
'ff9500', // orange
|
||||
'ffcc00', // yellow
|
||||
'cddc39', // lime
|
||||
'009688', // teal
|
||||
'4cd964', // green
|
||||
'5ac8fa', // light blue
|
||||
'2196f3', // blue
|
||||
'673ab7', // deep purple
|
||||
'9c27b0', // purple
|
||||
];
|
||||
|
||||
export const ALL_ACCOUNT_COLORS: ColorValue[] = allAvailableColors;
|
||||
export const ALL_CATEGORY_COLORS: ColorValue[] = allAvailableColors;
|
||||
|
||||
export const DEFAULT_CHART_COLORS: ColorValue[] = [
|
||||
'cc4a66',
|
||||
'e3564a',
|
||||
'fc892c',
|
||||
'ffc349',
|
||||
'4dd291',
|
||||
'24ceb3',
|
||||
'2ab4d0',
|
||||
'065786',
|
||||
'713670',
|
||||
'8e1d51'
|
||||
];
|
||||
Reference in New Issue
Block a user