Skip to content

Conversation

@xsahil03x
Copy link
Member

No description provided.

This commit introduces the foundational elements of the new Stream Design System and a comprehensive gallery application (Widgetbook) for showcasing and customizing components.

**Core Package (`stream_core_flutter`):**

*   **Design Tokens**: Added foundational design tokens for colors, spacing, radius, typography, and box shadows. These tokens are organized into primitive and semantic layers.
    *   `StreamColors`: Defines the primitive color palette.
    *   `StreamColorScheme`: Provides semantic color roles (e.g., `accentPrimary`, `textSecondary`).
    *   `StreamTypography`, `StreamTextTheme`: Defines font primitives and semantic text styles.
    *   `StreamSpacing`, `StreamRadius`, `StreamBoxShadow`: Adds tokens for layout and elevation.
*   **`StreamTheme`**: Implemented a new `ThemeExtension` to aggregate all design tokens and component themes, enabling centralized theming.
*   **New Components**: Added `StreamAvatar`, `StreamAvatarStack`, and `StreamOnlineIndicator`.
*   **Theming Infrastructure**: Added `theme_extensions_builder` to auto-generate `copyWith`, `lerp`, and `==`/`hashCode` for theme classes.

**Design System Gallery (`design_system_gallery`):**

*   **Gallery App**: Replaced the basic Widgetbook setup with a new, fully-featured gallery application (`StreamDesignSystemGallery`).
*   **Theme Studio**: Added a "Theme Studio" panel for real-time customization of all `StreamColorScheme` properties.
*   **Enhanced Previews**:
    *   Added a toolbar with controls for device selection (`DeviceFrame`), text scaling, and light/dark mode toggles.
    *   Created a `PreviewWrapper` to apply theme, device frame, and text scale to all use cases.
*   **New Use Cases**:
    *   Added comprehensive use cases for new components (`StreamAvatar`, `StreamAvatarStack`, `StreamOnlineIndicator`).
    *   Added showcases for semantic tokens (`Typography`, `Elevations`).
    *   Improved `StreamButton` use cases with more variants and real-world examples.
*   **Agent Guide**: Added `AGENTS.md`, a guide for AI agents on contributing to the gallery.
@xsahil03x xsahil03x requested a review from a team as a code owner January 21, 2026 15:09
@coderabbitai
Copy link

coderabbitai bot commented Jan 21, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

The `StreamButtonTheme` and its related data classes have been removed from the core theme structure. This simplifies the theme by removing the button-specific theming.

Additionally, the `lerp` function for `StreamBrandColor` has been adjusted, and `StreamAvatarColorPair` is now generated using `themeGen`.
The `StreamButtonTheme` and its related data classes have been removed from the core theme structure. This simplifies the theme by removing the button-specific theming.

Additionally, the `lerp` function for `StreamBrandColor` has been adjusted, and `StreamAvatarColorPair` is now generated using `themeGen`.
@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.96%. Comparing base (0c6d7b9) to head (ca79834).
⚠️ Report is 1 commits behind head on main-design-system.

Additional details and impacted files
@@                  Coverage Diff                   @@
##           main-design-system      #31      +/-   ##
======================================================
- Coverage               40.19%   39.96%   -0.23%     
======================================================
  Files                      53       53              
  Lines                    1045     1041       -4     
======================================================
- Hits                      420      416       -4     
  Misses                    625      625              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@renefloor renefloor merged commit 068c806 into main-design-system Jan 22, 2026
4 checks passed
@renefloor renefloor deleted the feat/design-theme-and-components branch January 22, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants