npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@santi020k/lumen-core

v5.3.0

Published

Shared tokens, metadata, and behavior helpers for Lumen UI packages.

Readme

Package: @santi020k/lumen-core

On this page: Install · Quick start · Appearance presets · Resources

Shared metadata, token constants, and tiny utilities used by the Lumen package family.

getLumenActiveAnchorIndex(targets, activationOffset) selects an index from document headings in reading order, or returns -1 for an empty list. It accounts for live root scroll padding (including percentages), each target's scroll margin, an explicit minimum offset, and native rounding. The last heading wins at the bottom of a scrollable document; non-scrolling pages use heading positions. The framework adapters share this helper while retaining their event and lifecycle ownership. decodeLumenAnchorFragment(fragment) also decodes links safely, preserving literal percent signs when a fragment is not valid URI encoding. Mixed percentage/length scroll padding is resolved by the browser once per computed value and viewport size; ordinary pixel and percentage values need no measurement node.

activateLumenAnchor(link, event) focuses an ordinary local fragment destination in the link's own document and returns whether focus succeeded. Call it after click propagation so canceled navigation is respected. It preserves native scrolling/history and removes a temporary tabindex on blur. The adapters use this helper; most applications should use Anchor.

Most consumers should install a framework package such as @santi020k/lumen-astro, @santi020k/lumen-react, or @santi020k/lumen-elements.

The package exports lumenColors and lumenGlass for consumers that need to mirror Lumen theme tokens outside the shared stylesheet.

It also publishes shared web behavior contracts such as LumenTabsChangeDetail and LumenTabsChangeEvent. Import them from the root or @santi020k/lumen-core/tabs when application code listens for ui:tabs-change.

Loading helpers are available from the root export for custom web adapters: normalizeLumenProgress(max, value) produces finite, clamped progress values; resolveLumenSkeletonShape, resolveLumenSkeletonAnimation, and resolveLumenSkeletonSize normalize placeholder options. Numeric sizes become pixels, and bounded CSS size expressions retain custom-property casing. resolveLumenLoadingSemantics supplies decorative or named status defaults; adapters must preserve explicit consumer ARIA attributes when applying those defaults.

Cross-platform foundations originate in tokens/lumen.tokens.json and are published as @santi020k/lumen-tokens. Core also exports generated hexadecimal light/dark palettes and native numeric spacing, radius, typography, duration, easing, and elevation values. The legacy lumenColors export retains CSS-ready HSL values.

Install

Install core directly when building framework-neutral tooling or a custom adapter:

pnpm add @santi020k/lumen-core

Core provides data and helpers; it does not register elements, render components, or load CSS. Use documented subpath exports such as /charts, /phone, /language, /native-input, and /icon-data for focused imports. The chart entrypoint includes the shared bullet, comparison, heatmap, histogram, and waterfall helpers. /native-input provides decimal, numeric OTP, and time selection helpers without loading the root catalog. Image-comparison helpers use /image-comparison; DOM windowing uses /virtual-list, and data-renderer window calculations use /virtual-window.

Shared web styles

The selective foundation ships Lumen light and dark. Add only the appearances you use from your adapter: styles/themes/paper.css, styles/themes/field.css, styles/themes/studio.css, styles/themes/santi020k.css, or styles/effects/glass.css. Full styles.css includes every appearance.

Core publishes the generated web foundation, full stylesheet, and component CSS. Adapter exports forward these files without installing CLI tooling. styles/manifest.json records component style parts and dependencies. Contributors edit packages/lumen/styles.css and registry/web-css.json, then run pnpm run generate:component-css; generated files are never edited directly.

Quick start

Read semantic foundations through the focused token entry:

import { lumenColors } from '@santi020k/lumen-core/tokens'

const brandChannels = lumenColors.brand

lumenColors contains CSS-ready HSL channels. For portable JSON and native generated palettes, use the design tokens package.

Data view state

serializeDataViewState and parseDataViewState preserve named filters, including names that match built-in object properties, as ordinary own properties. Repeated filter parameters use the last value. createDataViewRequestUrl and createDataViewServerRequest append state to an endpoint's query before its fragment, preserving existing query parameters and fragment text. Import these helpers from the root or @santi020k/lumen-core/data.

Schedule helpers

canPlaceScheduleEvent rejects malformed or reversed candidate intervals, including in an empty schedule. scheduleEventsOverlap conservatively treats an invalid interval as a conflict with a different event sharing its resource; distinct resources and identical event IDs retain their existing behavior. Adjacent valid intervals remain available.

resizeScheduleEvent and expandRecurringScheduleEvent reject invalid date-times with TypeError. Recurrence validates the event even when its count is zero. Integer day intervals preserve UTC time-of-day independently of the host time zone; zero repeats the same interval, and negative integers generate earlier occurrences. Applications own civil-time recurrence policies and DST conversion.

Invalid bounds, non-finite snapping/recurrence options, unsupported resulting date-times, and fractional recurrence intervals or non-integer/negative recurrence counts produce RangeError. Recurrence validates its numeric options before its event interval. Applications own validation and recovery feedback. parseScheduleEvents preserves structurally valid records with malformed date-times so applications can repair the original data; these helpers do not rewrite storage.

Appearance presets

Use createThemePreset('studio', { scheme: 'dark', overrides: { 'ui-radius': '0.75rem' } }) for a named starting point. Default, Studio and Glass share the appearance contract.

Language Helpers

The root entry and /language subpath export the shared locale contract used by the Astro, React, and Elements language controls. normalizeLumenLocales trims labels and values, removes duplicate or invalid values, and falls back to lumenDefaultLocales. getLumenLocalePair resolves the current locale and the next cyclic option, while formatLumenLanguageLabel fills the {current} and {next} placeholders in an accessible-label template.

import {
  formatLumenLanguageLabel,
  getLumenLocalePair,
  type LumenLocaleOption,
  normalizeLumenLocales
} from '@santi020k/lumen-core'

const locales: readonly LumenLocaleOption[] = normalizeLumenLocales([
  { label: 'English', value: 'en' },
  { label: 'Español', value: 'es' }
])

const { current, next } = getLumenLocalePair(locales, 'en')
const label = formatLumenLanguageLabel(
  'Change language from {current} to {next}',
  current,
  next
)

Date Helpers

Calendar adapters share parseLumenDate, isLumenDateBoundsValid, and isLumenDateRangeValid from the core root entry. They accept complete Gregorian YYYY-MM-DD dates in years 0001–9999, reject overflow dates, and require ordered, inclusive bounds. resolveLumenDateLocale normalizes an explicit locale or the browser locale, falling back to English for invalid locale tags. resolveLumenDateLabels supplies English and Spanish navigation, picker, and invalid-range defaults through the LumenDateLabels contract. Components allow label overrides for other languages; pass an explicit locale during SSR.

isLumenDateRangeValid accepts unknown restored data and returns false for a missing record or non-string range fields instead of dereferencing malformed input.

Chart Helpers

The package root also exports createLumenLineChartModel, createLumenWaterfallGeometry, createLumenHistogramGeometry, and createLumenHeatmapModel. These pure models share web geometry, validation, ticks, and annotations. The optional createLumenChartInteractionController owns only DOM listeners and cursor/legend state; call destroy() when removing its surface. Line chart models ignore malformed annotation entries and containers before reading overlay fields. When annotation IDs repeat, the first valid entry wins so overlay identities stay unique. Destroying a chart controller restores series marks, inspection values, and legend pressed state so rebinding starts with all series visible. Waterfall and histogram geometry accept arrays of unknown decoded rows, validate their complete shape before accumulation or sorting, and return valid: false with empty marks when a row is malformed. Typed component props continue to use LumenWaterfallDatum and LumenHistogramBin. normalizeLumenHeatmapData validates decoded cell arrays before adapters read coordinates or format labels. It returns an empty array when any row has malformed coordinates, measurement types, labels, identity, or tone. Heatmap geometry and models use it internally. Explicit null and non-finite numeric measurements retain the existing missing-cell behavior; numeric coordinates must be finite.

@santi020k/lumen-core/charts exports the shared LumenChartSeries contract plus deterministic domain, tick, scaling, line/area, grouped/stacked bar, and pie/donut geometry helpers. They render no DOM and perform no statistical analysis; framework packages use them to keep chart output aligned. Linear x coordinates ignore blank strings rather than treating them as zero. getLumenChartTicks caps the requested tick count at 4,096 and falls back to five for non-finite counts. Tick spacing may produce a different number of ticks. For finite, increasing domains, returned ticks remain finite, distinct, and increasing even when floating-point precision cannot represent the requested spacing.

import {
  createLumenLineGeometry,
  getLumenChartAxisPadding,
  type LumenChartSeries
} from '@santi020k/lumen-core/charts'

const series: LumenChartSeries = {
  id: 'views',
  label: 'Views',
  data: [{ x: 'Mon', y: 42 }, { x: 'Tue', y: 68 }]
}

const valueLabels = ['$0', '$68,000']
const paddingLeft = getLumenChartAxisPadding(valueLabels)

createLumenLineGeometry(series.data, {
  paddingBottom: 24,
  paddingLeft,
  paddingRight: 16,
  paddingTop: 16
})

Use getLumenChartAxisPadding when formatted value-axis labels need more than the default inset. It estimates proportional and wide Unicode glyphs during server rendering, honors an optional minimum, and caps the result at 240 so labels cannot consume the complete plot. The line geometry helper accepts paddingTop, paddingRight, paddingBottom, and paddingLeft to reserve each edge independently; unspecified edges fall back to padding.

Phone Helpers

@santi020k/lumen-core/phone provides localized country metadata, supplementary flag labels, as-you-type formatting, validation, pasted international-number detection, and E.164 output for the web and React Native adapters. Malformed locale tags retain ISO country-name fallbacks and use English collation for country lists.

import { getLumenPhoneCountry, resolveLumenPhoneNumber } from '@santi020k/lumen-core/phone'

const colombia = getLumenPhoneCountry('CO', { locale: 'en-US' })
if (!colombia) throw new Error('Missing Colombia metadata')

const phone = resolveLumenPhoneNumber(colombia, '6015550123')

It also exports the Lucide-backed icon map (lumenIcons, lumenIconNames) and helpers such as renderLumenIconSvg so framework adapters can render icons by name.

Icon resolution only accepts dictionary-owned names; inherited object properties are rejected.

Icon Credits

Icons are provided by Lucide and its open-source contributors. Lucide is licensed under the ISC License, with Feather-derived icons covered by the MIT License. See THIRD_PARTY_NOTICES.md for the complete notices.

Theme Builder Helpers

Use the ThemeBuilder helpers when an adapter or app needs the same token generation and export contract as the Astro runtime.

import {
  createThemeBuilderTokens,
  exportThemeBuilderValue
} from '@santi020k/lumen-core'

const theme = createThemeBuilderTokens({
  accentHue: 140,
  hue: 260,
  scheme: 'dark'
})

exportThemeBuilderValue(theme.tokens, theme.scheme, 'css')

Figma and Design Tokens

Use the Figma helpers when a design workflow needs the same semantic colors as Lumen's CSS tokens.

import {
  createThemePalette,
  exportThemeDesignTokens,
  exportThemeFigmaVariables
} from '@santi020k/lumen-core'

const theme = createThemePalette('221 83% 53%', '168 76% 36%')

exportThemeFigmaVariables(theme, {
  collectionName: 'Acme theme',
  modeName: 'Light'
})

exportThemeDesignTokens(theme)

exportThemeFigmaVariables returns Figma variable-friendly color values (r, g, b, a) and hierarchical names such as color/surface/muted. exportThemeDesignTokens returns standard design token JSON that importers can map into Figma variables or other design tools.

Color export accepts three finite HSL channels, with optional percent suffixes on saturation and lightness, and an optional finite numeric alpha after /. Hue wraps, saturation/lightness clamp to 0–100, and alpha clamps to 0–1. Malformed channels, missing alpha after /, and extra channels or slash segments throw the existing HSL parsing error instead of producing invalid color values.

Static interface icon data

Import individual definitions from @santi020k/lumen-core/icon-data when icon names are known at build time. This entrypoint has no runtime registry and allows unused definitions to be removed:

import { Search, X } from '@santi020k/lumen-core/icon-data'

React consumers can import both the renderer and definitions from @santi020k/lumen-react/icons. Existing getLumenIcon, runtime names, and registered icon packs remain supported through the original API. The interface selection in icons/lumen.icons.json controls the generated exports; run pnpm run generate:platform-icons after catalog changes. See consumer UI recipes.

Consumer diagnostics and exact amounts

auditLumenTheme requires every semantic color mapping and checks normal-text contrast for resolved opaque HSL channels. inspectLumenTheme(element) reads computed mappings in each representative light, dark and nested scope. Unsupported color syntax produces a finding rather than an assumed pass; these checks supplement rendered accessibility verification.

formatLumenAmountDraft, parseLumenAmountDraft and getLumenAmountValue preserve exact ASCII decimal strings across localized display and editing. Invalid locale tags fall back to en-US consistently in server rendering, parsing and browser controllers. Call the amount controller’s refresh() after moving it to a different document or shadow root; this rebinds native form resets without replacing its draft. Localized negative amounts accept the directional marks emitted by Intl.NumberFormat and ASCII minus signs while retaining strict grouping validation. Invalid programmatic setValue() calls leave the previous draft intact. The shared amount and message-scroller DOM controllers power the web adapters. Currency policy and message state remain consumer-owned.

Combobox DOM controller

createLumenComboboxController(root) enhances a client-side root containing an input[role="combobox"] and a [role="listbox"] with [role="option"] children. It preserves editing focus, observes option changes and supports delegated selection. It returns close() and destroy(); call destroy() when the owner disconnects. Astro and Elements manage that lifecycle automatically. React uses its state-driven component with the same keyboard contract. An accepted native form reset closes options, clears the active descendant, and refilters against the restored input value without emitting change events. Canceled resets preserve editing state; destroy() cancels pending reset work. Pointer selection cancels native option-button submission. Filtering preserves application-hidden options; cleanup restores options hidden by the filter. The controller respects disabled fieldset ancestors and uses the input's current form association when handling resets.

The mounted VirtualList controller supports roots and rows created in another document, including same-origin iframe documents. Data-mode collections preserve iframe keyboard focus across distant scrolling and keyed updates, and return focus to the list when the focused record is removed.

Floating panel placement

connectLumenFloatingPanel(panel, trigger, { onDismiss }) shows a panel anchored to its trigger. When the Popover API exists the panel enters the top layer, so scrolling or transformed dialogs cannot clip it; older browsers keep fixed placement. The panel flips above or below to stay in the visual viewport, aligns to the trigger's logical start or end in RTL, and follows scroll, resize, and enclosing transform transitions or animations once they settle. onDismiss runs when focus moves outside the panel and trigger, when the trigger's containing dialog closes, or when the trigger or panel leaves the document. Pass placement, offset, collisionPadding, or an initialFocus selector when needed. Connecting makes the panel visible, and the caller owns hiding it again: on dismissal, set your closed state and hide the panel, then call the returned cleanup. Cleanup leaves the top layer, returns owned focus to the trigger without stealing focus handed elsewhere, restores the panel's inline styles and popover attributes, and removes every listener and observer. React, Astro, and Elements date pickers and React menus share this helper.

Virtual collections and direction

createLumenVirtualCollectionController(root, { items, getKey, renderItem, itemSize, overscan }) owns an empty data-mode VirtualList root. It mounts only visible rows and focused neighbors, retains stable keyed wrappers, and returns update(items) and destroy(). Declare data mode before the Astro or Elements runtime initializes. See data rendering for setup, state ownership and lifecycle examples.

getLumenVirtualWindow calculates a fixed-height window with optional disjoint focus retention. observeLumenVirtualWindow observes scroll, resize and focus; its handle provides update() and destroy(). Applications using these lower-level helpers own row rendering and cleanup. Data-mode controllers also preserve focus and reusable keyed content in same-origin iframe documents, including elements adopted from another document. Range events and resize observation use the root's document.

getLumenDirectionalKey(element, key) resolves the element's current inherited CSS direction and swaps horizontal arrows in RTL. Other keys are unchanged. Web adapters use it for visual keyboard navigation; native range inputs retain browser-owned behavior.

Exact localized input drafts

parseLumenDecimalDraft(value, locale) distinguishes empty, incomplete, invalid and valid decimal input. isLumenDecimalInBounds(value, { locale, min, max, step }) validates complete values; stepLumenDecimalDraft(value, direction, options) performs exact steps and inclusive clamping without floating-point conversion. Bounds and steps use ASCII decimal strings; drafts use localized decimal separators, the locale's numbering-system digits, and Unicode decimal digits. This includes Chinese decimal numerals (hanidec), so formatted steps remain editable on subsequent steps. The directional marks emitted by Intl.NumberFormat are ignored when parsing, while the 128-character limit applies to the original input. Grouping, exponents, whitespace and longer inputs are rejected. Empty drafts stay distinct from zero; unfinished drafts cannot step. Malformed locale tags safely use English decimal symbols. Applications own units, currency policy, required validation and submission serialization.

normalizeLumenNumericOTP(proposal, length) normalizes Unicode decimal digits, whitespace and hyphens into ASCII, rejects unrelated text and excess digits, and bounds input to 128 characters. Length must be 1–12. LumenTimeSelection, isLumenTimeSelection and isLumenTimeInBounds describe wall-clock hours/minutes with inclusive same-day bounds, leaving dates and time zones to the application.

Attachment preview state

resolveLumenAttachmentPreviewState resolves explicit fallback states, unsupported MIME types, and image failures. createLumenAttachmentPreviewController enhances the documented DOM child contract with safe state events and lifecycle cleanup. Use the framework components for product UI; see the attachment recipe.

Non-string source or MIME metadata resolves to unavailable; explicit loading and error states still take precedence.

Chart datum activation

createLumenChartDatumActivation(seriesId, datum), createLumenHeatmapDatumActivation(datum), and createLumenRangeDatumActivation(datum) return a validated LumenChartDatumActivationDetail or null for an unavailable observation. The discriminated payload preserves raw axes and optional datum IDs. parseLumenChartDatumActivation(unknown) validates event data and removes unrelated fields. These helpers are also available from @santi020k/lumen-core/charts.

For custom browser charts, createLumenChartActivationController(root) delegates clicks from [data-ui-chart-datum] descendants owned by a [data-ui-chart-activation] root. Each target's attribute contains a JSON payload from the builders. Use native buttons with descriptive labels as keyboard equivalents for decorative SVG marks; the controller does not create that UI. It emits the bubbling, composed ui:chart-datum-activate event and returns destroy() for cleanup. Applications own navigation, filtering, detail views, and server authorization.

Dashboard contracts

LumenChangeSummaryItem carries explicit display values and caller-owned changed state; LumenActiveFilter identifies an active criterion. readLumenChangeSummaryItems and readLumenActiveFilters validate unknown input, reject duplicate/empty IDs, and copy records.

Scatter geometry supports positive logarithmic X coordinates, explicit domains, and shared reference projection. createLumenScatterReferences, scaleLumenScatterX, and getLumenScatterXTicks use the same coordinate contract as createLumenScatterGeometry. See consumer UI recipes for application ownership boundaries.

Extended chart models

createLumenCalendarHeatmapGeometry, createLumenFunnelGeometry, and createLumenBoxPlotGeometry validate complete datasets and provide normalized geometry. Sparse datasets and sparse box-plot outlier arrays are invalid, including empty array slots. Comparison chart geometry follows the same rule. Use explicit null measurements for missing observations; invalid datasets return no plotted rows or cells. See data visualization for date-only identities, ordered stages, precomputed quartiles, missing values, and domain rules.

isLumenTimeSelection narrows unknown decoded values to valid same-day wall-clock selections. isLumenTimeInBounds returns false for malformed selections and preserves explicit bounds validation.

Optional visual integrations

Coordinated DOM motion, chart continuity, safe citation URLs, and prompt/approval controllers are exported from the main package without an animation SDK. See visual interactions. The optional @santi020k/lumen-core/rive entry requires the optional peer @rive-app/canvas@^2.44.0. It owns playback, data bindings, reduced motion, visibility, and cleanup for a consumer-owned asset.

Presence motion

animateLumenPresence(element, options) animates a mounted DOM reference using the browser's Web Animations API. It is also exported from @santi020k/lumen. No animation dependency is required.

import { animateLumenPresence } from '@santi020k/lumen-core'

const controller = new AbortController()
await animateLumenPresence(element, {
  duration: 'standard',
  preset: 'slide-up',
  signal: controller.signal
})

// Before exiting, move focus out of the item and prevent further interaction.
element.inert = true
const result = await animateLumenPresence(element, {
  phase: 'exit',
  preset: 'fade',
  signal: controller.signal
})
if (result !== 'cancelled') element.remove()
else element.inert = false

Presets are fade, slide-up, and scale. Durations are fast, standard, and slow; the helper reads the matching --ui-duration-fast, --ui-duration, or --ui-duration-slow and --ui-ease-emphasized CSS tokens, with shared-token fallbacks. Existing transforms and opacity are preserved. Use a wrapper when another animation already owns those properties.

The promise resolves to finished, cancelled, or skipped. Reduced motion, zero duration, detached elements, and missing browser animation support skip the effect. Abort on unmount or when an operation becomes stale. A new presence request cancels the previous one on the same element. System reduced-motion changes cancel a running effect and resolve it as skipped. DOM removal, framework state, focus restoration, inertness, and announcements belong to the consumer; an exit animation does not hide or remove the element itself. Unexpected animation failures reject the promise and should use the application's error handling.

Use data-ui-motion="reduce" on a container to skip new presence requests and, with the optional stylesheet, disable descendant CSS motion. Abort existing requests when changing this local preference. An application must never override the user's system reduced-motion preference to force animations.

Import @santi020k/lumen/styles/motion.css alongside the base stylesheet to opt into native disclosure height transitions and the CSS reduction scope. This small optional stylesheet works with Astro, React, and Elements and keeps those effects out of the default stylesheet. The presence helper's system and local reduced-motion checks work without this CSS import.

When using Tailwind, import Lumen's layer order before either stylesheet:

@import "@santi020k/lumen/layers.css";
@import "tailwindcss";
@import "@santi020k/lumen/styles.css";
@import "@santi020k/lumen/styles/motion.css";

World map

WorldMap supports highlighted countries, location markers, dotted or solid styles, country selection, and theme customization. Use initialView="highlighted" (Elements: initial-view) to start with a regional view. Zoom toward the cursor with Ctrl/Cmd-scroll, or fit highlighted countries using the map controls. Import geography explicitly from @santi020k/lumen-core/world-map-data; it is excluded from root exports. See the WorldMap usage guide for adapter examples, events, localization, accessibility, and customization.

Studio media workspace

Compose MediaViewport, MediaThumbnail, MediaFilmstrip and ImageComparison modes with the Studio media workspace recipes. Applications retain media loading, selection, adjustment algorithms, processing, export and persistence.

Resources

The @santi020k/lumen-core/component-delivery entry provides componentDeliveryEntries, getComponentEntry, componentCssName, and reactServerComponents for tooling that generates adapter imports. The CLI and Figma exporter share this metadata. Entries describe verified exports in this release. A missing selective entry requires a catalog fallback.

| Guide | What you will find | | --- | --- | | Cross-platform architecture | Shared foundations, adapter boundaries, and support tiers. | | Data visualization | Data visualization guidance and examples. | | Figma token export | Variables, token export, and Code Connect workflows. | | Contributing | Setup, checks, and contribution workflow. | | Release history | Published releases and version notes. |

Part of Lumen UI, created by Santiago Molina. Licensed under MIT; third-party artwork retains its own notices.

The DOM-only @santi020k/lumen-core/reveal entry shares reveal threshold normalization and observer lifecycle across web adapters. createLumenRevealController(element, { once, threshold }) returns a destroy() cleanup; use the framework components in application code. This helper is intentionally outside the root entry so native consumers do not traverse browser behavior.

ThemeBuilder accepts fontFamily: 'sans' | 'serif' | 'mono' for safe system font stacks and elevation: 'flat' | 'default' to remove shadows or preserve the preset. Omit either to retain existing typography and elevation. Both are included in CSS and design-token JSON exports. Figma variable exports remain color-only.