Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 5269390

Browse files
committed
github markdown theme
1 parent 2bd077d commit 5269390

File tree

2 files changed

+83
-1
lines changed

2 files changed

+83
-1
lines changed

src/layouts/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components';
33
import Header from '../components/header';
44
import Footer from '../components/footer';
55
import '../styles/style.scss';
6-
import '../styles/prism-base16-ateliersulphurpool.light.css';
6+
import '../styles/prism-github.css';
77

88
const StyledContainer = styled.div`
99
margin-top: 20px !important;

src/styles/prism-github.css

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
2+
/**
3+
* Github-like theme for Prism.js
4+
* @author Luke Askew http://github.com/lukeaskew
5+
*/
6+
code,
7+
code[class*='language-'],
8+
pre[class*='language-'] {
9+
color: #333;
10+
text-align: left;
11+
white-space: pre;
12+
word-spacing: normal;
13+
tab-size: 4;
14+
hyphens: none;
15+
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
16+
line-height: 1.4;
17+
direction: ltr;
18+
cursor: text;
19+
}
20+
21+
pre[class*='language-'] {
22+
overflow: auto;
23+
margin: 1em 0;
24+
padding: 1.2em;
25+
border-radius: 3px;
26+
font-size: 85%;
27+
}
28+
29+
p code,
30+
li code,
31+
table code {
32+
margin: 0;
33+
border-radius: 3px;
34+
padding: 0.2em 0;
35+
font-size: 85%;
36+
}
37+
p code:before, p code:after,
38+
li code:before,
39+
li code:after,
40+
table code:before,
41+
table code:after {
42+
letter-spacing: -0.2em;
43+
content: '\00a0';
44+
}
45+
46+
code,
47+
:not(pre) > code[class*='language-'],
48+
pre[class*='language-'] {
49+
background: #f7f7f7;
50+
}
51+
52+
:not(pre) > code[class*='language-'] {
53+
padding: 0.1em;
54+
border-radius: 0.3em;
55+
}
56+
57+
.token.comment, .token.prolog, .token.doctype, .token.cdata {
58+
color: #969896;
59+
}
60+
.token.punctuation, .token.string, .token.atrule, .token.attr-value {
61+
color: #183691;
62+
}
63+
.token.property, .token.tag {
64+
color: #63a35c;
65+
}
66+
.token.boolean, .token.number {
67+
color: #0086b3;
68+
}
69+
.token.selector, .token.attr-name, .token.attr-value .punctuation:first-child, .token.keyword, .token.regex, .token.important {
70+
color: #795da3;
71+
}
72+
.token.operator, .token.entity, .token.url, .language-css .token.string {
73+
color: #a71d5d;
74+
}
75+
.token.entity {
76+
cursor: help;
77+
}
78+
79+
.namespace {
80+
opacity: 0.7;
81+
}
82+

0 commit comments

Comments
 (0)