@coinmeca/ui
Version:
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
42 lines (41 loc) • 1.09 kB
JSX
"use client";
import { Root } from "../../../lib/style";
import { styled } from "styled-components";
export const Count = styled.span `
background: rgb(${({ $color }) => Root.Color($color)});
color: black;
text-align: center;
position: absolute;
top: -0.5em;
right: -0.5em;
font-size: 0.5em;
padding: 0 0.25em;
min-width: 0.75em;
border-radius: 1em;
`;
const Style = styled.i `
position: relative;
display: flex;
align-items: center;
justify-content: center;
max-width: max-content;
font-style: initial;
font-size: ${({ $scale }) => ($scale || 1) * 2.5}em;
width: 1em;
height: 1em;
aspect-ratio: 1/1;
& svg {
width: 100%;
height: 100%;
fill: ${({ $color, $change }) => $change
? "rgb(var(--change))"
: $color
? $color === Root.Color($color)
? `${$color}`
: `rgb(${Root.Color($color)})`
: "inherit"};
transition: 0.3s ease;
}
`;
export default Style;
//# sourceMappingURL=Icon.styled.jsx.map