Generate Typography-First UI Code Across Platforms
Typography-First sub-style for design-it: hyper-sized headline text as the interface, with cross-platform text-outline support gaps.
Maintainer of this project? Claim this page to edit the listing.
13.5.0Add to Favorites
Why it matters
Implement bold, text-centric user interfaces where hyper-sized typography becomes the primary design element, eliminating traditional UI chrome in favor of kinetic, high-contrast text that fills and bleeds off screen edges.
Outcomes
What it gets done
Generate massive viewport-scaled typography that acts as abstract graphic elements
Create minimal UI with text-only buttons and navigation without boxes or backgrounds
Implement text stroke and outline effects across web and native platforms
Build responsive layouts where text intentionally bleeds off screen edges
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/ag-typography-first | bash Overview
Typography First Design
A design-it sub-style for typography-dominant interfaces with hyper-sized headline text, comparing text-outline and bleed-off-edge techniques across web and four app frameworks. Use for a hero, landing page, or splash screen where oversized display text carries the whole visual impact and buttons stay chrome-free.
What it does
Typography First Design is a design-it sub-style where the headline text itself is the interface: hyper-sized typography so large it becomes an abstract graphic element, minimal UI chroming (buttons and navigation are bare text with no boxes or backgrounds), and kinetic typography that moves or reacts to the cursor. It is a child reference of design-it, applied only when a request matches this specific aesthetic.
When to use - and when NOT to
Use this sub-style for hero sections, landing pages, or splash screens where oversized display type - centered and deliberately cut off at the viewport edges - should carry the entire visual impact, with extreme black/white contrast or a single neon accent (the "Midnight Luxury" palette fits well) and display fonts like Oswald, Anton, or Bebas Neue. Its rules are explicit: never wrap the text in cards or containers - it must bleed into the background - and buttons/nav should never gain a background or border; if a design needs conventional chrome around interactive elements, this is the wrong sub-style.
Inputs and outputs
On web, headline sizing uses vw/vh units (font-size: 25vw) so text fills the viewport regardless of screen size, with outlined variants via color: transparent plus -webkit-text-stroke, filling solid on hover. Native platforms diverge sharply on outline support: Jetpack Compose supports text outlines natively via TextStyle(drawStyle = Stroke(...)), and Flutter is nearly as direct with foreground: Paint()..style = PaintingStyle.stroke, but SwiftUI has no native text-stroke - the workaround is overlaying a masked, shadowed duplicate text layer - and React Native has no native support at all, requiring SVG or a textShadow approximation instead. Bleed-off-edge sizing also differs: SwiftUI forces it with .fixedSize(horizontal: true, vertical: false) plus .lineLimit(1), Flutter uses FittedBox(fit: BoxFit.cover) to auto-scale text to the maximum available space, React Native computes font size directly from Dimensions.get('window').width (e.g. fontSize: width * 0.4), and Compose sets softWrap = false.
.hero-type {
font-size: 25vw;
color: transparent;
-webkit-text-stroke: 2px #F5F5F0;
}
Integrations
As a design-it sub-style, it's applied through the parent skill's aesthetic matching, and the same hero-typography-plus-text-button pattern is expected to be reproduced consistently across web CSS and the four listed native frameworks, accounting for each platform's different level of native text-outline support.
Who it's for
Designers and developers building a typography-dominant hero, landing page, or splash screen who need oversized display type reproduced consistently across web and native platforms, including the specific per-platform workarounds needed where native text-stroke/outline support is missing (SwiftUI, React Native) versus built in (Flutter, Jetpack Compose).
Source README
Typography First Design
"The words are the interface. No distractions, just beautiful text."
When to Use
Use this sub-style when the user's request matches the aesthetic described above. This is a child reference of the design-it skill and is not meant to be triggered directly.
Core Principles
- Hyper-Sized Typography: The main headline is so large it becomes an abstract graphic element.
- Minimal UI Chroming: Buttons are just text. Navigation is just text. No boxes, no backgrounds.
- Kinetic Typography: Text that moves, scrolls, or reacts to the user's cursor.
Visual DNA
- Colors: Extreme high contrast. Pure black and white, or a very dark background with a single neon accent color. Midnight Luxury works well.
- Typography: Display fonts with extreme character. Try
Oswald,Anton, orBebas Neuefor impact, or a massive serif. - Layout: Often centers the massive text perfectly in the viewport, cutting off at the edges.
Web Implementation
- Rely on
vwandvhunits for font sizing so the text perfectly fills the screen. - CSS Example:
body {
background-color: #0A0A0A;
color: #F5F5F0;
overflow-x: hidden;
margin: 0;
}
.hero-type {
font-family: 'Anton', sans-serif;
font-size: 25vw; /* Fills the width of the screen */
text-transform: uppercase;
line-height: 0.8;
white-space: nowrap;
/* Outline effect */
color: transparent;
-webkit-text-stroke: 2px #F5F5F0;
transition: color 0.3s;
}
.hero-type:hover {
color: var(--cta-highlight);
-webkit-text-stroke: 0;
}
.nav-text-btn {
background: none;
border: none;
color: #F5F5F0;
font-size: 2rem;
font-family: 'Helvetica Neue', sans-serif;
text-decoration: underline;
text-underline-offset: 8px;
cursor: pointer;
}
App Implementation
SwiftUI
struct TypographyFirstView: View {
var body: some View {
ZStack {
Color(hex: "0A0A0A").ignoresSafeArea()
VStack {
// Massive Typography Bleeding Off Edge
Text("THE WORDS ARE THE INTERFACE")
.font(.custom("Anton", size: 200)) // Absurdly large
.foregroundColor(Color(hex: "F5F5F0"))
.lineLimit(1)
.fixedSize(horizontal: true, vertical: false) // Force no wrapping
.minimumScaleFactor(1.0) // Prevent auto-shrinking
// Outlined variant
Text("NO CHROMING")
.font(.custom("Anton", size: 150))
.foregroundColor(.clear)
.overlay(
Text("NO CHROMING")
.font(.custom("Anton", size: 150))
.foregroundColor(Color(hex: "0A0A0A"))
// Hack for text stroke in SwiftUI
.shadow(color: Color(hex: "F5F5F0"), radius: 1)
)
.lineLimit(1)
.fixedSize()
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.leading, -20) // Intentionally cut off
}
}
}
- Use
.fixedSize(horizontal: true, vertical: false)and.lineLimit(1)to force massive fonts to bleed off the edge of the screen rather than wrapping into a paragraph. - Native text-stroke is difficult in SwiftUI; overlapping a masked text or using thin shadows is the common workaround.
Flutter
class TypographyFirstScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xFF0A0A0A),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
// Auto-scaling hero text
FittedBox(
fit: BoxFit.cover,
child: Text(
'THE WORDS ARE',
style: TextStyle(fontFamily: 'Anton', color: const Color(0xFFF5F5F0), height: 0.8),
),
),
// Outlined text
FittedBox(
fit: BoxFit.cover,
child: Stack(
children: [
// Outline
Text(
'THE INTERFACE',
style: TextStyle(
fontFamily: 'Anton', height: 0.8,
foreground: Paint()..style = PaintingStyle.stroke..strokeWidth = 2..color = const Color(0xFFF5F5F0),
),
),
// Solid fill (transparent)
const Text('THE INTERFACE', style: TextStyle(fontFamily: 'Anton', height: 0.8, color: Colors.transparent)),
],
),
),
],
),
),
);
}
}
FittedBoxwithBoxFit.coveris your best friend here. It ensures the text takes up the maximum possible width/height regardless of the device screen size.- Flutter makes text outlines easy by using
foreground: Paint()..style = PaintingStyle.strokein theTextStyle.
React Native
const { width } = Dimensions.get('window');
const TypographyFirstScreen = () => {
return (
<View style={{ flex: 1, backgroundColor: '#0A0A0A', justifyContent: 'center' }}>
{/* Massive Text */}
<Text
numberOfLines={1}
style={{ fontFamily: 'Anton-Regular', fontSize: width * 0.4, color: '#F5F5F0', lineHeight: width * 0.35, marginLeft: -20 }}
>
WORDS ARE
</Text>
{/* Outlined Text (Not supported natively in standard React Native Text, requires SVG or shadows) */}
<Text
numberOfLines={1}
style={{
fontFamily: 'Anton-Regular', fontSize: width * 0.35, color: '#0A0A0A', lineHeight: width * 0.3,
textShadowColor: '#F5F5F0', textShadowOffset: {width: -1, height: 1}, textShadowRadius: 1
}}
>
INTERFACE
</Text>
{/* Typography Button */}
<TouchableOpacity style={{ marginTop: 40, alignSelf: 'center' }}>
<Text style={{ color: '#F5F5F0', fontSize: 24, textDecorationLine: 'underline' }}>
Explore Now
</Text>
</TouchableOpacity>
</View>
);
};
- Rely on
Dimensions.get('window').widthto calculate extreme font sizes dynamically (e.g.,fontSize: width * 0.4). - Use
numberOfLines={1}and negative margins to allow the text to act as a graphic element bleeding off the screen.
Jetpack Compose
@Composable
fun TypographyFirstScreen() {
Column(
modifier = Modifier.fillMaxSize().background(Color(0xFF0A0A0A)),
verticalArrangement = Arrangement.Center
) {
// Massive Text
Text(
text = "THE WORDS ARE",
color = Color(0xFFF5F5F0),
fontSize = 120.sp, // Absurd size
fontFamily = FontFamily.SansSerif, // Replace with Anton
lineHeight = 100.sp,
softWrap = false, // Force bleed off edge
modifier = Modifier.offset(x = (-20).dp)
)
// Outlined Text
Text(
text = "THE INTERFACE",
fontSize = 100.sp,
fontFamily = FontFamily.SansSerif,
lineHeight = 90.sp,
softWrap = false,
style = TextStyle(
drawStyle = Stroke(
miter = 10f,
width = 2f,
join = StrokeJoin.Round
)
),
color = Color(0xFFF5F5F0) // The stroke color
)
}
}
- Set
softWrap = falseonTextto prevent it from wrapping and ruining the massive headline aesthetic. - Compose fully supports text outlines natively using
style = TextStyle(drawStyle = Stroke(...)).
Do's and Don'ts
- DO: Mix filled text and outlined text (using
-webkit-text-stroke) for visual interest. - DON'T: Wrap the text in cards or containers. Let it bleed into the background.
Limitations
- This is a styling reference and does not replace environment-specific validation, accessibility testing, or expert review.
- Ensure appropriate contrast ratios and responsive behaviors are verified separately.
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.