Primitives

Foundation packages that every Sometic feature and adapter builds on. These are not a visual UI kit. They are small, SSR-safe, framework-independent engines for state, events, styling contracts, accessibility DOM helpers, positioning, validation, and date adapters.

Prefer these pages when you need the behavior engine directly (Vanilla controllers, custom adapters, tests). Prefer Components when you want React, Vue, or sometic-* elements.

Inventory

PackageRoleDocs
@sometic/coreEnvironment, ids, disposable, errors, result, controllable state, async operation, utilsCore
@sometic/eventsTyped event emittersEvents
@sometic/domImperative controllers for buttons, fields, inputs, overlays, toast, alertDOM
@sometic/accessibilityFocus, keyboard, dismiss, portal, scroll lock, announcer, observersAccessibility
@sometic/stylingClass/style resolvers, slots, state attributes, polymorphic asStyling
@sometic/validationNative validators, compose helpers, schema-adapter contractValidation
@sometic/date-core (+ adapters)Date adapter contract and native / Day.js / date-fns implementationsDate adapters
@sometic/positioningFirst-party flip/shift placement for anchored overlaysPositioning

When to start here

  • You are wiring a Vanilla or custom-element surface without a framework adapter.
  • You need SSR-safe runtime detection, disposable cleanup, or controllable state shared across engines.
  • You are composing focus traps, dismiss layers, or live announcements into your own overlay.
  • You want validators or a date adapter without pulling a full form UI.

When to skip ahead

  • Application UI state → Store
  • Theme tokens and CSS variable generation → Theming
  • Auth / HTTP → Services
  • Ready-made React / Vue / CE widgets → Components

Dependency reminder

Adapters and integrations → features → foundation. Cores never import React, Vue, or other UI frameworks. See Architecture and Package index.