@eduardoalvarez/arrecife 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -0
- package/README.md +706 -470
- package/dist/brand/index.cjs +112 -95
- package/dist/brand/index.d.cts +40 -39
- package/dist/brand/index.d.ts +40 -39
- package/dist/brand/index.js +5 -4
- package/dist/catalog-D13txprv.d.cts +78 -0
- package/dist/catalog-D13txprv.d.ts +78 -0
- package/dist/chart/index.cjs +100 -83
- package/dist/chart/index.d.cts +66 -66
- package/dist/chart/index.d.ts +66 -66
- package/dist/chart/index.js +14 -12
- package/dist/chunk-25YNFCIF.js +141 -0
- package/dist/{chunk-YZ2SDOVZ.js → chunk-6O3KWB6P.js} +30 -30
- package/dist/chunk-CKRSQPTX.js +36 -0
- package/dist/{chunk-ZEOQKRQ7.js → chunk-DKCN7BAL.js} +1 -1
- package/dist/chunk-GCRII2KQ.js +86 -0
- package/dist/chunk-JMOOFZ3B.js +42 -0
- package/dist/chunk-O4TAH7YJ.js +276 -0
- package/dist/chunk-ODBFN44D.js +45 -0
- package/dist/{chunk-VPT32GPG.js → chunk-PMN7NR3G.js} +2 -2
- package/dist/chunk-XKYHTOUJ.js +27 -0
- package/dist/form/index.cjs +109 -92
- package/dist/form/index.d.cts +43 -42
- package/dist/form/index.d.ts +43 -42
- package/dist/form/index.js +25 -23
- package/dist/index.cjs +1068 -929
- package/dist/index.d.cts +770 -773
- package/dist/index.d.ts +770 -773
- package/dist/index.js +629 -675
- package/dist/{label-DuTvJGxD.d.ts → label-MgHFKnFy.d.cts} +3 -3
- package/dist/{label-DuTvJGxD.d.cts → label-MgHFKnFy.d.ts} +3 -3
- package/dist/og/index.cjs +130 -130
- package/dist/og/index.d.cts +93 -89
- package/dist/og/index.d.ts +93 -89
- package/dist/og/index.js +106 -106
- package/dist/shiki/index.cjs +28 -30
- package/dist/shiki/index.d.cts +4 -4
- package/dist/shiki/index.d.ts +4 -4
- package/dist/shiki/index.js +12 -12
- package/dist/theme/index.cjs +97 -0
- package/dist/theme/index.d.cts +144 -0
- package/dist/theme/index.d.ts +144 -0
- package/dist/theme/index.js +2 -0
- package/dist/tokens/index.cjs +133 -86
- package/dist/tokens/index.d.cts +246 -161
- package/dist/tokens/index.d.ts +246 -161
- package/dist/tokens/index.js +2 -2
- package/dist/tokens/theme.css +133 -98
- package/dist/variants/index.cjs +192 -0
- package/dist/variants/index.d.cts +192 -0
- package/dist/variants/index.d.ts +192 -0
- package/dist/variants/index.js +3 -0
- package/llms.txt +810 -744
- package/package.json +20 -11
- package/dist/catalogo-Du5ID-Hi.d.cts +0 -77
- package/dist/catalogo-Du5ID-Hi.d.ts +0 -77
- package/dist/chunk-E3OMP2DL.js +0 -36
- package/dist/chunk-KPZNNMV5.js +0 -83
- package/dist/chunk-NHS7ETKJ.js +0 -27
- package/dist/chunk-TSPJOM6K.js +0 -229
- package/dist/chunk-UOWIDFCB.js +0 -81
- package/dist/tema/index.cjs +0 -94
- package/dist/tema/index.d.cts +0 -110
- package/dist/tema/index.d.ts +0 -110
- package/dist/tema/index.js +0 -2
package/dist/og/index.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { fonts, dark, light, naming, gradient, tagline, typeScale } from '../chunk-
|
|
1
|
+
import { ASSETS_PATH, faces, poses, fins } from '../chunk-CKRSQPTX.js';
|
|
2
|
+
import { fonts, dark, light, naming, gradient, tagline, typeScale } from '../chunk-O4TAH7YJ.js';
|
|
3
3
|
import '../chunk-MLKGABMK.js';
|
|
4
4
|
|
|
5
|
-
// src/og/
|
|
5
|
+
// src/og/templates.ts
|
|
6
6
|
var OG = {
|
|
7
7
|
width: 1200,
|
|
8
8
|
height: 630,
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
|
|
9
|
+
margin: 64,
|
|
10
|
+
/** The mascot's maximum height. */
|
|
11
|
+
mascot: 430,
|
|
12
|
+
/** The signature's fin. */
|
|
13
|
+
signatureFin: 34,
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* The gap the column leaves when the pose goes on the left (course).
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* It is 560 and not 420 because a full pose at 430 tall measures ~534 wide:
|
|
18
|
+
* with the exact gap, the shark ate into the headline. The reserve is measured
|
|
19
|
+
* by the pose's real width, not by the margin.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
mascotReserve: 560
|
|
22
22
|
};
|
|
23
23
|
function el(type, props, children) {
|
|
24
24
|
return { type, props: children === void 0 ? props : { ...props, children } };
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function box(style, children) {
|
|
27
27
|
return el("div", { style: { display: "flex", ...style } }, children);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
return el("div", { style: { display: "flex", ...style } },
|
|
29
|
+
function text(style, content) {
|
|
30
|
+
return el("div", { style: { display: "flex", ...style } }, content);
|
|
31
31
|
}
|
|
32
|
-
function eyebrow(
|
|
33
|
-
return
|
|
32
|
+
function eyebrow(content, color) {
|
|
33
|
+
return text(
|
|
34
34
|
{
|
|
35
35
|
fontFamily: fonts.mono,
|
|
36
36
|
fontSize: 20,
|
|
@@ -38,11 +38,11 @@ function eyebrow(contenido, color) {
|
|
|
38
38
|
textTransform: "uppercase",
|
|
39
39
|
color
|
|
40
40
|
},
|
|
41
|
-
|
|
41
|
+
content
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
function headline(content, color) {
|
|
45
|
+
return text(
|
|
46
46
|
{
|
|
47
47
|
fontFamily: fonts.display,
|
|
48
48
|
fontSize: 58,
|
|
@@ -50,8 +50,8 @@ function titular(contenido, color) {
|
|
|
50
50
|
lineHeight: 1.06,
|
|
51
51
|
letterSpacing: typeScale.h1.tracking,
|
|
52
52
|
color,
|
|
53
|
-
// 70 %
|
|
54
|
-
//
|
|
53
|
+
// 70 % of the CANVAS, not of the column. With the mascot in a column of
|
|
54
|
+
// its own, a relative 70 % gave ~400px and the headline truncated mid-word.
|
|
55
55
|
maxWidth: OG.width * 0.7,
|
|
56
56
|
display: "-webkit-box",
|
|
57
57
|
WebkitBoxOrient: "vertical",
|
|
@@ -59,144 +59,144 @@ function titular(contenido, color) {
|
|
|
59
59
|
overflow: "hidden",
|
|
60
60
|
textOverflow: "ellipsis"
|
|
61
61
|
},
|
|
62
|
-
|
|
62
|
+
content
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
return
|
|
65
|
+
function signature(content, color, mode, base) {
|
|
66
|
+
return box({ alignItems: "center", gap: 14 }, [
|
|
67
67
|
el("img", {
|
|
68
68
|
alt: "",
|
|
69
|
-
src: `${base}/${
|
|
70
|
-
height: OG.
|
|
71
|
-
style: { height: OG.
|
|
69
|
+
src: `${base}/${mode === "dark" ? fins.foam : fins.color}`,
|
|
70
|
+
height: OG.signatureFin,
|
|
71
|
+
style: { height: OG.signatureFin }
|
|
72
72
|
}),
|
|
73
|
-
|
|
73
|
+
text({ fontFamily: fonts.mono, fontSize: 21, color }, content)
|
|
74
74
|
]);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
const
|
|
76
|
+
function card(options) {
|
|
77
|
+
const column = box(
|
|
78
78
|
{
|
|
79
79
|
position: "relative",
|
|
80
80
|
flexDirection: "column",
|
|
81
81
|
justifyContent: "space-between",
|
|
82
82
|
width: "100%",
|
|
83
83
|
height: "100%",
|
|
84
|
-
padding: OG.
|
|
85
|
-
//
|
|
86
|
-
//
|
|
87
|
-
paddingLeft:
|
|
84
|
+
padding: OG.margin,
|
|
85
|
+
// When the pose goes on the left it needs the gap left for it: it is the
|
|
86
|
+
// only thing that changes in the grid, and only the course template does it.
|
|
87
|
+
paddingLeft: options.mascotaIzquierda ? OG.mascotReserve : OG.margin
|
|
88
88
|
},
|
|
89
89
|
[
|
|
90
|
-
eyebrow(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
eyebrow(options.eyebrow.text, options.eyebrow.color),
|
|
91
|
+
box({ flexDirection: "column", gap: 18 }, [
|
|
92
|
+
headline(options.title, options.tinta),
|
|
93
|
+
options.bajada ? text(
|
|
94
94
|
{
|
|
95
95
|
fontFamily: fonts.sans,
|
|
96
96
|
fontSize: 26,
|
|
97
|
-
color:
|
|
97
|
+
color: options.tintaSecundaria,
|
|
98
98
|
maxWidth: OG.width * 0.7
|
|
99
99
|
},
|
|
100
|
-
|
|
100
|
+
options.bajada
|
|
101
101
|
) : null
|
|
102
102
|
]),
|
|
103
|
-
|
|
103
|
+
signature(options.signature, options.firmaColor, options.mode, options.base)
|
|
104
104
|
]
|
|
105
105
|
);
|
|
106
|
-
return
|
|
106
|
+
return box(
|
|
107
107
|
{
|
|
108
108
|
position: "relative",
|
|
109
109
|
width: OG.width,
|
|
110
110
|
height: OG.height,
|
|
111
|
-
backgroundImage:
|
|
112
|
-
backgroundColor:
|
|
111
|
+
backgroundImage: options.background,
|
|
112
|
+
backgroundColor: options.mode === "dark" ? dark.background : light.background,
|
|
113
113
|
fontFamily: fonts.sans,
|
|
114
114
|
overflow: "hidden"
|
|
115
115
|
},
|
|
116
116
|
[
|
|
117
|
-
|
|
117
|
+
options.mascot ? box(
|
|
118
118
|
{
|
|
119
119
|
position: "absolute",
|
|
120
120
|
bottom: 0,
|
|
121
|
-
...
|
|
121
|
+
...options.mascotaIzquierda ? { left: 0 } : { right: 0 },
|
|
122
122
|
alignItems: "flex-end"
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
options.mascot
|
|
125
125
|
) : null,
|
|
126
|
-
|
|
126
|
+
column
|
|
127
127
|
]
|
|
128
128
|
);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return el("img", { alt: "", src: `${base}/${poses[pose]}`, height
|
|
130
|
+
function mascotPose(pose, base, height = OG.mascot) {
|
|
131
|
+
return el("img", { alt: "", src: `${base}/${poses[pose]}`, height, style: { height } });
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
const base =
|
|
135
|
-
const
|
|
136
|
-
const meta = [
|
|
137
|
-
return
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
eyebrow: {
|
|
141
|
-
title:
|
|
142
|
-
|
|
133
|
+
function articleTemplate(data) {
|
|
134
|
+
const base = data.basePath ?? ASSETS_PATH;
|
|
135
|
+
const face = data.expression ?? "hearts";
|
|
136
|
+
const meta = [data.category, data.readingMinutes ? `${data.readingMinutes} min` : void 0].filter(Boolean).join(" \xB7 ");
|
|
137
|
+
return card({
|
|
138
|
+
mode: "dark",
|
|
139
|
+
background: gradient.dark.og,
|
|
140
|
+
eyebrow: { text: meta || "art\xEDculo", color: dark.warm },
|
|
141
|
+
title: data.title,
|
|
142
|
+
signature: naming.domain,
|
|
143
143
|
firmaColor: dark.textSecondary,
|
|
144
144
|
base,
|
|
145
145
|
tinta: dark.textPrimary,
|
|
146
146
|
tintaSecundaria: dark.textSecondary,
|
|
147
|
-
|
|
147
|
+
mascot: el("img", {
|
|
148
148
|
alt: "",
|
|
149
|
-
src: `${base}/${
|
|
149
|
+
src: `${base}/${faces[face]}`,
|
|
150
150
|
height: 300,
|
|
151
|
-
style: { height: 300, marginBottom: OG.
|
|
151
|
+
style: { height: 300, marginBottom: OG.margin, marginRight: OG.margin }
|
|
152
152
|
})
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
const base =
|
|
157
|
-
const meta = [
|
|
158
|
-
return
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
eyebrow: {
|
|
162
|
-
title:
|
|
155
|
+
function courseTemplate(data) {
|
|
156
|
+
const base = data.basePath ?? ASSETS_PATH;
|
|
157
|
+
const meta = [data.modules ? `${data.modules} m\xF3dulos` : void 0, data.duration].filter(Boolean).join(" \xB7 ");
|
|
158
|
+
return card({
|
|
159
|
+
mode: "light",
|
|
160
|
+
background: gradient.light.og,
|
|
161
|
+
eyebrow: { text: "nuevo curso", color: light.warm },
|
|
162
|
+
title: data.title,
|
|
163
163
|
bajada: meta || void 0,
|
|
164
|
-
|
|
164
|
+
signature: data.url ?? `cursos.${naming.domain}`,
|
|
165
165
|
firmaColor: light.warm,
|
|
166
166
|
base,
|
|
167
167
|
tinta: light.textPrimary,
|
|
168
168
|
tintaSecundaria: light.textSecondary,
|
|
169
169
|
mascotaIzquierda: true,
|
|
170
|
-
|
|
170
|
+
mascot: mascotPose(data.pose ?? "desk", base)
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
const base =
|
|
175
|
-
const
|
|
176
|
-
const
|
|
177
|
-
return
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
eyebrow: {
|
|
181
|
-
title:
|
|
182
|
-
bajada:
|
|
183
|
-
|
|
173
|
+
function talkTemplate(data) {
|
|
174
|
+
const base = data.basePath ?? ASSETS_PATH;
|
|
175
|
+
const head = ["charla", data.event, data.year].filter(Boolean).join(" \xB7 ");
|
|
176
|
+
const footer = [data.location, data.event ? void 0 : naming.domain].filter(Boolean).join(" \xB7 ");
|
|
177
|
+
return card({
|
|
178
|
+
mode: "dark",
|
|
179
|
+
background: "none",
|
|
180
|
+
eyebrow: { text: head, color: dark.accent },
|
|
181
|
+
title: data.title,
|
|
182
|
+
bajada: data.summary,
|
|
183
|
+
signature: footer || naming.domain,
|
|
184
184
|
firmaColor: dark.textSecondary,
|
|
185
185
|
base,
|
|
186
186
|
tinta: dark.textPrimary,
|
|
187
187
|
tintaSecundaria: dark.textSecondary,
|
|
188
|
-
//
|
|
189
|
-
|
|
188
|
+
// It bleeds: it runs off the bottom and the right, like a slide cover.
|
|
189
|
+
mascot: el("img", {
|
|
190
190
|
alt: "",
|
|
191
|
-
src: `${base}/${poses[
|
|
191
|
+
src: `${base}/${poses[data.pose ?? "surf"]}`,
|
|
192
192
|
height: 470,
|
|
193
193
|
style: { height: 470, marginBottom: -46, marginRight: -36 }
|
|
194
194
|
})
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
const base =
|
|
199
|
-
return
|
|
197
|
+
function defaultTemplate(data = {}) {
|
|
198
|
+
const base = data.basePath ?? ASSETS_PATH;
|
|
199
|
+
return box(
|
|
200
200
|
{
|
|
201
201
|
width: OG.width,
|
|
202
202
|
height: OG.height,
|
|
@@ -205,11 +205,11 @@ function plantillaDefecto(datos = {}) {
|
|
|
205
205
|
fontFamily: fonts.sans
|
|
206
206
|
},
|
|
207
207
|
[
|
|
208
|
-
//
|
|
209
|
-
|
|
208
|
+
// The fin's column: 290 wide, which is where the divider falls.
|
|
209
|
+
box(
|
|
210
210
|
{ width: 290, height: "100%", alignItems: "center", justifyContent: "center" },
|
|
211
|
-
//
|
|
212
|
-
|
|
211
|
+
// The halo. A circle of biolume at 12 % behind the fin.
|
|
212
|
+
box(
|
|
213
213
|
{
|
|
214
214
|
width: 260,
|
|
215
215
|
height: 260,
|
|
@@ -218,21 +218,21 @@ function plantillaDefecto(datos = {}) {
|
|
|
218
218
|
alignItems: "center",
|
|
219
219
|
justifyContent: "center"
|
|
220
220
|
},
|
|
221
|
-
el("img", { alt: "", src: `${base}/${
|
|
221
|
+
el("img", { alt: "", src: `${base}/${fins.foam}`, height: 200, style: { height: 200 } })
|
|
222
222
|
)
|
|
223
223
|
),
|
|
224
|
-
//
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
{ flexDirection: "column", gap: 20, paddingLeft: OG.
|
|
224
|
+
// The divider, exactly at x=290.
|
|
225
|
+
box({ width: 1, height: 340, backgroundColor: dark.border }),
|
|
226
|
+
box(
|
|
227
|
+
{ flexDirection: "column", gap: 20, paddingLeft: OG.margin, paddingRight: OG.margin, flex: 1 },
|
|
228
228
|
[
|
|
229
|
-
|
|
229
|
+
text(
|
|
230
230
|
{ fontFamily: fonts.sans, fontSize: 72, fontWeight: 700, color: dark.textPrimary, lineHeight: 1.05 },
|
|
231
|
-
|
|
231
|
+
data.title ?? naming.wordmark
|
|
232
232
|
),
|
|
233
|
-
|
|
233
|
+
text(
|
|
234
234
|
{ fontFamily: fonts.sans, fontSize: 28, fontWeight: 400, color: dark.textSecondary, lineHeight: 1.4 },
|
|
235
|
-
|
|
235
|
+
data.description ?? tagline.short
|
|
236
236
|
)
|
|
237
237
|
]
|
|
238
238
|
)
|
|
@@ -240,4 +240,4 @@ function plantillaDefecto(datos = {}) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
export { OG,
|
|
243
|
+
export { OG, articleTemplate, courseTemplate, defaultTemplate, card as plantillaBase, talkTemplate };
|
package/dist/shiki/index.cjs
CHANGED
|
@@ -2,48 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
// src/tokens/tokens.ts
|
|
4
4
|
var dark = {
|
|
5
|
-
// hairline
|
|
5
|
+
// hairline on card hover
|
|
6
6
|
textPrimary: "#EDF4F3",
|
|
7
|
-
//
|
|
7
|
+
// haze 9.50:1
|
|
8
8
|
textMuted: "#71919C",
|
|
9
|
-
//
|
|
9
|
+
// plankton 5.57:1 never under 13px
|
|
10
10
|
accent: "#35D6C0",
|
|
11
|
-
//
|
|
11
|
+
// ink over biolume
|
|
12
12
|
warm: "#F2A65A",
|
|
13
|
-
error: "#E15757"
|
|
14
|
-
// 4.51:1 sobre surface
|
|
15
|
-
};
|
|
13
|
+
error: "#E15757"};
|
|
16
14
|
var brand = {
|
|
17
|
-
/**
|
|
15
|
+
/** Hull · outline, and the background of code blocks. */
|
|
18
16
|
hull: "#0B1524"
|
|
19
17
|
};
|
|
20
|
-
var
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
/**
|
|
18
|
+
var syntax = {
|
|
19
|
+
/** The hull. It is the block background in both modes. */
|
|
20
|
+
background: brand.hull,
|
|
21
|
+
/** Identifiers, functions, types, variables. */
|
|
22
|
+
identifier: dark.textPrimary,
|
|
23
|
+
/** Strings, numbers, booleans, null. */
|
|
26
24
|
literal: dark.accent,
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
|
|
25
|
+
/** Keywords, control flow, `import`, `this`. */
|
|
26
|
+
keyword: dark.warm,
|
|
27
|
+
/** Comments and punctuation. */
|
|
28
|
+
comment: dark.textMuted,
|
|
31
29
|
/** `markup.deleted`, `invalid`. */
|
|
32
|
-
|
|
30
|
+
invalid: dark.error
|
|
33
31
|
};
|
|
34
32
|
|
|
35
|
-
// src/shiki/
|
|
33
|
+
// src/shiki/theme.ts
|
|
36
34
|
var arrecife = {
|
|
37
35
|
name: "arrecife",
|
|
38
36
|
type: "dark",
|
|
39
37
|
colors: {
|
|
40
|
-
"editor.background":
|
|
41
|
-
"editor.foreground":
|
|
38
|
+
"editor.background": syntax.background,
|
|
39
|
+
"editor.foreground": syntax.identifier
|
|
42
40
|
},
|
|
43
41
|
tokenColors: [
|
|
44
42
|
{
|
|
45
43
|
scope: ["comment", "punctuation.definition.comment", "string.comment"],
|
|
46
|
-
settings: { foreground:
|
|
44
|
+
settings: { foreground: syntax.comment, fontStyle: "italic" }
|
|
47
45
|
},
|
|
48
46
|
{
|
|
49
47
|
scope: [
|
|
@@ -60,7 +58,7 @@ var arrecife = {
|
|
|
60
58
|
"variable.language.this",
|
|
61
59
|
"variable.language.super"
|
|
62
60
|
],
|
|
63
|
-
settings: { foreground:
|
|
61
|
+
settings: { foreground: syntax.keyword }
|
|
64
62
|
},
|
|
65
63
|
{
|
|
66
64
|
scope: [
|
|
@@ -77,7 +75,7 @@ var arrecife = {
|
|
|
77
75
|
"constant.language.undefined",
|
|
78
76
|
"support.constant"
|
|
79
77
|
],
|
|
80
|
-
settings: { foreground:
|
|
78
|
+
settings: { foreground: syntax.literal }
|
|
81
79
|
},
|
|
82
80
|
{
|
|
83
81
|
scope: [
|
|
@@ -98,7 +96,7 @@ var arrecife = {
|
|
|
98
96
|
"support.variable.property",
|
|
99
97
|
"entity.other.attribute-name"
|
|
100
98
|
],
|
|
101
|
-
settings: { foreground:
|
|
99
|
+
settings: { foreground: syntax.identifier }
|
|
102
100
|
},
|
|
103
101
|
{
|
|
104
102
|
scope: [
|
|
@@ -108,16 +106,16 @@ var arrecife = {
|
|
|
108
106
|
"punctuation.separator",
|
|
109
107
|
"punctuation.terminator"
|
|
110
108
|
],
|
|
111
|
-
settings: { foreground:
|
|
109
|
+
settings: { foreground: syntax.comment }
|
|
112
110
|
},
|
|
113
|
-
{ scope: ["markup.inserted"], settings: { foreground:
|
|
111
|
+
{ scope: ["markup.inserted"], settings: { foreground: syntax.literal } },
|
|
114
112
|
{
|
|
115
113
|
scope: ["markup.deleted", "invalid", "invalid.illegal"],
|
|
116
|
-
settings: { foreground:
|
|
114
|
+
settings: { foreground: syntax.invalid }
|
|
117
115
|
},
|
|
118
116
|
{
|
|
119
117
|
scope: ["markup.heading", "entity.name.section"],
|
|
120
|
-
settings: { foreground:
|
|
118
|
+
settings: { foreground: syntax.keyword, fontStyle: "bold" }
|
|
121
119
|
},
|
|
122
120
|
{ scope: ["markup.bold"], settings: { fontStyle: "bold" } },
|
|
123
121
|
{ scope: ["markup.italic"], settings: { fontStyle: "italic" } }
|
package/dist/shiki/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
type
|
|
1
|
+
/** The shape Shiki expects. Declared here so we need not depend on the package. */
|
|
2
|
+
type ShikiTheme = {
|
|
3
3
|
name: string;
|
|
4
4
|
type: 'dark' | 'light';
|
|
5
5
|
colors: Record<string, string>;
|
|
@@ -11,6 +11,6 @@ type TemaShiki = {
|
|
|
11
11
|
};
|
|
12
12
|
}[];
|
|
13
13
|
};
|
|
14
|
-
declare const arrecife:
|
|
14
|
+
declare const arrecife: ShikiTheme;
|
|
15
15
|
|
|
16
|
-
export { type
|
|
16
|
+
export { type ShikiTheme, arrecife };
|
package/dist/shiki/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
type
|
|
1
|
+
/** The shape Shiki expects. Declared here so we need not depend on the package. */
|
|
2
|
+
type ShikiTheme = {
|
|
3
3
|
name: string;
|
|
4
4
|
type: 'dark' | 'light';
|
|
5
5
|
colors: Record<string, string>;
|
|
@@ -11,6 +11,6 @@ type TemaShiki = {
|
|
|
11
11
|
};
|
|
12
12
|
}[];
|
|
13
13
|
};
|
|
14
|
-
declare const arrecife:
|
|
14
|
+
declare const arrecife: ShikiTheme;
|
|
15
15
|
|
|
16
|
-
export { type
|
|
16
|
+
export { type ShikiTheme, arrecife };
|
package/dist/shiki/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { syntax } from '../chunk-O4TAH7YJ.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
|
3
3
|
|
|
4
|
-
// src/shiki/
|
|
4
|
+
// src/shiki/theme.ts
|
|
5
5
|
var arrecife = {
|
|
6
6
|
name: "arrecife",
|
|
7
7
|
type: "dark",
|
|
8
8
|
colors: {
|
|
9
|
-
"editor.background":
|
|
10
|
-
"editor.foreground":
|
|
9
|
+
"editor.background": syntax.background,
|
|
10
|
+
"editor.foreground": syntax.identifier
|
|
11
11
|
},
|
|
12
12
|
tokenColors: [
|
|
13
13
|
{
|
|
14
14
|
scope: ["comment", "punctuation.definition.comment", "string.comment"],
|
|
15
|
-
settings: { foreground:
|
|
15
|
+
settings: { foreground: syntax.comment, fontStyle: "italic" }
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
scope: [
|
|
@@ -29,7 +29,7 @@ var arrecife = {
|
|
|
29
29
|
"variable.language.this",
|
|
30
30
|
"variable.language.super"
|
|
31
31
|
],
|
|
32
|
-
settings: { foreground:
|
|
32
|
+
settings: { foreground: syntax.keyword }
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
scope: [
|
|
@@ -46,7 +46,7 @@ var arrecife = {
|
|
|
46
46
|
"constant.language.undefined",
|
|
47
47
|
"support.constant"
|
|
48
48
|
],
|
|
49
|
-
settings: { foreground:
|
|
49
|
+
settings: { foreground: syntax.literal }
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
scope: [
|
|
@@ -67,7 +67,7 @@ var arrecife = {
|
|
|
67
67
|
"support.variable.property",
|
|
68
68
|
"entity.other.attribute-name"
|
|
69
69
|
],
|
|
70
|
-
settings: { foreground:
|
|
70
|
+
settings: { foreground: syntax.identifier }
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
scope: [
|
|
@@ -77,16 +77,16 @@ var arrecife = {
|
|
|
77
77
|
"punctuation.separator",
|
|
78
78
|
"punctuation.terminator"
|
|
79
79
|
],
|
|
80
|
-
settings: { foreground:
|
|
80
|
+
settings: { foreground: syntax.comment }
|
|
81
81
|
},
|
|
82
|
-
{ scope: ["markup.inserted"], settings: { foreground:
|
|
82
|
+
{ scope: ["markup.inserted"], settings: { foreground: syntax.literal } },
|
|
83
83
|
{
|
|
84
84
|
scope: ["markup.deleted", "invalid", "invalid.illegal"],
|
|
85
|
-
settings: { foreground:
|
|
85
|
+
settings: { foreground: syntax.invalid }
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
scope: ["markup.heading", "entity.name.section"],
|
|
89
|
-
settings: { foreground:
|
|
89
|
+
settings: { foreground: syntax.keyword, fontStyle: "bold" }
|
|
90
90
|
},
|
|
91
91
|
{ scope: ["markup.bold"], settings: { fontStyle: "bold" } },
|
|
92
92
|
{ scope: ["markup.italic"], settings: { fontStyle: "italic" } }
|