Linking stylesheets
Reference CSS files with the@styles/ alias in any template:
client/assets/styles/global.css. Vite processes the file through its CSS pipeline (PostCSS, autoprefixer, minification) and outputs a hashed asset.
<style> blocks
Add <style> tags directly in components and layouts. They are extracted and bundled by Vite:
client/components/card.html
Dynamic CSS custom properties
Use theprops attribute on <style> to inject build-time values as CSS custom properties:
--keyName custom property.
CSS frameworks
Because Aero uses Vite, CSS frameworks that integrate with PostCSS or Vite work out of the box. Install the framework, configure it in your Vite or PostCSS config, and import or link the styles:No scoped styles
Aero does not provide built-in style scoping (likescoped attributes or CSS Modules). This is intentional — Aero’s HTML-first philosophy keeps CSS standard and predictable. Use naming conventions (BEM, utility classes) or CSS nesting/layers to manage specificity.
Organization
A typical style setup:client/layouts/base.html