WordPress 1.2.0 beta
VelinStyle-CSS und die Components-IIFE aus Theme oder Plugin per wp_enqueue_style und wp_enqueue_script einbinden. English: WordPress
Reifegrad: Das Integrationsrezept ist in 1.2.0 beta. CSS / Web Components / Runtime bleiben stable. Studio und die komplette Utility Engine bleiben planned.
Wann nutzen
- Follow this guide when integrating or extending VelinStyle (WordPress).
- Pin
@birdapi/velinstyle@1.2.0and check maturity badges for beta surfaces.
Wann nicht
- Beta-Plan/Review/Meta nicht als fertiges KI-Design-System behandeln.
- Keine noch geplanten Studio- oder Utility-Engine-APIs erfinden.
Options
- CDN for quick prototypes (see Download)
- Local files in
assets/velinstyle/for production
Enqueue
add_action('wp_enqueue_scripts', function () {
$ver = '1.2.0';
wp_enqueue_style('velinstyle', get_stylesheet_directory_uri() . '/assets/velinstyle/velinstyle.min.css', [], $ver);
wp_enqueue_script('velinstyle-components', get_stylesheet_directory_uri() . '/assets/velinstyle/velinstyle-components.iife.js', [], $ver, true);
});
Block editor
The editor does not load frontend CSS automatically. Use enqueue_block_editor_assets if you need WYSIWYG parity.
Icons
Use an absolute sprite URL: get_stylesheet_directory_uri() . '/assets/velinstyle/velin-icons.svg'