deepyr 0.1.6
deepyr: ^0.1.6 copied to clipboard
A type-safe Dart implementation of DaisyUI components for Jaspr, providing a fluent API for building beautiful web apps (PoC)
Deepyr #
Jaspr + DaisyUI => Deepyr
A type-safe Dart implementation of DaisyUI components for Jaspr, providing a fluent API for building beautiful web apps with Tailwind CSS.
Proof of concept #
This package currently serves as a proof-of-concept for integrating DaisyUI with Jaspr using a type-safe Dart API.
π Live Demo & Documentation #
Explore all available components and see them in action on the official documentation site:
Design Principles #
- π― Type Safety - Catch styling errors at compile time
- π§ Fluent API - Chain modifiers intuitively
- π± Responsive - Built-in breakpoint support
- π¨ DaisyUI Faithful - 1:1 component mapping
- β‘ Performance - Minimal runtime overhead
Getting Started #
-
Add Dependency
Add
deepyrto yourpubspec.yaml:dependencies: deepyr: ^0.1.6 -
Setup Tailwind CSS
deepyris a component library, not a CSS framework. You must have Tailwind CSS v4 and DaisyUI v5 installed and configured in your Jaspr project for the components to be styled correctly.
Usage Example #
import 'package:jaspr/jaspr.dart';
import 'package:deepyr/deepyr.dart';
class MyComponent extends StatelessComponent {
@override
Iterable<Component> build(BuildContext context) sync* {
yield Button(
[
Icon('favorite'),
text('Click Me'),
],
// Apply styles in a type-safe list
style: [
Button.primary, // Apply the primary color
Button.lg.at(Breakpoint.md), // Becomes large on medium screens and up
],
onClick: (_) => print('Button clicked!'),
);
}
}
Deepyr Component Roadmap #
Actions #
- β Button
- β Dropdown
- π² FAB / Speed Dial
- β Modal
- β Swap
- β Theme Controller
Data display #
- β Accordion
- β Avatar
- β Badge
- β Card
- π² Carousel
- π² Chat bubble
- β Collapse
- β Countdown
- β Diff
- π² Hover Gallery
- β Kbd
- β List
- β Stat
- β Status
- β Table
- π² Timeline
Navigation #
- β Breadcrumbs
- π² Dock
- β Link
- β Menu
- β Navbar
- β Pagination
- π² Steps
- β Tab
Feedback #
- β Alert
- β Loading
- β Progress
- β Radial progress
- β Skeleton
- π² Toast
- β Tooltip
Data input #
- π² Calendar
- β Checkbox
- β Fieldset
- β File Input
- π² Filter
- β Label
- β Radio
- β Range
- π² Rating
- β Select
- β Input field (Text Input)
- β Textarea
- β Toggle
- β Validator
Layout #
- β Divider
- β Drawer
- β Footer
- β Hero
- β Indicator
- β Join (group items)
- β Mask
- π² Stack
Mockup #
- π² Browser
- π² Code
- π² Phone
- π² Window