equinor-design-system

Enforce Equinor Design System rules for brand-compliant UI styling.

9|5|Updated Jan 11, 2021
One-click install
npx skills add https://github.com/equinor/fusion-react-components --skill equinor-design-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: equinor-design-system
Source: https://github.com/equinor/fusion-react-components/tree/main/.agents/skills/equinor-design-system
Command: npx skills add https://github.com/equinor/fusion-react-components --skill equinor-design-system

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents inconsistent or non-compliant Fusion UI styling by providing authoritative, machine-readable Equinor Design System rules for tokens, typography, spacing, elevation, icons, and portal layout zones.

Core Features & Use Cases

  • Color token correctness: Enforces use of EDS CSS custom properties and prohibits raw hex/rgb/named colors for semantic UI layers.
  • Typography compliance: Guides correct variant usage via @equinor/eds-core-react and blocks manual font sizing or font-family overrides.
  • Spacing and layout conventions: Standardizes padding/gap via EDS spacing tokens and aligns with Fusion Portal three-zone shell constraints.
  • Elevation and icon rules: Directs when to use Paper for elevation and how to render EDS icons safely with accessibility-friendly title.

Quick Start

Ask the agent to look up the required token and variant for your specific UI element (e.g., “Use the correct spacing and text/icon colors for a right-side detail panel in a Fusion Portal page, with hover and disabled states”).

Frequently Asked Questions about equinor-design-system

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply EDS design tokens for Fusion Portal UI styling?

To apply EDS design tokens for Fusion Portal UI styling, use EDS CSS custom properties for colors, typography via `variant`, and spacing tokens instead of raw pixel values to ensure brand-compliant component styling and portal shell-safe layout design.

What is the correct way to use EDS typography variants in a React application?

The correct way to use EDS typography variants is by specifying the `variant` property via `@equinor/eds-core-react`, which ensures brand-compliant text styling while blocking manual font sizing or font-family overrides.

How do I render EDS icons safely with accessibility features?

To render EDS icons safely with accessibility features, use the `Icon` component and pass both the `data` and `title` properties, ensuring screen readers can properly interpret the icon within your UI.

Can I use raw hex or rgb color values for semantic UI layers in Equinor apps?

No, you cannot use raw hex, rgb, or named colors for semantic UI layers in Equinor apps. You must use EDS CSS custom properties to maintain color token correctness and brand compliance across the application.

What spacing conventions should I follow for Fusion Portal three-zone shell layouts?

For Fusion Portal three-zone shell layouts, you must standardize padding and gaps using EDS spacing tokens rather than raw pixel values, and align your design to avoid conflicting portal shell margins and heights.

When should I use the Paper component for elevation guidance in EDS?

You should use the `Paper` component for elevation guidance in EDS when you need to apply visual depth to UI elements, ensuring consistent elevation styling across your application interfaces.