为帖子部分创建自定义CSS样式的最佳实践?

检查来自 https://fonts.google.com/share?selection.family=Playwrite+US+Trad:wght@100..400, 的嵌入代码,它看起来应该是 \"Playwrite US Trad\"

// <uniquifier>: 使用唯一且描述性的类名
// <weight>: 使用 100 到 400 之间的值

.playwrite-us-trad-<uniquifier> {
  font-family: "Playwrite US Trad", cursive;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}