Skip to content

Commit

Permalink
feat: change markdown to Tommorrow Night theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyi7099 committed Aug 16, 2019
1 parent 8c150fa commit 13a1f41
Showing 1 changed file with 42 additions and 48 deletions.
90 changes: 42 additions & 48 deletions packages/antdsite/src/default-theme/assets/highlight.less
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
/**
* prism.js Dark theme for JavaScript, CSS and HTML
* Based on the slides of the talk “/Reg(exp){2}lained/”
* @author Lea Verou
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/chriskempson/tomorrow-theme
* @author Rose Pritchard
*/

pre code[class*='language-'],
pre[class*='language-'] {
color: white;
color: #ccc;
background: none;
text-shadow: 0 -0.1em 0.2em black;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
Expand All @@ -28,78 +27,73 @@ pre[class*='language-'] {
hyphens: none;
}

@media print {
code[class*='language-'],
pre[class*='language-'] {
text-shadow: none;
}
}

pre[class*='language-'] {
background: hsl(30, 20%, 25%);
}

/* Code blocks */
pre[class*='language-'] {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
border: 0.3em solid hsl(30, 20%, 40%);
border-radius: 0.5em;
box-shadow: 1px 1px 0.5em black inset;
}

pre[class*='language-'] {
background: #2d2d2d;
}

.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: hsl(30, 20%, 50%);
color: #999;
}

.token.punctuation {
opacity: 0.7;
color: #ccc;
}

.namespace {
opacity: 0.7;
.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color: #e2777a;
}

.token.function-name {
color: #6196cc;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.function {
color: #f08d49;
}

.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: hsl(350, 40%, 70%);
color: #f8c555;
}

.token.selector,
.token.attr-name,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
color: #cc99cd;
}

.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: hsl(75, 70%, 60%);
.token.attr-value,
.token.regex,
.token.variable {
color: #7ec699;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
color: hsl(40, 90%, 60%);
}

.token.atrule,
.token.attr-value,
.token.keyword {
color: hsl(350, 40%, 70%);
}

.token.regex,
.token.important {
color: #e90;
.token.url {
color: #67cdcc;
}

.token.important,
Expand All @@ -114,8 +108,8 @@ pre[class*='language-'] {
cursor: help;
}

.token.deleted {
color: red;
.token.inserted {
color: green;
}

/////////
Expand Down

0 comments on commit 13a1f41

Please sign in to comment.