Created
January 9, 2024 09:39
-
-
Save RiddMa/4ecfd0a6d4f398b2504fabf6b9113eee to your computer and use it in GitHub Desktop.
CSS设置语义化标签别名,应用字体样式
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: -apple-system, BlinkMacSystemFont, SFProDisplay-Regular, "PingFang SC", "Myriad Pro", | |
"Noto Sans SC", sans-serif; | |
} | |
.text-body { | |
@apply text-base; | |
} | |
.text-caption { | |
@apply text-sm; | |
} | |
.text-h1 { | |
@apply text-2xl font-normal; | |
} | |
.text-h2 { | |
@apply text-xl font-normal; | |
} | |
.text-href { | |
@apply no-underline hover:underline; | |
} | |
.text-color-body { | |
@apply text-slate-700 dark:text-slate-300; | |
} | |
.text-color-caption{ | |
@apply text-slate-600 dark:text-slate-400; | |
} | |
.text-color-headings { | |
@apply text-slate-900 dark:text-white; | |
} | |
.text-color-href { | |
@apply text-sky-600; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment