Skip to content

Commit 355b6a9

Browse files
committed
feature: extend ui-kit tokens
1 parent de18c0f commit 355b6a9

File tree

4 files changed

+65
-23
lines changed

4 files changed

+65
-23
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.redmadrobot.debug.uikit.theme
2+
3+
import androidx.compose.ui.unit.Dp
4+
import androidx.compose.ui.unit.dp
5+
6+
public object DebugPanelDimensions {
7+
public val topBarHeight: Dp = 56.dp
8+
public val tabRowHeight: Dp = 48.dp
9+
public val bottomBarHeight: Dp = 56.dp
10+
public val rowMinHeight: Dp = 48.dp
11+
public val toggleWidth: Dp = 44.dp
12+
public val toggleHeight: Dp = 24.dp
13+
public val dotSize: Dp = 10.dp
14+
public val iconSizeSmall: Dp = 20.dp
15+
public val iconSizeMedium: Dp = 24.dp
16+
public val iconSizeLarge: Dp = 32.dp
17+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.redmadrobot.debug.uikit.theme
2+
3+
import androidx.compose.foundation.shape.RoundedCornerShape
4+
import androidx.compose.ui.unit.dp
5+
6+
public object DebugPanelShapes {
7+
public val small: RoundedCornerShape = RoundedCornerShape(4.dp)
8+
public val medium: RoundedCornerShape = RoundedCornerShape(8.dp)
9+
public val large: RoundedCornerShape = RoundedCornerShape(20.dp)
10+
public val dialog: RoundedCornerShape = RoundedCornerShape(28.dp)
11+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.redmadrobot.debug.uikit.theme
2+
3+
import androidx.compose.ui.unit.Dp
4+
import androidx.compose.ui.unit.dp
5+
6+
public object DebugPanelSpacing {
7+
public val xxs: Dp = 2.dp
8+
public val xs: Dp = 4.dp
9+
public val sm: Dp = 8.dp
10+
public val md: Dp = 12.dp
11+
public val lg: Dp = 16.dp
12+
public val xl: Dp = 20.dp
13+
public val xxl: Dp = 24.dp
14+
}

panel-ui-kit/src/main/kotlin/com/redmadrobot/debug/uikit/theme/Typography.kt

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,74 +15,74 @@ public data class DebugPanelTypographyTokens(
1515
/** TopAppBar title. */
1616
val titleLarge: TextStyle = TextStyle(
1717
fontWeight = FontWeight.Medium,
18-
fontSize = 16.sp,
19-
lineHeight = 24.sp,
18+
fontSize = 20.sp,
19+
lineHeight = 28.sp,
2020
letterSpacing = 0.sp,
2121
),
2222
/** Section headers, group names. */
2323
val titleMedium: TextStyle = TextStyle(
2424
fontWeight = FontWeight.Medium,
25-
fontSize = 14.sp,
26-
lineHeight = 20.sp,
27-
letterSpacing = 0.1.sp,
25+
fontSize = 16.sp,
26+
lineHeight = 24.sp,
27+
letterSpacing = 0.15.sp,
2828
),
2929
/** Card titles, server names. */
3030
val titleSmall: TextStyle = TextStyle(
3131
fontWeight = FontWeight.Medium,
32-
fontSize = 14.sp,
33-
lineHeight = 20.sp,
32+
fontSize = 15.sp,
33+
lineHeight = 22.sp,
3434
letterSpacing = 0.1.sp,
3535
),
3636
/** Primary body text. */
3737
val bodyLarge: TextStyle = TextStyle(
3838
fontWeight = FontWeight.Normal,
39-
fontSize = 14.sp,
40-
lineHeight = 20.sp,
41-
letterSpacing = 0.25.sp,
39+
fontSize = 16.sp,
40+
lineHeight = 24.sp,
41+
letterSpacing = 0.5.sp,
4242
),
4343
/** Secondary body text, config values. */
4444
val bodyMedium: TextStyle = TextStyle(
4545
fontWeight = FontWeight.Normal,
46-
fontSize = 13.sp,
47-
lineHeight = 18.sp,
46+
fontSize = 14.sp,
47+
lineHeight = 20.sp,
4848
letterSpacing = 0.25.sp,
4949
),
50-
/** Technical values (URLs, keys) — compact monospace. */
50+
/** Technical values (URLs, keys) — monospace. */
5151
val bodySmall: TextStyle = TextStyle(
5252
fontWeight = FontWeight.Normal,
53-
fontSize = 12.sp,
54-
lineHeight = 16.sp,
53+
fontSize = 13.sp,
54+
lineHeight = 18.sp,
5555
letterSpacing = 0.4.sp,
5656
fontFamily = MonoFontFamily,
5757
),
58-
/** Tab labels, chip text. */
58+
/** Tab labels, chip text, button labels. */
5959
val labelLarge: TextStyle = TextStyle(
6060
fontWeight = FontWeight.Medium,
61-
fontSize = 12.sp,
62-
lineHeight = 16.sp,
61+
fontSize = 14.sp,
62+
lineHeight = 20.sp,
6363
letterSpacing = 0.1.sp,
6464
),
6565
/** Badges, source indicators. */
6666
val labelMedium: TextStyle = TextStyle(
6767
fontWeight = FontWeight.Medium,
68-
fontSize = 11.sp,
68+
fontSize = 12.sp,
6969
lineHeight = 16.sp,
7070
letterSpacing = 0.5.sp,
7171
),
7272
/** Section headers (uppercase), overline text. */
7373
val labelSmall: TextStyle = TextStyle(
7474
fontWeight = FontWeight.Medium,
75-
fontSize = 10.sp,
76-
lineHeight = 14.sp,
75+
fontSize = 11.sp,
76+
lineHeight = 16.sp,
7777
letterSpacing = 1.sp,
7878
),
7979
)
8080

8181
internal val DarkDebugPanelTypographyTokens = DebugPanelTypographyTokens(
8282
bodySmall = TextStyle(
8383
fontWeight = FontWeight.Normal,
84-
fontSize = 12.sp,
85-
lineHeight = 16.sp,
84+
fontSize = 13.sp,
85+
lineHeight = 18.sp,
8686
letterSpacing = 0.4.sp,
8787
fontFamily = MonoFontFamily,
8888
color = BaseColors.Neutral80,

0 commit comments

Comments
 (0)