<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mathieu Lopez on Medium]]></title>
        <description><![CDATA[Stories by Mathieu Lopez on Medium]]></description>
        <link>https://medium.com/@mathieu-lopez?source=rss-1ce3cd36429e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*E0NKZVsDfyrQhqiSRRheZw.jpeg</url>
            <title>Stories by Mathieu Lopez on Medium</title>
            <link>https://medium.com/@mathieu-lopez?source=rss-1ce3cd36429e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:22:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mathieu-lopez/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Atomic Design on Android, Part 2: Building the Technical Foundation]]></title>
            <link>https://mathieu-lopez.medium.com/atomic-design-on-android-part-2-building-the-technical-foundation-267017e8ad2b?source=rss-1ce3cd36429e------2</link>
            <guid isPermaLink="false">https://medium.com/p/267017e8ad2b</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android-development]]></category>
            <dc:creator><![CDATA[Mathieu Lopez]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 14:47:55 GMT</pubDate>
            <atom:updated>2026-04-10T09:57:52.390Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Introduction: The “Concert Discovery” Goal</h3><p>In the previous installment, we explored the theory. Now let’s move to practice with our demo application: ShowsFlow. Designing an application for the music world demands genuine artistic visual sensitivity, but building it requires ruthless technical logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9jv0Is3IzX4G-Plhav15ZA.png" /></figure><p>The challenge is to create an interface that allows navigating between “Upcoming Concerts” and “Past Concerts.” To support such complexity without descending into technical chaos, we will build an industrialized, performant, and above all, isolated component system.</p><h3>2. Infrastructure: The “Leaf Module” Concept</h3><p>Setting up a Design System begins with a rigorous Gradle structure. Our :design-system module is what’s known as a <strong>Leaf Module</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*JYesZd7wyWhVfd7IlwMpqQ.png" /></figure><p><strong>Why absolute independence?</strong> Sitting at the root of the dependency graph, it has zero knowledge of business logic or upper layers. This isolation guarantees:</p><ul><li><strong>Lightning-fast compilation:</strong> Changes in the rest of the app never impact the design system’s build time.</li><li><strong>Framework Abstraction:</strong> In this article, I use <strong>Material 3</strong> primitives for ease of use and as a practical example. However, the Leaf Module architecture offers total freedom: you could just as easily abstract away from Google’s components and build your own low-level elements (using Canvas or custom layouts) without the rest of the app ever knowing.</li><li><strong>The Visual Firewall:</strong> By using implementation(&quot;material3&quot;) (rather than api), we make Google’s primitives private to our module. Feature modules (:features) are technically constrained to respect our FlowTheme contract. They cannot &quot;cheat&quot; by directly calling a Material component that hasn’t been validated by our system. Whether you use Material 3 under the hood or go 100% custom, you maintain absolute control over the visual identity.</li></ul><h3>3. The FlowTheme Architecture: The System’s Brain</h3><p>FlowTheme doesn&#39;t merely group colors together; it orchestrates the distribution of Design Tokens via CompositionLocal.</p><h3>3.1 “Static” Performance and Immutability</h3><p>Unlike conventional implementations, we use staticCompositionLocalOf for our structural tokens (Space, Radius, Elevation).</p><ul><li><strong>The benefit:</strong> Compose disables “reads tracking” for these values. Since your paddings or corner radii don’t change every second, this frees up CPU cycles for pure rendering and scroll fluidity.</li><li><strong>Stability:</strong> All our token classes are marked @Immutable. This tells the compiler the data is stable, preventing &quot;phantom&quot; recompositions.</li></ul><pre>@Immutable<br>data class Colors(<br>    val primary: Color,<br>    val surface: Color,<br>    // ...<br>)<br>val LocalColors = staticCompositionLocalOf { lightColors }</pre><h3>3.2 Color Architecture: From Primitive to Theme</h3><p>Color architecture in a robust Design System goes far beyond a simple list of hex codes. It is structured in several successive abstraction layers, from raw values to semantic usage in the interface.</p><p><strong>A. PaletteTokens: The Primitives (The Foundations)</strong> This is the application’s raw palette. At this level, colors have no business meaning (they are neither “background” nor “button”) — they are simply shades. They are typically named by hue and luminance level (from 0 to 100).</p><pre>internal object PaletteTokens {<br>    val Primary40 = Color(red = 103, green = 80, blue = 164) // Main violet<br>    val Primary80 = Color(red = 208, green = 188, blue = 255) // Very light violet<br>    <br>    val Neutral10 = Color(red = 29, green = 27, blue = 32) // Very dark grey<br>    val Neutral90 = Color(red = 230, green = 224, blue = 233) // Very light grey<br>    // ...<br>}</pre><blockquote><strong><em>The purpose:</em></strong><em> This is the designer’s exclusive color swatch. The rest of the application should never call </em><em>PaletteTokens directly.</em></blockquote><p><strong>B. ColorLightTokens &amp; ColorDarkTokens: The Semantic Mapping</strong> This is where we assign a role (“semantics”) to primitives based on the theme (Light or Dark). We link an abstract name (e.g., Surface, PrimaryContainer) to a concrete color from PaletteTokens.</p><ul><li>In <strong>Light Mode</strong>, the surface will be light and the primary text will be dark.</li><li>In <strong>Dark Mode</strong>, it’s the reverse.</li></ul><pre>internal object ColorLightTokens {<br>    val Primary = PaletteTokens.Primary40<br>    val OnPrimary = PaletteTokens.Primary100<br>    val Surface = PaletteTokens.Neutral100<br>    // ...<br>}</pre><pre>internal object ColorDarkTokens {<br>    val Primary = PaletteTokens.Primary80<br>    val OnPrimary = PaletteTokens.Primary20<br>    val Surface = PaletteTokens.DeepBlack<br>    // ...<br>}</pre><p><strong>C. Colors: The Contract (Data Class)</strong> The Colors class (typically marked @Immutable for Jetpack Compose performance) defines the &quot;contract&quot; that FlowTheme commits to providing to all components. It lists every available role in the application, without knowing whether it&#39;s day or night.</p><pre>@Immutable<br>data class Colors(<br>    val primary: Color,<br>    val onPrimary: Color,<br>    val surface: Color,<br>    val onSurface: Color,<br>    // ...<br>)</pre><p><strong>D. lightColors() and darkColors(): The Final Instantiation</strong> These are functions (or variables) that create the actual instances of the Colors class. They draw from the semantic Tokens to fulfill the contract.</p><pre>val LightColors = Colors(<br>    primary = ColorLightTokens.Primary,<br>    onPrimary = ColorLightTokens.OnPrimary,<br>    surface = ColorLightTokens.Surface,<br>    onSurface = ColorLightTokens.OnSurface,<br>    // ...<br>)</pre><pre>val DarkColors = Colors(<br>    primary = ColorDarkTokens.Primary,<br>    onPrimary = ColorDarkTokens.OnPrimary,<br>    surface = ColorDarkTokens.Surface,<br>    onSurface = ColorDarkTokens.OnSurface,<br>    // ...<br>)</pre><p><strong>E. The Complete Cycle in FlowTheme</strong> When the application launches, the MainActivity determines whether Dark Mode is active. FlowTheme receives this information and exposes the correct instance via a CompositionLocal:</p><pre>@Composable<br>fun FlowTheme(<br>    isDarkTheme: Boolean = isSystemInDarkTheme(),<br>    content: @Composable () -&gt; Unit<br>) {<br>    // Choose the right instance<br>    val colors = if (isDarkTheme) DarkColors else LightColors<br>    // Inject into the Compose tree<br>    CompositionLocalProvider(<br>        LocalColors provides colors<br>    ) {<br>        content()<br>    }<br>}</pre><blockquote><strong><em>Why is this funnel architecture so powerful?</em></strong><em> Because it completely isolates responsibilities. A developer creating a </em><em>Button component will always use </em><em>FlowTheme.colors.primary. They don&#39;t need to know whether it&#39;s dark mode, light mode, or what the hex value of that blue is. If the designer changes the application&#39;s blue tomorrow, only a single value in </em><em>PaletteTokens needs to be modified, and the entire system (Light and Dark) will update in cascade.</em></blockquote><p>Final file:</p><pre>val LocalColors = staticCompositionLocalOf { lightColors }<br>val LocalElevation = staticCompositionLocalOf { Elevation() }<br>val LocalMotion = staticCompositionLocalOf { Motion() }<br>val LocalOpacity = staticCompositionLocalOf { Opacity() }<br>val LocalRadius = staticCompositionLocalOf { Radius() }<br>val LocalSpace = staticCompositionLocalOf { Space() }<br>val LocalTypography = staticCompositionLocalOf { Typography }<br>val LocalWindowSize = staticCompositionLocalOf { WindowSizeScope.Compact }<br><br>@Composable<br>fun FlowTheme(<br>    isDarkTheme: Boolean = isSystemInDarkTheme(),<br>    windowSize: WindowSizeScope = rememberWindowSizeScope(),<br>    content: @Composable () -&gt; Unit,<br>) {<br>    val colors = if (isDarkTheme) darkColors else lightColors<br>    val elevation = Elevation()<br>    val motion = Motion()<br>    val opacity = Opacity()<br>    val radius = Radius()<br>    val space = Space()<br>    val typography = Typography<br><br>    // optional: Force status bar icon color based on theme<br>    val view = LocalView.current<br>    if (!view.isInEditMode) {<br>        SideEffect {<br>            val window = (view.context as? Activity)?.window ?: return@SideEffect<br>            WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !isDarkTheme<br>        }<br>    }<br><br>    CompositionLocalProvider(<br>        LocalColors provides colors,<br>        LocalElevation provides elevation,<br>        LocalMotion provides motion,<br>        LocalOpacity provides opacity,<br>        LocalRadius provides radius,<br>        LocalSpace provides space,<br>        LocalTypography provides typography,<br>        LocalWindowSize provides windowSize,<br>    ) {<br>        content()<br>    }<br>}<br><br>@Composable<br>fun isSystemInDarkTheme(): Boolean = isSystemInDarkTheme()<br><br>object FlowTheme {<br>    val colors: Colors<br>        @Composable<br>        get() = LocalColors.current<br><br>    val elevation: Elevation<br>        @Composable<br>        get() = LocalElevation.current<br><br>    val motion: Motion<br>        @Composable<br>        get() = LocalMotion.current<br><br>    val opacity: Opacity<br>        @Composable<br>        get() = LocalOpacity.current<br><br>    val radius: Radius<br>        @Composable<br>        get() = LocalRadius.current<br><br>    val space: Space<br>        @Composable<br>        get() = LocalSpace.current<br><br>    val typography: Typography<br>        @Composable<br>        get() = LocalTypography.current<br>}</pre><h3>4. The Atomic Hierarchy: From Pixel to Product</h3><p>Atomic Design breaks down the UI into layers of increasing responsibility. The goal here is to never expose Material 3 components directly, but to create “wrappers” that enforce our tokens.</p><h3>4.1 Design Tokens: The System’s DNA</h3><p>Before even drawing a button or a card, we must define the visual vocabulary from which these elements will be built: <strong>Design Tokens</strong>. In our architecture, a component contains <strong>no hardcoded values</strong> (those notorious magic numbers like 16.dp).</p><p>Tokens represent quantified design decisions:</p><ul><li><strong>Space (Spacing):</strong> Manages margins and paddings (space.s, space.m).</li><li><strong>Radius (Corner rounding):</strong> Defines corner curves (radius.xl).</li><li><strong>Elevation (Shadows/Layering):</strong> Manages depth (elevation.low, elevation.none).</li></ul><pre>@Immutable<br>data class Space(<br>    val none: Dp = 0.dp,<br>    val quark: Dp = 2.dp,<br>    val xs: Dp = 4.dp,<br>    val s: Dp = 8.dp,<br>    val m: Dp = 16.dp,<br>    val l: Dp = 24.dp,<br>    val xl: Dp = 32.dp,<br>    val xxl: Dp = 48.dp<br>)</pre><p>Rather than saying “this card has a 16dp margin,” the developer states “this card uses Medium spacing” via FlowTheme.space.m. It is also essential to document these tokens in the repository&#39;s README.md to ensure a single reference for both technical and design teams.</p><h3>4.2 Atoms: The Indivisible Identity</h3><p>These are our building blocks: Surface, Text, Image. We always expose default parameters derived from tokens to guide developers toward the right design choices from the very first line of code.</p><p><strong>Example: The Surface Atom</strong> This atom is the foundation of all cards and containers. It handles clipping, background, and shadows natively.</p><pre>@Composable<br>fun Surface(<br>    modifier: Modifier = Modifier,<br>    shape: Shape = RoundedCornerShape(FlowTheme.radius.xl),<br>    shadowElevation: Dp = FlowTheme.elevation.none,<br>    color: Color = FlowTheme.colors.surface,<br>    contentColor: Color = FlowTheme.colors.onSurface,<br>    content: @Composable () -&gt; Unit,<br>) {<br>    CompositionLocalProvider(LocalContentColor provides contentColor) {<br>        Box(<br>            modifier = modifier<br>                .clip(shape)<br>                .background(color = color, shape = shape)<br>                .shadow(elevation = shadowElevation),<br>        ) {<br>            content()<br>        }<br>    }<br>}</pre><h3>4.3 Molecules: The Logical Assembly</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*0NCIXGYZPDjY_dkE9Y-CDg.png" /></figure><p>A molecule combines atoms for a single function. Our ConcertCard is a perfect example: it assembles the Surface, Image, and Text atoms into a single functional unit. It also handles visual states, such as dimming and desaturating &quot;Past Concerts&quot; based on the isPast flag.</p><pre>@Composable<br>fun ConcertCard(<br>    artistName: String,<br>    datetime: LocalDate,<br>    venue: String,<br>    artistImage: Painter,<br>    modifier: Modifier = Modifier,<br>    isPast: Boolean = false,<br>) {<br>    val textColor = if (isPast) FlowTheme.colors.onSurface.copy(alpha = FlowTheme.opacity.medium) else FlowTheme.colors.onSurface<br>    val imageSize = adaptiveValue(compact = 56.dp, medium = 64.dp, expanded = 72.dp)<br>    <br>    Surface(<br>        modifier = modifier.fillMaxWidth(),<br>        shape = RoundedCornerShape(FlowTheme.radius.xl),<br>    ) {<br>        Row(<br>            modifier = Modifier.padding(FlowTheme.space.m),<br>            verticalAlignment = Alignment.CenterVertically,<br>            horizontalArrangement = Arrangement.spacedBy(FlowTheme.space.m),<br>        ) {<br>            Image(<br>                painter = artistImage,<br>                modifier = Modifier<br>                    .size(imageSize)<br>                    .clip(CircleShape)<br>                    .then(if (isPast) Modifier.alpha(0.4f) else Modifier),<br>                contentScale = ContentScale.Crop,<br>                colorFilter = if (isPast) ColorFilter.tint(Color.Gray, BlendMode.Saturation) else null,<br>            )<br>            Column(modifier = Modifier.weight(1f)) {<br>                Text(text = artistName, style = FlowTheme.typography.Main.medium.extraBold, color = textColor)<br>                Text(text = venue, style = FlowTheme.typography.Main.small.regular, color = textColor.copy(alpha = 0.6f))<br>            }<br>            <br>            // Internal Date layout atoms...<br>        }<br>    }<br>}</pre><h3>4.4 Organisms: The Autonomous Sections</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*L6t5lyqwswNCQkTWQJobmA.png" /></figure><p>This is where the system comes to life. Our <strong>Organism</strong> is the ConcertList. It manages the layout and the structural relationship between multiple molecules. It is technically independent and doesn&#39;t know about business logic, but it knows how to &quot;breathe&quot; on different screens.</p><pre>@Composable<br>fun ConcertList(<br>    concerts: List&lt;ConcertItem&gt;,<br>    modifier: Modifier = Modifier,<br>    contentPadding: PaddingValues = PaddingValues(FlowTheme.space.m),<br>) {<br>    // Structural decision: spacing evolves with the screen size<br>    val itemSpacing = adaptiveValue(compact = FlowTheme.space.s, medium = FlowTheme.space.m)<br>    <br>    LazyColumn(<br>        modifier = modifier,<br>        contentPadding = contentPadding,<br>        verticalArrangement = Arrangement.spacedBy(itemSpacing),<br>    ) {<br>        items(concerts) { concert -&gt;<br>            ConcertCard(<br>                artistName = concert.artistName,<br>                datetime = concert.datetime,<br>                venue = concert.venue,<br>                artistImage = concert.artistImage,<br>            )<br>        }<br>    }<br>}</pre><h3>5. The Style + Variants System: Separating “What” from “How”</h3><p>To avoid creating 50 button functions (PrimaryButton, SecondaryButton...) and parameter explosion, we separate structural logic from visual appearance.</p><ul><li><strong>The Style (Data Class):</strong> Pure visual properties (Color, TextStyle, Shape).</li><li><strong>The Variants (Object):</strong> A catalog of functions that read FlowTheme tokens.</li><li><strong>The Component:</strong> Applies the style without caring about context.</li></ul><p><strong>Step A: The Style</strong></p><pre>data class ButtonStyle(<br>    val containerColor: Color,<br>    val contentColor: Color,<br>    val textStyle: TextStyle,<br>    val shape: Shape<br>)</pre><p><strong>Step B: The Variants</strong></p><pre>object ButtonStyleVariants {<br>    @Composable<br>    fun primary() = ButtonStyle(<br>        containerColor = FlowTheme.colors.primary,<br>        contentColor = FlowTheme.colors.onPrimary,<br>        textStyle = adaptiveValue(<br>            compact = FlowTheme.typography.Main.small.semiBold,<br>            expanded = FlowTheme.typography.Main.medium.semiBold<br>        ),<br>        shape = RoundedCornerShape(FlowTheme.radius.m)<br>    )<br><br>    @Composable<br>    fun secondary() = ButtonStyle(<br>        // Secondary colors...<br>    )<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*JRcl8qKMWnZROKq9Vhem2Q.png" /></figure><p><strong>Step C: The Button Component</strong></p><pre>@Composable<br>fun Button(<br>    text: String,<br>    onClick: () -&gt; Unit,<br>    modifier: Modifier = Modifier,<br>    enabled: Boolean = true,<br>    style: ButtonStyle = ButtonStyleVariants.primary(),<br>) {<br>    val alpha = if (enabled) 1f else FlowTheme.opacity.medium<br><br>    Surface(<br>        modifier = modifier<br>            .then(<br>                if (enabled) Modifier.clickable(onClick = onClick) else Modifier,<br>            ),<br>        shape = style.shape,<br>        color = style.containerColor.copy(alpha = style.containerColor.alpha * alpha),<br>        contentColor = style.contentColor,<br>    ) {<br>        Box(<br>            contentAlignment = Alignment.Center,<br>            modifier = Modifier<br>                .fillMaxWidth()<br>                .padding(vertical = FlowTheme.space.m),<br>        ) {<br>            Text(<br>                text = text,<br>                style = style.textStyle,<br>            )<br>        }<br>    }<br>}</pre><p><strong>The DX (Developer Experience) advantage:</strong> Autocomplete suggests the authorized styles, and customization remains possible without breaking the system:</p><pre>Button(<br>    onClick = { /*...*/ },<br>    style = ButtonStyleVariants.primary().copy(containerColor = Color.Red)<br>) {<br>    Text(&quot;Cancel concert&quot;)<br>}</pre><h3>6. Adaptive Intelligence: Taming Fragmentation</h3><p>Android is the ecosystem of fragmentation (smartphones, tablets, foldables). The project uses a centralized system built around adaptiveValue. Rather than measuring physical size, we use currentWindowAdaptiveInfo() to measure the actual window (crucial for split-screen), divided into 5 Breakpoints (Compact, Medium, Expanded, Large, ExtraLarge).</p><p><strong>The adaptiveValue Implementation</strong> The system incorporates fallback: if a higher value is missing, it uses the next lower level.</p><pre>@Composable<br>fun &lt;T&gt; adaptiveValue(<br>    compact: T,<br>    medium: T? = null,<br>    expanded: T? = null,<br>    large: T? = null,<br>    extraLarge: T? = null,<br>): T {<br>    val currentScope = LocalWindowSize.current<br>    val m = medium ?: compact<br>    val e = expanded ?: m<br>    val l = large ?: e<br>    val xl = extraLarge ?: l<br><br>    return when (currentScope) {<br>        WindowSizeScope.Compact -&gt; compact<br>        WindowSizeScope.Medium -&gt; m<br>        WindowSizeScope.Expanded -&gt; e<br>        WindowSizeScope.Large -&gt; l<br>        WindowSizeScope.ExtraLarge -&gt; xl<br>    }<br>}</pre><p>Thanks to this, our components adjust visually without a single if/else polluting the business code.</p><pre>object ChipStyleVariants {<br><br>    @Composable<br>    fun filled(): ChipStyle =<br>        ChipStyle(<br>            textStyle = adaptiveValue(<br>                compact = FlowTheme.typography.Main.small.semiBold,<br>                expanded = FlowTheme.typography.Main.medium.semiBold,<br>            ),<br>            selectedColor = FlowTheme.colors.primary,<br>            unselectedColor = FlowTheme.colors.onSurface.copy(alpha = FlowTheme.opacity.subtle),<br>            selectedContentColor = FlowTheme.colors.onPrimary,<br>            unselectedContentColor = FlowTheme.colors.onSurface,<br>            shape = RoundedCornerShape(FlowTheme.radius.max),<br>        )<br>}</pre><h3>7. Visual Identity: Typography and Shape-Shifting Iconography</h3><h3>Iconography: Filled vs Outlined</h3><p>Rather than massively importing external libraries, icons are custom-made and organized by style.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7I9rbgUxxZjTzLvVxFZ89w.png" /></figure><pre>object Icons {<br>    object Filled<br>    object Outlined<br>}</pre><pre>val Icons.Filled.ArrowLeft: ImageVector<br>    get() {<br>        return ImageVector.Builder(/*...*/).apply {<br>            path(fill = SolidColor(Color.Black)) { /* paths */ }<br>        }.build()<br>    }</pre><p><em>Usage:</em> CircleIconButton(imageVector = Icons.Filled.ArrowLeft, onClick = { /*...*/ })</p><h3>Typography Sovereignty: The Matrix Approach</h3><p>In standard Jetpack Compose (Material 3), typography is managed via a flat list of slots like displayLarge, headlineMedium, or bodySmall. While fine for standard apps, this rigid structure quickly breaks down in custom Design Systems.</p><p>What happens if a developer needs bodySmall but bold? They usually write: style = MaterialTheme.typography.bodySmall.copy(fontWeight = FontWeight.Bold)</p><p><strong>Using </strong><strong>.copy() is the enemy of a strict Design System.</strong> It allows developers to create uncontrolled mutations, bypassing the designer&#39;s rules. To solve this, ShowsFlow abandons the flat list in favor of an <strong>Interface-Based Matrix Abstraction</strong>.</p><p>This allows us to use a chained syntax that strictly guides the developer: FlowTheme.typography.Main.large.bold</p><p>Let’s break down exactly why this architecture is built this way:</p><p><strong>A. FlowTheme.typography (The Entry Point)</strong> Everything starts from our CompositionLocal. The components never hardcode a font; they ask the theme for the current typography rules.</p><p><strong>B. .Main (The Semantic Family)</strong> We manage a dual identity: Main (Inter) and Alternate (Montserrat). Notice that we don&#39;t name them .Inter or .Montserrat. We use semantic naming.</p><ul><li><em>The architectural benefit:</em> If the company undergoes a rebranding next year and replaces “Inter” with “Roboto”, we only change the font file inside the Main implementation. Not a single line of UI code across the 50 screens of the app will need to be updated.</li></ul><p><strong>C. .large (The Scale &amp; Vertical Rhythm)</strong> This is the most critical architectural decision. In our system, asking for a size (large, medium, small) does not just return a FontSize. It returns an implementation that <strong>locks the Font Size and the Line Height together</strong>.</p><pre>abstract class BaseFontStyles(private val fontFamily: FontFamily) : FontStyles {<br>    override val medium: FontWeightVariant<br>        get() = FontWeightVariantImpl(<br>            fontFamily = fontFamily,<br>            fontSize = FontSizes.Medium, // e.g., 20.sp<br>            lineHeight = LineHeights.Small // e.g., 28.sp<br>        )<br>}</pre><ul><li><em>The architectural benefit:</em> This guarantees a perfect <strong>Vertical Rhythm</strong>. By forcing the lineHeight at the scale level, a developer can never accidentally create a 20sp text with a cramped 20sp line height that clips descenders, or a bloated 40sp line height that breaks the screen&#39;s margins.</li></ul><p><strong>D. .bold (The Final Weight Resolution)</strong> Finally, once the Family and the Scale (Size + Line Height) are defined, the developer selects the weight.</p><pre>interface FontWeightVariant {<br>    val extraBold: TextStyle<br>    val bold: TextStyle<br>    val semiBold: TextStyle<br>    val medium: TextStyle<br>    val regular: TextStyle<br>    val light: TextStyle<br>}</pre><ul><li><em>The architectural benefit:</em> Instead of mutating an existing style with .copy(), the weight is explicitly resolved at the end of the chain. If the designer decides that the .large scale should never exist in a .light weight, we simply don&#39;t implement the light property for that specific scale, and the compiler will instantly throw an error if a developer tries to use it.</li></ul><p><strong>E. Usage (The DX Triumph)</strong> Thanks to this matrix architecture, applying typography becomes highly explicit, strictly constrained, and fully supported by IDE autocomplete:</p><pre>// A Heading<br>Text(<br>    text = &quot;Concerts in Paris&quot;,<br>    style = FlowTheme.typography.Main.large.bold<br>)<br><br>// A Secondary Data label<br>Text(<br>    text = &quot;Accor Arena&quot;,<br>    style = FlowTheme.typography.Alternate.small.medium<br>)</pre><h3>F. The Final Enforcer: The Text Atom</h3><p>We have built a brilliant typography engine, but there is one remaining vulnerability: what if a developer just types Text(&quot;Hello&quot;)? By default, androidx.compose.material3.Text falls back to MaterialTheme.typography.bodyLarge. This means it leaks out of our Design System!</p><p>To seal the system completely, we create our own Text Atom. It wraps the basic Compose text and forces FlowTheme.typography as the default style.</p><pre>@Composable<br>fun Text(<br>    text: String,<br>    modifier: Modifier = Modifier,<br>    color: Color = FlowTheme.colors.onSurface,<br>    // We enforce OUR typography as the default fallback<br>    style: TextStyle = FlowTheme.typography.Main.medium.regular, <br>    textAlign: TextAlign? = null,<br>    maxLines: Int = Int.MAX_VALUE,<br>    overflow: TextOverflow = TextOverflow.Clip<br>) {<br>    BasicText( // Or Material&#39;s Text, but strictly passing our styling<br>        text = text,<br>        modifier = modifier,<br>        style = style.copy(color = color, textAlign = textAlign),<br>        maxLines = maxLines,<br>        overflow = overflow<br>    )<br>}</pre><p>Now, the entire application is legally bound to use our custom Text component, definitively closing the loop on our custom typography architecture.</p><p>8. Accessibility (A11y) “By Design” in Atoms</p><p>A Design System doesn’t solely serve to unify visual rendering; it’s also the best firewall to ensure the application is accessible to everyone, without requiring extra effort from feature developers. By encapsulating accessibility into our Atoms, we enforce it “by default.”</p><p><strong>The Invisible Standards</strong> In Jetpack Compose, Google’s accessibility guidelines (such as the minimum tap target size set at 48dp) can easily be overlooked by a developer in a rush. Our CircleIconButton atom handles this natively through Modifier.minimumInteractiveComponentSize(), while forcing a clear semantic declaration.</p><p><strong>Example: The Secured CircleIconButton Atom</strong></p><pre>@Composable<br>fun CircleIconButton(<br>    onClick: () -&gt; Unit,<br>    accessibilityLabel: String, // Required, no null default!<br>    modifier: Modifier = Modifier,<br>    size: Dp = 40.dp,<br>    color: Color = FlowTheme.colors.surface.copy(alpha = FlowTheme.opacity.elevated),<br>    content: @Composable () -&gt; Unit,<br>) {<br>    Surface(<br>        modifier = modifier<br>            .minimumInteractiveComponentSize()<br>            .size(size)<br>            .clip(CircleShape)<br>            .clickable(onClick = onClick)<br>            .semantics {<br>                contentDescription = accessibilityLabel<br>                role = Role.Button<br>            },<br>        shape = CircleShape,<br>        color = color,<br>    ) {<br>        Box(<br>            contentAlignment = Alignment.Center,<br>            modifier = Modifier.fillMaxSize(),<br>        ) {<br>            content()<br>        }<br>    }<br>}</pre><p>The benefit: Feature developers can no longer create a button without providing a description (contentDescription), and no longer need to worry about tap target margins. Accessibility is structural.</p><h3>9. “Motion Tokens”: Choreographing the Interface</h3><p>We’ve covered spacing, colors, and typography. However, a music application like ShowsFlow must feel fluid and organic. A premium application relies on consistent animations. Just as with colors, hardcoding an animation duration (300ms) in a screen is a mistake.</p><p>We therefore integrate <strong>Motion Tokens</strong> into the heart of our FlowTheme. They define durations and acceleration curves (Easing) so that all animations share the same physical &quot;feel.&quot;</p><h3>A. Defining Motion Tokens</h3><pre>@Immutable<br>data class Motion(<br>    val durationShort: Int = SHORT,<br>    val durationMedium: Int = MEDIUM,<br>    val durationLong: Int = LONG,<br>    val easingEmphasized: Easing = EASING_EMPHASIZED,<br>) {<br>    companion object {<br>        const val SHORT = 150<br>        const val MEDIUM = 300<br>        const val LONG = 500<br>        const val SHIMMER = 800<br><br>        val EASING_EMPHASIZED: Easing = CubicBezierEasing(0.2f, 0.0f, 0.0f, 1.0f)<br>    }<br>}</pre><h3>B. Usage in an Atom or Molecule</h3><p>When a component changes state — for instance, a <strong>Selection Chip</strong> used to filter music genres — the animation reads directly from the design tokens to ensure a consistent “feel” across the app:</p><pre>    val backgroundColor by animateColorAsState(<br>        targetValue = if (selected) style.selectedColor else style.unselectedColor,<br>        animationSpec = tween(<br>            durationMillis = Motion.MEDIUM,<br>            easing = FlowTheme.motion.easingEmphasized,<br>        ),<br>        label = &quot;chip-bg&quot;,<br>    )<br>    val contentColor by animateColorAsState(<br>        targetValue = if (selected) style.selectedContentColor else style.unselectedContentColor,<br>        animationSpec = tween(<br>            durationMillis = Motion.MEDIUM,<br>            easing = FlowTheme.motion.easingEmphasized,<br>        ),<br>        label = &quot;chip-text&quot;,<br>    )</pre><p>If the art direction decides tomorrow that the application should feel snappier and faster, simply changing durationMedium from 300 to 200 in the tokens is all it takes. The entire application speeds up in a single build. Remember to document these motion parameters in the <strong>README</strong> so the entire development team uses the correct curves when creating new features.</p><h3>10. Visual Anticipation: Skeletons and Shimmers</h3><p>In an application consuming APIs, loading time is a reality. Displaying a blank page or a simple circular spinner breaks immersion. The Design System must provide elegant loading states, called “Skeletons,” often animated with a “Shimmer” effect (a light sweep).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ulirWOuvUjVTfDCDT0EDdg.gif" /></figure><p>Rather than recreating fake screens, we transform our Atoms so they can adopt a “loading mode” while preserving their architectural footprint. This prevents Layout Shift (interface jumping) when data arrives.</p><p><em>An important architectural point: the animation is lazy. It only runs when a shimmer component is in the composition. As soon as data arrives and shimmers leave the tree, the animation is garbage collected. Zero cost at rest.</em></p><h3>A. The shimmer() Modifier: Perfect Synchronization</h3><p>The subtlety of a premium visual effect (YouTube or Instagram style) lies in synchronization. If you have 10 loading elements on screen, the light wave must sweep across the screen as a single unit, not chaotically for each element.</p><p>By using rememberInfiniteTransition at the modifier level, Compose ensures that all elements using this modifier within the same composition will share the same animation clock.</p><pre>@Composable<br>fun Modifier.shimmer(widthPx: Float = 1000f): Modifier {<br>    val transition = rememberInfiniteTransition(label = &quot;shimmer&quot;)<br>    val progress by transition.animateFloat(<br>        initialValue = 0f,<br>        targetValue = 1f,<br>        animationSpec = infiniteRepeatable(<br>            animation = tween(durationMillis = Motion.SHIMMER, easing = LinearEasing),<br>            repeatMode = RepeatMode.Restart,<br>        ),<br>        label = &quot;shimmer_progress&quot;,<br>    )<br>    val offset = progress * widthPx * 2<br><br>    val baseColor = FlowTheme.colors.onSurface.copy(alpha = 0.06f)<br>    val highlightColor = FlowTheme.colors.onSurface.copy(alpha = 0.15f)<br>    return background(<br>        brush = Brush.linearGradient(<br>            colors = listOf(baseColor, highlightColor, baseColor),<br>            start = Offset(x = offset - widthPx, y = 0f),<br>            end = Offset(x = offset, y = 0f),<br>        ),<br>    )<br>}</pre><blockquote><strong><em>The architectural secret here:</em></strong><em> by applying an alpha channel (0.06f and 0.15f) on the </em><em>onSurface color from our tokens, we don&#39;t need to define a specific loading color for Light Mode and another for Dark Mode. The contrast adapts mathematically to the background.</em></blockquote><h3>B. The ShimmerBox Atom: The Building Tool</h3><p>Rather than scattering the shimmer() modifier everywhere, we create a dedicated Atom: ShimmerBox. It consumes our shape tokens (radius.xs) by default.</p><pre>@Composable<br>fun ShimmerBox(<br>    modifier: Modifier = Modifier,<br>    shape: Shape = RoundedCornerShape(FlowTheme.radius.xs),<br>) {<br>    Box(<br>        modifier = modifier<br>            .clip(shape)<br>            .shimmer(),<br>    )<br>}</pre><h3>C. Molecule Skeleton Variant (ShimmerConcertCard)</h3><p>Screens can now use this Atom to draw the loading silhouette of their molecules. The skeleton mimics the exact structure of the ConcertCard — a circular avatar and two text lines — so that the spatial footprint remains strictly identical to the loaded version:</p><pre>@Composable<br>fun ShimmerConcertCard(<br>    modifier: Modifier = Modifier,<br>) {<br>    Surface(<br>        modifier = modifier.fillMaxWidth(),<br>        shape = RoundedCornerShape(FlowTheme.radius.xl),<br>    ) {<br>        Row(<br>            modifier = Modifier.padding(FlowTheme.space.m),<br>            verticalAlignment = Alignment.CenterVertically,<br>            horizontalArrangement = Arrangement.spacedBy(FlowTheme.space.m),<br>        ) {<br>            ShimmerBox(<br>                modifier = Modifier.size(56.dp),<br>                shape = CircleShape,<br>            )<br>            Column {<br>                ShimmerBox(<br>                    modifier = Modifier<br>                        .width(140.dp)<br>                        .height(16.dp),<br>                )<br>                Spacer(modifier = Modifier.height(FlowTheme.space.xs))<br>                ShimmerBox(<br>                    modifier = Modifier<br>                        .width(200.dp)<br>                        .height(12.dp),<br>                )<br>            }<br>        }<br>    }<br>}</pre><p>The transition between loading and final data is now perfectly smooth and unified across the entire screen.</p><h3>11. Validation and DX (Developer Experience)</h3><p>A Design System is only useful if it’s easy to use and impossible to break.</p><ul><li><strong>Multipreviews:</strong> Instead of repeating configuration for every Composable, we centralize our testing logic in a PreviewAnnotations.kt file. By stacking standard annotations like @PreviewLightDark and @PreviewDevices (or @PreviewScreenSizes) into a single reusable annotation, we instantly generate multiple previews in Android Studio—covering Light Mode, Dark Mode, Mobile, and Tablet—with a single line of code.</li></ul><pre>/**<br> * Generates two previews: one in light mode and one in dark mode.<br> */<br>@Preview(<br>    name = &quot;Light&quot;,<br>    uiMode = Configuration.UI_MODE_NIGHT_NO,<br>    showBackground = true,<br>    backgroundColor = 0xFFFFFFFF,<br>)<br>@Preview(<br>    name = &quot;Dark&quot;,<br>    uiMode = Configuration.UI_MODE_NIGHT_YES,<br>    showBackground = true,<br>    backgroundColor = 0xFF1C1B1F,<br>)<br>annotation class PreviewLightDark<br><br>/**<br> * Generates two previews: one at phone size (Compact) and one at tablet size (Expanded).<br> */<br>@Preview(<br>    name = &quot;Phone&quot;,<br>    device = &quot;spec:width=411dp,height=891dp,dpi=420&quot;,<br>    showBackground = true,<br>)<br>@Preview(<br>    name = &quot;Tablet&quot;,<br>    device = &quot;spec:width=1280dp,height=800dp,dpi=240&quot;,<br>    showBackground = true,<br>)<br>annotation class PreviewDevices</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*0NCIXGYZPDjY_dkE9Y-CDg.png" /></figure><ul><li><strong>Showcase App:</strong> The :apps:showcase module is our ultimate communication lab for testing Motion and touch interactions before integration. <strong><em>We will dive deep into the architecture and utility of this specific module in the next installment of this series.</em></strong></li><li><strong>Documentation as Code:</strong> Systematically maintain and update the README during the development phase. A clean codebase isn’t enough if token usage isn’t documented and accessible to the rest of the team.</li></ul><h3>12. Conclusion: A Vision for the Future (and a Worthwhile Investment)</h3><p>This architectural rigor radically transforms productivity. Where a global visual change (e.g., changing all corner radii in the app) used to take a full day of searching and risky manual edits, it now takes just 15 minutes by updating a single token.</p><p>It is important to note that the architecture and naming conventions presented in this article (such as Main, Alternate, or Primary40) represent <strong>one proposed vision</strong>. Every developer, design team, and company has its own conventions. The true power of this system lies in the underlying concept of <strong>Tokens</strong>. Whether you choose to name your color and typography variables abstractly or based on direct usage (e.g., using headline, bodyText, brandAccent, or destructive), the core principle remains the same: isolate your design decisions from your business logic.</p><p>You’re no longer building screens; you’re building an interface engine. In the third and final part, we’ll see how to protect this investment through automated Screenshot Testing with Roborazzi.</p><ul><li><a href="https://mathieu-lopez.medium.com/atomic-design-in-android-part-1-building-modular-and-scalable-interfaces-136b7b7e3ff4?postPublishedType=repub">Atomic Design in Android, Part 1: Building Modular and Scalable Interfaces</a></li><li><a href="https://github.com/Algodrill/Design-Flow">GitHub - Algodrill/Design-Flow: 🏗️ Industrial-grade Atomic Design System for Android. Built with Jetpack Compose &amp; Clean Architecture. Scalable, modular, and developer-friendly.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=267017e8ad2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Atomic Design in Android, Part 1: Building Modular and Scalable Interfaces]]></title>
            <link>https://mathieu-lopez.medium.com/atomic-design-in-android-part-1-building-modular-and-scalable-interfaces-136b7b7e3ff4?source=rss-1ce3cd36429e------2</link>
            <guid isPermaLink="false">https://medium.com/p/136b7b7e3ff4</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[android-development]]></category>
            <dc:creator><![CDATA[Mathieu Lopez]]></dc:creator>
            <pubDate>Wed, 18 Mar 2026 10:18:07 GMT</pubDate>
            <atom:updated>2026-04-10T09:57:00.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VFYuwCBr9Q8tH5te.jpg" /></figure><h3>1. Introduction: The Construction Metaphor</h3><p>Imagine building a house. You don’t start by raising a solid block of wall without thinking about its composition. First, you assemble bricks, cement, and wood — unitary, reusable elements that, once combined, form larger structures like partitions, then rooms, eventually resulting in a complete home.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*JhXpwyhFrQYEnV1mkPioww.png" /><figcaption>Brad Frost</figcaption></figure><p><strong>Atomic Design</strong>, a methodology conceptualized by Brad Frost, rigorously applies this principle to interface development. In 2026, with the advent of <strong>Kotlin 2.3.0</strong> and the maturity of <strong>Jetpack Compose</strong>, this approach has become the absolute standard for designing systems capable of surviving a product’s exponential growth.</p><p>Traditional UI development often suffers from two evils: code duplication and structural rigidity. By coding “all-in-one” (monolithic) views, you create immediate technical debt. Atomic Design resolves these friction points by breaking the interface down into fundamental blocks, guaranteeing perfect visual consistency and total technical isolation.</p><h3>1.2 Battle Stories: The Real Cost of UI Duplication</h3><p>When I joined a new company as a Senior Developer, I inherited a project where UI components were duplicated across every feature module. There was no single source of truth — just a collection of “similar-looking” buttons and cards scattered throughout the codebase.</p><p>The “Real-World” stress test arrived when the design team requested a simple evolution of our primary button (a change in corner radius and a new elevation state).</p><h4>The Monolithic Nightmare (Without Atomic Design)</h4><ul><li><strong>The Task:</strong> Update the visual style of the primary button.</li><li><strong>The Reality:</strong> I had to manually identify and modify <strong>24 different implementations</strong> of “buttons” across <strong>12 feature modules</strong>.</li><li><strong>The Friction:</strong> Each change required a manual check to ensure I didn’t break a specific layout or a local override.</li><li><strong>The Result:</strong> A task that should have been trivial took <strong>7.5 hours (1 full developer day)</strong> of tedious, error-prone work and a massive Pull Request.</li></ul><h4>The Atomic Reality (With a Design System)</h4><p>If the Atomic Design system had been in place, the experience would have been radically different:</p><ul><li><strong>The Task:</strong> Update the FlowButton atom in the :design-system module.</li><li><strong>The Execution:</strong> Modify <strong>one single file</strong> (Atoms/FlowButton.kt) by updating the Radius.m and Elevation.low tokens.</li><li><strong>The Result:</strong> The change propagates instantly to the entire application. Total time: <strong>15 minutes</strong>, including the execution of visual regression tests.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*29DJdMpeYHOPmUw6vY493A.png" /></figure><p><strong>Lesson :</strong> UI duplication is a silent killer of velocity. In 2026, we no longer build “screens”; we build a system that generates screens. Investing 15 minutes today saves you 1 day of debt tomorrow.</p><h3>2. The “Zero-Material Policy”: Encapsulation as a Visual Firewall</h3><p>The choice to implement a proprietary theme is an architectural decision aimed at creating a visual “trust bubble.” We strictly apply a <strong>Zero-Material Policy</strong> within our feature modules (:features).</p><p>Technically, this is achieved by a strict isolation in our Gradle configuration: the :design-system module uses <strong>implementation(&quot;material3&quot;)</strong>.</p><p>While our internal atoms (like Surface or Button) rely on Google’s primitives to benefit from their world-class accessibility management and touch interactions, these primitives are <strong>strictly encapsulated</strong>. They are invisible to the rest of the project.</p><p>This architecture enforces a total sealing of our visual contract:</p><ul><li><strong>Technical Enforcement:</strong> A developer working on a feature <em>cannot</em> call MaterialTheme.colorScheme. The code simply won&#39;t compile. The system technically forces the use of FlowTheme.colors, ensuring 100% consistency across the app.</li><li><strong>DNA Sovereignty:</strong> The system acts as a true visual firewall. It protects the product against aesthetic drift by making it impossible to “cheat” with standard Material components that haven’t been processed by the Design System.</li><li><strong>Future-Proofing:</strong> Our application’s identity remains immutable. Should the underlying framework evolve or change, our :features modules remain entirely unaffected, as the dependency is strictly encapsulated within the design module.</li></ul><h3>3. The Hierarchy of Elements: From System to Product</h3><p>To succeed in the collaboration between engineering and product, establishing a clear hierarchy is strategic. We first distinguish the <strong>System</strong> elements: abstract, “pure” components with no knowledge of the business logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bvLuoO-o0gFizOMbQ6dNvw.png" /></figure><h3>The Pillars of the System</h3><ul><li><strong>Design Tokens</strong>: These are the base atoms (Colors like DeepBlack #0E0E0E, Spacing from 4dp to 48dp, Radius up to 24dp).</li><li><strong>Atoms</strong>: Indivisible and generic components (Text, Icon, Button). An atom must remain “pure”: its name is generic and it carries no business logic.</li><li><strong>Molecules</strong>: The first level of atomic assembly. Example: the ConcertCard (rounded image + text + date).</li><li><strong>Organisms</strong>: Complex sections like the ConcertList or the Scaffold.</li></ul><h3>4. Templates and Pages: Bringing the Product to Life</h3><p>This is where the chemical analogy ends to make way for the software structure connected to data.</p><ul><li><strong>Templates</strong>: Page skeletons without real data. This is the ideal playground for testing adaptability via the adaptiveValue() function. We verify that our layout reacts to breakpoints (Compact for mobile, Expanded for tablet).</li><li><strong>Pages</strong>: The final instance. This is the only level where the interface connects to the ViewModel (injected). The page transforms the template’s abstraction into a real user experience.</li></ul><p><em>Note: The detailed implementation of these structures and the interactive demonstration via our </em><strong><em>Showcase App</em></strong><em> </em>:app:showcase<em> will be the heart of our second article.</em></p><h3>5. Technical Architecture: The “Leaf Module”</h3><p>An atomic structure requires a robust technical foundation. In our architecture, the :design-system module is a <strong>Leaf Module</strong>.</p><ol><li><strong>Total Isolation</strong>: It does not depend on any other module in the project. This allows for ultra-fast compilation and isolated testing.</li><li><strong>Unique Contract</strong>: All consuming modules (features, apps) inherit UI dependencies via the design module, guaranteeing a single version through the <em>Version Catalog</em> (libs.versions.toml).</li></ol><h3>6. Industrialization: Toward Visual Regression Testing</h3><p>In an industrial system, the slightest modification to an atom (a base color) can impact hundreds of components. <strong>Screenshot Testing</strong> is therefore non-negotiable.</p><p>We use <strong>Roborazzi</strong>, which runs on the JVM thanks to <em>Robolectric Native Graphics</em>. This allows for UI validation during every Pull Request without the need for heavy emulators.</p><ul><li><strong>Record</strong>: Generation of reference images (baselines).</li><li><strong>Verify</strong>: Automated comparison in CI.</li></ul><p><em>The technical setup of Roborazzi and CI configuration will be covered in depth in the third part of this series.</em></p><h3>7. Conclusion: The Architect’s Advice</h3><p>Building a system based on Atomic Design is an investment where the ROI is visible from the very first major UI update. However, the greatest challenge is not technical — it is <strong>human</strong>.</p><p>The challenge is not so much creating the system, but making the team respect it daily. Do not let your Design System become dead documentation. Use your :apps:showcase module as living documentation. It is by forcing this “common language” that you will reduce friction and truly accelerate your velocity.</p><p><a href="https://mathieu-lopez.medium.com/atomic-design-on-android-part-2-building-the-technical-foundation-267017e8ad2b">Atomic Design on Android, Part 2: Building the Technical Foundation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=136b7b7e3ff4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>