<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Custom Dirt Bike Graphics</title>
    <description>The latest articles on DEV Community by Custom Dirt Bike Graphics (@customdirtbikegraphics).</description>
    <link>https://dev.to/customdirtbikegraphics</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4182364%2F2437de69-678b-4cae-b9e7-63a45a034a29.png</url>
      <title>DEV Community: Custom Dirt Bike Graphics</title>
      <link>https://dev.to/customdirtbikegraphics</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/customdirtbikegraphics"/>
    <language>en</language>
    <item>
      <title>Custom Skateboard Decks in 3D: Aligning 300 DPI Print Bleed Templates with Complete Board Meshes</title>
      <dc:creator>Custom Dirt Bike Graphics</dc:creator>
      <pubDate>Sat, 14 Nov 2026 19:52:44 +0000</pubDate>
      <link>https://dev.to/customdirtbikegraphics/custom-skateboard-decks-in-3d-aligning-300-dpi-print-bleed-templates-with-complete-board-meshes-131l</link>
      <guid>https://dev.to/customdirtbikegraphics/custom-skateboard-decks-in-3d-aligning-300-dpi-print-bleed-templates-with-complete-board-meshes-131l</guid>
      <description>&lt;p&gt;Anyone who has prepped &lt;strong&gt;custom skateboard decks&lt;/strong&gt; for heat transfer printing knows where first-time layouts go wrong. Graphics designed inside a plain rectangle lose edge details when routed to a curved nose and tail, center portraits take four bolt holes right through the forehead, and top grip tape never gets previewed alongside the bottom graphic until assembly day.&lt;/p&gt;

&lt;p&gt;When we built &lt;a href="https://customskateboarddecks.net" rel="noopener noreferrer"&gt;Custom Skateboard Decks&lt;/a&gt;, we wanted skaters, crews and independent shops to describe an idea or upload a photo, watch AI paint the board from nose to tail, and inspect the complete 3D setup right next to an accurate printer's template. Bridging 2D print prep and real-time 3D board rendering meant locking both views to one shared coordinate system.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftjr81zx0t25qb6upiim4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftjr81zx0t25qb6upiim4.webp" alt="Custom Skateboard Decks 3D AI Designer" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Custom Skateboard Decks Need Real Outlines Instead of One Rectangle
&lt;/h2&gt;

&lt;p&gt;Skateboards vary wildly in silhouette, wheelbase and taper. An 8.25" street popsicle has symmetrical round kicks, while an old school pool shape carries a wide shovel nose, squared tail and deep wheel wells, and a 40" pintail longboard tapers to a sharp point at the back. Cropping one generic rectangle onto all three ruins composition.&lt;/p&gt;

&lt;p&gt;In our &lt;a href="https://customskateboarddecks.net/design" rel="noopener noreferrer"&gt;custom skateboard decks designer&lt;/a&gt;, every board in the multi-shape catalog brings its true vector outline, concave kick profile and hardware geometry:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Popsicle street and park widths:&lt;/strong&gt; every size from 7.25" Mini/Kids up to 9.5".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shaped decks:&lt;/strong&gt; Twin Tail 8.375", Egg, Football, Old School, Punk Nose, Fish Tail, Square Nose, Bottle Tail, Retro Rocket, Sledge, Junior Sledge and Shredder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cruisers and surfskates:&lt;/strong&gt; Cruiser, Mini Cruiser, Swallowtail and Squash Tail surfskates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Longboards:&lt;/strong&gt; Pintail, Kicktail, Drop Through, Drop Down and Dancer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Mapping Bleed, Cut Lines and Truck Bolt Holes Across Custom Skateboard Decks
&lt;/h2&gt;

&lt;p&gt;Skateboard printers require extra artwork outside the final wood edge so slight registration shifts during heat transfer never leave raw maple showing along the rail. At the same time, skaters need to know what stays safe inside the bevel and where baseplates bolt down.&lt;/p&gt;

&lt;p&gt;To make print prep visual instead of mathematical, the 2D canvas overlays four production guides straight over your artwork:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Full bleed boundary:&lt;/strong&gt; the outer rectangular canvas exported at 300 DPI for print presses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exact deck cut line:&lt;/strong&gt; the true shape contour used both to clip the 3D bottom ply texture and to export transparent die-cut PNGs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inner safe area:&lt;/strong&gt; inset inside the curved rails and steep kicks so text and borders stay crisp.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Eight truck bolt holes:&lt;/strong&gt; exact nose and tail mounting clusters so eyes, logos and quoted AI lettering stay clear of hardware.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Because the 3D Three.js board reads directly from that same canvas coordinate space, sliding a logo half an inch toward the wheelbase on the 2D template moves it in real time between the 3D trucks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rendering Custom Skateboard Grip Tape Cutouts Alongside Bottom Art
&lt;/h2&gt;

&lt;p&gt;A finished setup is more than wood and bottom ink. Riders pair deck palettes with colored wheels, raw or anodized trucks, bushings, hardware bolts and top grip. Rather than treating the top ply as a static black texture, we gave &lt;a href="https://customskateboarddecks.net/custom-grip-tape" rel="noopener noreferrer"&gt;custom skateboard grip tape&lt;/a&gt; its own live layer and separate 300 DPI print output.&lt;/p&gt;

&lt;p&gt;You can switch between classic black, clear grip over wood grain, solid colors, geometric laser-style cutouts (split, stripe, diamond or perforated windows), or a full printed top graphic that echoes the bottom illustration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Splitting One Continuous Scene Across Multi-Board Custom Skateboard Decks
&lt;/h2&gt;

&lt;p&gt;Collectors and shops often hang two or three boards side by side as panoramic wall art. Slicing an image cleanly across multiple &lt;strong&gt;custom skateboard decks&lt;/strong&gt; requires accounting for physical wall spacing between mounted boards so horizon lines and diagonals flow naturally across the air gap. Our multi-deck mode generates one unified AI scene across two or three boards, previews the set on a wall, and outputs separate 300 DPI full-bleed print files for each deck.&lt;/p&gt;

&lt;p&gt;Picking any board shape, building graphics with text, shapes and uploaded photos, spinning the complete 3D skateboard and saving 1080px previews are free. One-time credit packs for AI generations and 4K + 300 DPI HD exports start at $9.90 and never expire at &lt;a href="https://customskateboarddecks.net" rel="noopener noreferrer"&gt;Custom Skateboard Decks&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>3d</category>
      <category>webdev</category>
      <category>design</category>
      <category>graphicdesign</category>
    </item>
    <item>
      <title>Custom Motorcycle Helmet Graphics in 3D: Solving Curved Shell Seam Distortion and Text Mirroring</title>
      <dc:creator>Custom Dirt Bike Graphics</dc:creator>
      <pubDate>Sat, 14 Nov 2026 19:52:39 +0000</pubDate>
      <link>https://dev.to/customdirtbikegraphics/custom-motorcycle-helmet-graphics-in-3d-solving-curved-shell-seam-distortion-and-text-mirroring-238k</link>
      <guid>https://dev.to/customdirtbikegraphics/custom-motorcycle-helmet-graphics-in-3d-solving-curved-shell-seam-distortion-and-text-mirroring-238k</guid>
      <description>&lt;p&gt;Planning a &lt;strong&gt;custom motorcycle helmet&lt;/strong&gt; in a flat 2D graphics program almost always leads to surprises once vinyl or paint touches the real shell. A helmet curves across two axes simultaneously, and vent cutouts, chin bars, visor pivots and rear wings interrupt artwork wherever they land. What looks balanced on a flat side elevation bends sharply as soon as you view the helmet from three quarters or straight ahead.&lt;/p&gt;

&lt;p&gt;When we built &lt;a href="https://custommotorcyclehelmet.com" rel="noopener noreferrer"&gt;Custom Motorcycle Helmet&lt;/a&gt;, our goal was to let riders, clubs and custom painters go from a text idea or reference photo to an accurate 3D helmet preview in seconds. Getting clean, wrap-ready layouts across 33 very different helmet shells came down to solving four practical geometry and material challenges in the browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9gpel00uoji3okpj4nbj.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9gpel00uoji3okpj4nbj.webp" alt="Custom Motorcycle Helmet 3D AI Designer" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Custom Motorcycle Helmet Shells Break Flat 2D Templates
&lt;/h2&gt;

&lt;p&gt;On a flat vehicle door or number plate, UV projection behaves close to sheet paper. A motorcycle helmet is closer to a sphere with cutouts: peeling its surface flat forces trade-offs between area stretching and seam splits. If a 2D canvas stretches heavily near the crown, stripes thin out at the top of the head and widen near the neck trim.&lt;/p&gt;

&lt;p&gt;Instead of asking riders to mentally compensate for UV distortion, our &lt;a href="https://custommotorcyclehelmet.com/design" rel="noopener noreferrer"&gt;custom motorcycle helmet designer&lt;/a&gt; pairs clean 2D shell zones (left side, right side, crown, chin bar and rear) with a live WebGL 3D helmet viewport. Every drag, rotation or AI generation updates on the curved 3D shell immediately, so you judge line flow on actual geometry rather than a flattened map.&lt;/p&gt;

&lt;h2&gt;
  
  
  Zone Mapping Across 33 Custom Motorcycle Helmet Styles
&lt;/h2&gt;

&lt;p&gt;Riders do not all wear the same silhouette, and graphics proportioned for an aero track shell fall apart on a peaked dirt lid or a cruiser half shell. To cover real riding styles without forcing generic approximations, we mapped 33 distinct 3D shells across five categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;12 Full face styles:&lt;/strong&gt; street, vintage, retro goggle shells, rally helmets and modern track lids with rear aero spoilers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;7 Motocross and enduro styles:&lt;/strong&gt; deep sculpted cheek ridges, sun peaks and open goggle ports.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2 Adventure dual sport styles:&lt;/strong&gt; full shields paired with off-road peaks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;6 Open face styles:&lt;/strong&gt; classic three quarter shells and long-shield jet helmets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;6 Half helmets:&lt;/strong&gt; shorty, beanie, vintage half, peaked half and German style shells.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because zone coordinates normalize consistently across the catalog, you can design a look on a street full face shell and switch straight to a motocross or half helmet without losing your layers or re-uploading artwork.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mirroring Custom Motorcycle Helmet Graphics Without Backwards Race Numbers
&lt;/h2&gt;

&lt;p&gt;Most riders want flames, wings, race blocks and pinstripes to match cleanly on the left and right sides of the helmet. Our AI generator builds mirrored base artwork by default so center stripes meet down the brow and chin bar without jagged offsets.&lt;/p&gt;

&lt;p&gt;Typography and badges break pure texture mirroring. Flipping a UV island flips every letter and digit with it, turning race number &lt;code&gt;27&lt;/code&gt; into a mirror image on the right cheek. Keeping &lt;code&gt;Both sides&lt;/code&gt; enabled for graphic shapes while orienting text, visor banner decals, blood type tags and uploaded club logos independently lets numbers read left to right on both sides. And when a rider wants a true asymmetric track design, toggling mirroring off isolates every new layer to a single side.&lt;/p&gt;

&lt;h2&gt;
  
  
  Previewing Chrome, Carbon Fiber and Matte Motorcycle Helmet Wraps in Real Time
&lt;/h2&gt;

&lt;p&gt;Color hex codes alone cannot show how a helmet reads in sunlight. A crimson and black &lt;strong&gt;custom motorcycle helmet&lt;/strong&gt; feels completely different in wet gloss clear coat than it does in stealth matte, mirror chrome, pearl or woven carbon fiber.&lt;/p&gt;

&lt;p&gt;Using physically based material presets in the 3D viewer lets riders flip roughness, clearcoat and metallic response on the fly while opening and closing the tinted visor. You can combine AI shell artwork with built-in stripes, flags and race decals from our &lt;a href="https://custommotorcyclehelmet.com/motorcycle-helmet-graphics-kit" rel="noopener noreferrer"&gt;motorcycle helmet graphics kit&lt;/a&gt;, check every reflection angle for free, and export clean full-resolution HD views plus the flat design sheet whenever you are ready to wrap or paint. One-time credit packs start at $9.90 and never expire at &lt;a href="https://custommotorcyclehelmet.com" rel="noopener noreferrer"&gt;Custom Motorcycle Helmet&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>3d</category>
      <category>webgl</category>
      <category>design</category>
      <category>ai</category>
    </item>
    <item>
      <title>I made a tiny open dataset of which dirt bikes share plastics</title>
      <dc:creator>Custom Dirt Bike Graphics</dc:creator>
      <pubDate>Wed, 21 Oct 2026 11:18:36 +0000</pubDate>
      <link>https://dev.to/customdirtbikegraphics/i-made-a-tiny-open-dataset-of-which-dirt-bikes-share-plastics-51dp</link>
      <guid>https://dev.to/customdirtbikegraphics/i-made-a-tiny-open-dataset-of-which-dirt-bikes-share-plastics-51dp</guid>
      <description>&lt;p&gt;I like dirt bikes and I like small data projects, so this one was bound to happen.&lt;/p&gt;

&lt;p&gt;The question behind it is simple. You find a graphics kit you like, the listing says "2024 KX450", and your bike is a 2025 KX250. Will it fit? Often it does, because manufacturers keep the same plastic panels for a few model years and share them between the 250 and the 450. I couldn't find that written down in one place, so I started a repo for it: &lt;a href="https://github.com/dirt-bike-graphics/dirt-bike-graphics.github.io" rel="noopener noreferrer"&gt;dirt-bike-graphics on GitHub&lt;/a&gt;. It now covers 175 model years from 76 models and 11 brands.&lt;/p&gt;

&lt;h2&gt;
  
  
  Groups, not "compatible with" lists
&lt;/h2&gt;

&lt;p&gt;If every bike carries its own list of compatible bikes, each fact is stored twice, and sooner or later the two copies disagree. So I went with groups. Each group has one reference bike, the one a kit would actually be designed on, plus every model year that shares its panels. Seventeen groups cover everything so far.&lt;/p&gt;

&lt;p&gt;The rule that keeps this honest is that a model year can sit in only one group. I check it with a few lines of JS before every update:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;seen&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;bike&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;bikes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;bike&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;fits&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;seen&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;warn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;: &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;seen&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;&lt;span class="s2"&gt; and &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;bike&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;seen&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;bike&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Right now it prints nothing, which is the whole point.&lt;/p&gt;

&lt;p&gt;(Model names were their own headache. KTM calls a bike one thing in its marketing and another in its parts lists. I wrote about that in my last post, so I'll skip it here.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Two files, one for people and one for code
&lt;/h2&gt;

&lt;p&gt;Most people who land on the repo just want an answer, so &lt;code&gt;FITMENT.md&lt;/code&gt; is a plain table, one reference bike per row. &lt;code&gt;fitment.json&lt;/code&gt; holds the same data for anyone who wants to build on it.&lt;/p&gt;

&lt;p&gt;I didn't want to run a server for a file this small. GitHub Pages turned out to be enough: it serves the JSON with &lt;code&gt;Access-Control-Allow-Origin: *&lt;/code&gt;, so any page can fetch it directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://dirt-bike-graphics.github.io/fitment.json&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;bikes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;updated&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;kitFor&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Map&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;bike&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;bikes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;bike&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;fits&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;kitFor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;bike&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;brand&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;bike&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;model&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; (&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;bike&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;reference_year&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;)`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nx"&gt;kitFor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;2025 KXF250&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// "Kawasaki KX450 (2024)"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's an &lt;code&gt;updated&lt;/code&gt; date at the top of the file, so a cached copy knows when it's old.&lt;/p&gt;

&lt;h2&gt;
  
  
  Translations without a build step
&lt;/h2&gt;

&lt;p&gt;A lot of riders don't search in English, so I added the README in German, French, Italian, Polish and Japanese. Each translation is just another Markdown file in the repo. Pages turns each one into its own page, and a row of language links at the top ties them together. No i18n setup at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I haven't solved
&lt;/h2&gt;

&lt;p&gt;Aftermarket plastics are the big gap. They mostly follow the stock shape, but not always, and I don't have a reliable source for the exceptions. Panels that change partway through a model year aren't tracked either.&lt;/p&gt;

&lt;p&gt;If you ride one of these bikes and spot a fitment I got wrong, please open an issue with the model, the years and where you saw it.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>opensource</category>
      <category>json</category>
      <category>github</category>
    </item>
    <item>
      <title>One graphics kit, eleven bikes: storing dirt bike fitment as data</title>
      <dc:creator>Custom Dirt Bike Graphics</dc:creator>
      <pubDate>Sun, 18 Oct 2026 07:46:31 +0000</pubDate>
      <link>https://dev.to/customdirtbikegraphics/one-graphics-kit-eleven-bikes-storing-dirt-bike-fitment-as-data-3a9j</link>
      <guid>https://dev.to/customdirtbikegraphics/one-graphics-kit-eleven-bikes-storing-dirt-bike-fitment-as-data-3a9j</guid>
      <description>&lt;p&gt;When I started building a graphics kit designer for dirt bikes, I assumed every bike needed its own kit. It doesn't. Manufacturers reuse plastics across years and engine sizes, so a kit cut for one bike often lines up on several others. The 2023 Yamaha YZ450F kit, for example, also fits the YZ450FX, the YZ250F and the YZ250FX across 2024 to 2026. That is eleven model and year combinations from one set of panel shapes.&lt;/p&gt;

&lt;p&gt;So the useful unit of data is a reference bike plus the list of everything that shares its plastics.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape I ended up with
&lt;/h2&gt;

&lt;p&gt;Each entry is one reference bike, and fitment is a flat list of strings:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"honda-crf450r-2025"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"brand"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Honda"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"model"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"CRF450R"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"reference_year"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2025"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"category"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"MX"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"fits"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"2025 CRF450R"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026 CRF450R"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2025 CRF250R"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026 CRF250R"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A flat list is easy to search and easy to show under a bike in the UI. Grouping by model can happen at render time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things that broke my assumptions
&lt;/h2&gt;

&lt;p&gt;Names are not consistent. The bike is the KTM 450 SX-F, but its fitment entries read SXF450, SXF350 and so on. Kawasaki's KX450 shows up as KXF450. I store the display name on the reference bike and keep the fitment strings as they are, so the two never have to match.&lt;/p&gt;

&lt;p&gt;Electric bikes have no model year. The Stark Varg fits by version instead, "1.0 VARG MX" and "1.5 VARG MX", so &lt;code&gt;reference_year&lt;/code&gt; had to be nullable.&lt;/p&gt;

&lt;p&gt;Fitment also runs forward. The KTM 450 EXC-F kit is built on 2025 plastics, and its list already includes 2027 models. A field that only tracked past years would not have held that.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is still missing
&lt;/h2&gt;

&lt;p&gt;Aftermarket plastics. Brands like Acerbis and Polisport often follow the stock shape, but not always, and I have no clean source for the exceptions yet. If you have tracked this kind of data before, I would like to hear how.&lt;/p&gt;

&lt;p&gt;I use this list in the designer I am building at &lt;a href="https://customdirtbikegraphics.com" rel="noopener noreferrer"&gt;customdirtbikegraphics.com&lt;/a&gt;, where the fitment shows up next to each bike.&lt;/p&gt;

</description>
      <category>data</category>
      <category>sideprojects</category>
      <category>json</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
