Tendoo Design

Opacity

Defines transparency levels to control visual emphasis, layering, and state representation across components.

Opacity

Opacity helps control visual hierarchy, layering, and clarity by adjusting the transparency of elements. It plays a key role in communicating states (like disabled or hover), creating depth, and guiding user focus.

Tendoo’s design system uses consistent opacity tokens to ensure predictable and harmonious visual treatments across all components.

Core Principles

  • Clarity — Use opacity to signal intent without introducing confusion.
  • Consistency — Apply predefined opacity tokens to maintain design uniformity.
  • Accessibility — Ensure contrast remains sufficient even when opacity is applied.
  • Contextual Use — Opacity should reinforce interaction states or content layering.

Opacity Tokens

Token NameValueDescription
--opacity-none0Fully transparent — used to hide elements visually but retain them semantically.
--opacity-quiet0.04Ultra-subtle accents like inactive indicators or dividers.
--opacity-disabled0.32Disabled elements such as buttons, icons, or inputs.
--opacity-subtle0.4Subdued backgrounds or muted interface elements.
--opacity-overlay-light0.5Light overlays behind drawers or panels on bright backgrounds.
--opacity-overlay0.6Standard modal or backdrop overlay; maintains context while focusing attention.
--opacity-overlay-dark0.72Strong overlays used behind alerts or dark mode content.
--opacity-hover0.8Hover states for images, cards, or interactive elements.
--opacity-focus0.9Focus rings, input highlights, or spotlight effects.
--opacity-full1Fully opaque content; default visual state.

Key Opacity Practices

AreaBest Practices
Disabled StatesUse --opacity-disabled to indicate non-interactive elements clearly.
LayeringApply lower opacities for backgrounds or overlays to improve focus.
Hover EffectsUse --opacity-hover to add responsive interactivity to visual components.
OverlaysChoose between --opacity-overlay-light, --opacity-overlay, or --opacity-overlay-dark depending on context and theme.
AccessibilityAlways verify contrast ratios remain compliant with WCAG standards when applying opacity.

Example: Disabled Button

<button className="opacity-[var(--opacity-disabled)] cursor-not-allowed" disabled>
  Submit
</button>

Tools We Recommend


Opacity provides subtlety and strength. By using it with care and consistency, Tendoo ensures clarity, focus, and accessibility in every layer of the interface.