Obsidian自定义主题

方法1:主题文件

Colorful Light

方法2:在默认主题上进行更改

step 1:增加css

使状态栏平铺显示、调整markdown显示使其文字两端对齐、增加预览窗口大小、markdown图片默认居中显示、增加全屏状态下的文字宽度即调整页边距。

/* Full status bar */
.status-bar {
  --status-bar-position: static;  /* Full it. */
  --status-bar-radius: 0 0 0 0;  /* Make the upper left corner rounded corner disappear. */
}


/* Adjusting markdown text so that it is aligned at both ends */
.cm-s-obsidian,
.markdown-preview-view {
  text-align: justify;
  hyphens: auto;
}


/* Increase the size of the link preview window */
.popover.hover-popover {
  transform: scale(0.8); /* makes the content smaller */
  max-height: 800px; /* was 300 */
  min-height: 100px;
  width: 500px; /* was 400 */
}
.popover.hover-popover .markdown-embed {
  height: 800px;
}


/* Rendering a centered image */
img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.markdown-source-view.mod-cm6 .cm-content > * {
  margin: auto !important;
}


/* Bigger the text with in every mode */
body{
  --file-line-width: 65rem;  /* default is 45rem */
}
/* .markdown-preview-view.is-readable-line-width .markdown-preview-sizer {
  max-width: 95%;
}
.markdown-source-view.mod-cm6.is-readable-line-width .cm-sizer {
  max-width: 95%;
} */

step 2:调整字体

设置-->外观-->字体中更改界面字体正文字体微软雅黑

step 3:调整字体颜色

下载插件Style Settings和对应的Obsidian默认主题的所有可修改文件的css,这个css可以在插件的GitHub上找到。
随后更改字体颜色为#333333即可。

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

D-A-X

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值