How to use the @elastic/eui/dist/eui_theme_light.json.euiColorEmptyShade 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 / apm / public / components / shared / KueryBar / Typeahead / Suggestion.js View on Github external
background: ${props =>
        props.selected
          ? theme.euiColorEmptyShade
          : theme.euiColorLightestShade};
    }
github elastic / kibana / x-pack / plugins / apm / public / components / shared / charts / Tooltip / index.js View on Github external
import {
  unit,
  units,
  px,
  borderRadius,
  fontSize,
  fontSizes
} 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)};
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 / jobs / jobs_list / components / job_group / job_group.js View on Github external
export function JobGroup({ name }) {
  return (
    <div style="{{" data-test-subj="mlJobGroup">
      {name}
    </div>
  );
}
JobGroup.propTypes = {
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 / ml / public / components / kql_filter_bar / suggestion / suggestion.js View on Github external
background: ${props =>
        props.selected ? theme.euiColorEmptyShade : theme.euiColorLightestShade};
    }
github elastic / kibana / x-pack / legacy / plugins / ml / public / application / jobs / jobs_list / components / job_group / job_group.js View on Github external
export function JobGroup({ name }) {
  return (
    <div style="{{" data-test-subj="mlJobGroup">
      {name}
    </div>
  );
}
JobGroup.propTypes = {
github elastic / kibana / x-pack / legacy / plugins / apm / public / components / shared / Stacktrace / Variables.tsx View on Github external
import { i18n } from '@kbn/i18n';
import React from 'react';
import styled from 'styled-components';
import { IStackframe } from '../../../../typings/es_schemas/raw/fields/Stackframe';
import {
  borderRadius,
  fontFamily,
  px,
  unit,
  units
} from '../../../style/variables';
import { Ellipsis } from '../Icons';
import { DottedKeyValueTable } from '../DottedKeyValueTable';

const VariablesContainer = styled.div`
  background: ${theme.euiColorEmptyShade};
  border-top: 1px solid ${theme.euiColorLightShade};
  border-radius: 0 0 ${borderRadius} ${borderRadius};
  padding: ${px(units.half)} ${px(unit)};
  font-family: ${fontFamily};
`;

const VariablesToggle = styled.a`
  display: block;
  cursor: pointer;
  user-select: none;
`;

const VariablesTableContainer = styled.div`
  padding: ${px(units.plus)} ${px(unit)} 0;
`;
github elastic / kibana / x-pack / legacy / plugins / apm / public / components / shared / charts / Tooltip / index.js View on Github external
import {
  unit,
  units,
  px,
  borderRadius,
  fontSize,
  fontSizes
} 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)};