/** * Customize default theme styling by overriding CSS variables: * https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css */ /** * Colors * -------------------------------------------------------------------------- */ // Assign theme color $themeColor = #818cf8 :root { --vp-c-brand: $themeColor --vp-c-brand-light: tint($themeColor, 20%) --vp-c-brand-lighter: tint($themeColor, 40%) --vp-c-brand-lightest: tint($themeColor, 60%) --vp-c-brand-dark: shade($themeColor, 25%) --vp-c-brand-darker: shade($themeColor, 50%) --vp-c-brand-darkest: shade($themeColor, 75%) --vp-c-brand-dimm: alpha($themeColor, 0.08) } /** * Dark/Light Theme Overrides * -------------------------------------------------------------------------- */ html:not(.dark) { img[data-mode="darkmode-only"] { display: none !important & + figcaption { display: none !important } } } .dark { img[data-mode="lightmode-only"] { display: none !important & + figcaption { display: none !important } } } /** * Component: Button * -------------------------------------------------------------------------- */ :root { --vp-button-brand-border: var(--vp-c-brand-light) --vp-button-brand-text: var(--vp-c-black) --vp-button-brand-bg: var(--vp-c-brand) --vp-button-brand-hover-border: var(--vp-c-brand-light) --vp-button-brand-hover-text: var(--vp-c-black) --vp-button-brand-hover-bg: var(--vp-c-brand-light) --vp-button-brand-active-border: var(--vp-c-brand-light) --vp-button-brand-active-text: var(--vp-c-black) --vp-button-brand-active-bg: var(--vp-button-brand-bg) } /** * Component: Home * -------------------------------------------------------------------------- */ :root { --vp-home-hero-name-color: transparent --vp-home-hero-name-background: -webkit-linear-gradient(120deg, var(--vp-c-brand) 30%, var(--vp-c-brand-dark)) --vp-home-hero-image-background-image: linear-gradient(-45deg, var(--vp-c-brand-light) 50%, var(--vp-c-brand-lighter) 50%) --vp-home-hero-image-filter: blur(40px) } .dark { --vp-home-hero-image-background-image: linear-gradient(-45deg, var(--vp-c-brand-darker) 25%, var(--vp-c-brand-darkest) 25%) } @media (min-width 640px) { :root { --vp-home-hero-image-filter: blur(56px) } } @media (min-width 960px) { :root { --vp-home-hero-image-filter: blur(72px) } } /** * Component: Custom Block * -------------------------------------------------------------------------- */ :root { --vp-custom-block-tip-border: var(--vp-c-brand) --vp-custom-block-tip-text: var(--vp-c-brand-darker) --vp-custom-block-tip-bg: var(--vp-c-brand-dimm) } .dark { --vp-custom-block-tip-border: var(--vp-c-brand) --vp-custom-block-tip-text: var(--vp-c-brand-lightest) --vp-custom-block-tip-bg: var(--vp-c-brand-dimm) } .plugin-tabs { &--content { padding: 2rem !important } } /** * Component: Algolia * -------------------------------------------------------------------------- */ .DocSearch { --docsearch-primary-color: var(--vp-c-brand) !important } .VPImage.image-src { border-radius: 8px } /** * Component: Image Figure * -------------------------------------------------------------------------- */ figure:has(img) { position: relative display: flex flex-direction: column width: auto text-align: center transition: transform var(--vp-tt) } figure:has(img) img { overflow: hidden margin: 0 auto border-radius: 8px } figure:has(img) img[tabindex]:hover, figure:has(img) img[tabindex]:focus { box-shadow: 2px 2px 10px 0 var(--card-shadow) } @media print { figure:has(img)>a[href^="http://"]:after, figure:has(img)>a[href^="https://"]:after { content: "" } } figure:has(img)>a .external-link-icon { display: none } figure:has(img) figcaption { display: inline-block margin: 6px auto font-size: 0.8rem }