import { Props, c, css } from "atomico"; import { tokensColor, tokensSize } from "../site-tokens"; function siteCount({ value, color }: Props) { return (
{value}
); } siteCount.props = { value: { type: Number, }, color: { type: String, }, unstyle: { type: Boolean, reflect: true, }, }; siteCount.styles = [ tokensSize, tokensColor, css` :host { --size: var(--size-5); --dot-color: var(--color-background); display: grid; align-items: center; grid-template-columns: auto 1fr; gap: var(--size-5); } .dot { width: var(--size); height: var(--size); background: var(--dot-bgcolor, #fff); display: flex; align-items: center; justify-content: center; border-radius: 100px; font-weight: var(--font-bold); color: var(--dot-color); font-size: calc(var(--size) * 0.6); } `, ]; export const SiteCount = c(siteCount);