105105 * -------------------------------------------------------------------------- */
106106
107107: root {
108- /* --vp-c-text-1: #3c3c43; */
109108 --vp-c-text-1 : # 1d1d24 ;
110- /* --vp-c-text-2: #67676c; */
111109 --vp-c-text-2 : # 5d5d69 ;
112110 --vp-c-text-3 : # 929295 ;
113111}
114112
115113.dark {
116- /* --vp-c-text-1: #dfdfd6; */
117114 --vp-c-text-1 : # fff ;
118- /* --vp-c-text-2: #98989f; */
119- --vp-c-text-2 : # a3a3a8 ;
115+ --vp-c-text-2 : # d3d3d8 ;
120116 --vp-c-text-3 : # 6a6a71 ;
121117}
122118
202198 --vp-c-warning-soft : # 312720 ;
203199}
204200
201+ /**
202+ * Colors: Background
203+ *
204+ * - `bg`: The bg color used for main screen.
205+ *
206+ * - `bg-alt`: The alternative bg color used in places such as "sidebar",
207+ * or "code block".
208+ *
209+ * - `bg-elv`: The elevated bg color. This is used at parts where it "floats",
210+ * such as "dialog".
211+ *
212+ * - `bg-soft`: The bg color to slightly distinguish some components from
213+ * the page. Used for things like "carbon ads" or "table".
214+ * -------------------------------------------------------------------------- */
215+
216+ : root {
217+ --vp-c-bg : # ffffff ;
218+ --vp-c-bg-alt : # f7f9fd ;
219+ --vp-c-bg-elv : # ffffff ;
220+ --vp-c-bg-soft : # f7f9fd ;
221+ }
222+
223+ .dark {
224+ --vp-c-bg : # 14141b ;
225+ --vp-c-bg-alt : # 161618 ;
226+ --vp-c-bg-elv : # 202127 ;
227+ --vp-c-bg-soft : # 202127 ;
228+ }
229+
205230/**
206231 * Component: Button
207232 * -------------------------------------------------------------------------- */
208233
209234: root {
210235 --vp-button-brand-border : transparent;
211- --vp-button-brand-text : var ( --vp-c-white ) ;
212- --vp-button-brand-bg : var ( --vp-c-brand-3 ) ;
236+ --vp-button-brand-text : # 1b1b1f ;
237+ --vp-button-brand-bg : # fcd15a ;
213238 --vp-button-brand-hover-border : transparent;
214- --vp-button-brand-hover-text : var ( --vp-c-white ) ;
215- --vp-button-brand-hover-bg : var ( --vp-c-brand-2 ) ;
239+ --vp-button-brand-hover-text : # 1b1b1f ;
240+ --vp-button-brand-hover-bg : # f9dd90 ;
216241 --vp-button-brand-active-border : transparent;
217- --vp-button-brand-active-text : var (--vp-c-white );
218- --vp-button-brand-active-bg : var (--vp-c-brand-1 );
242+ --vp-button-brand-active-text : # 1b1b1f ;
243+ --vp-button-brand-active-bg : # f9dd90 ;
244+
245+ --vp-button-alt-border : var (--vp-c-border );
246+ --vp-button-alt-text : var (--vp-c-text-1 );
247+ --vp-button-alt-bg : transparent;
248+ --vp-button-alt-hover-border : var (--vp-c-border );
249+ --vp-button-alt-hover-text : var (--vp-c-text-1 );
250+ --vp-button-alt-hover-bg : # ffffff10 ;
251+ --vp-button-alt-active-border : var (--vp-c-border );
252+ --vp-button-alt-active-text : var (--vp-c-text-1 );
253+ --vp-button-alt-active-bg : var (--vp-c-default-1 );
219254}
220255
221256.dark {
222257 --vp-button-brand-border : transparent;
223258 --vp-button-brand-text : # 1b1b1f ;
224- --vp-button-brand-bg : var ( --vp-c-brand-3 ) ;
259+ --vp-button-brand-bg : # fcd15a ;
225260 --vp-button-brand-hover-border : transparent;
226- --vp-button-brand-hover-text : var ( --vp-c-white ) ;
227- --vp-button-brand-hover-bg : var ( --vp-c-brand-2 ) ;
261+ --vp-button-brand-hover-text : # 1b1b1f ;
262+ --vp-button-brand-hover-bg : # f9dd90 ;
228263 --vp-button-brand-active-border : transparent;
229- --vp-button-brand-active-text : var (--vp-c-white );
230- --vp-button-brand-active-bg : var (--vp-c-brand-1 );
264+ --vp-button-brand-active-text : # 1b1b1f ;
265+ --vp-button-brand-active-bg : # f9dd90 ;
266+ }
267+
268+ /**
269+ * Colors: Borders
270+ *
271+ * - `divider`: This is used for separators. This is used to divide sections
272+ * within the same components, such as having separator on "h2" heading.
273+ *
274+ * - `border`: This is designed for borders on interactive components.
275+ * For example this should be used for a button outline.
276+ *
277+ * - `gutter`: This is used to divide components in the page. For example
278+ * the header and the lest of the page.
279+ * -------------------------------------------------------------------------- */
280+
281+ : root {
282+ --vp-c-border : # c2c2c4 ;
283+ --vp-c-divider : # d3d3d8 ;
284+ --vp-c-gutter : # e2e2e3 ;
285+ }
286+
287+ .dark {
288+ --vp-c-border : # 3c3f44 ;
289+ --vp-c-divider : # 5d5d69 ;
290+ --vp-c-gutter : # 000000 ;
231291}
232292
233293/**
@@ -345,20 +405,22 @@ input {
345405
346406: root {
347407 --vp-home-hero-name-color : var (--vp-c-text-1 );
348- --vp-button-brand-bg : # fcd15a ;
349- --vp-button-brand-hover-bg : # fcd15a ;
350408}
351409
352- .VPHero . VPButton {
353- @apply font-medium transition hover:-translate-y-0.5 hover:shadow-md ;
410+ .VPHero . has-image . VPHomeHero {
411+ @apply lg:pb-0 ;
354412}
355413
356- .VPHero . VPButton . brand {
357- @apply text-[var (--vp-c-black )]! ;
414+ .VPHero . has-image . VPHomeHero p {
415+ @apply font-normal text-[var (--vp-home-hero-name-color )] ;
358416}
359417
360- .VPImage .image-src {
361- @apply max-h-none max-w-none lg:size-[448px ]!;
418+ .VPLink .link .VPFeature {
419+ @apply relative rounded-[32px ] border bg-gradient-to-b from-[var (--vp-c-white )] to-[var (--vp-c-white )] transition-all duration-300 * : relative * : z-20 after:absolute after:inset-px after:z-10 after:rounded-[31px ] after:bg-[var (--vp-c-bg-soft )] hover:shadow-lg;
420+ }
421+
422+ .dark .VPLink .link .VPFeature {
423+ @apply from-[var (--c-border )] to-transparent;
362424}
363425
364426article .box .icon {
@@ -368,28 +430,30 @@ article.box .icon {
368430 12.835px 12.835px 21.392px 0 var (--vp-c-bg );
369431}
370432
371- . image . image-container {
372- @apply relative flex items-center justify-center ;
433+ article . box . icon . _stroke {
434+ @apply stroke-[ var ( --vp-c-brand-1 )] ;
373435}
374436
375- .image .image-container ::before {
376- @apply pointer-events-none absolute top-[60% ] left-1/2 -z-10 h-[929px ] w-[995px ] -translate-x-1/2 -translate-y-1/2 bg-contain bg-center bg-no-repeat;
377- content : '' ;
378- background-image : url ('/bg-gradient.svg' );
437+ article .box .icon ._fill {
438+ @apply fill-[var (--vp-c-brand-1 )];
379439}
380440
381- .image .image-container .VPImage .image-src {
382- @apply relative z-10;
441+ /* Image */
442+
443+ .VPImage .image-src {
444+ @apply lg:size-[448px ]! lg: max-h-none lg:max-w-none;
383445}
384446
385- .VPHero . has- image. VPHomeHero {
386- @apply pb-0 ;
447+ .image . image-container {
448+ @apply relative flex items-center justify-center ;
387449}
388450
389- .VPLink .link .VPFeature {
390- @apply relative rounded-[32px ] border bg-gradient-to-b from-[var (--vp-c-white )] to-[var (--vp-c-white )] transition-all duration-300 * : relative * : z-20 after:absolute after:inset-px after:z-10 after:rounded-[31px ] after:bg-[var (--vp-c-bg-soft )] hover:shadow-lg;
451+ .image .image-container ::before {
452+ @apply pointer-events-none absolute top-[60% ] left-1/2 -z-10 size-[724px ] -translate-x-1/2 -translate-y-1/2 bg-contain bg-center bg-no-repeat lg:h-[929px ] lg:w-[995px ];
453+ content : '' ;
454+ background-image : url ('/bg-gradient.svg' );
391455}
392456
393- .dark . VPLink . link . VPFeature {
394- @apply from-[ var ( --c-border )] to-transparent ;
457+ .image . image-container . VPImage . image-src {
458+ @apply z-10 lg:relative ;
395459}
0 commit comments