@redocly/graphql-docs
Version:
Redocly GraphQL docs
11 lines (10 loc) • 689 B
JavaScript
import{jsx as n}from"react/jsx-runtime";import{styled as t}from"../../styled-components.js";const s=r=>{if(r===void 0)return;const o=["#9D00FF","#615CEA","#147DF5","#08BFCC","#08CC7A","#81CC08","#E5BE00","#FF8700","#FF00B8"];return o[r%o.length]};function d({sign:r,className:o,color:e}){return n(l,{className:o,color:e,children:r})}const l=t.span`
background-color: var(--bg-color);
border-radius: 50%;
border: 1px solid ${({color:r})=>r||"var(--border-color-primary)"};
font-size: var(--font-size-lg);
line-height: var(--font-size-lg);
color: ${({color:r})=>r||"var(--text-color-secondary)"};
width: 20px;
height: 20px;
`;export{d as CircleIcon,s as cycleColorsByLevel};