How to use the @elastic/eui/dist/eui_theme_light.json.euiColorLightestShade function in @elastic/eui

To help you get started, we’ve selected a few @elastic/eui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elastic / kibana / x-pack / legacy / plugins / uptime / public / components / functional / kuery_bar / typeahead / suggestion.js View on Github external
background: ${props =>
    props.selected ? theme.euiColorEmptyShade : theme.euiColorLightestShade};
    }
github elastic / kibana / x-pack / legacy / plugins / apm / public / components / shared / Stacktrace / Context.tsx View on Github external
background: ${props =>
    props.isLibraryFrame
      ? theme.euiColorEmptyShade
      : theme.euiColorLightestShade};
`;
github elastic / kibana / x-pack / legacy / plugins / ml / public / components / kql_filter_bar / suggestion / suggestion.js View on Github external
  background: ${props => (props.selected ? theme.euiColorLightestShade : 'initial')};
  cursor: pointer;
github elastic / kibana / x-pack / legacy / plugins / apm / public / components / shared / charts / Timeline / VerticalLines.js View on Github external
style={{
          position: 'absolute',
          top: 0,
          left: 0
        }}
      >
        
          

          

          {topTraceDuration > 0 && (
            
          )}
        
      
    );
github elastic / kibana / x-pack / legacy / plugins / apm / public / components / shared / Stacktrace / Stackframe.tsx View on Github external
background: ${props =>
    props.isLibraryFrame
      ? theme.euiColorEmptyShade
      : theme.euiColorLightestShade};
`;
github elastic / kibana / x-pack / legacy / plugins / apm / public / components / shared / charts / Tooltip / index.js View on Github external
} from '../../../../style/variables';
import Legend from '../Legend';
import theme from '@elastic/eui/dist/eui_theme_light.json';

const TooltipElm = styled.div`
  margin: 0 ${px(unit)};
  transform: translateY(-50%);
  border: 1px solid ${theme.euiColorLightShade};
  background: ${theme.euiColorEmptyShade};
  border-radius: ${borderRadius};
  font-size: ${fontSize};
  color: ${theme.euiColorFullShade};
`;

const Header = styled.div`
  background: ${theme.euiColorLightestShade};
  border-bottom: 1px solid ${theme.euiColorLightShade};
  border-radius: ${borderRadius} ${borderRadius} 0 0;
  padding: ${px(units.half)};
  color: ${theme.euiColorMediumShade};
`;

const Content = styled.div`
  margin: ${px(units.half)};
  margin-right: ${px(unit)};
  font-size: ${fontSizes.small};
`;

const Footer = styled.div`
  color: ${theme.euiColorMediumShade};
  margin: ${px(units.half)};
  font-size: ${fontSizes.small};
github elastic / kibana / x-pack / legacy / plugins / apm / public / components / app / TransactionDetails / WaterfallWithSummmary / WaterfallContainer / Waterfall / WaterfallItem.tsx View on Github external
const Container = styled('div')`
  position: relative;
  display: block;
  user-select: none;
  padding-top: ${px(units.half)};
  padding-bottom: ${px(units.plus)};
  margin-right: ${props => px(props.timelineMargins.right)};
  margin-left: ${props => px(props.timelineMargins.left)};
  border-top: 1px solid ${theme.euiColorLightShade};
  background-color: ${props =>
    props.isSelected ? theme.euiColorLightestShade : 'initial'};
  cursor: pointer;

  &:hover {
    background-color: ${theme.euiColorLightestShade};
  }
`;

const ItemBar = styled('div')`
  box-sizing: border-box;
  position: relative;
  height: ${px(unit)};
  min-width: 2px;
  background-color: ${props => props.color};
`;

const ItemText = styled.span`
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
github elastic / kibana / x-pack / plugins / ml / public / components / kql_filter_bar / suggestion / suggestion.js View on Github external
background: ${props =>
    props.selected ? theme.euiColorLightestShade : 'initial'};
  cursor: pointer;
github elastic / kibana / x-pack / legacy / plugins / apm / public / components / shared / charts / Histogram / index.js View on Github external
tickTotal={X_TICK_TOTAL}
              tickFormat={formatX}
            />
            

            {showBackgroundHover && (
              
            )}

            {shouldShowTooltip && (
github elastic / kibana / x-pack / legacy / plugins / apm / public / components / shared / KueryBar / Typeahead / Suggestion.js View on Github external
background: ${props =>
        props.selected
          ? theme.euiColorEmptyShade
          : theme.euiColorLightestShade};
    }