Skip to main content
VelinStyle v1.0.0
⌂ Home
  1. Docs
  2. Utilities
  3. API

Utility API

VelinStyle ships a comprehensive set of utility classes that follow a consistent naming pattern, support responsive breakpoints, and can be customized through CSS custom properties.

Naming Convention

All VelinStyle utilities follow the pattern .velin-{property}-{value}. Responsive variants append a breakpoint prefix: .velin-{property}-{breakpoint}-{value}.

<!-- Base utility -->
<div class="velin-d-flex">...</div>

<!-- Responsive: flex only on md and up -->
<div class="velin-d-md-flex">...</div>

<!-- Spacing: margin-top 4 on lg -->
<div class="velin-mt-lg-4">...</div>

Available Breakpoints

Responsive utilities are generated for the following breakpoints:

BreakpointPrefixMin-width
Extra smallNone0
Smallsm576px
Mediummd768px
Largelg992px
Extra largexl1200px
Extra extra largexxl1400px

Customization

VelinStyle utilities are built on CSS custom properties. Override any token at the :root level to apply global changes, or scope overrides to a specific selector.

:root {
  --velin-spacer: 1rem;
  --velin-primary: #6d5cff;
  --velin-border-radius: 0.5rem;
}

.my-section {
  --velin-primary: #e63946;
}

Framework utility modules (generated reference)

VelinStyle ships extra utility CSS under src/utilities/. Narrative pages above cover common patterns; the tables below link to auto-generated class lists synced from the framework (velinstyle docs generate --scope utilities).

ModuleGenerated referenceRelated narrative docs
anchor.cssanchor.mdPosition
scope.cssscope.mdUtility coverage
state.cssstate.mdInteractions
gradient.cssgradient.mdBackground
scroll-animation.cssscroll-animation.mdScroll-driven animations
view-transition.cssview-transition.mdView transitions
container-style.csscontainer-style.mdContainers
responsive.cssresponsive.mdResponsive layout

Full index: utilities/README.md · Generated reference hub.

CSS Layers

VelinStyle outputs its CSS inside @layer declarations so your custom styles always win without specificity battles:

Important Flag

By default, utility values do not use !important. Because they live in the highest CSS layer, they naturally override component styles. If you need !important for integration with third-party CSS, add overrides in your own stylesheet using @layer above the framework layer.