x
This commit is contained in:
1 parent
e77ac4befa
commit
46f00c76a4
2 files changed
+14
No files matched your search
@@ -37,6 +37,7 @@ function App() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const lang = i18n.language;
|
const lang = i18n.language;
|
||||||
|
document.documentElement.lang = lang;
|
||||||
document.body.classList.remove('font-sans-ja', 'font-sans-zh', 'font-sans-ko');
|
document.body.classList.remove('font-sans-ja', 'font-sans-zh', 'font-sans-ko');
|
||||||
|
|
||||||
if (lang === 'ja') {
|
if (lang === 'ja') {
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
|
--font-sans: 'Sarabun', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
|
--font-heading: 'Prompt', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
|
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, 'Prompt', serif;
|
||||||
|
--font-sans-ja: '"Noto Sans JP"', ui-sans-serif, system-ui, sans-serif;
|
||||||
|
--font-sans-zh: '"Noto Sans SC"', ui-sans-serif, system-ui, sans-serif;
|
||||||
|
--font-sans-ko: '"Noto Sans KR"', ui-sans-serif, system-ui, sans-serif;
|
||||||
|
|
||||||
--color-pop-pink: #FF6B6B;
|
--color-pop-pink: #FF6B6B;
|
||||||
--color-pop-yellow: #FFF200;
|
--color-pop-yellow: #FFF200;
|
||||||
--color-pop-orange: #FFA07A;
|
--color-pop-orange: #FFA07A;
|
||||||
@@ -92,3 +99,9 @@ html {
|
|||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
box-shadow: var(--shadow-brutal);
|
box-shadow: var(--shadow-brutal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fallback Thai Serif to Prompt for luxury classical look */
|
||||||
|
:lang(th) .font-serif {
|
||||||
|
font-family: 'Prompt', sans-serif !important;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user