3lvia/designsystem / skills/elvia-design-system
elvia-design-system
VerifiedReference for UI components and patterns in Elvia's design system ("Elvis"). Covers component- and pattern-specific guidelines for sizing, color tokens for custom UI, types, ordering, labeling, accessibility attributes, CSS setup, and web-component registration. Use when building, reviewing, or fixing UI in an Elvia frontend, even if the request doesn't name Elvia or the CSS classes explicitly (e.g. "add a save button", "make this icon bigger", "add a tooltip").
references/web-components.md
View on GitHub- [Elvis Web Components](#elvis-web-components)
- [Attributes and properties](#attributes-and-properties)
- [Attribute names](#attribute-names)
- [Arrays and objects](#arrays-and-objects)
- [Events](#events)
- [Frameworks](#frameworks)
- [Angular](#angular)
- [Vue](#vue)
# Elvis Web Components
These rules come from the wrapper shared by Elvis web components. See the component reference for its API.
## Attributes and properties
The wrapper converts declared attributes according to the component configuration. It copies an attribute only
while the corresponding property is unset; after a property is set, attribute updates do not overwrite it.
Property updates do not reflect back to the HTML attribute.
## Attribute names
The generated custom element observes lowercase attribute names. For names containing uppercase letters, it
generates both canonical camelCase and lowercase property accessors. In JavaScript, use the canonical name
shown in the component reference, such as `element.ariaLabel`.
## Arrays and objects
For attributes declared as `object`, the wrapper parses JSON5; this includes arrays. Prefer direct property
assignment to avoid serialization:
```js
tabs.items = ['Profil', 'Sikkerhet', 'Varsler'];
```
In markup, pass JSON or JSON5 text:
```html
<elvia-tabs items="['Profil', 'Sikkerhet', 'Varsler']"></elvia-tabs>
```
## Events
Events use `{ detail: { value }, bubbles: false, composed: true }`. CamelCase event names are dispatched under
both the original and kebab-case forms; for example, `valueOnChange` and `value-on-change`. Listen on the
element using one form only.
## Frameworks
### Angular
Add `CUSTOM_ELEMENTS_SCHEMA` to the component or module, then use property and event bindings:
```html
<elvia-tabs [items]="items" (valueOnChange)="handleValueOnChange($any($event).detail.value)" />
```
```ts
handleValueOnChange(value: number) {
this.value = value;
}
```
### Vue
Use Vue bindings and kebab-case events:
```html
<elvia-tabs :items="items" @value-on-change="handleValueOnChange($event.detail.value)"></elvia-tabs>
```
```ts
const handleValueOnChange = (newValue: number) => {
value.value = newValue;
};
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |