Documentation
¶
Index ¶
- Variables
- type ColorSchemeKeyTokensData
- type ColorSchemeTokenKey
- type ColorTokens
- type ElevationData
- type ElevationKeyData
- type ElevationTokenKey
- type IconButtonTokens
- type PaletteTokensData
- type ShapeKeyTokensData
- type ShapeTokenKey
- type ShapeTokensData
- type SnackbarTokensData
- type TypeScaleTokensData
- type TypographyKeyTokensData
- type TypographyTokenKey
- type TypographyTokensData
Constants ¶
This section is empty.
Variables ¶
View Source
var ColorDarkTokens = ColorTokens{ Background: PaletteTokens.Neutral6, Error: PaletteTokens.Error80, ErrorContainer: PaletteTokens.Error30, InverseOnSurface: PaletteTokens.Neutral20, InversePrimary: PaletteTokens.Primary40, InverseSurface: PaletteTokens.Neutral90, OnBackground: PaletteTokens.Neutral90, OnError: PaletteTokens.Error20, OnErrorContainer: PaletteTokens.Error90, OnPrimary: PaletteTokens.Primary20, OnPrimaryContainer: PaletteTokens.Primary90, OnPrimaryFixed: PaletteTokens.Primary10, OnPrimaryFixedVariant: PaletteTokens.Primary30, OnSecondary: PaletteTokens.Secondary20, OnSecondaryContainer: PaletteTokens.Secondary90, OnSecondaryFixed: PaletteTokens.Secondary10, OnSecondaryFixedVariant: PaletteTokens.Secondary30, OnSurface: PaletteTokens.Neutral90, OnSurfaceVariant: PaletteTokens.NeutralVariant80, OnTertiary: PaletteTokens.Tertiary20, OnTertiaryContainer: PaletteTokens.Tertiary90, OnTertiaryFixed: PaletteTokens.Tertiary10, OnTertiaryFixedVariant: PaletteTokens.Tertiary30, Outline: PaletteTokens.NeutralVariant60, OutlineVariant: PaletteTokens.NeutralVariant30, Primary: PaletteTokens.Primary80, PrimaryContainer: PaletteTokens.Primary30, PrimaryFixed: PaletteTokens.Primary90, PrimaryFixedDim: PaletteTokens.Primary80, Scrim: PaletteTokens.Neutral0, Secondary: PaletteTokens.Secondary80, SecondaryContainer: PaletteTokens.Secondary30, SecondaryFixed: PaletteTokens.Secondary90, SecondaryFixedDim: PaletteTokens.Secondary80, Surface: PaletteTokens.Neutral6, SurfaceBright: PaletteTokens.Neutral24, SurfaceContainer: PaletteTokens.Neutral12, SurfaceContainerHigh: PaletteTokens.Neutral17, SurfaceContainerHighest: PaletteTokens.Neutral22, SurfaceContainerLow: PaletteTokens.Neutral10, SurfaceContainerLowest: PaletteTokens.Neutral4, SurfaceDim: PaletteTokens.Neutral6, SurfaceTint: PaletteTokens.Primary80, SurfaceVariant: PaletteTokens.NeutralVariant30, Tertiary: PaletteTokens.Tertiary80, TertiaryContainer: PaletteTokens.Tertiary30, TertiaryFixed: PaletteTokens.Tertiary90, TertiaryFixedDim: PaletteTokens.Tertiary80, }
View Source
var ColorLightTokens = ColorTokens{ Background: PaletteTokens.Neutral98, Error: PaletteTokens.Error40, ErrorContainer: PaletteTokens.Error90, InverseOnSurface: PaletteTokens.Neutral95, InversePrimary: PaletteTokens.Primary80, InverseSurface: PaletteTokens.Neutral20, OnBackground: PaletteTokens.Neutral10, OnError: PaletteTokens.Error100, OnErrorContainer: PaletteTokens.Error10, OnPrimary: PaletteTokens.Primary100, OnPrimaryContainer: PaletteTokens.Primary10, OnPrimaryFixed: PaletteTokens.Primary10, OnPrimaryFixedVariant: PaletteTokens.Primary30, OnSecondary: PaletteTokens.Secondary100, OnSecondaryContainer: PaletteTokens.Secondary10, OnSecondaryFixed: PaletteTokens.Secondary10, OnSecondaryFixedVariant: PaletteTokens.Secondary30, OnSurface: PaletteTokens.Neutral10, OnSurfaceVariant: PaletteTokens.NeutralVariant30, OnTertiary: PaletteTokens.Tertiary100, OnTertiaryContainer: PaletteTokens.Tertiary10, OnTertiaryFixed: PaletteTokens.Tertiary10, OnTertiaryFixedVariant: PaletteTokens.Tertiary30, Outline: PaletteTokens.NeutralVariant50, OutlineVariant: PaletteTokens.NeutralVariant80, Primary: PaletteTokens.Primary40, PrimaryContainer: PaletteTokens.Primary90, PrimaryFixed: PaletteTokens.Primary90, PrimaryFixedDim: PaletteTokens.Primary80, Scrim: PaletteTokens.Neutral0, Secondary: PaletteTokens.Secondary40, SecondaryContainer: PaletteTokens.Secondary90, SecondaryFixed: PaletteTokens.Secondary90, SecondaryFixedDim: PaletteTokens.Secondary80, Surface: PaletteTokens.Neutral98, SurfaceBright: PaletteTokens.Neutral98, SurfaceContainer: PaletteTokens.Neutral94, SurfaceContainerHigh: PaletteTokens.Neutral92, SurfaceContainerHighest: PaletteTokens.Neutral90, SurfaceContainerLow: PaletteTokens.Neutral96, SurfaceContainerLowest: PaletteTokens.Neutral100, SurfaceDim: PaletteTokens.Neutral87, SurfaceTint: PaletteTokens.Primary40, SurfaceVariant: PaletteTokens.NeutralVariant90, Tertiary: PaletteTokens.Tertiary40, TertiaryContainer: PaletteTokens.Tertiary90, TertiaryFixed: PaletteTokens.Tertiary90, TertiaryFixedDim: PaletteTokens.Tertiary80, }
View Source
var ColorSchemeKeyTokens = ColorSchemeKeyTokensData{ Background: ColorSchemeTokenKeyBackground, Error: ColorSchemeTokenKeyError, ErrorContainer: ColorSchemeTokenKeyErrorContainer, InverseOnSurface: ColorSchemeTokenKeyInverseOnSurface, InversePrimary: ColorSchemeTokenKeyInversePrimary, InverseSurface: ColorSchemeTokenKeyInverseSurface, OnBackground: ColorSchemeTokenKeyOnBackground, OnError: ColorSchemeTokenKeyOnError, OnErrorContainer: ColorSchemeTokenKeyOnErrorContainer, OnPrimary: ColorSchemeTokenKeyOnPrimary, OnPrimaryContainer: ColorSchemeTokenKeyOnPrimaryContainer, OnPrimaryFixed: ColorSchemeTokenKeyOnPrimaryFixed, OnPrimaryFixedVariant: ColorSchemeTokenKeyOnPrimaryFixedVariant, OnSecondary: ColorSchemeTokenKeyOnSecondary, OnSecondaryContainer: ColorSchemeTokenKeyOnSecondaryContainer, OnSecondaryFixed: ColorSchemeTokenKeyOnSecondaryFixed, OnSecondaryFixedVariant: ColorSchemeTokenKeyOnSecondaryFixedVariant, OnSurface: ColorSchemeTokenKeyOnSurface, OnSurfaceVariant: ColorSchemeTokenKeyOnSurfaceVariant, OnTertiary: ColorSchemeTokenKeyOnTertiary, OnTertiaryContainer: ColorSchemeTokenKeyOnTertiaryContainer, OnTertiaryFixed: ColorSchemeTokenKeyOnTertiaryFixed, OnTertiaryFixedVariant: ColorSchemeTokenKeyOnTertiaryFixedVariant, Outline: ColorSchemeTokenKeyOutline, OutlineVariant: ColorSchemeTokenKeyOutlineVariant, Primary: ColorSchemeTokenKeyPrimary, PrimaryContainer: ColorSchemeTokenKeyPrimaryContainer, PrimaryFixed: ColorSchemeTokenKeyPrimaryFixed, PrimaryFixedDim: ColorSchemeTokenKeyPrimaryFixedDim, Scrim: ColorSchemeTokenKeyScrim, Secondary: ColorSchemeTokenKeySecondary, SecondaryContainer: ColorSchemeTokenKeySecondaryContainer, SecondaryFixed: ColorSchemeTokenKeySecondaryFixed, SecondaryFixedDim: ColorSchemeTokenKeySecondaryFixedDim, Surface: ColorSchemeTokenKeySurface, SurfaceBright: ColorSchemeTokenKeySurfaceBright, SurfaceContainer: ColorSchemeTokenKeySurfaceContainer, SurfaceContainerHigh: ColorSchemeTokenKeySurfaceContainerHigh, SurfaceContainerHighest: ColorSchemeTokenKeySurfaceContainerHighest, SurfaceContainerLow: ColorSchemeTokenKeySurfaceContainerLow, SurfaceContainerLowest: ColorSchemeTokenKeySurfaceContainerLowest, SurfaceDim: ColorSchemeTokenKeySurfaceDim, SurfaceTint: ColorSchemeTokenKeySurfaceTint, SurfaceVariant: ColorSchemeTokenKeySurfaceVariant, Tertiary: ColorSchemeTokenKeyTertiary, TertiaryContainer: ColorSchemeTokenKeyTertiaryContainer, TertiaryFixed: ColorSchemeTokenKeyTertiaryFixed, TertiaryFixedDim: ColorSchemeTokenKeyTertiaryFixedDim, }
View Source
var ElevationKeyTokens = ElevationKeyData{ Level0: ElevationTokenKeyLevel0, Level1: ElevationTokenKeyLevel1, Level2: ElevationTokenKeyLevel2, Level3: ElevationTokenKeyLevel3, Level4: ElevationTokenKeyLevel4, Level5: ElevationTokenKeyLevel5, }
View Source
var ElevationTokens = ElevationData{ Level0: unit.Dp(0.0), Level1: unit.Dp(1.0), Level2: unit.Dp(3.0), Level3: unit.Dp(6.0), Level4: unit.Dp(8.0), Level5: unit.Dp(12.0), }
View Source
var PaletteTokens = PaletteTokensData{ Black: graphics.NewColorSrgb(0, 0, 0, 255), Error0: graphics.NewColorSrgb(0, 0, 0, 255), Error10: graphics.NewColorSrgb(65, 14, 11, 255), Error100: graphics.NewColorSrgb(255, 255, 255, 255), Error20: graphics.NewColorSrgb(96, 20, 16, 255), Error30: graphics.NewColorSrgb(140, 29, 24, 255), Error40: graphics.NewColorSrgb(179, 38, 30, 255), Error50: graphics.NewColorSrgb(220, 54, 46, 255), Error60: graphics.NewColorSrgb(228, 105, 98, 255), Error70: graphics.NewColorSrgb(236, 146, 142, 255), Error80: graphics.NewColorSrgb(242, 184, 181, 255), Error90: graphics.NewColorSrgb(249, 222, 220, 255), Error95: graphics.NewColorSrgb(252, 238, 238, 255), Error99: graphics.NewColorSrgb(255, 251, 249, 255), Neutral0: graphics.NewColorSrgb(0, 0, 0, 255), Neutral10: graphics.NewColorSrgb(29, 27, 32, 255), Neutral100: graphics.NewColorSrgb(255, 255, 255, 255), Neutral12: graphics.NewColorSrgb(33, 31, 38, 255), Neutral17: graphics.NewColorSrgb(43, 41, 48, 255), Neutral20: graphics.NewColorSrgb(50, 47, 53, 255), Neutral22: graphics.NewColorSrgb(54, 52, 59, 255), Neutral24: graphics.NewColorSrgb(59, 56, 62, 255), Neutral30: graphics.NewColorSrgb(72, 70, 76, 255), Neutral4: graphics.NewColorSrgb(15, 13, 19, 255), Neutral40: graphics.NewColorSrgb(96, 93, 100, 255), Neutral50: graphics.NewColorSrgb(121, 118, 125, 255), Neutral6: graphics.NewColorSrgb(20, 18, 24, 255), Neutral60: graphics.NewColorSrgb(147, 143, 150, 255), Neutral70: graphics.NewColorSrgb(174, 169, 177, 255), Neutral80: graphics.NewColorSrgb(202, 197, 205, 255), Neutral87: graphics.NewColorSrgb(222, 216, 225, 255), Neutral90: graphics.NewColorSrgb(230, 224, 233, 255), Neutral92: graphics.NewColorSrgb(236, 230, 240, 255), Neutral94: graphics.NewColorSrgb(243, 237, 247, 255), Neutral95: graphics.NewColorSrgb(245, 239, 247, 255), Neutral96: graphics.NewColorSrgb(247, 242, 250, 255), Neutral98: graphics.NewColorSrgb(254, 247, 255, 255), Neutral99: graphics.NewColorSrgb(255, 251, 255, 255), NeutralVariant0: graphics.NewColorSrgb(0, 0, 0, 255), NeutralVariant10: graphics.NewColorSrgb(29, 26, 34, 255), NeutralVariant100: graphics.NewColorSrgb(255, 255, 255, 255), NeutralVariant20: graphics.NewColorSrgb(50, 47, 55, 255), NeutralVariant30: graphics.NewColorSrgb(73, 69, 79, 255), NeutralVariant40: graphics.NewColorSrgb(96, 93, 102, 255), NeutralVariant50: graphics.NewColorSrgb(121, 116, 126, 255), NeutralVariant60: graphics.NewColorSrgb(147, 143, 153, 255), NeutralVariant70: graphics.NewColorSrgb(174, 169, 180, 255), NeutralVariant80: graphics.NewColorSrgb(202, 196, 208, 255), NeutralVariant90: graphics.NewColorSrgb(231, 224, 236, 255), NeutralVariant95: graphics.NewColorSrgb(245, 238, 250, 255), NeutralVariant99: graphics.NewColorSrgb(255, 251, 254, 255), Primary0: graphics.NewColorSrgb(0, 0, 0, 255), Primary10: graphics.NewColorSrgb(33, 0, 93, 255), Primary100: graphics.NewColorSrgb(255, 255, 255, 255), Primary20: graphics.NewColorSrgb(56, 30, 114, 255), Primary30: graphics.NewColorSrgb(79, 55, 139, 255), Primary40: graphics.NewColorSrgb(103, 80, 164, 255), Primary50: graphics.NewColorSrgb(127, 103, 190, 255), Primary60: graphics.NewColorSrgb(154, 130, 219, 255), Primary70: graphics.NewColorSrgb(182, 157, 248, 255), Primary80: graphics.NewColorSrgb(208, 188, 255, 255), Primary90: graphics.NewColorSrgb(234, 221, 255, 255), Primary95: graphics.NewColorSrgb(246, 237, 255, 255), Primary99: graphics.NewColorSrgb(255, 251, 254, 255), Secondary0: graphics.NewColorSrgb(0, 0, 0, 255), Secondary10: graphics.NewColorSrgb(29, 25, 43, 255), Secondary100: graphics.NewColorSrgb(255, 255, 255, 255), Secondary20: graphics.NewColorSrgb(51, 45, 65, 255), Secondary30: graphics.NewColorSrgb(74, 68, 88, 255), Secondary40: graphics.NewColorSrgb(98, 91, 113, 255), Secondary50: graphics.NewColorSrgb(122, 114, 137, 255), Secondary60: graphics.NewColorSrgb(149, 141, 165, 255), Secondary70: graphics.NewColorSrgb(176, 167, 192, 255), Secondary80: graphics.NewColorSrgb(204, 194, 220, 255), Secondary90: graphics.NewColorSrgb(232, 222, 248, 255), Secondary95: graphics.NewColorSrgb(246, 237, 255, 255), Secondary99: graphics.NewColorSrgb(255, 251, 254, 255), Tertiary0: graphics.NewColorSrgb(0, 0, 0, 255), Tertiary10: graphics.NewColorSrgb(49, 17, 29, 255), Tertiary100: graphics.NewColorSrgb(255, 255, 255, 255), Tertiary20: graphics.NewColorSrgb(73, 37, 50, 255), Tertiary30: graphics.NewColorSrgb(99, 59, 72, 255), Tertiary40: graphics.NewColorSrgb(125, 82, 96, 255), Tertiary50: graphics.NewColorSrgb(152, 105, 119, 255), Tertiary60: graphics.NewColorSrgb(181, 131, 146, 255), Tertiary70: graphics.NewColorSrgb(210, 157, 172, 255), Tertiary80: graphics.NewColorSrgb(239, 184, 200, 255), Tertiary90: graphics.NewColorSrgb(255, 216, 228, 255), Tertiary95: graphics.NewColorSrgb(255, 236, 241, 255), Tertiary99: graphics.NewColorSrgb(255, 251, 250, 255), White: graphics.NewColorSrgb(255, 255, 255, 255), }
View Source
var ShapeKeyTokens = ShapeKeyTokensData{ CornerExtraExtraLarge: ShapeTokenKeyCornerExtraExtraLarge, CornerExtraLarge: ShapeTokenKeyCornerExtraLarge, CornerExtraLargeIncreased: ShapeTokenKeyCornerExtraLargeIncreased, CornerExtraLargeTop: ShapeTokenKeyCornerExtraLargeTop, CornerExtraSmall: ShapeTokenKeyCornerExtraSmall, CornerExtraSmallTop: ShapeTokenKeyCornerExtraSmallTop, CornerFull: ShapeTokenKeyCornerFull, CornerLarge: ShapeTokenKeyCornerLarge, CornerLargeEnd: ShapeTokenKeyCornerLargeEnd, CornerLargeIncreased: ShapeTokenKeyCornerLargeIncreased, CornerLargeStart: ShapeTokenKeyCornerLargeStart, CornerLargeTop: ShapeTokenKeyCornerLargeTop, CornerMedium: ShapeTokenKeyCornerMedium, CornerNone: ShapeTokenKeyCornerNone, CornerSmall: ShapeTokenKeyCornerSmall, }
View Source
var ShapeTokens = ShapeTokensData{ CornerExtraExtraLarge: &shape.RoundedCornerShape{Radius: unit.Dp(48)}, CornerExtraLarge: &shape.RoundedCornerShape{Radius: unit.Dp(28)}, CornerExtraLargeIncreased: &shape.RoundedCornerShape{Radius: unit.Dp(32)}, CornerExtraLargeTop: &shape.RoundedCornerShape{ TopStart: unit.Dp(28), TopEnd: unit.Dp(28), BottomEnd: unit.Dp(0), BottomStart: unit.Dp(0), }, CornerExtraSmall: &shape.RoundedCornerShape{Radius: unit.Dp(4)}, CornerExtraSmallTop: &shape.RoundedCornerShape{ TopStart: unit.Dp(4), TopEnd: unit.Dp(4), BottomEnd: unit.Dp(0), BottomStart: unit.Dp(0), }, CornerFull: shape.CircleShape, CornerLarge: &shape.RoundedCornerShape{Radius: unit.Dp(16)}, CornerLargeEnd: &shape.RoundedCornerShape{TopEnd: unit.Dp(16), BottomEnd: unit.Dp(16), TopStart: unit.Dp(0), BottomStart: unit.Dp(0)}, CornerLargeIncreased: &shape.RoundedCornerShape{Radius: unit.Dp(20)}, CornerLargeStart: &shape.RoundedCornerShape{TopStart: unit.Dp(16), BottomStart: unit.Dp(16), TopEnd: unit.Dp(0), BottomEnd: unit.Dp(0)}, CornerLargeTop: &shape.RoundedCornerShape{ TopStart: unit.Dp(16), TopEnd: unit.Dp(16), BottomEnd: unit.Dp(0), BottomStart: unit.Dp(0), }, CornerMedium: &shape.RoundedCornerShape{Radius: unit.Dp(12)}, CornerNone: shape.ShapeRectangle, CornerSmall: &shape.RoundedCornerShape{Radius: unit.Dp(8)}, CornerValueExtraExtraLarge: unit.Dp(48), CornerValueExtraLarge: unit.Dp(28), CornerValueExtraLargeIncreased: unit.Dp(32), CornerValueExtraSmall: unit.Dp(4), CornerValueLarge: unit.Dp(16), CornerValueLargeIncreased: unit.Dp(20), CornerValueMedium: unit.Dp(12), CornerValueNone: unit.Dp(0), CornerValueSmall: unit.Dp(8), }
Version: androidx 1.4.1 (ShapeTokens.kt)
View Source
var SnackbarTokens = SnackbarTokensData{ ActionFocusLabelTextColor: ColorSchemeKeyTokens.InversePrimary, ActionHoverLabelTextColor: ColorSchemeKeyTokens.InversePrimary, ActionLabelTextColor: ColorSchemeKeyTokens.InversePrimary, ActionLabelTextFont: TypographyKeyTokens.LabelLarge, ActionPressedLabelTextColor: ColorSchemeKeyTokens.InversePrimary, ContainerColor: ColorSchemeKeyTokens.InverseSurface, ContainerElevation: ElevationTokens.Level3, ContainerShape: ShapeKeyTokens.CornerExtraSmall, IconColor: ColorSchemeKeyTokens.InverseOnSurface, FocusIconColor: ColorSchemeKeyTokens.InverseOnSurface, HoverIconColor: ColorSchemeKeyTokens.InverseOnSurface, PressedIconColor: ColorSchemeKeyTokens.InverseOnSurface, IconSize: unit.Dp(24), SupportingTextColor: ColorSchemeKeyTokens.InverseOnSurface, SupportingTextFont: TypographyKeyTokens.BodyMedium, SingleLineContainerHeight: unit.Dp(48), TwoLinesContainerHeight: unit.Dp(68), }
View Source
var TypeScaleTokens = TypeScaleTokensData{}/* 150 elements not displayed */
View Source
var TypefaceTokens = materialTokens.TypefaceTokens
View Source
var TypographyKeyTokens = &TypographyKeyTokensData{ BodyLarge: TypographyTokenKeyBodyLarge, BodyMedium: TypographyTokenKeyBodyMedium, BodySmall: TypographyTokenKeyBodySmall, DisplayLarge: TypographyTokenKeyDisplayLarge, DisplayMedium: TypographyTokenKeyDisplayMedium, DisplaySmall: TypographyTokenKeyDisplaySmall, HeadlineLarge: TypographyTokenKeyHeadlineLarge, HeadlineMedium: TypographyTokenKeyHeadlineMedium, HeadlineSmall: TypographyTokenKeyHeadlineSmall, LabelLarge: TypographyTokenKeyLabelLarge, LabelMedium: TypographyTokenKeyLabelMedium, LabelSmall: TypographyTokenKeyLabelSmall, TitleLarge: TypographyTokenKeyTitleLarge, TitleMedium: TypographyTokenKeyTitleMedium, TitleSmall: TypographyTokenKeyTitleSmall, BodyLargeEmphasized: TypographyTokenKeyBodyLargeEmphasized, BodyMediumEmphasized: TypographyTokenKeyBodyMediumEmphasized, BodySmallEmphasized: TypographyTokenKeyBodySmallEmphasized, DisplayLargeEmphasized: TypographyTokenKeyDisplayLargeEmphasized, DisplayMediumEmphasized: TypographyTokenKeyDisplayMediumEmphasized, DisplaySmallEmphasized: TypographyTokenKeyDisplaySmallEmphasized, HeadlineLargeEmphasized: TypographyTokenKeyHeadlineLargeEmphasized, HeadlineMediumEmphasized: TypographyTokenKeyHeadlineMediumEmphasized, HeadlineSmallEmphasized: TypographyTokenKeyHeadlineSmallEmphasized, LabelLargeEmphasized: TypographyTokenKeyLabelLargeEmphasized, LabelMediumEmphasized: TypographyTokenKeyLabelMediumEmphasized, LabelSmallEmphasized: TypographyTokenKeyLabelSmallEmphasized, TitleLargeEmphasized: TypographyTokenKeyTitleLargeEmphasized, TitleMediumEmphasized: TypographyTokenKeyTitleMediumEmphasized, TitleSmallEmphasized: TypographyTokenKeyTitleSmallEmphasized, }
View Source
var TypographyTokens = TypographyTokensData{ BodyLarge: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.BodyLargeFont), text.WithFontWeight(TypeScaleTokens.BodyLargeWeight), text.WithFontSize(TypeScaleTokens.BodyLargeSize), text.WithLineHeight(TypeScaleTokens.BodyLargeLineHeight), text.WithLetterSpacing(TypeScaleTokens.BodyLargeTracking), ), BodyMedium: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.BodyMediumFont), text.WithFontWeight(TypeScaleTokens.BodyMediumWeight), text.WithFontSize(TypeScaleTokens.BodyMediumSize), text.WithLineHeight(TypeScaleTokens.BodyMediumLineHeight), text.WithLetterSpacing(TypeScaleTokens.BodyMediumTracking), ), BodySmall: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.BodySmallFont), text.WithFontWeight(TypeScaleTokens.BodySmallWeight), text.WithFontSize(TypeScaleTokens.BodySmallSize), text.WithLineHeight(TypeScaleTokens.BodySmallLineHeight), text.WithLetterSpacing(TypeScaleTokens.BodySmallTracking), ), DisplayLarge: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.DisplayLargeFont), text.WithFontWeight(TypeScaleTokens.DisplayLargeWeight), text.WithFontSize(TypeScaleTokens.DisplayLargeSize), text.WithLineHeight(TypeScaleTokens.DisplayLargeLineHeight), text.WithLetterSpacing(TypeScaleTokens.DisplayLargeTracking), ), DisplayMedium: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.DisplayMediumFont), text.WithFontWeight(TypeScaleTokens.DisplayMediumWeight), text.WithFontSize(TypeScaleTokens.DisplayMediumSize), text.WithLineHeight(TypeScaleTokens.DisplayMediumLineHeight), text.WithLetterSpacing(TypeScaleTokens.DisplayMediumTracking), ), DisplaySmall: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.DisplaySmallFont), text.WithFontWeight(TypeScaleTokens.DisplaySmallWeight), text.WithFontSize(TypeScaleTokens.DisplaySmallSize), text.WithLineHeight(TypeScaleTokens.DisplaySmallLineHeight), text.WithLetterSpacing(TypeScaleTokens.DisplaySmallTracking), ), HeadlineLarge: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.HeadlineLargeFont), text.WithFontWeight(TypeScaleTokens.HeadlineLargeWeight), text.WithFontSize(TypeScaleTokens.HeadlineLargeSize), text.WithLineHeight(TypeScaleTokens.HeadlineLargeLineHeight), text.WithLetterSpacing(TypeScaleTokens.HeadlineLargeTracking), ), HeadlineMedium: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.HeadlineMediumFont), text.WithFontWeight(TypeScaleTokens.HeadlineMediumWeight), text.WithFontSize(TypeScaleTokens.HeadlineMediumSize), text.WithLineHeight(TypeScaleTokens.HeadlineMediumLineHeight), text.WithLetterSpacing(TypeScaleTokens.HeadlineMediumTracking), ), HeadlineSmall: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.HeadlineSmallFont), text.WithFontWeight(TypeScaleTokens.HeadlineSmallWeight), text.WithFontSize(TypeScaleTokens.HeadlineSmallSize), text.WithLineHeight(TypeScaleTokens.HeadlineSmallLineHeight), text.WithLetterSpacing(TypeScaleTokens.HeadlineSmallTracking), ), LabelLarge: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.LabelLargeFont), text.WithFontWeight(TypeScaleTokens.LabelLargeWeight), text.WithFontSize(TypeScaleTokens.LabelLargeSize), text.WithLineHeight(TypeScaleTokens.LabelLargeLineHeight), text.WithLetterSpacing(TypeScaleTokens.LabelLargeTracking), ), LabelMedium: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.LabelMediumFont), text.WithFontWeight(TypeScaleTokens.LabelMediumWeight), text.WithFontSize(TypeScaleTokens.LabelMediumSize), text.WithLineHeight(TypeScaleTokens.LabelMediumLineHeight), text.WithLetterSpacing(TypeScaleTokens.LabelMediumTracking), ), LabelSmall: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.LabelSmallFont), text.WithFontWeight(TypeScaleTokens.LabelSmallWeight), text.WithFontSize(TypeScaleTokens.LabelSmallSize), text.WithLineHeight(TypeScaleTokens.LabelSmallLineHeight), text.WithLetterSpacing(TypeScaleTokens.LabelSmallTracking), ), TitleLarge: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.TitleLargeFont), text.WithFontWeight(TypeScaleTokens.TitleLargeWeight), text.WithFontSize(TypeScaleTokens.TitleLargeSize), text.WithLineHeight(TypeScaleTokens.TitleLargeLineHeight), text.WithLetterSpacing(TypeScaleTokens.TitleLargeTracking), ), TitleMedium: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.TitleMediumFont), text.WithFontWeight(TypeScaleTokens.TitleMediumWeight), text.WithFontSize(TypeScaleTokens.TitleMediumSize), text.WithLineHeight(TypeScaleTokens.TitleMediumLineHeight), text.WithLetterSpacing(TypeScaleTokens.TitleMediumTracking), ), TitleSmall: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.TitleSmallFont), text.WithFontWeight(TypeScaleTokens.TitleSmallWeight), text.WithFontSize(TypeScaleTokens.TitleSmallSize), text.WithLineHeight(TypeScaleTokens.TitleSmallLineHeight), text.WithLetterSpacing(TypeScaleTokens.TitleSmallTracking), ), BodyLargeEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.BodyLargeEmphasizedFont), text.WithFontWeight(TypeScaleTokens.BodyLargeEmphasizedWeight), text.WithFontSize(TypeScaleTokens.BodyLargeEmphasizedSize), text.WithLineHeight(TypeScaleTokens.BodyLargeEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.BodyLargeEmphasizedTracking), ), BodyMediumEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.BodyMediumEmphasizedFont), text.WithFontWeight(TypeScaleTokens.BodyMediumEmphasizedWeight), text.WithFontSize(TypeScaleTokens.BodyMediumEmphasizedSize), text.WithLineHeight(TypeScaleTokens.BodyMediumEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.BodyMediumEmphasizedTracking), ), BodySmallEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.BodySmallEmphasizedFont), text.WithFontWeight(TypeScaleTokens.BodySmallEmphasizedWeight), text.WithFontSize(TypeScaleTokens.BodySmallEmphasizedSize), text.WithLineHeight(TypeScaleTokens.BodySmallEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.BodySmallEmphasizedTracking), ), DisplayLargeEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.DisplayLargeEmphasizedFont), text.WithFontWeight(TypeScaleTokens.DisplayLargeEmphasizedWeight), text.WithFontSize(TypeScaleTokens.DisplayLargeEmphasizedSize), text.WithLineHeight(TypeScaleTokens.DisplayLargeEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.DisplayLargeEmphasizedTracking), ), DisplayMediumEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.DisplayMediumEmphasizedFont), text.WithFontWeight(TypeScaleTokens.DisplayMediumEmphasizedWeight), text.WithFontSize(TypeScaleTokens.DisplayMediumEmphasizedSize), text.WithLineHeight(TypeScaleTokens.DisplayMediumEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.DisplayMediumEmphasizedTracking), ), DisplaySmallEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.DisplaySmallEmphasizedFont), text.WithFontWeight(TypeScaleTokens.DisplaySmallEmphasizedWeight), text.WithFontSize(TypeScaleTokens.DisplaySmallEmphasizedSize), text.WithLineHeight(TypeScaleTokens.DisplaySmallEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.DisplaySmallEmphasizedTracking), ), HeadlineLargeEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.HeadlineLargeEmphasizedFont), text.WithFontWeight(TypeScaleTokens.HeadlineLargeEmphasizedWeight), text.WithFontSize(TypeScaleTokens.HeadlineLargeEmphasizedSize), text.WithLineHeight(TypeScaleTokens.HeadlineLargeEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.HeadlineLargeEmphasizedTracking), ), HeadlineMediumEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.HeadlineMediumEmphasizedFont), text.WithFontWeight(TypeScaleTokens.HeadlineMediumEmphasizedWeight), text.WithFontSize(TypeScaleTokens.HeadlineMediumEmphasizedSize), text.WithLineHeight(TypeScaleTokens.HeadlineMediumEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.HeadlineMediumEmphasizedTracking), ), HeadlineSmallEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.HeadlineSmallEmphasizedFont), text.WithFontWeight(TypeScaleTokens.HeadlineSmallEmphasizedWeight), text.WithFontSize(TypeScaleTokens.HeadlineSmallEmphasizedSize), text.WithLineHeight(TypeScaleTokens.HeadlineSmallEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.HeadlineSmallEmphasizedTracking), ), LabelLargeEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.LabelLargeEmphasizedFont), text.WithFontWeight(TypeScaleTokens.LabelLargeEmphasizedWeight), text.WithFontSize(TypeScaleTokens.LabelLargeEmphasizedSize), text.WithLineHeight(TypeScaleTokens.LabelLargeEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.LabelLargeEmphasizedTracking), ), LabelMediumEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.LabelMediumEmphasizedFont), text.WithFontWeight(TypeScaleTokens.LabelMediumEmphasizedWeight), text.WithFontSize(TypeScaleTokens.LabelMediumEmphasizedSize), text.WithLineHeight(TypeScaleTokens.LabelMediumEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.LabelMediumEmphasizedTracking), ), LabelSmallEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.LabelSmallEmphasizedFont), text.WithFontWeight(TypeScaleTokens.LabelSmallEmphasizedWeight), text.WithFontSize(TypeScaleTokens.LabelSmallEmphasizedSize), text.WithLineHeight(TypeScaleTokens.LabelSmallEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.LabelSmallEmphasizedTracking), ), TitleLargeEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.TitleLargeEmphasizedFont), text.WithFontWeight(TypeScaleTokens.TitleLargeEmphasizedWeight), text.WithFontSize(TypeScaleTokens.TitleLargeEmphasizedSize), text.WithLineHeight(TypeScaleTokens.TitleLargeEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.TitleLargeEmphasizedTracking), ), TitleMediumEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.TitleMediumEmphasizedFont), text.WithFontWeight(TypeScaleTokens.TitleMediumEmphasizedWeight), text.WithFontSize(TypeScaleTokens.TitleMediumEmphasizedSize), text.WithLineHeight(TypeScaleTokens.TitleMediumEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.TitleMediumEmphasizedTracking), ), TitleSmallEmphasized: text.CopyTextStyle(defaultTextStyle, text.WithFontFamily(TypeScaleTokens.TitleSmallEmphasizedFont), text.WithFontWeight(TypeScaleTokens.TitleSmallEmphasizedWeight), text.WithFontSize(TypeScaleTokens.TitleSmallEmphasizedSize), text.WithLineHeight(TypeScaleTokens.TitleSmallEmphasizedLineHeight), text.WithLetterSpacing(TypeScaleTokens.TitleSmallEmphasizedTracking), ), }
Functions ¶
This section is empty.
Types ¶
type ColorSchemeKeyTokensData ¶
type ColorSchemeKeyTokensData struct {
Background ColorSchemeTokenKey
Error ColorSchemeTokenKey
ErrorContainer ColorSchemeTokenKey
InverseOnSurface ColorSchemeTokenKey
InversePrimary ColorSchemeTokenKey
InverseSurface ColorSchemeTokenKey
OnBackground ColorSchemeTokenKey
OnError ColorSchemeTokenKey
OnErrorContainer ColorSchemeTokenKey
OnPrimary ColorSchemeTokenKey
OnPrimaryContainer ColorSchemeTokenKey
OnPrimaryFixed ColorSchemeTokenKey
OnPrimaryFixedVariant ColorSchemeTokenKey
OnSecondary ColorSchemeTokenKey
OnSecondaryContainer ColorSchemeTokenKey
OnSecondaryFixed ColorSchemeTokenKey
OnSecondaryFixedVariant ColorSchemeTokenKey
OnSurface ColorSchemeTokenKey
OnSurfaceVariant ColorSchemeTokenKey
OnTertiary ColorSchemeTokenKey
OnTertiaryContainer ColorSchemeTokenKey
OnTertiaryFixed ColorSchemeTokenKey
OnTertiaryFixedVariant ColorSchemeTokenKey
Outline ColorSchemeTokenKey
OutlineVariant ColorSchemeTokenKey
Primary ColorSchemeTokenKey
PrimaryContainer ColorSchemeTokenKey
PrimaryFixed ColorSchemeTokenKey
PrimaryFixedDim ColorSchemeTokenKey
Scrim ColorSchemeTokenKey
Secondary ColorSchemeTokenKey
SecondaryContainer ColorSchemeTokenKey
SecondaryFixed ColorSchemeTokenKey
SecondaryFixedDim ColorSchemeTokenKey
Surface ColorSchemeTokenKey
SurfaceBright ColorSchemeTokenKey
SurfaceContainer ColorSchemeTokenKey
SurfaceContainerHigh ColorSchemeTokenKey
SurfaceContainerHighest ColorSchemeTokenKey
SurfaceContainerLow ColorSchemeTokenKey
SurfaceContainerLowest ColorSchemeTokenKey
SurfaceDim ColorSchemeTokenKey
SurfaceTint ColorSchemeTokenKey
SurfaceVariant ColorSchemeTokenKey
Tertiary ColorSchemeTokenKey
TertiaryContainer ColorSchemeTokenKey
TertiaryFixed ColorSchemeTokenKey
TertiaryFixedDim ColorSchemeTokenKey
}
type ColorSchemeTokenKey ¶
type ColorSchemeTokenKey int
ColorSchemeKeyToken represents a key for a color in the Material 3 color scheme. These keys are used to look up specific color roles.
const ( // ColorSchemeKeyUnspecified is the zero value, representing no specific color key. ColorSchemeTokenKeyUnspecified ColorSchemeTokenKey = iota ColorSchemeTokenKeyBackground ColorSchemeTokenKeyError ColorSchemeTokenKeyErrorContainer ColorSchemeTokenKeyInverseOnSurface ColorSchemeTokenKeyInversePrimary ColorSchemeTokenKeyInverseSurface ColorSchemeTokenKeyOnBackground ColorSchemeTokenKeyOnError ColorSchemeTokenKeyOnErrorContainer ColorSchemeTokenKeyOnPrimary ColorSchemeTokenKeyOnPrimaryContainer ColorSchemeTokenKeyOnPrimaryFixed ColorSchemeTokenKeyOnPrimaryFixedVariant ColorSchemeTokenKeyOnSecondary ColorSchemeTokenKeyOnSecondaryContainer ColorSchemeTokenKeyOnSecondaryFixed ColorSchemeTokenKeyOnSecondaryFixedVariant ColorSchemeTokenKeyOnSurface ColorSchemeTokenKeyOnSurfaceVariant ColorSchemeTokenKeyOnTertiary ColorSchemeTokenKeyOnTertiaryContainer ColorSchemeTokenKeyOnTertiaryFixed ColorSchemeTokenKeyOnTertiaryFixedVariant ColorSchemeTokenKeyOutline ColorSchemeTokenKeyOutlineVariant ColorSchemeTokenKeyPrimary ColorSchemeTokenKeyPrimaryContainer ColorSchemeTokenKeyPrimaryFixed ColorSchemeTokenKeyPrimaryFixedDim ColorSchemeTokenKeyScrim ColorSchemeTokenKeySecondary ColorSchemeTokenKeySecondaryContainer ColorSchemeTokenKeySecondaryFixed ColorSchemeTokenKeySecondaryFixedDim ColorSchemeTokenKeySurface ColorSchemeTokenKeySurfaceBright ColorSchemeTokenKeySurfaceContainer ColorSchemeTokenKeySurfaceContainerHigh ColorSchemeTokenKeySurfaceContainerHighest ColorSchemeTokenKeySurfaceContainerLow ColorSchemeTokenKeySurfaceContainerLowest ColorSchemeTokenKeySurfaceDim ColorSchemeTokenKeySurfaceTint ColorSchemeTokenKeySurfaceVariant ColorSchemeTokenKeyTertiary ColorSchemeTokenKeyTertiaryContainer ColorSchemeTokenKeyTertiaryFixed ColorSchemeTokenKeyTertiaryFixedDim )
func (ColorSchemeTokenKey) String ¶
func (c ColorSchemeTokenKey) String() string
type ColorTokens ¶
type ColorTokens struct {
Background graphics.Color
Error graphics.Color
ErrorContainer graphics.Color
InverseOnSurface graphics.Color
InversePrimary graphics.Color
InverseSurface graphics.Color
OnBackground graphics.Color
OnError graphics.Color
OnErrorContainer graphics.Color
OnPrimary graphics.Color
OnPrimaryContainer graphics.Color
OnPrimaryFixed graphics.Color
OnPrimaryFixedVariant graphics.Color
OnSecondary graphics.Color
OnSecondaryContainer graphics.Color
OnSecondaryFixed graphics.Color
OnSecondaryFixedVariant graphics.Color
OnSurface graphics.Color
OnSurfaceVariant graphics.Color
OnTertiary graphics.Color
OnTertiaryContainer graphics.Color
OnTertiaryFixed graphics.Color
OnTertiaryFixedVariant graphics.Color
Outline graphics.Color
OutlineVariant graphics.Color
Primary graphics.Color
PrimaryContainer graphics.Color
PrimaryFixed graphics.Color
PrimaryFixedDim graphics.Color
Scrim graphics.Color
Secondary graphics.Color
SecondaryContainer graphics.Color
SecondaryFixed graphics.Color
SecondaryFixedDim graphics.Color
Surface graphics.Color
SurfaceBright graphics.Color
SurfaceContainer graphics.Color
SurfaceContainerHigh graphics.Color
SurfaceContainerHighest graphics.Color
SurfaceContainerLow graphics.Color
SurfaceContainerLowest graphics.Color
SurfaceDim graphics.Color
SurfaceTint graphics.Color
SurfaceVariant graphics.Color
Tertiary graphics.Color
TertiaryContainer graphics.Color
TertiaryFixed graphics.Color
TertiaryFixedDim graphics.Color
}
type ElevationData ¶ added in v0.1.94
type ElevationKeyData ¶ added in v0.1.94
type ElevationKeyData struct {
Level0 ElevationTokenKey
Level1 ElevationTokenKey
Level2 ElevationTokenKey
Level3 ElevationTokenKey
Level4 ElevationTokenKey
Level5 ElevationTokenKey
}
type ElevationTokenKey ¶ added in v0.1.94
type ElevationTokenKey int
const ( ElevationTokenKeyUnspecified ElevationTokenKey = iota ElevationTokenKeyLevel0 ElevationTokenKeyLevel1 ElevationTokenKeyLevel2 ElevationTokenKeyLevel3 ElevationTokenKeyLevel4 ElevationTokenKeyLevel5 )
func (ElevationTokenKey) String ¶ added in v0.1.94
func (c ElevationTokenKey) String() string
type IconButtonTokens ¶
type IconButtonTokens struct {
DisabledColor graphics.Color
DisabledOpacity float32
FocusedColor graphics.Color
HoveredColor graphics.Color
Color graphics.Color
PressedColor graphics.Color
SelectedFocusedColor graphics.Color
SelectedHoveredColor graphics.Color
SelectedColor graphics.Color
SelectedPressedColor graphics.Color
UnselectedFocusedColor graphics.Color
UnselectedHoveredColor graphics.Color
UnselectedColor graphics.Color
UnselectedPressedColor graphics.Color
}
type PaletteTokensData ¶
type PaletteTokensData struct {
Black graphics.Color
Error0 graphics.Color
Error10 graphics.Color
Error100 graphics.Color
Error20 graphics.Color
Error30 graphics.Color
Error40 graphics.Color
Error50 graphics.Color
Error60 graphics.Color
Error70 graphics.Color
Error80 graphics.Color
Error90 graphics.Color
Error95 graphics.Color
Error99 graphics.Color
Neutral0 graphics.Color
Neutral10 graphics.Color
Neutral100 graphics.Color
Neutral12 graphics.Color
Neutral17 graphics.Color
Neutral20 graphics.Color
Neutral22 graphics.Color
Neutral24 graphics.Color
Neutral30 graphics.Color
Neutral4 graphics.Color
Neutral40 graphics.Color
Neutral50 graphics.Color
Neutral6 graphics.Color
Neutral60 graphics.Color
Neutral70 graphics.Color
Neutral80 graphics.Color
Neutral87 graphics.Color
Neutral90 graphics.Color
Neutral92 graphics.Color
Neutral94 graphics.Color
Neutral95 graphics.Color
Neutral96 graphics.Color
Neutral98 graphics.Color
Neutral99 graphics.Color
NeutralVariant0 graphics.Color
NeutralVariant10 graphics.Color
NeutralVariant100 graphics.Color
NeutralVariant20 graphics.Color
NeutralVariant30 graphics.Color
NeutralVariant40 graphics.Color
NeutralVariant50 graphics.Color
NeutralVariant60 graphics.Color
NeutralVariant70 graphics.Color
NeutralVariant80 graphics.Color
NeutralVariant90 graphics.Color
NeutralVariant95 graphics.Color
NeutralVariant99 graphics.Color
Primary0 graphics.Color
Primary10 graphics.Color
Primary100 graphics.Color
Primary20 graphics.Color
Primary30 graphics.Color
Primary40 graphics.Color
Primary50 graphics.Color
Primary60 graphics.Color
Primary70 graphics.Color
Primary80 graphics.Color
Primary90 graphics.Color
Primary95 graphics.Color
Primary99 graphics.Color
Secondary0 graphics.Color
Secondary10 graphics.Color
Secondary100 graphics.Color
Secondary20 graphics.Color
Secondary30 graphics.Color
Secondary40 graphics.Color
Secondary50 graphics.Color
Secondary60 graphics.Color
Secondary70 graphics.Color
Secondary80 graphics.Color
Secondary90 graphics.Color
Secondary95 graphics.Color
Secondary99 graphics.Color
Tertiary0 graphics.Color
Tertiary10 graphics.Color
Tertiary100 graphics.Color
Tertiary20 graphics.Color
Tertiary30 graphics.Color
Tertiary40 graphics.Color
Tertiary50 graphics.Color
Tertiary60 graphics.Color
Tertiary70 graphics.Color
Tertiary80 graphics.Color
Tertiary90 graphics.Color
Tertiary95 graphics.Color
Tertiary99 graphics.Color
White graphics.Color
}
type ShapeKeyTokensData ¶ added in v0.1.94
type ShapeKeyTokensData struct {
CornerExtraExtraLarge ShapeTokenKey
CornerExtraLarge ShapeTokenKey
CornerExtraLargeIncreased ShapeTokenKey
CornerExtraLargeTop ShapeTokenKey
CornerExtraSmall ShapeTokenKey
CornerExtraSmallTop ShapeTokenKey
CornerFull ShapeTokenKey
CornerLarge ShapeTokenKey
CornerLargeEnd ShapeTokenKey
CornerLargeIncreased ShapeTokenKey
CornerLargeStart ShapeTokenKey
CornerLargeTop ShapeTokenKey
CornerMedium ShapeTokenKey
CornerNone ShapeTokenKey
CornerSmall ShapeTokenKey
}
type ShapeTokenKey ¶ added in v0.1.94
type ShapeTokenKey int
const ( ShapeTokenKeyUnspecified ShapeTokenKey = iota ShapeTokenKeyCornerExtraExtraLarge ShapeTokenKeyCornerExtraLarge ShapeTokenKeyCornerExtraLargeIncreased ShapeTokenKeyCornerExtraLargeTop ShapeTokenKeyCornerExtraSmall ShapeTokenKeyCornerExtraSmallTop ShapeTokenKeyCornerFull ShapeTokenKeyCornerLarge ShapeTokenKeyCornerLargeEnd ShapeTokenKeyCornerLargeIncreased ShapeTokenKeyCornerLargeStart ShapeTokenKeyCornerLargeTop ShapeTokenKeyCornerMedium ShapeTokenKeyCornerNone ShapeTokenKeyCornerSmall )
func (ShapeTokenKey) String ¶ added in v0.1.94
func (k ShapeTokenKey) String() string
type ShapeTokensData ¶
type ShapeTokensData struct {
CornerExtraExtraLarge shape.Shape
CornerExtraLarge shape.Shape
CornerExtraLargeIncreased shape.Shape
CornerExtraLargeTop shape.Shape
CornerExtraSmall shape.Shape
CornerExtraSmallTop shape.Shape
CornerFull shape.Shape
CornerLarge shape.Shape
CornerLargeEnd shape.Shape
CornerLargeIncreased shape.Shape
CornerLargeStart shape.Shape
CornerLargeTop shape.Shape
CornerMedium shape.Shape
CornerNone shape.Shape
CornerSmall shape.Shape
CornerValueExtraExtraLarge unit.Dp
CornerValueExtraLarge unit.Dp
CornerValueExtraLargeIncreased unit.Dp
CornerValueExtraSmall unit.Dp
CornerValueLarge unit.Dp
CornerValueLargeIncreased unit.Dp
CornerValueMedium unit.Dp
CornerValueNone unit.Dp
CornerValueSmall unit.Dp
}
type SnackbarTokensData ¶ added in v0.1.94
type SnackbarTokensData struct {
ActionFocusLabelTextColor ColorSchemeTokenKey
ActionHoverLabelTextColor ColorSchemeTokenKey
ActionLabelTextColor ColorSchemeTokenKey
ActionLabelTextFont TypographyTokenKey
ActionPressedLabelTextColor ColorSchemeTokenKey
ContainerColor ColorSchemeTokenKey
ContainerElevation unit.Dp
ContainerShape ShapeTokenKey
IconColor ColorSchemeTokenKey
FocusIconColor ColorSchemeTokenKey
HoverIconColor ColorSchemeTokenKey
PressedIconColor ColorSchemeTokenKey
IconSize unit.Dp
SupportingTextColor ColorSchemeTokenKey
SupportingTextFont TypographyTokenKey
SingleLineContainerHeight unit.Dp
TwoLinesContainerHeight unit.Dp
}
type TypeScaleTokensData ¶
type TypeScaleTokensData struct {
BodyLargeFont font.FontFamily
BodyLargeLineHeight unit.TextUnit
BodyLargeSize unit.TextUnit
BodyLargeTracking unit.TextUnit
BodyLargeWeight font.FontWeight
BodyMediumFont font.FontFamily
BodyMediumLineHeight unit.TextUnit
BodyMediumSize unit.TextUnit
BodyMediumTracking unit.TextUnit
BodyMediumWeight font.FontWeight
BodySmallFont font.FontFamily
BodySmallLineHeight unit.TextUnit
BodySmallSize unit.TextUnit
BodySmallTracking unit.TextUnit
BodySmallWeight font.FontWeight
DisplayLargeFont font.FontFamily
DisplayLargeLineHeight unit.TextUnit
DisplayLargeSize unit.TextUnit
DisplayLargeTracking unit.TextUnit
DisplayLargeWeight font.FontWeight
DisplayMediumFont font.FontFamily
DisplayMediumLineHeight unit.TextUnit
DisplayMediumSize unit.TextUnit
DisplayMediumTracking unit.TextUnit
DisplayMediumWeight font.FontWeight
DisplaySmallFont font.FontFamily
DisplaySmallLineHeight unit.TextUnit
DisplaySmallSize unit.TextUnit
DisplaySmallTracking unit.TextUnit
DisplaySmallWeight font.FontWeight
HeadlineLargeFont font.FontFamily
HeadlineLargeLineHeight unit.TextUnit
HeadlineLargeSize unit.TextUnit
HeadlineLargeTracking unit.TextUnit
HeadlineLargeWeight font.FontWeight
HeadlineMediumFont font.FontFamily
HeadlineMediumLineHeight unit.TextUnit
HeadlineMediumSize unit.TextUnit
HeadlineMediumTracking unit.TextUnit
HeadlineMediumWeight font.FontWeight
HeadlineSmallFont font.FontFamily
HeadlineSmallLineHeight unit.TextUnit
HeadlineSmallSize unit.TextUnit
HeadlineSmallTracking unit.TextUnit
HeadlineSmallWeight font.FontWeight
LabelLargeFont font.FontFamily
LabelLargeLineHeight unit.TextUnit
LabelLargeSize unit.TextUnit
LabelLargeTracking unit.TextUnit
LabelLargeWeight font.FontWeight
LabelMediumFont font.FontFamily
LabelMediumLineHeight unit.TextUnit
LabelMediumSize unit.TextUnit
LabelMediumTracking unit.TextUnit
LabelMediumWeight font.FontWeight
LabelSmallFont font.FontFamily
LabelSmallLineHeight unit.TextUnit
LabelSmallSize unit.TextUnit
LabelSmallTracking unit.TextUnit
LabelSmallWeight font.FontWeight
TitleLargeFont font.FontFamily
TitleLargeLineHeight unit.TextUnit
TitleLargeSize unit.TextUnit
TitleLargeTracking unit.TextUnit
TitleLargeWeight font.FontWeight
TitleMediumFont font.FontFamily
TitleMediumLineHeight unit.TextUnit
TitleMediumSize unit.TextUnit
TitleMediumTracking unit.TextUnit
TitleMediumWeight font.FontWeight
TitleSmallFont font.FontFamily
TitleSmallLineHeight unit.TextUnit
TitleSmallSize unit.TextUnit
TitleSmallTracking unit.TextUnit
TitleSmallWeight font.FontWeight
// Emphasized tokens
BodyLargeEmphasizedFont font.FontFamily
BodyLargeEmphasizedLineHeight unit.TextUnit
BodyLargeEmphasizedSize unit.TextUnit
BodyLargeEmphasizedTracking unit.TextUnit
BodyLargeEmphasizedWeight font.FontWeight
BodyMediumEmphasizedFont font.FontFamily
BodyMediumEmphasizedLineHeight unit.TextUnit
BodyMediumEmphasizedSize unit.TextUnit
BodyMediumEmphasizedTracking unit.TextUnit
BodyMediumEmphasizedWeight font.FontWeight
BodySmallEmphasizedFont font.FontFamily
BodySmallEmphasizedLineHeight unit.TextUnit
BodySmallEmphasizedSize unit.TextUnit
BodySmallEmphasizedTracking unit.TextUnit
BodySmallEmphasizedWeight font.FontWeight
DisplayLargeEmphasizedFont font.FontFamily
DisplayLargeEmphasizedLineHeight unit.TextUnit
DisplayLargeEmphasizedSize unit.TextUnit
DisplayLargeEmphasizedTracking unit.TextUnit
DisplayLargeEmphasizedWeight font.FontWeight
DisplayMediumEmphasizedFont font.FontFamily
DisplayMediumEmphasizedLineHeight unit.TextUnit
DisplayMediumEmphasizedSize unit.TextUnit
DisplayMediumEmphasizedTracking unit.TextUnit
DisplayMediumEmphasizedWeight font.FontWeight
DisplaySmallEmphasizedFont font.FontFamily
DisplaySmallEmphasizedLineHeight unit.TextUnit
DisplaySmallEmphasizedSize unit.TextUnit
DisplaySmallEmphasizedTracking unit.TextUnit
DisplaySmallEmphasizedWeight font.FontWeight
HeadlineLargeEmphasizedFont font.FontFamily
HeadlineLargeEmphasizedLineHeight unit.TextUnit
HeadlineLargeEmphasizedSize unit.TextUnit
HeadlineLargeEmphasizedTracking unit.TextUnit
HeadlineLargeEmphasizedWeight font.FontWeight
HeadlineMediumEmphasizedFont font.FontFamily
HeadlineMediumEmphasizedLineHeight unit.TextUnit
HeadlineMediumEmphasizedSize unit.TextUnit
HeadlineMediumEmphasizedTracking unit.TextUnit
HeadlineMediumEmphasizedWeight font.FontWeight
HeadlineSmallEmphasizedFont font.FontFamily
HeadlineSmallEmphasizedLineHeight unit.TextUnit
HeadlineSmallEmphasizedSize unit.TextUnit
HeadlineSmallEmphasizedTracking unit.TextUnit
HeadlineSmallEmphasizedWeight font.FontWeight
LabelLargeEmphasizedFont font.FontFamily
LabelLargeEmphasizedLineHeight unit.TextUnit
LabelLargeEmphasizedSize unit.TextUnit
LabelLargeEmphasizedTracking unit.TextUnit
LabelLargeEmphasizedWeight font.FontWeight
LabelMediumEmphasizedFont font.FontFamily
LabelMediumEmphasizedLineHeight unit.TextUnit
LabelMediumEmphasizedSize unit.TextUnit
LabelMediumEmphasizedTracking unit.TextUnit
LabelMediumEmphasizedWeight font.FontWeight
LabelSmallEmphasizedFont font.FontFamily
LabelSmallEmphasizedLineHeight unit.TextUnit
LabelSmallEmphasizedSize unit.TextUnit
LabelSmallEmphasizedTracking unit.TextUnit
LabelSmallEmphasizedWeight font.FontWeight
TitleLargeEmphasizedFont font.FontFamily
TitleLargeEmphasizedLineHeight unit.TextUnit
TitleLargeEmphasizedSize unit.TextUnit
TitleLargeEmphasizedTracking unit.TextUnit
TitleLargeEmphasizedWeight font.FontWeight
TitleMediumEmphasizedFont font.FontFamily
TitleMediumEmphasizedLineHeight unit.TextUnit
TitleMediumEmphasizedSize unit.TextUnit
TitleMediumEmphasizedTracking unit.TextUnit
TitleMediumEmphasizedWeight font.FontWeight
TitleSmallEmphasizedFont font.FontFamily
TitleSmallEmphasizedLineHeight unit.TextUnit
TitleSmallEmphasizedSize unit.TextUnit
TitleSmallEmphasizedTracking unit.TextUnit
TitleSmallEmphasizedWeight font.FontWeight
}
type TypographyKeyTokensData ¶
type TypographyKeyTokensData struct {
BodyLarge TypographyTokenKey
BodyMedium TypographyTokenKey
BodySmall TypographyTokenKey
DisplayLarge TypographyTokenKey
DisplayMedium TypographyTokenKey
DisplaySmall TypographyTokenKey
HeadlineLarge TypographyTokenKey
HeadlineMedium TypographyTokenKey
HeadlineSmall TypographyTokenKey
LabelLarge TypographyTokenKey
LabelMedium TypographyTokenKey
LabelSmall TypographyTokenKey
TitleLarge TypographyTokenKey
TitleMedium TypographyTokenKey
TitleSmall TypographyTokenKey
BodyLargeEmphasized TypographyTokenKey
BodyMediumEmphasized TypographyTokenKey
BodySmallEmphasized TypographyTokenKey
DisplayLargeEmphasized TypographyTokenKey
DisplayMediumEmphasized TypographyTokenKey
DisplaySmallEmphasized TypographyTokenKey
HeadlineLargeEmphasized TypographyTokenKey
HeadlineMediumEmphasized TypographyTokenKey
HeadlineSmallEmphasized TypographyTokenKey
LabelLargeEmphasized TypographyTokenKey
LabelMediumEmphasized TypographyTokenKey
LabelSmallEmphasized TypographyTokenKey
TitleLargeEmphasized TypographyTokenKey
TitleMediumEmphasized TypographyTokenKey
TitleSmallEmphasized TypographyTokenKey
}
type TypographyTokenKey ¶
type TypographyTokenKey int
const ( TypographyTokenKeyUnspecified TypographyTokenKey = iota TypographyTokenKeyBodyLarge TypographyTokenKeyBodyMedium TypographyTokenKeyBodySmall TypographyTokenKeyDisplayLarge TypographyTokenKeyDisplayMedium TypographyTokenKeyDisplaySmall TypographyTokenKeyHeadlineLarge TypographyTokenKeyHeadlineMedium TypographyTokenKeyHeadlineSmall TypographyTokenKeyLabelLarge TypographyTokenKeyLabelMedium TypographyTokenKeyLabelSmall TypographyTokenKeyTitleLarge TypographyTokenKeyTitleMedium TypographyTokenKeyTitleSmall TypographyTokenKeyBodyLargeEmphasized TypographyTokenKeyBodyMediumEmphasized TypographyTokenKeyBodySmallEmphasized TypographyTokenKeyDisplayLargeEmphasized TypographyTokenKeyDisplayMediumEmphasized TypographyTokenKeyDisplaySmallEmphasized TypographyTokenKeyHeadlineLargeEmphasized TypographyTokenKeyHeadlineMediumEmphasized TypographyTokenKeyHeadlineSmallEmphasized TypographyTokenKeyLabelLargeEmphasized TypographyTokenKeyLabelMediumEmphasized TypographyTokenKeyLabelSmallEmphasized TypographyTokenKeyTitleLargeEmphasized TypographyTokenKeyTitleMediumEmphasized TypographyTokenKeyTitleSmallEmphasized )
func (TypographyTokenKey) String ¶
func (k TypographyTokenKey) String() string
type TypographyTokensData ¶
type TypographyTokensData struct {
BodyLarge *text.TextStyle
BodyMedium *text.TextStyle
BodySmall *text.TextStyle
DisplayLarge *text.TextStyle
DisplayMedium *text.TextStyle
DisplaySmall *text.TextStyle
HeadlineLarge *text.TextStyle
HeadlineMedium *text.TextStyle
HeadlineSmall *text.TextStyle
LabelLarge *text.TextStyle
LabelMedium *text.TextStyle
LabelSmall *text.TextStyle
TitleLarge *text.TextStyle
TitleMedium *text.TextStyle
TitleSmall *text.TextStyle
// Emphasized
BodyLargeEmphasized *text.TextStyle
BodyMediumEmphasized *text.TextStyle
BodySmallEmphasized *text.TextStyle
DisplayLargeEmphasized *text.TextStyle
DisplayMediumEmphasized *text.TextStyle
DisplaySmallEmphasized *text.TextStyle
HeadlineLargeEmphasized *text.TextStyle
HeadlineMediumEmphasized *text.TextStyle
HeadlineSmallEmphasized *text.TextStyle
LabelLargeEmphasized *text.TextStyle
LabelMediumEmphasized *text.TextStyle
LabelSmallEmphasized *text.TextStyle
TitleLargeEmphasized *text.TextStyle
TitleMediumEmphasized *text.TextStyle
TitleSmallEmphasized *text.TextStyle
}
Click to show internal directories.
Click to hide internal directories.