Skip to content

Commit

Permalink
feat: add emoji font for windows flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Oct 3, 2024
1 parent 8a0ef58 commit 59dd62e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const Header = () => {
>
<div>
<PopoverTrigger>
<Button {...HEADER_BUTTON_PROPS}>
<Button {...HEADER_BUTTON_PROPS} className="font-noto-emoji">
{currentLanguage.flag}
</Button>
</PopoverTrigger>
Expand All @@ -85,7 +85,8 @@ export const Header = () => {
variant="light"
onClick={() => i18n.changeLanguage(language.code)}
>
{language.name} {language.flag}
<span>{language.name} </span>
<span className="font-noto-emoji">{language.flag}</span>
</Button>
))}
</PopoverContent>
Expand Down
4 changes: 3 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

* {
body {
font-family: 'Outfit Variable', sans-serif;
}
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export default {
colors: {
'apple-gray': { 300: '#DFDFDF', 500: '#AFAFAF' },
},
fontFamily: {
'noto-emoji': ['"Noto Color Emoji"', 'sans-serif'],
},
},
},
darkMode: 'class',
Expand Down

0 comments on commit 59dd62e

Please sign in to comment.