import { TinyColor } from '@ctrl/tinycolor'; import { computed, defineComponent } from 'vue'; import { useToken } from '../theme/internal'; const Simple = defineComponent({ compatConfig: { MODE: 3 }, setup() { const [, token] = useToken(); const color = computed(() => { const { colorFill, colorFillTertiary, colorFillQuaternary, colorBgContainer } = token.value; return { borderColor: new TinyColor(colorFill).onBackground(colorBgContainer).toHexString(), shadowColor: new TinyColor(colorFillTertiary).onBackground(colorBgContainer).toHexString(), contentColor: new TinyColor(colorFillQuaternary) .onBackground(colorBgContainer) .toHexString(), }; }); return () => ( ); }, }); Simple.PRESENTED_IMAGE_SIMPLE = true; export default Simple;