Skip to content

Commit e81b18b

Browse files
committed
feat: Add One Light
1 parent 30a01dc commit e81b18b

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
/*
2+
Adapted from the Prism One Light Theme
3+
https://github.com/PrismJS/prism-themes/blob/master/themes/prism-one-light.css
4+
Created by Marc Rousavy (@mrousavy) on 26.9.2023
5+
*/
6+
import type { PrismTheme } from "../types"
7+
8+
const theme: PrismTheme = {
9+
plain: {
10+
backgroundColor: "hsl(230, 1%, 98%)",
11+
color: "hsl(230, 8%, 24%)",
12+
},
13+
styles: [
14+
{
15+
types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
16+
style: {
17+
color: "hsl(230, 4%, 64%)",
18+
},
19+
},
20+
{
21+
types: ["namespace"],
22+
style: {
23+
opacity: 0.7,
24+
},
25+
},
26+
{
27+
types: ["tag", "operator", "number"],
28+
style: {
29+
color: "hsl(230, 8%, 24%)",
30+
},
31+
},
32+
{
33+
types: ["property", "function"],
34+
style: {
35+
color: "hsl(35, 99%, 36%)",
36+
},
37+
},
38+
{
39+
types: ["tag-id", "selector", "atrule-id"],
40+
style: {
41+
color: "hsl(119, 34%, 47%)",
42+
},
43+
},
44+
{
45+
types: ["attr-name"],
46+
style: {
47+
color: "hsl(198, 99%, 37%)",
48+
},
49+
},
50+
{
51+
types: [
52+
"boolean",
53+
"string",
54+
"entity",
55+
"url",
56+
"attr-value",
57+
"keyword",
58+
"control",
59+
"directive",
60+
"unit",
61+
"statement",
62+
"regex",
63+
"atrule",
64+
],
65+
style: {
66+
color: "hsl(230, 8%, 24%)",
67+
},
68+
},
69+
{
70+
types: ["placeholder", "variable"],
71+
style: {
72+
color: "hsl(221, 87%, 60%)",
73+
},
74+
},
75+
{
76+
types: ["deleted"],
77+
style: {
78+
textDecorationLine: "line-through",
79+
},
80+
},
81+
{
82+
types: ["inserted"],
83+
style: {
84+
textDecorationLine: "underline",
85+
},
86+
},
87+
{
88+
types: ["italic"],
89+
style: {
90+
fontStyle: "italic",
91+
},
92+
},
93+
{
94+
types: ["important", "bold"],
95+
style: {
96+
fontWeight: "bold",
97+
},
98+
},
99+
{
100+
types: ["important"],
101+
style: {
102+
color: "hsl(230, 8%, 24%)",
103+
},
104+
},
105+
],
106+
};
107+
108+
export default theme;

0 commit comments

Comments
 (0)