Skip to content

CSS: agent-shell ​

.instui-agent-shell — A surface container for AI agents.

Usage ​

css
@import "@pantoken/plugin-custom-components/custom-components.css";

Examples ​

html
<div class="instui-agent-shell --p-md">
  <h2 class="instui-heading -variant-title-card-large">AI Agent</h2>
  <p>Content here.</p>
  <button class="instui-button">Action</button>
</div>

Structure ​

text
.instui-agent-shell
  ‹content›
flowchart TD n0[".instui-agent-shell"]:::cssdoc-root n1[/"‹content›"/]:::cssdoc-slot n0 --> n1 classDef cssdoc-root stroke-width:1px; classDef cssdoc-part stroke-width:1px; classDef cssdoc-slot stroke-width:1px; classDef cssdoc-component stroke-width:1px;

Accessibility ​

The shell is a plain container with no role of its own. Give it a landmark or group name (for example role="region" with an aria-label, or a heading) so assistive tech can find the agent surface, and keep its content in reading order.

ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
more-contrast-respectedWCAG 2.2 1.4.3, 1.4.6Review neededReview neededReview neededReview needed

The page changes under prefers-contrast: more, but no visible text was measurable.

reflow-at-320pxWCAG 2.2 1.4.10FailFailFailFail

In a 320px window, the page scrolls sideways (it is 336px wide in a 320px window), and one element reaches past the right edge: section.instui-agent-shell ends at 336px. WCAG 1.4.10 Reflow (level AA) exempts two-dimensional content such as data tables and maps, so a person should judge whether that applies.

text-spacing-no-clippingWCAG 2.2 1.4.12PassPassPassPass
Screen reader (simulated)Rebrand (light)Rebrand (dark)CanvasCanvas High Contrast
AnnouncementsPassPassPassPass

These automated results do not establish that the page meets WCAG; manual review is still needed.

Tokens consumed ​

TokenTypeValue
--instui-border-width-sm<length>0.0625rem
--instui-color-background-base<color>LightDarklight-dark(#ffffff, #10141A)
--instui-color-stroke-ai-bottom-gradient<color>LightDarklight-dark(#00828E, #04A4B7)
--instui-color-stroke-ai-top-gradient<color>LightDarklight-dark(#9E58BD, #B680CC)
--instui-component-shared-tokens-border-radius-card-lg<length>1rem

See also ​