文章目录
打造Typora主题
Typora 编辑器让人们能更简单地用Markdown语言书写文字,解决了使用传统的Markdown编辑器写文的痛点,并且界面简洁优美,实现了实时预览等功能。
1 typoa样式修改步骤
1.1 第一步打开偏好设置
1.2 第二步打开主题文件夹
2 标题添加颜色
可通过色卡app自行搭配一套笔记搭的颜色
h1 {
color: #0077bb; /* 将标题改为蓝色 */
}
h2{
color:#6A5ACD
}
h3{
color: rgb(26, 143, 55)
}
h4{
color: #87CEFA
}
h5{
color:#87CEFA
}
strong {
color:#40E0D0
}
3 表格优化
表格各行变色,宽度设置为100%(个人喜欢,可以根据个人喜好留白),表头不换行,默认样式表头很长会自动换行很丑,普通行文字自动换行,这里设置了每行不一样的颜色,如果不喜欢花里胡哨,可以简单设置几个颜色即可。
tbody tr:nth-child(even){
background-color:#effaff;}
tbody tr:nth-child(odd){
background-color:#fff1f6;}
tbody tr:nth-child(1){
background-color:#8AE1FC;}
tbody tr:nth-child(2){
background-color:#EFA7A7;}
tbody tr:nth-child(3){
background-color:#FFD972;}
tbody tr:nth-child(4){
background-color:#FCF5FC;}
tbody tr:nth-child(5){
background-color:#F3F1EC;}
tbody tr:nth-child(6){
background-color:#CCECD6;}
tbody tr:nth-child(7){
background-color:#C2DDA6;}
tbody tr:nth-child(8){
background-color:#c9af98;}
tbody tr:nth-child(9){
background-color:#F5E5FC;}
tbody tr:nth-child(10){
background-color:#ed8a63;}
table thead{
white-space:nowrap;
}
table {
width:100%;
table-layout:fixed !important;
word-break:break-word !important;
}
4 代码块Mac风格三个圆点
/* 代码块主题 */
/* 顶部 */
.md-fences {
color: #c5c8c6;
background-color: #21252b;
border-radius: 5px;
box-shadow: 0 10px 30px 0 rgb(0 0 0 / 40%);
padding-top: 30px;
font-family: monospace, 'PingFang SC', 'Microsoft YaHei';
}
.md-fences::before {
background: #fc625d;
border-radius: 50%;
box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
content: ' ';
height: 12px;
left: 12px;
margin-top: -20px;
position: absolute;
width: 12px;
}
5 主题总代码如下:
:root {
--side-bar-bg-color: #fafafa;
--control-text-color: #777;
}
@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);
/* open-sans-regular - latin-ext_latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: normal;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url('./github/open-sans-v17-latin-ext_latin-regular.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259