Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(border): change semantic tokens for border width #69

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ data class OudsBorderTokens(
val widthNone: Dp = BorderRawTokens.borderWidth0.dp,
val widthDefault: Dp = BorderRawTokens.borderWidth25.dp,
val widthThin: Dp = BorderRawTokens.borderWidth25.dp,
val widthThick: Dp = BorderRawTokens.borderWidth50.dp,
val widthThicker: Dp = BorderRawTokens.borderWidth75.dp,
val widthThickest: Dp = BorderRawTokens.borderWidth100.dp,
val widthInteractivePrimaryFocus: Dp = BorderRawTokens.borderWidth100.dp,
val widthMedium: Dp = BorderRawTokens.borderWidth50.dp,
val widthThick: Dp = BorderRawTokens.borderWidth75.dp,
val widthThicker: Dp = BorderRawTokens.borderWidth100.dp,
val widthOutsideFocus: Dp = BorderRawTokens.borderWidth50.dp,
val radiusNone: Dp = BorderRawTokens.borderRadius0.dp,
val radiusDefault: Dp = BorderRawTokens.borderRadius0.dp,
val radiusShort: Dp = BorderRawTokens.borderRadius75.dp,
Expand All @@ -40,10 +40,10 @@ enum class OudsBorderWidthToken {
None,
Default,
Thin,
Medium,
Thick,
Thicker,
Thickest,
InteractivePrimaryFocus
OutsideFocus
}

@Stable
Expand All @@ -52,10 +52,10 @@ fun OudsBorderTokens.fromToken(token: OudsBorderWidthToken): Dp {
OudsBorderWidthToken.None -> widthNone
OudsBorderWidthToken.Default -> widthDefault
OudsBorderWidthToken.Thin -> widthThin
OudsBorderWidthToken.Medium -> widthMedium
OudsBorderWidthToken.Thick -> widthThick
OudsBorderWidthToken.Thicker -> widthThicker
OudsBorderWidthToken.Thickest -> widthThickest
OudsBorderWidthToken.InteractivePrimaryFocus -> widthInteractivePrimaryFocus
OudsBorderWidthToken.OutsideFocus -> widthOutsideFocus
}
}

Expand Down