Use OKLCH color space exclusively for modern, perceptually uniform colors.
- Primary: Violet
#8B5CF6 - Darker:
#7C3AED - Lighter:
#A78BFA
/* Light mode */
--vp-c-bg: oklch(1 0 0); /* white */
--vp-c-text-1: oklch(0.145 0 0); /* near black */
/* Dark mode */
--vp-c-bg: oklch(0.145 0 0); /* near black */
--vp-c-text-1: oklch(0.985 0 0); /* near white */- Component classes: kebab-case (
.pricing-card,.email-capture) - Related elements: BEM-inspired (
.pricing-card,.pricing-price,.pricing-features) - VitePress classes:
.VPprefix (.VPHome,.VPHero,.VPButton)
Standard: 0.625rem (10px) for all components.
Apply to: buttons, cards, inputs, code blocks, images, screenshots.
transition: all 150ms;- Cards:
transform: translateY(-2px) - Buttons:
transform: translateY(-1px)
@keyframes gradient-flow {
0% { background-position: 0% 50%; }
100% { background-position: -200% 50%; }
}
/* Duration: 4s linear infinite */- Mobile:
max-width: 768px - Desktop:
min-width: 960px
Mobile-first: Stack layouts vertically on small screens, use grid on desktop.
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;