mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 21:45:01 +02:00
11 lines
367 B
TypeScript
11 lines
367 B
TypeScript
import { Class, Doc, Ref } from '@anticrm/core'
|
|
import { getPlatformColorForText } from '@anticrm/ui'
|
|
|
|
export function getMixinStyle (id: Ref<Class<Doc>>, selected: boolean): string {
|
|
const color = getPlatformColorForText(id as string)
|
|
return `
|
|
background: ${color + (selected ? 'ff' : '33')};
|
|
border: 1px solid ${color + (selected ? '0f' : '66')};
|
|
`
|
|
}
|