-
@Immutable() public final class StreamDesign.ColorsSemantic color tokens for theming Chat SDK components. Customize via default / defaultDark factory parameters or copy.
Parameters are organized by domain: scales → accent → text → background → border → avatar → skeleton.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStreamDesign.Colors.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StreamDesign.ColorScalebrandprivate final StreamDesign.ChromeScalechromeprivate final ColoraccentPrimaryprivate final ColoraccentErrorprivate final ColoraccentSuccessprivate final ColoraccentWarningprivate final ColoraccentNeutralprivate final ColortextPrimaryprivate final ColortextSecondaryprivate final ColortextTertiaryprivate final ColortextDisabledprivate final ColortextOnAccentprivate final ColortextOnInverseprivate final ColortextLinkprivate final ColorbackgroundCoreElevation0private final ColorbackgroundCoreElevation1private final ColorbackgroundCoreElevation2private final ColorbackgroundCoreElevation3private final ColorbackgroundCoreSurfaceDefaultprivate final ColorbackgroundCoreSurfaceSubtleprivate final ColorbackgroundCoreSurfaceStrongprivate final ColorbackgroundCoreSurfaceCardprivate final ColorbackgroundCoreInverseprivate final ColorbackgroundCoreOnAccentprivate final ColorbackgroundCoreScrimprivate final ColorbackgroundCoreOverlayDarkprivate final ColorbackgroundCoreOverlayLightprivate final ColorbackgroundCoreHighlightprivate final ColorbackgroundCoreAppprivate final ColorbackgroundUtilitySelectedprivate final ColorbackgroundUtilityDisabledprivate final ColorborderCoreDefaultprivate final ColorborderCoreStrongprivate final ColorborderCoreSubtleprivate final ColorborderCoreOpacitySubtleprivate final ColorborderCoreOpacityStrongprivate final ColorborderCoreOnAccentprivate final ColorborderCoreOnInverseprivate final ColorborderCoreOnSurfaceprivate final ColorborderUtilitySelectedprivate final ColorborderUtilityFocusedprivate final ColorborderUtilityActiveprivate final ColorborderUtilityDisabledprivate final ColorborderUtilityDisabledOnSurfaceprivate final ColorborderUtilityErrorprivate final ColorborderUtilityWarningprivate final ColorborderUtilitySuccessprivate final ColoravatarBgPlaceholderprivate final ColoravatarPaletteBg1private final ColoravatarPaletteBg2private final ColoravatarPaletteBg3private final ColoravatarPaletteBg4private final ColoravatarPaletteBg5private final ColoravatarPaletteText1private final ColoravatarPaletteText2private final ColoravatarPaletteText3private final ColoravatarPaletteText4private final ColoravatarPaletteText5private final ColoravatarTextPlaceholderprivate final ColoravatarPresenceBorderprivate final ColorskeletonLoadingBaseprivate final ColorskeletonLoadingHighlightprivate final ColorsystemCaret
-
Constructor Summary
Constructors Constructor Description StreamDesign.Colors(StreamDesign.ColorScale brand, StreamDesign.ChromeScale chrome, Color accentPrimary, Color accentError, Color accentSuccess, Color accentWarning, Color accentNeutral, Color textPrimary, Color textSecondary, Color textTertiary, Color textDisabled, Color textOnAccent, Color textOnInverse, Color textLink, Color backgroundCoreElevation0, Color backgroundCoreElevation1, Color backgroundCoreElevation2, Color backgroundCoreElevation3, Color backgroundCoreSurfaceDefault, Color backgroundCoreSurfaceSubtle, Color backgroundCoreSurfaceStrong, Color backgroundCoreSurfaceCard, Color backgroundCoreInverse, Color backgroundCoreOnAccent, Color backgroundCoreScrim, Color backgroundCoreOverlayDark, Color backgroundCoreOverlayLight, Color backgroundCoreHighlight, Color backgroundCoreApp, Color backgroundUtilitySelected, Color backgroundUtilityDisabled, Color borderCoreDefault, Color borderCoreStrong, Color borderCoreSubtle, Color borderCoreOpacitySubtle, Color borderCoreOpacityStrong, Color borderCoreOnAccent, Color borderCoreOnInverse, Color borderCoreOnSurface, Color borderUtilitySelected, Color borderUtilityFocused, Color borderUtilityActive, Color borderUtilityDisabled, Color borderUtilityDisabledOnSurface, Color borderUtilityError, Color borderUtilityWarning, Color borderUtilitySuccess, Color avatarBgPlaceholder, Color avatarPaletteBg1, Color avatarPaletteBg2, Color avatarPaletteBg3, Color avatarPaletteBg4, Color avatarPaletteBg5, Color avatarPaletteText1, Color avatarPaletteText2, Color avatarPaletteText3, Color avatarPaletteText4, Color avatarPaletteText5, Color avatarTextPlaceholder, Color avatarPresenceBorder, Color skeletonLoadingBase, Color skeletonLoadingHighlight, Color systemCaret)
-
Method Summary
-
-
Constructor Detail
-
StreamDesign.Colors
StreamDesign.Colors(StreamDesign.ColorScale brand, StreamDesign.ChromeScale chrome, Color accentPrimary, Color accentError, Color accentSuccess, Color accentWarning, Color accentNeutral, Color textPrimary, Color textSecondary, Color textTertiary, Color textDisabled, Color textOnAccent, Color textOnInverse, Color textLink, Color backgroundCoreElevation0, Color backgroundCoreElevation1, Color backgroundCoreElevation2, Color backgroundCoreElevation3, Color backgroundCoreSurfaceDefault, Color backgroundCoreSurfaceSubtle, Color backgroundCoreSurfaceStrong, Color backgroundCoreSurfaceCard, Color backgroundCoreInverse, Color backgroundCoreOnAccent, Color backgroundCoreScrim, Color backgroundCoreOverlayDark, Color backgroundCoreOverlayLight, Color backgroundCoreHighlight, Color backgroundCoreApp, Color backgroundUtilitySelected, Color backgroundUtilityDisabled, Color borderCoreDefault, Color borderCoreStrong, Color borderCoreSubtle, Color borderCoreOpacitySubtle, Color borderCoreOpacityStrong, Color borderCoreOnAccent, Color borderCoreOnInverse, Color borderCoreOnSurface, Color borderUtilitySelected, Color borderUtilityFocused, Color borderUtilityActive, Color borderUtilityDisabled, Color borderUtilityDisabledOnSurface, Color borderUtilityError, Color borderUtilityWarning, Color borderUtilitySuccess, Color avatarBgPlaceholder, Color avatarPaletteBg1, Color avatarPaletteBg2, Color avatarPaletteBg3, Color avatarPaletteBg4, Color avatarPaletteBg5, Color avatarPaletteText1, Color avatarPaletteText2, Color avatarPaletteText3, Color avatarPaletteText4, Color avatarPaletteText5, Color avatarTextPlaceholder, Color avatarPresenceBorder, Color skeletonLoadingBase, Color skeletonLoadingHighlight, Color systemCaret)
- Parameters:
brand- The brand (accent) color scale.chrome- The chrome (neutral gray) color scale.accentPrimary- Main brand accent for interactive elements.accentError- Destructive actions and error states.accentSuccess- Success states and positive actions.accentWarning- Warning or caution messages.accentNeutral- Neutral accent for low-priority badges.textPrimary- Main text color.textSecondary- Secondary metadata text.textTertiary- Lowest priority text.textDisabled- Disabled text.textOnAccent- Text on dark or accent backgrounds.textOnInverse- Text on inverse backgrounds.textLink- Hyperlinks and inline actions.backgroundCoreElevation0- Flat surfaces.backgroundCoreElevation1- Slightly elevated surfaces.backgroundCoreElevation2- Card-like elements.backgroundCoreElevation3- Popovers.backgroundCoreSurfaceDefault- Standard section background.backgroundCoreSurfaceSubtle- Very light section background.backgroundCoreSurfaceStrong- Stronger section background.backgroundCoreSurfaceCard- Card surfaces inside elevated containers like sheets and dialogs.backgroundCoreInverse- Inverse background for elevated, transient, or high-attention UI surfaces that sit on top of the default app background.backgroundCoreOnAccent- Surfaces that must remain white across themes (e.g., media controls over video).backgroundCoreScrim- Dimmed overlay for modals.backgroundCoreOverlayDark- Selected overlay (dark variant).backgroundCoreOverlayLight- Selected overlay (light variant).backgroundCoreHighlight- Highlight background (e.g.backgroundCoreApp- Global application background.backgroundUtilitySelected- Selected overlay.backgroundUtilityDisabled- Disabled backgrounds.borderCoreDefault- Standard surface border.borderCoreStrong- Stronger surface border.borderCoreSubtle- Very light separators.borderCoreOpacitySubtle- Image frame border treatment (subtle).borderCoreOpacityStrong- Image frame border treatment (strong).borderCoreOnAccent- Borders on accent backgrounds.borderCoreOnInverse- Border on inverse backgrounds.borderCoreOnSurface- Border for elements sitting on elevated surfaces.borderUtilitySelected- Selected overlay border.borderUtilityFocused- Focus ring or focus border.borderUtilityActive- Active state focus border.borderUtilityDisabled- Optional disabled border for inputs, buttons, or chips.borderUtilityDisabledOnSurface- Border for disabled elements on elevated surfaces.borderUtilityError- Error state border.borderUtilityWarning- Warning state border.borderUtilitySuccess- Success state border.avatarBgPlaceholder- Avatar placeholder background.avatarPaletteBg1- Avatar background (slot 1).avatarPaletteBg2- Avatar background (slot 2).avatarPaletteBg3- Avatar background (slot 3).avatarPaletteBg4- Avatar background (slot 4).avatarPaletteBg5- Avatar background (slot 5).avatarPaletteText1- Avatar text (slot 1).avatarPaletteText2- Avatar text (slot 2).avatarPaletteText3- Avatar text (slot 3).avatarPaletteText4- Avatar text (slot 4).avatarPaletteText5- Avatar text (slot 5).avatarTextPlaceholder- Avatar placeholder text.avatarPresenceBorder- The thin outline around the presence dot.skeletonLoadingBase- Base color for the skeleton loading gradient (placeholder surfaces).skeletonLoadingHighlight- Highlight for the skeleton loading gradient (moving shimmer).systemCaret- System caret color.
-
-
Method Detail
-
getBrand
final StreamDesign.ColorScale getBrand()
-
getChrome
final StreamDesign.ChromeScale getChrome()
-
getAccentPrimary
final Color getAccentPrimary()
-
getAccentError
final Color getAccentError()
-
getAccentSuccess
final Color getAccentSuccess()
-
getAccentWarning
final Color getAccentWarning()
-
getAccentNeutral
final Color getAccentNeutral()
-
getTextPrimary
final Color getTextPrimary()
-
getTextSecondary
final Color getTextSecondary()
-
getTextTertiary
final Color getTextTertiary()
-
getTextDisabled
final Color getTextDisabled()
-
getTextOnAccent
final Color getTextOnAccent()
-
getTextOnInverse
final Color getTextOnInverse()
-
getTextLink
final Color getTextLink()
-
getBackgroundCoreElevation0
final Color getBackgroundCoreElevation0()
-
getBackgroundCoreElevation1
final Color getBackgroundCoreElevation1()
-
getBackgroundCoreElevation2
final Color getBackgroundCoreElevation2()
-
getBackgroundCoreElevation3
final Color getBackgroundCoreElevation3()
-
getBackgroundCoreSurfaceDefault
final Color getBackgroundCoreSurfaceDefault()
-
getBackgroundCoreSurfaceSubtle
final Color getBackgroundCoreSurfaceSubtle()
-
getBackgroundCoreSurfaceStrong
final Color getBackgroundCoreSurfaceStrong()
-
getBackgroundCoreSurfaceCard
final Color getBackgroundCoreSurfaceCard()
-
getBackgroundCoreInverse
final Color getBackgroundCoreInverse()
-
getBackgroundCoreOnAccent
final Color getBackgroundCoreOnAccent()
-
getBackgroundCoreScrim
final Color getBackgroundCoreScrim()
-
getBackgroundCoreOverlayDark
final Color getBackgroundCoreOverlayDark()
-
getBackgroundCoreOverlayLight
final Color getBackgroundCoreOverlayLight()
-
getBackgroundCoreHighlight
final Color getBackgroundCoreHighlight()
-
getBackgroundCoreApp
final Color getBackgroundCoreApp()
-
getBackgroundUtilitySelected
final Color getBackgroundUtilitySelected()
-
getBackgroundUtilityDisabled
final Color getBackgroundUtilityDisabled()
-
getBorderCoreDefault
final Color getBorderCoreDefault()
-
getBorderCoreStrong
final Color getBorderCoreStrong()
-
getBorderCoreSubtle
final Color getBorderCoreSubtle()
-
getBorderCoreOpacitySubtle
final Color getBorderCoreOpacitySubtle()
-
getBorderCoreOpacityStrong
final Color getBorderCoreOpacityStrong()
-
getBorderCoreOnAccent
final Color getBorderCoreOnAccent()
-
getBorderCoreOnInverse
final Color getBorderCoreOnInverse()
-
getBorderCoreOnSurface
final Color getBorderCoreOnSurface()
-
getBorderUtilitySelected
final Color getBorderUtilitySelected()
-
getBorderUtilityFocused
final Color getBorderUtilityFocused()
-
getBorderUtilityActive
final Color getBorderUtilityActive()
-
getBorderUtilityDisabled
final Color getBorderUtilityDisabled()
-
getBorderUtilityDisabledOnSurface
final Color getBorderUtilityDisabledOnSurface()
-
getBorderUtilityError
final Color getBorderUtilityError()
-
getBorderUtilityWarning
final Color getBorderUtilityWarning()
-
getBorderUtilitySuccess
final Color getBorderUtilitySuccess()
-
getAvatarBgPlaceholder
final Color getAvatarBgPlaceholder()
-
getAvatarPaletteBg1
final Color getAvatarPaletteBg1()
-
getAvatarPaletteBg2
final Color getAvatarPaletteBg2()
-
getAvatarPaletteBg3
final Color getAvatarPaletteBg3()
-
getAvatarPaletteBg4
final Color getAvatarPaletteBg4()
-
getAvatarPaletteBg5
final Color getAvatarPaletteBg5()
-
getAvatarPaletteText1
final Color getAvatarPaletteText1()
-
getAvatarPaletteText2
final Color getAvatarPaletteText2()
-
getAvatarPaletteText3
final Color getAvatarPaletteText3()
-
getAvatarPaletteText4
final Color getAvatarPaletteText4()
-
getAvatarPaletteText5
final Color getAvatarPaletteText5()
-
getAvatarTextPlaceholder
final Color getAvatarTextPlaceholder()
-
getAvatarPresenceBorder
final Color getAvatarPresenceBorder()
-
getSkeletonLoadingBase
final Color getSkeletonLoadingBase()
-
getSkeletonLoadingHighlight
final Color getSkeletonLoadingHighlight()
-
getSystemCaret
final Color getSystemCaret()
-
-
-
-