ACSS is a lightweight and flexible CSS library designed specifically for styling Avalonia UI applications. It simplifies UI development by introducing CSS-inspired syntax and features tailored for Avalonia. (this readme is a work in progress)
- CSS Syntax: Write styles using familiar CSS-like syntax.
- Dynamic Styling: Supports dynamic theming and responsive design.
- Seamless Integration: Works effortlessly with Avalonia UI's styling system.
- Customizable: Extend and override styles to fit your application's needs.
-
Add ACSS to your project (project not on nuget yet):
dotnet add package Avalonia.Acss
-
Reference ACSS in your Avalonia project and start styling your UI.
Create an .acss
file in the /[ProjectRoot]/Styles
and define your styles:
button {
background: #007acc;
margin: 10 20;
}
.textbox {
font-size: 14;
}
for the full ACSS spec see Avalonia Spec Apply styles to your Avalonia controls:
<Button Class="button">Click Me</Button>
<TextBox Class="textbox" />
- Advanced media queries for responsiveness.
- Built-in themes and style presets.
- Documentation and examples.
We welcome contributions of all kinds! Here's how you can help:
- Report Issues: Found a bug or have a feature request? Open an issue.
- Submit Pull Requests: Check the roadmap or issues and start coding! Be sure to follow the contribution guidelines.
- Spread the Word: Share ACSS with your fellow developers to help improve Avalonia development.
ACSS is licensed under the MIT License.
Happy styling! ✨