mirror of
https://github.com/zen-browser/astro-site-test.git
synced 2025-07-08 00:49:58 +02:00
feat(tailwind): enhance font stack for 'dm' and apply font to h2 elements
This commit is contained in:
parent
98f82b9b31
commit
aae44e209f
1 changed files with 11 additions and 2 deletions
|
@ -48,7 +48,16 @@ module.exports = {
|
||||||
'"Segoe UI Symbol"',
|
'"Segoe UI Symbol"',
|
||||||
'"Noto Color Emoji"',
|
'"Noto Color Emoji"',
|
||||||
],
|
],
|
||||||
dm: ["DM Sans"],
|
dm: [
|
||||||
|
"DM Sans",
|
||||||
|
"ui-sans-serif",
|
||||||
|
"system-ui",
|
||||||
|
"sans-serif",
|
||||||
|
'"Apple Color Emoji"',
|
||||||
|
'"Segoe UI Emoji"',
|
||||||
|
'"Segoe UI Symbol"',
|
||||||
|
'"Noto Color Emoji"',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
fontSize: {
|
fontSize: {
|
||||||
"scale-sm": "clamp(1rem, 2vw, 1.5rem)",
|
"scale-sm": "clamp(1rem, 2vw, 1.5rem)",
|
||||||
|
@ -72,7 +81,7 @@ module.exports = {
|
||||||
addBase({
|
addBase({
|
||||||
h2: {
|
h2: {
|
||||||
fontSize: `clamp(${theme("fontSize.6xl")}, 10vw, calc(${theme("fontSize.6xl")} + 1rem))`,
|
fontSize: `clamp(${theme("fontSize.6xl")}, 10vw, calc(${theme("fontSize.6xl")} + 1rem))`,
|
||||||
"@apply font-bold text-secondary leading-none": {},
|
"@apply font-bold text-secondary leading-none font-dm": {},
|
||||||
},
|
},
|
||||||
h3: {
|
h3: {
|
||||||
fontSize: `clamp(${theme("fontSize.4xl")}, 10vw, calc(${theme("fontSize.4xl")} + 1rem))`,
|
fontSize: `clamp(${theme("fontSize.4xl")}, 10vw, calc(${theme("fontSize.4xl")} + 1rem))`,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue