Skip to content

T2111: raw() escape used ​

Cause ​

A raw() escape is in use. It is allowed, but it is a warning and is counted in tessera report.

Example ​

xml
<contract>
{ "name": "Card", "role": "group", "parts": ["root"] }
</contract>
<template><div class="root"></div></template>
<style>
.root { padding: raw(13px, "legacy modal spacing"); }
</style>

What you see ​

text
WARNING  T2111  app/components/Card.tess:6:18
  raw(13px) leaves the design system: "legacy modal spacing".
  Add an expiry date as a third argument so it does not last forever.
  Run `tessera explain T2111` for details.

Fix ​

Replace it with a token when you can. Add an expiry date so it cannot last forever.

All errors and warnings