Skip to content

Commit 21e544a

Browse files
committed
WIP
1 parent 02b69fa commit 21e544a

File tree

11 files changed

+333
-103
lines changed

11 files changed

+333
-103
lines changed

assets/fonts/JetBrainsMono.ttf

296 KB
Binary file not shown.

assets/hightlight.css

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
pre, code {
2+
color: #1f2328;
3+
}
4+
5+
.hl-keyword {
6+
color: #cf222e;
7+
}
8+
9+
.hl-property {
10+
color: #8250df;
11+
}
12+
13+
.hl-attribute {
14+
font-style: italic;
15+
}
16+
17+
.hl-type {
18+
color: #EA4334;
19+
}
20+
21+
.hl-generic {
22+
color: #9d3af6;
23+
}
24+
25+
.hl-value {
26+
color: #0a3069;
27+
}
28+
29+
.hl-literal {
30+
color: #0a3069;
31+
}
32+
33+
.hl-number {
34+
color: #0a3069;
35+
}
36+
37+
.hl-variable {
38+
color: #953800;
39+
}
40+
41+
.hl-comment {
42+
color: #6e7781;
43+
}
44+
45+
.hl-blur {
46+
filter: blur(2px);
47+
}
48+
49+
.hl-strong {
50+
font-weight: bold;
51+
}
52+
53+
.hl-em {
54+
font-style: italic;
55+
}
56+
57+
.hl-addition {
58+
display: inline-block;
59+
min-width: 100%;
60+
background-color: #00FF0022;
61+
}
62+
63+
.hl-deletion {
64+
display: inline-block;
65+
min-width: 100%;
66+
background-color: #FF000011;
67+
}
68+
69+
.hl-gutter {
70+
display: inline-block;
71+
font-size: 0.9em;
72+
color: #555;
73+
padding: 0 1ch;
74+
margin-right: 1ch;
75+
user-select: none;
76+
}
77+
78+
.hl-gutter-addition {
79+
background-color: #34A853;
80+
color: #fff;
81+
}
82+
83+
.hl-gutter-deletion {
84+
background-color: #EA4334;
85+
color: #fff;
86+
}

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"mpdf/mpdf": "^8.2",
2121
"spatie/commonmark-highlighter": "^3.0",
2222
"symfony/console": "^7.3",
23-
"vanderlee/syllable": "^1.9"
23+
"vanderlee/syllable": "^1.9",
24+
"laravelsu/highlight" : "@dev"
2425
},
2526
"require-dev": {
2627
"symfony/var-dumper": "^7.3",
@@ -31,12 +32,12 @@
3132
],
3233
"autoload": {
3334
"psr-4": {
34-
"Dendy\\Book\\": "src/"
35+
"Dandy\\Book\\": "src/"
3536
}
3637
},
3738
"autoload-dev": {
3839
"psr-4": {
39-
"Dendy\\Book\\Tests\\": "tests/"
40+
"Dandy\\Book\\Tests\\": "tests/"
4041
}
4142
},
4243
"config": {

0 commit comments

Comments
 (0)