91 行
1.7 KiB
Plaintext
91 行
1.7 KiB
Plaintext
/**
|
|
* OmniCard AI - uni-app x (uts) 全局设计 Token 常量定义
|
|
* 严格遵循 AGENTS.md 约束规范与 uts 强类型规范
|
|
*/
|
|
|
|
export type UtsColorTokens = {
|
|
primary: string
|
|
primarySoft: string
|
|
ai: string
|
|
bg: string
|
|
surface: string
|
|
border: string
|
|
text: string
|
|
text2: string
|
|
success: string
|
|
warning: string
|
|
error: string
|
|
}
|
|
|
|
export const utsLightColors: UtsColorTokens = {
|
|
primary: '#0B5CFF',
|
|
primarySoft: '#EAF1FF',
|
|
ai: '#7C5CFF',
|
|
bg: '#FFFFFF',
|
|
surface: '#F7F8FA',
|
|
border: '#E3E7ED',
|
|
text: '#101828',
|
|
text2: '#667085',
|
|
success: '#12B76A',
|
|
warning: '#F79009',
|
|
error: '#F04438'
|
|
}
|
|
|
|
export const utsDarkColors: UtsColorTokens = {
|
|
primary: '#4D8DFF',
|
|
primarySoft: '#102A4D',
|
|
ai: '#9B8CFF',
|
|
bg: '#0B0D10',
|
|
surface: '#12151A',
|
|
border: '#262B33',
|
|
text: '#F2F4F7',
|
|
text2: '#98A2B3',
|
|
success: '#32D583',
|
|
warning: '#FDB022',
|
|
error: '#F97066'
|
|
}
|
|
|
|
export type UtsSpacing = {
|
|
space4: string
|
|
space8: string
|
|
space12: string
|
|
space16: string
|
|
space24: string
|
|
space32: string
|
|
space48: string
|
|
space64: string
|
|
}
|
|
|
|
export const utsSpacing: UtsSpacing = {
|
|
space4: '4px',
|
|
space8: '8px',
|
|
space12: '12px',
|
|
space16: '16px',
|
|
space24: '24px',
|
|
space32: '32px',
|
|
space48: '48px',
|
|
space64: '64px'
|
|
}
|
|
|
|
export type UtsRadius = {
|
|
button: string
|
|
card: string
|
|
modal: string
|
|
}
|
|
|
|
export const utsRadius: UtsRadius = {
|
|
button: '12px',
|
|
card: '16px',
|
|
modal: '20px'
|
|
}
|
|
|
|
export type UtsTypography = {
|
|
fontFamily: string
|
|
shadow: string
|
|
}
|
|
|
|
export const utsTypography: UtsTypography = {
|
|
fontFamily: 'Inter, Noto Sans SC, Noto Sans Arabic, Noto Sans JP, Noto Sans KR, sans-serif',
|
|
shadow: '0 1px 2px rgba(16,24,40,0.04)'
|
|
}
|