Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@kozmos-ds/react

Latest version: v0.17.3

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: vodoco
0 Stars
0 Forks
21 Versions
1.7K Downloads
TypeScript Repo language

Scan summary

@kozmos-ds/react was last scanned on 28 Nov 2026 at version 0.17.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 21 versions; the latest 4 were published within 7 days (22–28 Nov 2026).
  • Findings: No rules fired in version 0.17.3.
  • Downloads: 1,693 downloads.

Versions

21 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.17.3 LATEST 28 Nov 2026 No rules fired
0.17.2 26 Nov 2026 No rules fired
0.17.1 25 Nov 2026 No rules fired
0.17.0 22 Nov 2026 Not shown
0.16.0 17 Nov 2026 Not shown

No rules fired in 0.17.3

Findings

Findings for v0.17.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.17.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@kozmos-ds/react

React components for the Kozmos design system — core controls, plus map, POI and wayfinding compositions — styled entirely from Kozmos tokens.

Install

npm install @kozmos-ds/react react react-dom

React 18 and 19 are both supported. @kozmos-ds/tokens, @kozmos-ds/icons and @kozmos-ds/product-contracts are installed with it.

Development and production builds

Your bundler, or the ESM CDN that serves the package, must replace process.env.NODE_ENV, as React itself needs. Vite, webpack, esbuild and Rollup with @rollup/plugin-replace all do, and esm.sh and jsDelivr's +esm do when they serve a package.

  • Development: every component carries its name (displayName), so React DevTools and React's warnings show Button or AdaptiveMapShell, as before.
  • Production: components carry no names. DevTools shows ForwardRef or Anonymous there. In exchange, your bundler leaves out every component you do not use, even one that shares a module with something you do: importing DEFAULT_PANEL_DETENTS no longer brings in the whole map shell.
  • No bundler: a page that loads the files in dist unbundled, with nothing to replace process.env.NODE_ENV, throws process is not defined when it imports them. In 0.14.0 the same page threw later, when a Backdrop first rendered or a part reported an event with no AnalyticsProvider around it, since both already read the variable.

Set up

Import the stylesheet once and put a ThemeProvider around each module (or the whole app):

import "@kozmos-ds/react/style.css";

It holds the token variables for both themes and the styles the components use, so there is no Tailwind configuration to add. @kozmos-ds/react/dist/style.css resolves to the same file, for code that already imports that path.

Token definitions belong to provider boundaries. Input, Textarea, Button, Popover, FieldWrapper, Label, PasswordInput and NumberInput use precompiled component-owned styles and local resets; the remaining utility-based components still require native CSS @scope. This is an unfinished compatibility migration, not a broadly compatible release. The production browser/WebView support matrix must be approved and tested before product adoption; package publication is not that certification. Unsupported engines will render the unmigrated parts incorrectly. See the Firefox floor correction and migration below.

inputVariants and buttonVariants retain their arguments but return opaque, namespaced recipe classes. Do not depend on the individual class strings. For migrated components, ordinary custom CSS loaded after the package can override base styles through className; state overrides follow normal CSS specificity. Provider tokens are the preferred theme-wide customization and follow portals. Input/Textarea/PasswordInput/NumberInput merge caller aria-describedby with their error/helper IDs; a component error keeps aria-invalid true even if a caller supplies false.

Button always renders a native <button> and forwards an HTMLButtonElement ref. The previously declared but non-functional asChild prop has been removed before publication, including from Button-based wrappers. Do not nest links inside Button. Use Link for navigation, or apply buttonVariants to your own anchor/router link when it needs button styling. variant="link" changes appearance, not semantics. Native disabled, isLoading, form props and keyboard activation remain button-only; the styling helper does not implement disabled/loading behavior for an anchor. This is separate from Radix's working PopoverTrigger asChild.

import { buttonVariants } from "@kozmos-ds/react";

<a href="/locations" className={buttonVariants({ variant: "link" })}>
  Browse locations
</a>;

The anchor draws no underline at rest, and the link variant underlines on hover. A class of your own that underlines it wins only with more weight than Kozmos's rule: Kozmos's own underline utility does, but a host utility in a cascade layer (as Tailwind 4 writes them) never does, and an unlayered one only when it loads after Kozmos's stylesheet.

For an application that deliberately wants Tailwind's global reset, optionally import @kozmos-ds/react/reset.css before its own host styles. It is never imported automatically. Do not also import the token package's global CSS into an embedded module. Ordinary host resets/utilities are covered; this is not Shadow DOM isolation against arbitrary high-specificity or !important host rules. rem units still follow the host document's root font size.

The stylesheet registers the Tailwind compiler variables its utilities set and read (--tw-translate-x, --tw-ring-color and so on) with @property and inherits: false, rather than declaring their defaults on every element. A variable no Kozmos utility sets, such as the skews and most filter terms, is not registered: each read of it is written as the value it always gave. A registration applies to the whole document. Each name is registered as Tailwind 4 registers the same name, so a host page that runs Tailwind 4 gets the same registrations whichever stylesheet loads last. On a host running Tailwind 3, the host's own reset still declares the defaults on every element, as before.

Browsers

Since 0.8.0, Firefox requires 146 or newer. The 0.7.0 manifest incorrectly declared 128; the published 0.7.0 package is unchanged. Mozilla documents @scope enabled by default in Firefox 146. This is an explicit breaking support-policy correction, not a new legacy-browser fallback.

Chrome, Edge 118
Safari, iOS 17.4
Firefox 146
Android WebView 118

The dependency behind the floor is @scope, which bounds component selectors to their intended scopes. A browser without support discards the scoped block. Scope is not complete isolation against arbitrary host selectors; see embedding limitations.

Migrating: require Firefox 146+ in your product's browser policy. If Firefox 128–145 is required, the library's remaining scoped CSS needs an architectural migration before adoption; pinning 0.7.0 does not fix its rendering defects. Do not remove the scope boundary or enable experimental browser preferences as a workaround. Other declared minimums are unchanged.

The built-package regression reproduced unstyled Badge and zero-height Separator in Firefox 128.0, while owned-CSS Button/Input retained their geometry. The same cases pass in Firefox 146.0.1, including nested light/dark providers. These are representative checks, not full minimum-version or embedded-WebView certification. CI guards the Firefox declaration and tests remaining scoped utilities separately from the owned form controls.

What that costs below the floor is not all or nothing. An earlier measurement across 43 elements, 30 render identically without @scope and 13 do not: the 31 components that carried their own CSS were unaffected, the 73 styled by utilities lose their layout and colour. Button, Input and Heading are in the first group; AISearchButton, Tag and Skeleton are in the second.

Those are historical sample counts, not a fresh 0.7.0 whole-library census. Supporting older engines requires migrating remaining scoped components and checking other used features, not just editing the browser list. A changed support promise needs explicit compatibility review and migration notes.

Fields in Safari (GAP-174)

Safari 26.0 to 26.3, on macOS and iOS (and so every iOS browser and web view on those versions), applies no @scope rule to an <input> or a <textarea>. Apple fixed it in Safari 26.4 ("CSS rules within @scope not being applied to <input> and <textarea> elements"); 17.4 to 18 were not affected, as MDN's compatibility data records. Measured in Playwright's WebKit 26.0: every text-like <input> (text, search, email, password, number, date, time, colour, range) and every <textarea> misses, while a <div>, a <button> and a <select> take the same rule. Kozmos's utility classes are emitted inside @scope, so on those versions none of them reaches a field. Every Kozmos field draws from its own unscoped CSS instead, and draws there as in Chrome and Firefox: pnpm test:field-styles measures every part with a field in all three engines.

  • A utility class passed to a field's className (px-4, w-72, border-destructive) applies in Chrome, Edge, Firefox and Safari 26.4, and is ignored in Safari 26.0 to 26.3, where the field keeps its own look. Kozmos cannot change this: the scoping is what those versions mishandle.
  • What reaches a field there: its props (status, error, disabled, and density from ThemeProvider), the provider's tokens, an inline style, and your own CSS loaded after Kozmos's. One class of yours overrides a field's base look (.kozmos-input, .kozmos-textarea); a part's own rules come after it, and some are two classes (Search's room for its icon, ColorPicker's for its swatch), which your selector must match.
  • Around a field, use wrapperClassName: it lands on a <div>, which takes scoped rules.
  • <button>, <select>, checkboxes and radios take scoped rules on those versions too.

Use

import { Button, Icon, ThemeProvider } from "@kozmos-ds/react";

export function SaveButton() {
  return (
    <ThemeProvider defaultTheme="light">
      <Button emotion="success">
        <Icon name="check" />
        Save
      </Button>
    </ThemeProvider>
  );
}

emotion is one of themed, neutral, success, danger, informative or alert.

Dark mode

ThemeProvider owns its DOM scope, never <html>. Sibling and nested providers can use different themes. It follows live system changes by default. Persistence is opt-in: supply a product-owned storageKey; the old vite-ui-theme default is no longer read or written. Storage errors do not disable theme changes.

import { ThemeProvider } from "@kozmos-ds/react";

<ThemeProvider defaultTheme="system">{app}</ThemeProvider>;

Use theme and onThemeChange for controlled state; the caller then owns persistence. useTheme() returns theme, resolvedTheme and setTheme. SSR and first hydration use defaultTheme with defaultSystemTheme="light" as the system fallback, then restore storage/system preferences after mount. An initial colour change is possible; provide a server-known controlled theme to avoid it.

Set dir="rtl" on the provider to configure CSS and Radix keyboard navigation. Nested providers inherit direction; an outer provider defaults to LTR. Supply CSS-variable overrides through tokens={{ "--your-variable": "value" }} so they follow overlays too. Unrelated ancestor inline styles/fonts are not copied into portals.

Brand colour

Every prominent fill — a filled Button, IconButton, FloatingActionButton or SplitButton, a checked Checkbox or Switch, a selected Chip, a Tag — is theme 500, the client's base colour. The stylesheet writes a token that aliases another as a reference (var(--primitives-colors-theme-500)), so one override on the provider re-brands them all. Pass a set per theme: every provider, including one that forces the other theme inside yours (DynamicIsland's island is always dark), applies the set for its own theme.

import { ThemeProvider } from "@kozmos-ds/react";

<ThemeProvider
  tokens={{
    light: {
      "--primitives-colors-theme-500": "#0b7a5c",
      "--primitives-colors-theme-600": "#096650",
      "--primitives-colors-theme-700": "#07513f",
    },
    dark: {
      "--primitives-colors-theme-300": "#07513f",
      "--primitives-colors-theme-400": "#096650",
      "--primitives-colors-theme-500": "#0b7a5c",
      "--primitives-colors-theme-600": "#2fae86",
      "--primitives-colors-theme-700": "#5cd0aa",
    },
  }}
>
  {app}
</ThemeProvider>;

Set the steps around 500 too. The filled Button's hover and focus, and the hover of a selected Chip, a default Tag, a default Badge and an on ToggleButton, are theme 600 (400 in the dark theme); the Button's pressed is 700 (300 in the dark); the outline, ghost and link Buttons' ink is 700, and 600 hovered. Theme 600 is also the theme as text, borders and rings, so set it at 4.5:1 on the page in each theme. A single flat set (tokens={{ "--…": "…" }}) applies to both themes. Override on the provider, not a descendant: a reference resolves where it is declared. SwiftUI and Compose take no overrides; their fill is Pointr's #135BEC. The theming guide in the repository's .ai-skills/theming-guide.md has the worked set.

Runtime design configuration

For the experimental glass controls, use DesignConfigProvider. It includes the same scoped ThemeProvider and owned portals; KozmosTheme is now a compatibility name for this implementation, not a separate token injector.

import type { ReactNode } from "react";
import { DesignConfigProvider } from "@kozmos-ds/react";

export function GlassModule({ children }: { children: ReactNode }) {
  return (
    <DesignConfigProvider
      defaultTheme="light"
      initialConfig={{ glass: { frost: 20 }, noise: false }}
    >
      {children}
    </DesignConfigProvider>
  );
}

Use initialConfig for uncontrolled defaults or config/onConfigChange for controlled values. Partial glass and accessibility inputs are deeply merged and validated. Persistence is opt-in through persistKey and ignored for controlled configuration. A surrounding ThemeProvider's preference is inherited unless this provider explicitly sets theme, defaultTheme or a theme storageKey.

tokens are declarative: updates and removed keys apply to content and owned overlays. Legacy primitive shorthand (colors-background-0) still expands to --primitives-colors-background-0; full CSS-variable names are preferred. injectRuntimeTokens is deprecated; it merges overrides, with an empty value removing a key. Declarative tokens take precedence.

Noise is confined to glass backgrounds, never a fixed page overlay. SVG effect IDs are instance-owned; pointer effects use the hovered surface, including in portals. For multiple independently hydrated React roots, supply distinct React identifierPrefix values consistently on server and client.

Migration: old KozmosTheme config={...} now means controlled configuration; use initialConfig if descendants should change it without a callback. The implicit kozmos-design-config storage key is no longer used. preset and splay have no rendered effect and are deprecated. roundness/shadow affect legacy aliases only, not semantic radius/elevation roles; customize those tokens directly. These effects are not a cross-platform styling contract or a complete reduced-motion policy.

Adaptive map hosts

AdaptiveMapShell uses its container's dimensions, supports logical RTL panel placement, and accepts host-supplied hinge-free usableRegions. Give it a definite height, or a bounded parent for its default height: 100%; it no longer enforces a 448px minimum. panelPresentation overrides the automatic side/bottom layout, and panelFraction requests bottom-panel height. The resolved height can be reduced to reserve space for measured map controls; read the actual bounds from the callback.

onLayoutChange receives shell-local renderer/panel bounds and occlusion rectangles, plus physical camera padding relative to the renderer bounds. The shell does not own the map engine: the host adapter applies renderer resizing and camera padding. onCollisionInsetsChange and --kozmos-map-inset-* expose the resolved padding too.

Pass keyboard overlap through safeAreaInsets only if it has not already resized the host. usableRegions is a layout input, not automatic device detection; refresh it when the host or posture changes. Keep slot component identities and keys stable to preserve state and the renderer instance across those changes.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @kozmos-ds/react

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229