colors.tsx 872 B

12345678910111213141516171819202122
  1. import Color from 'color';
  2. import {CHART_PALETTE} from 'sentry/constants/chartPalette';
  3. export const COUNT_COLOR = CHART_PALETTE[0][0];
  4. export const THROUGHPUT_COLOR = CHART_PALETTE[3][3];
  5. export const TXN_THROUGHPUT_COLOR = CHART_PALETTE[3][2];
  6. export const P50_COLOR = CHART_PALETTE[3][1];
  7. export const P95_COLOR = CHART_PALETTE[0][0];
  8. export const AVG_COLOR = CHART_PALETTE[0][0];
  9. export const ERRORS_COLOR = CHART_PALETTE[5][3];
  10. // TODO: Synchronize with `theme.tsx` or `CHART_PALETTE`
  11. export const HTTP_RESPONSE_3XX_COLOR = '#F2B712';
  12. export const HTTP_RESPONSE_4XX_COLOR = '#F58C46';
  13. export const HTTP_RESPONSE_5XX_COLOR = '#E9626E';
  14. export const COLD_START_COLOR = '#3C74DD';
  15. export const WARM_START_COLOR = '#3A2D96';
  16. export const PRIMARY_RELEASE_COLOR = COLD_START_COLOR;
  17. export const SECONDARY_RELEASE_COLOR = Color(COLD_START_COLOR).lighten(0.4).string();