@chayns-components/emoji-input
Version:
Input field that supports HTML elements and emojis
10 lines • 429 B
JavaScript
import { getIsMacOS, getIsMobile } from './environment';
const getRootFontFamily = () => {
const rootElement = document.querySelector(':root');
if (!rootElement) {
return '';
}
return window.getComputedStyle(rootElement).getPropertyValue('font-family');
};
export const getFontFamily = () => `${getRootFontFamily()}${getIsMobile() || getIsMacOS() ? '' : ', Noto Color Emoji'}, serif`;
//# sourceMappingURL=font.js.map