百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

engramma

> 设计协作
开源

设计令牌风格指南和编辑器

193 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

设计令牌风格指南和编辑器

Engramma

A web-based design tokens editor and converter for building design systems. Create, preview, and export design tokens in standard formats with preview of colors, typography, spacing, and more.

Quick start

Open engramma.dev and use the menu (top-left):

  • New Project → start empty, or import your tokens
  • Export tokens → copy JSON / CSS / SCSS output
  • Share URL → copies a link that contains your current token data (handy for sharing a draft)

Importing tokens

Menu → New Project → Import tab, then paste/upload:

  • JSON (DTCG 2025 specification): latest stable specification
  • JSON (DTCG 2022 draft): legacy, less strict format
  • CSS variables: paste a :root { --token-name: ... } block and import

What you can model

Engramma supports these token types:

  • color
  • dimension (px/rem)
  • duration (ms/s)
  • number
  • fontFamily
  • fontWeight
  • cubicBezier
  • strokeStyle
  • border
  • shadow
  • transition
  • typography
  • gradient

Aliases / references

Aliases enable a flexible, maintainable token system by creating semantic layers. Instead of scattering raw values throughout your tokens, you can:

  • Build semantic themes: Map abstract properties (like a brand color) to meaningful UI concepts (like "background-primary"), making tokens reusable across products or brands
  • Support design variations: Create multiple themes (dark mode, seasonal campaigns, sub-brands, white-label variants) by aliasing to different base values while keeping components unchanged
  • Reduce duplication: Share common token values across your system without repeating them

Composite tokens can reference other tokens in their parts (e.g. color in shadow or gradient).

Export formats

Menu → Export tokens:

  • JSON: DTCG-shaped output (good for storing in git or feeding other tools)
  • CSS: CSS custom properties (--token-name: ...;)
  • SCSS: SCSS variables

If you use aliases, the exporters keep them as references/var() where possible instead of flattening everything.

Web Component

Engramma is available as an embeddable web component for developers to preview and edit CSS variables with a design tokens editor directly on their page.

Quick start

Add this to your HTML:

xml

  Edit design tokens

  

The component automatically detects all CSS variables on your page and allows you to edit them in real-time.

How it works

The component extracts CSS custom properties from your html element (:root selector) and converts them into design tokens (colors, dimensions, typography, etc.). When you edit tokens in the editor, changes are immediately written back to CSS variables, updating your page styles instantly.

This makes it easy to:

  • Preview your design system variables in context
  • Experiment with changes before committing them
  • Extract a structured token system from existing CSS variables

For deeper integration details, see packages/engramma.

License

This project is licensed under the MIT License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptdesign-systemsdesign-tokensdesign-tools

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类设计协作
定价开源

> 相关工具

F
Figma
协作式界面设计工具
S
sketch-wakatime
Sketch plugin for automatic time tracking and metrics generated from your Sketch usage.
Q
QuickColor
Quickly apply fills from the global or document color palettes to selected elements - 🎨