Skip to main content
VelinStyle v0.8.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;
}

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.

Theme wählen