Zum Hauptinhalt springen
VelinStyle v1.2.0
⌂ Home
  1. Docs
  2. Erweitern
  3. Ansatz

Ansatz beta

Verstehe die Designprinzipien hinter VelinStyle und warum es so funktioniert, wie es funktioniert. English: Approach

Reifegrad: Diese Oberfläche ist in VelinStyle 1.2.0 beta / foundation - jetzt nutzbar; Schemas und Abdeckung wachsen noch. CSS / Web Components / Runtime bleiben stabil. Studio und die vollständige Utility Engine bleiben geplant.

Wann verwenden

Wann nicht

Philosophie

CSS-Layer

VelinStyle nutzt @layer, um CSS in vorhersehbare Kaskadenebenen zu gliedern:

@layer velin.base;      /* Reboot, typography, base styles */
@layer velin.components; /* Component styles */
@layer velin.utilities;  /* Utility classes (highest priority) */

/* Your custom CSS (unlayered) always wins */
.my-class { color: red; }

Mobile First

All responsive utilities are mobile-first — the base class applies to all screen sizes, and breakpoint variants apply from that breakpoint upward using min-width media queries.

/* Base: applies everywhere */
.velin-d-flex { display: flex; }

/* md breakpoint: applies at 768px and up */
@media (min-width: 768px) {
  .velin-d-md-block { display: block; }
}