šŸ”™ All posts

Towards DevEx Design System - DXDS

Trying to gather ideas for a DevEx Design System


Planted November 26, 2023

I am not a designer but I am an educator. And, as Iā€™ve been writing and thinking over the past few weeks, Iā€™ve been gathering ideas for common components that I could use in tutorials. But, more than that, how these components could be shared with others.

The aim would be for these components to be as reusable as possible across a range of frameworks and libraries. They should be the key building blocks of good tutorials.

Kamran Ayub has talk about this as ā€œDeveloper Experience Design Systemā€ or DXDS for short. I like that name and Iā€™m going to use that here.

Iā€™m not arrogant enough to think that Iā€™m the first person to think of this and would love to hear from others who have done similar work. Iā€™m also not arrogant enough to think that I can do this alone. Iā€™m going to need help. Iā€™m going to need designers and developers to help me build this. Iā€™m going to need educators to help me test it. Iā€™m going to need people to help me write the docs.

The Components

Iā€™m going to keep a list here that Iā€™ll add as I go along. Reach out to me on socials if you have more ideas. And, if you want to help, let me know.

Prereqs

Iā€™ve created a blog post including this one already leaning on the work from the Astro docs. Before someone engages in a tutorial, they need to have the right tools installed. They also need the right prior knowledge. This component should be able to handle both of those.

It should also link to the relevant docs for the tools and the prior knowledge if necessary.

This needs more design work but I think itā€™s a good start.

Embedded Code Editor

My first attempt at this was a blog post where I tried to build a code editor that could be embedded in a blog post. It was a start but it was a bit clunky. I think it can do done better.

Exemplars

This would be a component that would clearly show examples of the code that the user is going to write. It would be a way to show the user what they are going to build. It would also be a way to show the user what the code should look like at the end of the tutorial.

Iā€™m not quite sure what this looks like yet.

Callouts

This would be to call out important information. It could be a warning, a tip, a note, or something else. It could call out common errors or common misconceptions. It could also be used to highlight links to other concepts and areas.

Spoiler Iā€™ve begun this already with the spoiler component. This would be a way to hide information that the user can reveal when they want to. It could be used to hide the answer to a quiz or the solution to a problem.

Quiz This is a component for a simple knowledge check. It could be a multiple choice question or a true/false question. It could also be a fill in the blank question. It could also be a question that requires the user to write code.

Iā€™ve begun this already with the quiz component here. As before, I borrowed from the Astro docs which are ace but my colours are a bit off.

Progress This would be a way to show the user how far they are through the tutorial. It could be a progress bar or a percentage. It could also be a list of steps that the user has to complete. It could also be a list of steps that the user has completed.

There is lots of prior art for these.

  • Astro Docs (again!)
  • Dopt - they call themselves a design system for onboarding and education
  • Medusa.js - this was pointed out by Kumran again. Itā€™s a great example of showing progress.

The Tools

I think that this is best solved with HTML Components - either built independently or using a library like Lit. The benefit of this is that they can be used in any framework or library. They can also be used in plain HTML.

For now, hereā€™s a Git repo where Iā€™m going to collect this work. Feel free to add issues there or PRs if you want to help.

Like what you see?

I send out a (semi) regular newsletter which shares the latest from here and my reading from around the web. Sign up below.

    Your next read?