Skip to content

Commit f47c9a3

Browse files
committed
fix: add info color variables and update styles for custom blocks
1 parent 88b9533 commit f47c9a3

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.vitepress/theme/style.css

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@
143143
--vp-c-default-3: var(--vp-c-gray-3);
144144
--vp-c-default-soft: var(--vp-c-gray-soft);
145145

146+
--vp-c-info-1: #0067a8;
147+
--vp-c-info-2: var(--vp-c-gray-2);
148+
--vp-c-info-3: var(--vp-c-gray-3);
149+
--vp-c-info-soft: #e9f7ff;
150+
146151
--vp-c-brand-1: #183ee9;
147152
--vp-c-brand-2: var(--vp-c-indigo-2);
148153
--vp-c-brand-3: var(--vp-c-indigo-3);
@@ -168,10 +173,10 @@
168173
--vp-c-important-3: var(--vp-c-purple-3);
169174
--vp-c-important-soft: var(--vp-c-purple-soft);
170175

171-
--vp-c-warning-1: #da7b0b;
176+
--vp-c-warning-1: #a85b00;
172177
--vp-c-warning-2: var(--vp-c-yellow-2);
173178
--vp-c-warning-3: var(--vp-c-yellow-3);
174-
--vp-c-warning-soft: #fdefde;
179+
--vp-c-warning-soft: #fff8ef;
175180

176181
--vp-c-danger-1: #bf3131;
177182
--vp-c-danger-2: var(--vp-c-red-2);
@@ -185,6 +190,9 @@
185190
}
186191

187192
.dark {
193+
--vp-c-info-1: #9edaff;
194+
--vp-c-info-soft: #2b3d4c;
195+
188196
--vp-c-brand-1: #a2b3ff;
189197
--vp-c-brand-soft: #1d2032;
190198

@@ -301,6 +309,11 @@
301309
--vp-custom-block-tip-text: var(--vp-c-text-1);
302310
--vp-custom-block-tip-bg: var(--vp-c-brand-soft);
303311
--vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
312+
313+
--vp-custom-block-info-border: transparent;
314+
--vp-custom-block-info-text: var(--vp-c-text-1);
315+
--vp-custom-block-info-bg: var(--vp-c-info-soft);
316+
--vp-custom-block-info-code-bg: var(--vp-c-info-soft);
304317
}
305318

306319
/**
@@ -369,6 +382,14 @@ input {
369382
@apply bg-[var(--vp-code-bg)];
370383
}
371384

385+
.vp-doc .custom-block.info {
386+
@apply border-l-4 border-l-[var(--vp-c-info-1)];
387+
}
388+
389+
.vp-doc .custom-block.info strong {
390+
@apply text-[var(--vp-c-info-1)];
391+
}
392+
372393
.vp-doc .custom-block.warning {
373394
@apply border-l-4 border-l-[var(--vp-c-warning-1)];
374395
}

src/get-started/helloWorld/5-bonusChapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ data, deploy iApp, and manage data access. Now it's time to claim your rewards!
3333
</div>
3434
</div>
3535

36-
<Container variant="success">
36+
<Container class="mt-4" variant="success">
3737

3838
Need help setting up or got some questions? Join our
3939
**<a target="_blank" href="https://discord.gg/6yrgRH6ATD">Discord

0 commit comments

Comments
 (0)