Package 

Class SemanticColors


  • @Immutable() 
    public final class SemanticColors
    
                        

    This class holds all the semantic tokens of the Compound theme.

    • Constructor Detail

      • SemanticColors

        SemanticColors(Color bgAccentHovered, Color bgAccentPressed, Color bgAccentRest, Color bgActionPrimaryDisabled, Color bgActionPrimaryHovered, Color bgActionPrimaryPressed, Color bgActionPrimaryRest, Color bgActionSecondaryHovered, Color bgActionSecondaryPressed, Color bgActionSecondaryRest, Color bgCanvasDefault, Color bgCanvasDisabled, Color bgCriticalHovered, Color bgCriticalPrimary, Color bgCriticalSubtle, Color bgCriticalSubtleHovered, Color bgDecorative1, Color bgDecorative2, Color bgDecorative3, Color bgDecorative4, Color bgDecorative5, Color bgDecorative6, Color bgInfoSubtle, Color bgSubtlePrimary, Color bgSubtleSecondary, Color bgSuccessSubtle, Color borderCriticalHovered, Color borderCriticalPrimary, Color borderCriticalSubtle, Color borderDisabled, Color borderFocused, Color borderInfoSubtle, Color borderInteractiveHovered, Color borderInteractivePrimary, Color borderInteractiveSecondary, Color borderSuccessSubtle, Color iconAccentPrimary, Color iconAccentTertiary, Color iconCriticalPrimary, Color iconDisabled, Color iconInfoPrimary, Color iconOnSolidPrimary, Color iconPrimary, Color iconPrimaryAlpha, Color iconQuaternary, Color iconQuaternaryAlpha, Color iconSecondary, Color iconSecondaryAlpha, Color iconSuccessPrimary, Color iconTertiary, Color iconTertiaryAlpha, Color textActionAccent, Color textActionPrimary, Color textCriticalPrimary, Color textDecorative1, Color textDecorative2, Color textDecorative3, Color textDecorative4, Color textDecorative5, Color textDecorative6, Color textDisabled, Color textInfoPrimary, Color textLinkExternal, Color textOnSolidPrimary, Color textPlaceholder, Color textPrimary, Color textSecondary, Color textSuccessPrimary, Boolean isLight)
    • Method Detail

      • getBgAccentHovered

         final Color getBgAccentHovered()

        Background colour for accent or brand actions. State: Hover

      • getBgAccentPressed

         final Color getBgAccentPressed()

        Background colour for accent or brand actions. State: Pressed

      • getBgAccentRest

         final Color getBgAccentRest()

        Background colour for accent or brand actions. State: Rest.

      • getBgActionPrimaryRest

         final Color getBgActionPrimaryRest()

        Background colour for primary actions. State: Rest.

      • getBgCanvasDefault

         final Color getBgCanvasDefault()

        Default global background for the user interface. Elevation: Default (Level 0)

      • getBgCanvasDisabled

         final Color getBgCanvasDisabled()

        Default background for disabled elements. There's no minimum contrast requirement.

      • getBgCriticalHovered

         final Color getBgCriticalHovered()

        High-contrast background color for critical state. State: Hover.

      • getBgCriticalPrimary

         final Color getBgCriticalPrimary()

        High-contrast background color for critical state. State: Rest.

      • getBgCriticalSubtle

         final Color getBgCriticalSubtle()

        Default subtle critical surfaces. State: Rest.

      • getBgDecorative1

         final Color getBgDecorative1()

        Decorative background (1, Lime) for avatars and usernames.

      • getBgDecorative2

         final Color getBgDecorative2()

        Decorative background (2, Cyan) for avatars and usernames.

      • getBgDecorative3

         final Color getBgDecorative3()

        Decorative background (3, Fuchsia) for avatars and usernames.

      • getBgDecorative4

         final Color getBgDecorative4()

        Decorative background (4, Purple) for avatars and usernames.

      • getBgDecorative5

         final Color getBgDecorative5()

        Decorative background (5, Pink) for avatars and usernames.

      • getBgDecorative6

         final Color getBgDecorative6()

        Decorative background (6, Orange) for avatars and usernames.

      • getBgInfoSubtle

         final Color getBgInfoSubtle()

        Subtle background colour for informational elements. State: Rest.

      • getBgSubtlePrimary

         final Color getBgSubtlePrimary()

        Medium contrast surfaces. Elevation: Default (Level 2).

      • getBgSubtleSecondary

         final Color getBgSubtleSecondary()

        Low contrast surfaces. Elevation: Default (Level 1).

      • getBgSuccessSubtle

         final Color getBgSuccessSubtle()

        Subtle background colour for success state elements. State: Rest.

      • getBorderCriticalHovered

         final Color getBorderCriticalHovered()

        High-contrast border for critical state. State: Hover.

      • getBorderDisabled

         final Color getBorderDisabled()

        Used for borders of disabled elements. There's no minimum contrast requirement.

      • getBorderFocused

         final Color getBorderFocused()

        Used for the focus state outline.

      • getBorderInfoSubtle

         final Color getBorderInfoSubtle()

        Subtle border colour for informational elements.

      • getBorderInteractiveHovered

         final Color getBorderInteractiveHovered()

        Default contrast for accessible interactive element borders. State: Hover.

      • getBorderInteractivePrimary

         final Color getBorderInteractivePrimary()

        Default contrast for accessible interactive element borders. State: Rest.

      • getBorderInteractiveSecondary

         final Color getBorderInteractiveSecondary()

        ⚠️ Lowest contrast for non-accessible interactive element borders, <3:1. Only use for non-essential borders. Do not rely exclusively on them. State: Rest.

      • getBorderSuccessSubtle

         final Color getBorderSuccessSubtle()

        Subtle border colour for success state elements.

      • getIconCriticalPrimary

         final Color getIconCriticalPrimary()

        High-contrast icon for critical state. State: Rest.

      • getIconDisabled

         final Color getIconDisabled()

        Use for icons in disabled elements. There's no minimum contrast requirement.

      • getIconInfoPrimary

         final Color getIconInfoPrimary()

        High-contrast icon for informational elements.

      • getIconOnSolidPrimary

         final Color getIconOnSolidPrimary()

        Highest contrast icon color on top of high-contrast solid backgrounds like primary, accent, or destructive actions.

      • getIconPrimaryAlpha

         final Color getIconPrimaryAlpha()

        Translucent version of primary icon. Refer to it for intended use.

      • getIconQuaternary

         final Color getIconQuaternary()

        ⚠️ Lowest contrast non-accessible icons, <3:1. Only use for non-essential icons. Do not rely exclusively on them.

      • getIconQuaternaryAlpha

         final Color getIconQuaternaryAlpha()

        Translucent version of quaternary icon. Refer to it for intended use.

      • getIconSecondaryAlpha

         final Color getIconSecondaryAlpha()

        Translucent version of secondary icon. Refer to it for intended use.

      • getIconSuccessPrimary

         final Color getIconSuccessPrimary()

        High-contrast icon for success state elements.

      • getIconTertiary

         final Color getIconTertiary()

        Lowest contrast accessible icons.

      • getIconTertiaryAlpha

         final Color getIconTertiaryAlpha()

        Translucent version of tertiary icon. Refer to it for intended use.

      • getTextDecorative1

         final Color getTextDecorative1()

        Decorative text colour (1, Lime) for avatars and usernames.

      • getTextDecorative2

         final Color getTextDecorative2()

        Decorative text colour (2, Cyan) for avatars and usernames.

      • getTextDecorative3

         final Color getTextDecorative3()

        Decorative text colour (3, Fuchsia) for avatars and usernames.

      • getTextDecorative4

         final Color getTextDecorative4()

        Decorative text colour (4, Purple) for avatars and usernames.

      • getTextDecorative5

         final Color getTextDecorative5()

        Decorative text colour (5, Pink) for avatars and usernames.

      • getTextDecorative6

         final Color getTextDecorative6()

        Decorative text colour (6, Orange) for avatars and usernames.

      • getTextDisabled

         final Color getTextDisabled()

        Use for regular text in disabled elements. There's no minimum contrast requirement.

      • getTextInfoPrimary

         final Color getTextInfoPrimary()

        Accent text colour for informational elements.

      • getTextOnSolidPrimary

         final Color getTextOnSolidPrimary()

        For use as text color on top of high-contrast solid backgrounds like primary, accent, or destructive actions.

      • getTextPlaceholder

         final Color getTextPlaceholder()

        Use for placeholder text. Placeholder text should be non-essential. Do not rely exclusively on it.

      • getTextSuccessPrimary

         final Color getTextSuccessPrimary()

        Accent text colour for success state elements.