UNPKG

@equinor/eds-core-react

Version:

The React implementation of the Equinor Design System

55 lines (52 loc) 799 B
import { tokens } from '@equinor/eds-tokens'; const { colors: { text: { static_icons__primary_white: { rgba: white } }, ui: { background__overlay: { rgba: background } } }, typography: { ui }, spacings: { comfortable: { x_large: spacingXlarge, small: spacingSmall } }, shape: { corners: { borderRadius } } } = tokens; const tooltip = { typography: { ...ui.tooltip, color: white }, background, border: { type: 'border', radius: borderRadius }, entities: { arrow: { width: '6px', height: spacingSmall} }, spacings: { left: spacingSmall, right: spacingSmall, top: spacingSmall, bottom: spacingSmall } }; export { tooltip };