primer_flutter library

Classes

Accent
Colors for drawing attention to interactive elements, like links or buttons.
Attention
Colors for highlighting text or icons that require the user's attention.
Border
Colors used for drawing borders.
Canvas
Colors used for the backgrounds of user interfaces.
Closed
Colors for styling UI elements that refer to closed tasks or workflows.
Danger
Colors for emphasizing an error or a blocking status. Action is required.
Done
Completion colors for productivity and code review workflows.
Foreground
The primary color for text and icons in any given interface.
Neutral
Colors used to highlight content without any added meaning.
Open
Colors for styling UI elements that refer to open tasks or workflows.
PrimerApp
A high-level convenience widget that provides automatic Primer theme configurations based on the Brightness it is provided with.
PrimerTheme
Applies a Primer-style theme to descendant widgets.
PrimerThemeData
Defines the configuration of the overall visual PrimerTheme for a widget subtree.
PrimerTypography
A set of text styles that match Primer's typographic specifications.
ScaleColorsColorblindDark
Scale colors appropriate for a colorblind dark theme.
ScaleColorsColorblindLight
Scale colors appropriate for a colorblind light theme.
ScaleColorsDark
Scale colors appropriate for a dark theme.
ScaleColorsDimmed
Scale colors appropriate for a dark dimmed theme.
ScaleColorsHighContrastDark
Scale colors appropriate for a high-contrast dark theme.
ScaleColorsHighContrastLight
Scale colors appropriate for a high-contrast light theme.
ScaleColorsLight
Scale colors appropriate for a light theme.
ScaleColorsTritanopiaDark
Scale colors appropriate for a dark tritanopia theme.
ScaleColorsTritanopiaLight
Scale colors appropriate for a light tritanopia theme.
Severe
Colors for emphasizing a level of severity between Attention and Danger.
Sponsors
Colors for styling Sponsors-related UI.
Success
Colors for emphasizing a positive message.

Enums

AccessibilityTheme
Enumerates the types of accessibility themes that can be used in a PrimerApp.

Functions

lighten(Color color, double lightness) Color
Adds lightness to a color.