Package-level declarations

Types

Link copied to clipboard
class BundleColors(val basic: Color, val basicGradient: Brush, val medium: Color, val mediumGradient: Brush, val top: Color, val topGradient: Brush, val onBasic: Color, val onMedium: Color, val onTop: Color)

Product color set for various product levels.

Link copied to clipboard
class Colors(val surface: SurfaceColors, val content: ContentColors, val primary: FeatureColors, val info: FeatureColors, val success: FeatureColors, val warning: FeatureColors, val critical: FeatureColors, val bundle: BundleColors, val isLight: Boolean)

Orbit Color Theme.

Link copied to clipboard
class ContentColors(val normal: Color, val minor: Color, val subtle: Color, val highlight: Color, val disabled: Color)

Content colors suitable for various text coloring.

Link copied to clipboard

Content emphasis changes content color in a semantic way.

Link copied to clipboard
Link copied to clipboard
class FeatureColors(val normal: Color, val normalAlt: Color, val subtle: Color, val subtleAlt: Color, val strong: Color, val strongAlt: Color, val onNormal: Color)

Feature color set.

Link copied to clipboard
data class Shapes(val small: CornerBasedShape = RoundedCornerShape(4.dp), val normal: CornerBasedShape = RoundedCornerShape(6.dp), val large: CornerBasedShape = RoundedCornerShape(12.dp))
Link copied to clipboard
class SurfaceColors(val main: Color, val subtle: Color, val subtleAlt: Color, val normal: Color, val normalAlt: Color, val strong: Color, val strongAlt: Color, val disabled: Color)

Surface colors suitable for various backgrounds and surfaces.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun createTypography(defaultFontFamily: FontFamily = FontFamily.Default, defaultPlatformTextStyle: PlatformTextStyle? = PlatformTextStyle(includeFontPadding = false), defaultLineHeightStyle: LineHeightStyle? = LineHeightStyle( LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None, ), title1: TextStyle = TextStyle( fontWeight = FontWeight.Bold, fontSize = 28.sp, lineHeight = 32.sp, ), title2: TextStyle = TextStyle( fontWeight = FontWeight.Medium, fontSize = 22.sp, lineHeight = 28.sp, ), title3: TextStyle = TextStyle( fontWeight = FontWeight.Medium, fontSize = 18.sp, lineHeight = 24.sp, ), title4: TextStyle = TextStyle( fontWeight = FontWeight.Bold, fontSize = 16.sp, lineHeight = 20.sp, ), title5: TextStyle = TextStyle( fontWeight = FontWeight.Bold, fontSize = 15.sp, lineHeight = 20.sp, ), title6: TextStyle = TextStyle( fontWeight = FontWeight.Bold, fontSize = 13.sp, lineHeight = 16.sp, ), bodyExtraLarge: TextStyle = TextStyle( fontWeight = FontWeight.Normal, fontSize = 18.sp, lineHeight = 24.sp, ), bodyLarge: TextStyle = TextStyle( fontWeight = FontWeight.Normal, fontSize = 16.sp, lineHeight = 22.sp, ), bodyNormal: TextStyle = TextStyle( fontWeight = FontWeight.Normal, fontSize = 15.sp, lineHeight = 20.sp, ), bodySmall: TextStyle = TextStyle( fontWeight = FontWeight.Normal, fontSize = 13.sp, lineHeight = 16.sp, )): Typography
Link copied to clipboard
fun darkBundleColors(basic: Color = ColorTokens.BundleBasic, basicGradient: Brush = bundleLinearGradient( ColorTokens.BundleBasicStart, ColorTokens.BundleBasicEnd, ), medium: Color = ColorTokens.BundleMedium, mediumGradient: Brush = bundleLinearGradient( ColorTokens.BundleMediumStart, ColorTokens.BundleMediumEnd, ), top: Color = ColorTokens.InkDark, topGradient: Brush = bundleLinearGradient( ColorTokens.BundleTopStart, ColorTokens.BundleTopEnd, ), onBasic: Color = ColorTokens.White, onMedium: Color = ColorTokens.White, onTop: Color = ColorTokens.White): BundleColors
Link copied to clipboard
fun darkColors(surface: SurfaceColors = darkSurfaceColors(), content: ContentColors = darkContentColors(), primary: FeatureColors = darkPrimaryColors(), info: FeatureColors = darkInfoColors(), success: FeatureColors = darkSuccessColors(), warning: FeatureColors = darkWarningColors(), critical: FeatureColors = darkCriticalColors(), bundle: BundleColors = darkBundleColors()): Colors
Link copied to clipboard
fun darkContentColors(normal: Color = Color(0xFFFFFFFF), minor: Color = Color(0xFFBAC7D5), subtle: Color = Color(0xFFA1AEBC), highlight: Color = Color(0xFF00EECC), disabled: Color = Color(0xFF424D59)): ContentColors
Link copied to clipboard
fun darkCriticalColors(normal: Color = Color(0xFFFF5050), normalAlt: Color = Color(0xFFFF6969), subtle: Color = Color(0xFF4C323C), subtleAlt: Color = Color(0xFF63414E), strong: Color = Color(0xFFFF7070), strongAlt: Color = Color(0xFFFE8989), onNormal: Color = Color.Black): FeatureColors
Link copied to clipboard
fun darkInfoColors(normal: Color = Color(0xFF2AA0FE), normalAlt: Color = Color(0xFF43ABFE), subtle: Color = Color(0xFF21425F), subtleAlt: Color = Color(0xFF2A557B), strong: Color = Color(0xFF67BBFE), strongAlt: Color = Color(0xFF80C6FE), onNormal: Color = Color.Black): FeatureColors
Link copied to clipboard
fun darkPrimaryColors(normal: Color = Color(0xFF00CBAE), normalAlt: Color = Color(0xFF00E4C3), subtle: Color = Color(0xFF0A4038), subtleAlt: Color = Color(0xFF0F6558), strong: Color = Color(0xFF00EECC), strongAlt: Color = Color(0xFF09FFDB), onNormal: Color = Color.Black): FeatureColors
Link copied to clipboard
fun darkSuccessColors(normal: Color = Color(0xFF3BCE4E), normalAlt: Color = Color(0xFF4FD360), subtle: Color = Color(0xFF254B3C), subtleAlt: Color = Color(0xFF326551), strong: Color = Color(0xFF64D873), strongAlt: Color = Color(0xFF87DD85), onNormal: Color = Color.Black): FeatureColors
Link copied to clipboard
fun darkSurfaceColors(main: Color = Color(0xFF111927), subtle: Color = Color(0xFF151E29), subtleAlt: Color = Color(0xFF1F2B35), normal: Color = Color(0xFF293845), normalAlt: Color = Color(0xFF324454), strong: Color = Color(0xFF38414B), strongAlt: Color = Color(0xFF424D59), disabled: Color = Color(0xFF293845)): SurfaceColors
Link copied to clipboard
fun darkWarningColors(normal: Color = Color(0xFFFBA132), normalAlt: Color = Color(0xFFFBAC4B), subtle: Color = Color(0xFF4B4236), subtleAlt: Color = Color(0xFF615545), strong: Color = Color(0xFFFCB35A), strongAlt: Color = Color(0xFFFCBE73), onNormal: Color = Color.Black): FeatureColors
Link copied to clipboard
fun lightBundleColors(basic: Color = ColorTokens.BundleBasic, basicGradient: Brush = bundleLinearGradient(ColorTokens.BundleBasicStart, ColorTokens.BundleBasicEnd), medium: Color = ColorTokens.BundleMedium, mediumGradient: Brush = bundleLinearGradient(ColorTokens.BundleMediumStart, ColorTokens.BundleMediumEnd), top: Color = ColorTokens.InkDark, topGradient: Brush = bundleLinearGradient(ColorTokens.BundleTopStart, ColorTokens.BundleTopEnd), onBasic: Color = ColorTokens.White, onMedium: Color = ColorTokens.White, onTop: Color = ColorTokens.White): BundleColors
Link copied to clipboard
fun lightColors(surface: SurfaceColors = lightSurfaceColors(), content: ContentColors = lightContentColors(), primary: FeatureColors = lightPrimaryColors(), info: FeatureColors = lightInfoColors(), success: FeatureColors = lightSuccessColors(), warning: FeatureColors = lightWarningColors(), critical: FeatureColors = lightCriticalColors(), bundle: BundleColors = lightBundleColors()): Colors
Link copied to clipboard
fun lightContentColors(normal: Color = ColorTokens.InkDark, minor: Color = ColorTokens.InkNormal, subtle: Color = ColorTokens.InkLight, highlight: Color = ColorTokens.ProductDark, disabled: Color = ColorTokens.CloudDarkHover): ContentColors
Link copied to clipboard
fun lightCriticalColors(normal: Color = ColorTokens.RedNormal, normalAlt: Color = ColorTokens.RedNormalHover, subtle: Color = ColorTokens.RedLight, subtleAlt: Color = ColorTokens.RedLightHover, strong: Color = ColorTokens.RedDark, strongAlt: Color = ColorTokens.RedDarkHover, onNormal: Color = ColorTokens.White): FeatureColors
Link copied to clipboard
fun lightInfoColors(normal: Color = ColorTokens.BlueNormal, normalAlt: Color = ColorTokens.BlueNormalHover, subtle: Color = ColorTokens.BlueLight, subtleAlt: Color = ColorTokens.BlueLightHover, strong: Color = ColorTokens.BlueDark, strongAlt: Color = ColorTokens.BlueDarkHover, onNormal: Color = ColorTokens.White): FeatureColors
Link copied to clipboard
fun lightPrimaryColors(normal: Color = ColorTokens.ProductNormal, normalAlt: Color = ColorTokens.ProductNormalHover, subtle: Color = ColorTokens.ProductLight, subtleAlt: Color = ColorTokens.ProductLightHover, strong: Color = ColorTokens.ProductDark, strongAlt: Color = ColorTokens.ProductDarkHover, onNormal: Color = ColorTokens.White): FeatureColors
Link copied to clipboard
fun lightSuccessColors(normal: Color = ColorTokens.GreenNormal, normalAlt: Color = ColorTokens.GreenNormalHover, subtle: Color = ColorTokens.GreenLight, subtleAlt: Color = ColorTokens.GreenLightHover, strong: Color = ColorTokens.GreenDark, strongAlt: Color = ColorTokens.GreenDarkHover, onNormal: Color = ColorTokens.White): FeatureColors
Link copied to clipboard
fun lightSurfaceColors(main: Color = ColorTokens.White, subtle: Color = ColorTokens.CloudLight, subtleAlt: Color = ColorTokens.CloudLightHover, normal: Color = ColorTokens.CloudNormal, normalAlt: Color = ColorTokens.CloudNormalHover, strong: Color = ColorTokens.CloudDark, strongAlt: Color = ColorTokens.CloudDarkHover, disabled: Color = ColorTokens.CloudNormal): SurfaceColors
Link copied to clipboard
fun lightWarningColors(normal: Color = ColorTokens.OrangeNormal, normalAlt: Color = ColorTokens.OrangeNormalHover, subtle: Color = ColorTokens.OrangeLight, subtleAlt: Color = ColorTokens.OrangeLightHover, strong: Color = ColorTokens.OrangeDark, strongAlt: Color = ColorTokens.OrangeDarkHover, onNormal: Color = ColorTokens.White): FeatureColors
Link copied to clipboard
fun ProvideColors(colors: Colors, content: @Composable () -> Unit)
Link copied to clipboard
Link copied to clipboard