import styled from "styled-components"; import * as tokens from "@tokens"; import { ButtonThemeProps } from "./interfaces"; const common = (props: ButtonThemeProps) => ` display: inline-block; position: relative; background: ${props.theme.spanBackground}; color: #e3656d; @supports (mix-blend-mode: lighten) { color: ${props.theme.spanColor}; mix-blend-mode: ${props.theme.spanMixBlendMode}; &::before { mix-blend-mode: ${props.theme.spanMixBlendModeBefore}; content: ''; display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: ${tokens.colorCustomFontGradient}; pointer-events: none; } } `; const StyledSpan = styled.span` ${(props: ButtonThemeProps) => common(props)}; `; export default StyledSpan;