Build React applications with Entur Linje's @entur/* design system components, tokens, and CSS variables. Covers buttons, forms, navigation, modals, tables, and travel components.
Ships in entur-linje. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Audience: AI coding agents. Entur developers should visit linje.entur.no/komponenter.
This skill helps you build correct, accessible, on-brand React applications using Entur Linje's @entur/* component packages.
The component library solves three things at once: components look right (Entur brand), behave right (keyboard, screen reader, focus management), and feel right for users of Entur products. Use the components rather than reimplementing them from scratch.
Full component docs: https://linje.entur.no/komponenter
GitHub: https://github.com/entur/design-system
@entur/* components before building custom UI. Covers buttons, forms, navigation, modals, tables, accordions, tabs, alerts, chips, dropdowns, loaders, travel, and layout. Check references/packages-overview.md before building anything custom.@entur/tokens/dist/base.css first (colors, color mode), then @entur/tokens/dist/styles.css (spacing, border-radius, font sizes, breakpoints), then component stylesheets. In SCSS, use @use with a namespace. Wrong order causes visual regressions. See references/getting-started.md for the full import order.@entur/tokens for color, spacing, and typography in code. Never hardcode hex or rgb values — they break dark mode and drift from the brand..eds-* internal selectors, using !important, or wrapping components in CSS-in-JS overrides. When a visual deviation is needed, use a scoped className on the component as an override anchor. See references/getting-started.md — Component overrides section.@entur/* components in a layout element rather than applying padding or margin directly to them.SkipToContent from @entur/a11y as the first element in every app with navigation, with <main id="main-content">.label props on form fields — never rely on placeholder alone.@entur/* are named exports — there are no default exports.Every published package. Reach for one of these before writing custom UI.
| Package | Use it for |
|---|---|
@entur/a11y | Skip links and screen-reader-only text |
@entur/alert | Banner, small and toast alerts; validation messages |
@entur/button | All button variants, button groups, icon buttons |
@entur/chip | Choice, filter, action and tag chips |
@entur/datepicker | Date and time pickers |
@entur/dropdown | Dropdowns, searchable dropdowns, multi-select |
@entur/expand | Accordions, expandable panels and text |
@entur/fileupload | File upload control |
@entur/form | Text fields, checkboxes, radios, switches, fieldsets, segmented control |
@entur/grid | Responsive layouts with breakpoint support |
@entur/icons | 390+ SVG icon components |
@entur/layout | Contrast sections, cards, badges, tags |
@entur/loader | Loaders, spinners, skeleton placeholders |
@entur/menu | Side navigation, breadcrumbs, pagination, stepper, overflow menu |
@entur/modal | Modals and drawers |
@entur/tab | Tabs and tab panels |
@entur/table | Data tables, sorting, expandable and editable rows |
@entur/tokens | Design tokens as CSS variables and JS exports |
@entur/tooltip | Tooltips and popovers |
@entur/travel | Travel headers, transport tags, journey legs |
@entur/typography | Headings, paragraphs, labels, links, lists, code |
@entur/utils | Shared utilities and types |
Two packages also ship a beta subpath — @entur/layout/beta (Grid, Flex, Template.Portal app shell) and @entur/typography/beta (Heading, Text). Beta APIs can change between minors, so reach for them when you need what the stable package lacks — a CSS-grid layout primitive or a portal shell — and stay on the stable exports otherwise.
Every export of every package: references/packages-overview.md
yarn add @entur/button @entur/tokens
/* App.tsx or global stylesheet — tokens first */
@import '@entur/tokens/dist/base.css';
@import '@entur/tokens/dist/styles.css';
@import '@entur/loader/dist/styles.css'; /* @entur/button depends on it */
@import '@entur/button/dist/styles.css';
Also import the CSS of every @entur/* package your components depend on, in the order from references/getting-started.md.
import { PrimaryButton } from '@entur/button';
<PrimaryButton onClick={handleSubmit}>Kjøp billett</PrimaryButton>;
Read these when you need specifics:
references/getting-started.md — installation, full CSS import order, SCSS @use pattern, TypeScript types, dark mode setup, component overrides, troubleshootingreferences/packages-overview.md — every export of every @entur/* packagereferences/components.md — component catalog with usage examples (buttons, forms, navigation, layout, travel, etc.)references/tokens-and-variables.md — CSS custom property reference for semantic, base, transport, and data tokens; JS import patternsreferences/css-layers.md — using CSS cascade layers with @entur/*: importing component CSS into a layer for clean overrides, the layer order, and Tailwind v4 setupreferences/migration-guide.md — breaking changes and deprecated APIs per packageTwo migrations have their own skill, which the user starts because it changes a lot of code. If the user asks for one, tell them to run the command and don't do the migration without it:
@entur/typography/beta) or the layout beta spacing scale → /entur-linje:migrate-typography@entur/* versions that still accept React 16 or 17 → /entur-linje:migrate-react-18For general React/web best practices beyond Entur's design system:
vercel-labs/agent-skills@vercel-react-best-practices — React/Next.js patternsaddyosmani/web-quality-skills@performance — web performanceaddyosmani/web-quality-skills@core-web-vitals — Core Web VitalsWhat SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/entur-accessibilityBuild accessible Entur web applications that comply with WCAG 2.1 and Norwegian universell utforming (UU) requirements. Use when the user is working on accessibility, asking about WCAG, universell utforming, screen readers, keyboard navigation, focus management, color contrast, aria attributes, semantic HTML, or Norwegian IKT accessibility regulation. Also trigger when building @entur/* applications that need to meet legal compliance requirements — all Entur digital products must comply with WCAG 2.1. Use even if the user just says "make this accessible" or "is this accessible" without mentioning WCAG by name./entur-brand-designApply Entur's visual identity correctly in designs, presentations, data visualizations, and web UI. Use when the user asks about Entur colors, Entur branding, Entur typography, Entur data visualization, creating charts or graphs for Entur, making a presentation that looks like Entur, building a branded web page or document for Entur, or anything that should follow Entur's visual identity. Trigger even if the user doesn't say "design system" — if they mention Entur and are making something visual, this skill applies.Other plugins' skills for the same job
/entur-linjeEntur Linje design system — use when building anything with @entur/* React components, Entur branding, Entur tokens, Entur colors, Entur typography, Entur data visualization, Entur accessibility, or universell utforming (UU). Trigger for any question or task involving the Entur design system, Entur's visual identity, Entur transport UI, or compliance with Norwegian accessibility law (WCAG). Use this skill whenever the user mentions Entur in a design, development, or content context — even if they don't specifically say "design system."/entur-linje:entur-web-developmentfrom entur-linje
entur-linje@entur is listed by entur/ai — review the source before installing
npx claudepluginhub entur/ai --plugin entur-linje