SShortSingh.
Back to feed

Design Tokens Should Express Intent, Not Raw Values, Argues Developer

0
·3 views

A developer argues that design tokens are fundamentally misunderstood when teams treat them as simple CSS variables. The core mistake occurs when tools like Figma generate tokens that map directly to raw values, such as --color-blue-500, rather than semantic decisions. A true design token answers the question of purpose — for example, --color-accent — rather than describing a specific value. This semantic layer allows the underlying implementation to change without breaking the token's meaning. The author contends that confusing primitives with tokens produces design systems that fail both designers and developers.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Developer argues deterministic code, not LLMs, should drive AI observability decisions

A developer running a managed monitoring service found that letting large language models classify and judge infrastructure alerts produced inconsistent, unreliable results — with the same alert generating different root-cause categories across multiple runs. To fix this, they redesigned the pipeline so that deterministic Python code handles all classification, validation, and aggregation, while the LLM is restricted solely to narrating the outcome in plain English. The approach also incorporates a pre-call metrics lookup to give the model historical baseline context, preventing misleading narratives such as false disk-fill urgency on a stable host. The author notes this design keeps aggregation reliable, prevents hallucinated classifications, and ensures the monitoring pipeline remains functional even if the model fails. The system runs intentionally on modest CPU-only hardware with no GPU, reflecting a deliberate choice to keep all data on-premise rather than sending it to external services.

0
ProgrammingHacker News ·

Dua Lipa opens library dedicated to banned and censored books in Portugal

Pop star Dua Lipa has opened a library in Portugal focused on books that have been banned or censored. The initiative highlights the ongoing global issue of literary censorship and restricted access to certain texts. The library was inaugurated on June 29, 2026, according to Euronews. The project reflects Lipa's personal commitment to freedom of expression and access to literature.

0
ProgrammingDEV Community ·

How Stream Analyzers Help Broadcast Engineers Diagnose and Fix Live TV Issues

Digital TV broadcasters rely on stream analysis tools to diagnose and resolve technical faults before they affect viewers. A common problem involves legacy set-top boxes failing to play streams correctly due to GOP structure issues, particularly excessive B-frame counts in H.264 video. Engineers use file-based analyzers to inspect frame-by-frame structure, detect standard violations, and identify buffer overflow conditions at precise points in a stream. Tools like Elecard StreamEye allow technicians to visualize bitrate fluctuations, confirm whether a stream is truly constant bitrate, and test compatibility with older hardware before going live. This diagnostic workflow — capturing a problematic stream and examining it offline — serves as a core quality-control practice in professional broadcast operations.

0
ProgrammingDEV Community ·

No, ChatGPT Cannot Predict Stocks: What LLMs Actually Do Explained

A viral YouTube ad has been selling a ₹199 'secret prompt' claiming ChatGPT and Claude can predict stock trades with 90% accuracy, requiring no technical or fundamental analysis. Experts and educators warn this is misleading, as large language models like ChatGPT, Claude, and Gemini are fundamentally next-word prediction systems trained on text patterns — not financial or mathematical forecasting engines. While some specialized AI models can perform numerical stock trend analysis, general-purpose LLMs are architecturally unsuited for that task. The confusion largely stems from users and sellers treating these models as all-purpose 'magic black boxes' without understanding how they actually process information. Such misconceptions, whether deliberate or not, can lead retail investors to make poorly informed financial decisions.