Skip to content

Instantly share code, notes, and snippets.

@Mikkareem
Created March 31, 2026 11:32
Show Gist options
  • Select an option

  • Save Mikkareem/b07d31bb4272762e347bcc1b0db9a3d3 to your computer and use it in GitHub Desktop.

Select an option

Save Mikkareem/b07d31bb4272762e347bcc1b0db9a3d3 to your computer and use it in GitHub Desktop.
@Composable
internal fun NeonGlowText(
text: String= "Neon",
modifier: Modifier = Modifier,
fontSize: TextUnit = 36.sp,
color: Color = Color.Cyan
) {
val blurRadii = listOf(28f, 25f, 10f, 3f, 1f)
Box(modifier = modifier) {
blurRadii.forEach {
Text(
text = text,
fontSize = fontSize,
color = color,
style = TextStyle(
shadow = Shadow(
color = color,
blurRadius = it
)
)
)
}
}
}
@Mikkareem
Copy link
Copy Markdown
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment