---
title: "Design system annotations, part 2: Advanced methods of annotating components"
description: "Design system teams can build their own \"Preset annotations\": Figma annotation components that carry accessibility details not conveyed visually, in component properties, or in code."
url: "https://swe.quest/articles/design-system-annotations-part-2-advanced-methods-of-annotating-components-10641335427d3115"
canonical: "https://github.blog/engineering/user-experience/design-system-annotations-part-2-advanced-methods-of-annotating-components/"
source: "GitHub Engineering"
published: "2025-05-09"
difficulty: "medium"
kind: "How-to"
reading_minutes: 9
tags: ["design-systems","accessibility","frontend"]
---

# Design system annotations, part 2: Advanced methods of annotating components

A post on [GitHub Engineering](https://swe.quest/sources/github.md), published 2025-05-09, 9 min read, How-to. Original: [https://github.blog/engineering/user-experience/design-system-annotations-part-2-advanced-methods-of-annotating-components/](https://github.blog/engineering/user-experience/design-system-annotations-part-2-advanced-methods-of-annotating-components/)

## Summary

Design system teams can build their own "Preset annotations": Figma annotation components that carry accessibility details not conveyed visually, in component properties, or in code. GitHub picked ten Primer components using usage data from its Primer Query tool, audit frequency, React availability and org priorities. It then mapped the missing properties by cross-referencing Primer docs, Storybook demos, Figma asset properties, team experience and audit findings. Presets help newer teams most but need ongoing maintenance as components change, and the property mapping is groundwork for automated annotation. Figma Code Connect with hidden layers (e.g. an aria-label text property on IconButton) can bypass annotations entirely, with tips on consistency, branching and visual regression testing.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Design systems](https://swe.quest/tags/design-systems.md) (Web & mobile)
- [Accessibility](https://swe.quest/tags/accessibility.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- design systems ([easy posts on Design systems](https://swe.quest/tags/design-systems.md?difficulty=easy))
- Figma components
- ARIA attributes

## Keywords

Primer, Figma, Code Connect, GitHub Annotation Toolkit, Storybook, Octicons, Primer Query

## Related posts

- [Design system annotations, part 1: How accessibility gets left out of components](https://swe.quest/articles/design-system-annotations-part-1-how-accessibility-gets-left-out-of-components-66ef06ec44fc9a9e.md): GitHub Engineering · 2025-05-09 · Medium · 10 min read · Accessibility, Design systems, Frontend
  Accessible design system components don't guarantee accessible designs: heading hierarchies break when components are composed, alt text and labels depend on context, and Figma components can't convey implementation details like link-vs-button or form submission.
- [The shared language of props](https://swe.quest/articles/the-shared-language-of-props-ff2798f5935efff7.md): Figma · 2023-07-19 · Medium · 17 min read · Design systems, React, TypeScript, Accessibility, Frontend
  Figma component properties and codebase component props share names but serve different purposes: design props mark visual differences, while code props also carry behaviour, events and data.
- [Unlocking inclusive design: how Primer’s color system is making GitHub.com more inclusive](https://swe.quest/articles/unlocking-inclusive-design-how-primer-s-color-system-is-making-github-com-more-438d95888d234cb3.md): GitHub Engineering · 2023-05-11 · Medium · 6 min read · Accessibility, Design systems, CI/CD, Frontend
  GitHub's Primer design system fixed hundreds of color contrast violations across light and dark modes and all themes by changing its foundational color tokens (Primer Primitives) rather than individual components.
- [The making of the Figma Pattern Library](https://swe.quest/articles/the-making-of-the-figma-pattern-library-500fd6e5ca81c90e.md): Figma · 2024-11-21 · Medium · 9 min read · Design systems, Frontend, Accessibility
  Figma rebuilt its fragmented internal design system as the Figma Pattern Library (FPL) ahead of the UI3 redesign, with a small team of designers and engineers working in a paired style.
- [A conversation with Figma's accessibility team](https://swe.quest/articles/a-conversation-with-figma-s-accessibility-team-4d7c0aee064f1f20.md): Figma · 2022-11-17 · Easy · 9 min read · Accessibility, Frontend
  Figma's accessibility engineers and PM reflect on shipping screen reader support for prototypes and a FigJam beta.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
