Visitar URL original
Web Components design system — Lit custom elements, tokens, and integration guides | Subrahmanyam Poluru

Enterprise Design System

Web Components design system

Lit-based custom elements, design tokens, and framework-agnostic usage.

Stack
Lit, TypeScript, Vite, Storybook

Overview

The Web Components catalog is the framework-agnostic core of the Enterprise Design System. Components are Lit custom elements registered as eds-* tags. Install @poluru-labs/enterprise-design-system-wc and lit, load tokens.css once, import the package to register elements, then write <eds-button variant="primary"> in any stack.

Tokens ship as CSS custom properties (--eds-color-surface, --eds-space-6, --eds-radius-lg) and as a typed TypeScript object. Dark theme is the eds-theme-dark class on html or body; semantic aliases remap, brand stays. Storybook also documents typography, the icon set, and a copy-to-clipboard pattern.

Integration docs cover Angular (CUSTOM_ELEMENTS_SCHEMA), React, and Vue consuming this package directly. Sibling packages exist when you want native Angular, React, Vue, or React Native APIs instead of custom elements.

Features

  • eds-* custom elements. One side-effect import registers the set. Markup is HTML, not a framework render function.
  • Token-first CSS. Components consume --eds-* variables. tokens.css (or the TS tokens object) is the source of truth.
  • Light and dark. document.documentElement.classList.toggle('eds-theme-dark', isDark) is the whole theme API.
  • Integration guides. Storybook pages for Angular 17+, React 18/19, and Vue 3, plus an overview of shared setup.
  • DOM events. CustomEvents such as eds-click and eds-change so any framework can listen without a wrapper.

Technologies

Library

  • Lit
  • TypeScript
  • Vite
  • @poluru-labs/enterprise-design-system-wc
  • Custom elements (eds-*)

Design

  • tokens.css / --eds-* variables
  • Typed tokens object
  • Brand, ink, and semantic palettes
  • eds-theme-dark

Storybook

  • Controls
  • Docs / autodocs
  • Accessibility addon
  • Themes addon (light / dark)
  • Actions, viewport, measure, outline

Components

The Web Components Storybook covers the inventory below. Open a component in the live demo for Controls, docs, and accessibility checks.

Custom elements

  • eds-button
  • eds-button-group
  • eds-split-button
  • eds-link
  • eds-input
  • eds-textarea
  • eds-checkbox
  • eds-radio-group
  • eds-switch
  • eds-select
  • eds-combobox
  • eds-autocomplete
  • eds-search
  • eds-modal
  • eds-drawer
  • eds-tabs
  • eds-accordion
  • eds-alert
  • eds-toast
  • eds-data-table
  • eds-icon

Actions

  • Button
  • ButtonGroup
  • SplitButton
  • Link

Forms

  • Input
  • Textarea
  • NumberInput
  • Checkbox
  • Radio
  • Switch
  • Select
  • Combobox
  • Autocomplete
  • Search
  • PinInput
  • FileUpload
  • DatePicker
  • DateRangePicker
  • TimePicker
  • Slider
  • Rating

Feedback

  • Alert
  • Toast
  • Spinner
  • ProgressBar
  • CircularProgress
  • Skeleton
  • EmptyState
  • Status
  • Badge
  • Tag

Navigation

  • Breadcrumb
  • Tabs
  • SideNav
  • Pagination
  • Stepper
  • Toolbar

Overlays

  • Modal
  • Drawer
  • Popover
  • Tooltip
  • DropdownMenu

Data display

  • Card
  • DataTable
  • List
  • DescriptionList
  • Stat
  • Timeline
  • TreeView
  • Accordion
  • Avatar
  • Icon

Utilities

  • Divider
  • Kbd
  • VisuallyHidden
  • Meter
  • CodeSnippet
  • SegmentedControl

Pages

These are the Storybook sidebar entries in the live catalog. Written install guides stay on theValorSoftSol docs.

StorybookPageWhat it doesType
IntroductionIntroductionQuick start, what’s included, and design principles.Docs
Introduction/AuthorAuthorPackage authorship and related links.Docs
Foundations/TokensTokensColor, type, space, and motion as CSS variables and a TypeScript object.Docs
Foundations/ThemesThemesLight neutrals, brand scale, and eds-theme-dark.Docs
Foundations/TypographyTypographyType tokens for the system.Docs
Foundations/IconsIconsBuilt-in SVG set on eds-icon and on Button, Input, Alert, Toast.Story
Foundations/Copy to clipboardCopy to clipboardPattern for copying snippet source from docs.Docs
Integration/OverviewIntegration overviewInstall, load tokens, register elements, theme, and events for every framework.Docs
Integration/AngularAngular integrationCUSTOM_ELEMENTS_SCHEMA and using eds-* tags in Angular 17+.Docs
Integration/ReactReact integrationConsuming custom elements from a React 18/19 app.Docs
Integration/VueVue integrationUsing eds-* tags in Vue 3 templates.Docs
Components/*Component storiesAutodocs and stories for each eds-* element.Story