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

@var-ui/astro

Latest version: v0.14.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: dbanksdesign
0 Stars
0 Forks
12 Versions
1.5K Downloads
TypeScript Repo language

Scan summary

@var-ui/astro was last scanned on 23 Nov 2026 at version 0.14.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 12 versions; the latest 2 were published within 5 days (19–23 Nov 2026).
  • Findings: No rules fired in version 0.14.0.
  • Downloads: 1,492 downloads.

Versions

12 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.14.0 LATEST 23 Nov 2026 No rules fired
0.13.0 19 Nov 2026 No rules fired
0.8.0 16 Nov 2026 No rules fired
0.7.0 11 Nov 2026 Not shown
0.6.0 11 Nov 2026 Not shown

No rules fired in 0.14.0

Findings

Findings for v0.14.0. 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.14.0; other versions have their own rules, not their own score.

README

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

@var-ui/astro

Astro components for the var-ui design system — same visual system as @var-ui/react, no React runtime. Components ship as source .astro and .ts files; your Astro app compiles them.

See the full design spec: docs/superpowers/specs/2026-07-18-var-ui-astro-design.md.

Install

pnpm add @var-ui/astro @var-ui/core astro

Peer dependencies: astro, @var-ui/core. No react, react-aria-components, or @var-ui/react.

Styles

Import the published stylesheet in a layout:

---
import '@var-ui/core/styles.css';
---
Advanced: extract CSS

Use @typestyles/vite for custom createDesignTheme modules or tree-shaken CSS. Do not also import @var-ui/core/styles.css.

// typestyles-entry.ts
import '@var-ui/core/styles';
// astro.config.mjs
import typestylesVite from '@typestyles/vite';

export default defineConfig({
  vite: {
    plugins: [typestylesVite({ extract: { modules: ['typestyles-entry.ts'] } })],
  },
});

Link the generated stylesheet in your layout (path depends on your build output):

<link rel="stylesheet" href="/typestyles.css" />

See examples/astro-app for a working workspace setup (that example still extracts).

ThemeScript

Add ThemeScript in <head> before styles to avoid a flash of unstyled content when restoring color mode from localStorage:

---
import ThemeScript from '@var-ui/astro/ThemeScript';
// or: import { ThemeScript } from '@var-ui/astro';
import { defaultThemeClassName } from '@var-ui/core';
---
<html class={defaultThemeClassName}>
  <head>
    <ThemeScript themeClass={defaultThemeClassName} />
  </head>
  <body>...</body>
</html>

Props:

  • themeClass (required) — theme class from @var-ui/core (e.g. defaultThemeClassName)
  • storageKey (optional) — localStorage key; defaults to 'theme-mode'

The inline boot script matches the Astro snippet in @var-ui/core README: it reads the stored mode, adds the theme class, and sets or removes data-color-mode on <html>. light and dark set the attribute. system and a missing value remove it so the page follows the OS.

ColorModeToggle

Self-contained segmented control for light/dark (and optionally system) mode. No React context required.

---
import ColorModeToggle from '@var-ui/astro/ColorModeToggle';
// or: import { ColorModeToggle } from '@var-ui/astro';
---
<ColorModeToggle />
<ColorModeToggle includeSystem appearance="labels" size="sm" />

Props match the React ColorModeToggle: includeSystem, appearance ('icons' | 'labels' | 'iconsAndLabels'), size, className, aria-label, and optional storageKey (default 'theme-mode').

Use the same storageKey on ThemeScript and ColorModeToggle so boot and toggle stay in sync.

Components

Import from the package barrel:

---
import { Button, Alert, Stack, Tabs } from '@var-ui/astro';
---

v0.1 ships a docs/content kit: layout primitives, feedback atoms, and content-site components (Button, Link, CodeBlock, Steps, Breadcrumbs, Tabs, Collapsible, …). Prop and variant names match @var-ui/react where an equivalent exists; use named slots instead of React children for structured regions.

Tabs

Tabbed panels with a small vanilla controller for click and keyboard selection (ArrowLeft/Right, Home/End). No React Aria.

The first tab panel is visible without JavaScript via the native hidden attribute; other panels start hidden.

---
import { Tabs } from '@var-ui/astro';
---
<Tabs tabs={[{ id: 'overview', label: 'Overview' }, { id: 'api', label: 'API' }]}>
  <Fragment slot="overview">
    <p>Overview content</p>
  </Fragment>
  <Fragment slot="api">
    <p>API reference</p>
  </Fragment>
</Tabs>

Props:

  • tabs (required) — { id: string; label: string }[]
  • defaultSelectedId (optional) — tab id selected on load; defaults to the first tab
  • className (optional)

Panel content uses named slots matching each tab id (e.g. slot="overview"). Pass defaultSelectedId to change which panel is shown before the client script runs.

Layout

Multi-pane page shell for header/footer bands and start/content/end zones. Static bindings only — same core recipes as @var-ui/react, named slots instead of compound props.

Interactive resize (useResizable + ResizeHandle) and responsive panel modes (overlay / hidden) require React; Astro ships the structural shell and styling only.

---
import {
  Layout,
  LayoutHeader,
  LayoutFooter,
  LayoutContent,
  LayoutPanel,
  Heading,
} from '@var-ui/astro';
---
<Layout padding="md">
  <LayoutHeader slot="header" hasDivider>
    <Heading level={3}>Explorer</Heading>
  </LayoutHeader>
  <LayoutPanel slot="start" side="start" width={200} hasDivider>Nav</LayoutPanel>
  <LayoutContent>Main content</LayoutContent>
  <LayoutPanel slot="end" side="end" width={280} hasDivider>Inspector</LayoutPanel>
</Layout>

Props mirror @var-ui/react where applicable, with these limitations:

  • LayoutPanel requires an explicit side="start" or side="end" — Astro has no layout area context.
  • Layout accepts contentWidth (px) to set the shell content-width CSS var on the root.
  • No automatic data-divider-header / data-divider-footer on the layout root — set hasDivider on LayoutHeader / LayoutFooter directly.

Collapsible

Expand/collapse panel built on native <details> / <summary> (no React Aria).

---
import { Collapsible } from '@var-ui/astro';
---
<Collapsible title="Show code" defaultExpanded={false}>
  <pre>…</pre>
</Collapsible>

v0.1 omits controlled isExpanded / onExpandedChange and CollapsibleGroup; use Accordion for multi-panel layouts or standalone Collapsible for a single panel.

Accordion

Multi-panel expand/collapse built on native <details> / <summary> with a small script for single-open mode, keyboard navigation, and optional collapsible={false}.

---
import {
  Accordion,
  AccordionItem,
  AccordionTrigger,
  AccordionPanel,
} from '@var-ui/astro';
---
<Accordion type="single">
  <AccordionItem id="billing" defaultExpanded>
    <AccordionTrigger>Billing</AccordionTrigger>
    <AccordionPanel>
      <p>Update payment method and view invoices.</p>
    </AccordionPanel>
  </AccordionItem>
  <AccordionItem id="shipping">
    <AccordionTrigger>Shipping</AccordionTrigger>
    <AccordionPanel>
      <p>Manage delivery addresses and preferences.</p>
    </AccordionPanel>
  </AccordionItem>
</Accordion>

AccordionItem also accepts a title prop instead of AccordionTrigger. Set defaultExpanded on each item for the initial open state. When variant="flush" is used on Accordion, pass variant="flush" to each AccordionItem as well.

Menu

Dropdown action menu (trigger button + popup list) with a small vanilla controller — no React Aria. Data-driven via sections, mirroring the React Menu.FromSections preset. The popover is positioned with CSS relative to the trigger (placement prop); no portaling or JS positioning.

---
import { Menu } from '@var-ui/astro';
---
<Menu
  triggerLabel="Actions"
  sections={[
    {
      label: 'File',
      items: [
        { id: 'new', label: 'New file', shortcut: '⌘N' },
        { id: 'open', label: 'Open…' },
        { id: 'save', label: 'Save', disabled: true },
      ],
    },
    {
      items: [
        { id: 'docs', label: 'Documentation', href: '/docs' },
        { id: 'delete', label: 'Delete', danger: true },
      ],
    },
  ]}
/>

Props:

  • sections (required) — { label?: string; items: MenuItemDefinition[] }[]. Items are { id, label, shortcut?, disabled?, danger?, href?, swatch? }; href renders a link that navigates natively, swatch renders a leading color dot (theme pickers). Sections are separated by a rule; label renders a section header.
  • triggerLabel — text for the default trigger button (a chevron icon is added).
  • aria-label — accessible name for the trigger; required when the trigger has no text.
  • menuLabel — accessible name for the menu list (defaults to triggerLabel / aria-label).
  • placement — top | bottom | start | end, optionally with an alignment ('bottom end'); flips when it does not fit (default 'bottom start').
  • defaultValue — the initially checked item id. Passing it (null = nothing checked yet) makes the menu a single choice: items render as menuitemradio with a check mark and choosing one checks it. Same as the React Menu.
  • className — applied to the menu root.
  • Trigger appearance accepts the same variant props as Button (tone, appearance, size, layout, elevated); defaults to an outline md button.

Slots:

  • trigger — custom trigger button content. Combine with layout="icon" and aria-label for icon-only triggers.
  • <item-id> — replaces the inner content of the item with that id (e.g. leading icons or swatches); trigger is a reserved slot name.

Behavior:

  • Opens on trigger click, ArrowDown/ArrowUp, or Enter/Space; closes on Escape, Tab, outside press, or item activation. In single selection mode the checked item receives initial focus.
  • Arrow keys, Home/End, and single-character typeahead move focus between items (including disabled items, which are focusable but not activatable).
  • On activation the root dispatches a bubbling var-ui:menu-action CustomEvent with event.detail.id; use initMenus() / getMenuController() from the package barrel for imperative control. controller.select(id) moves aria-checked in single mode (e.g. when the selection changes elsewhere).

Toast

Presentational toast markup for static docs or SSR previews:

---
import { Toast } from '@var-ui/astro';
---
<Toast tone="success" title="Saved" description="Your draft was stored." />

For live notification queues without React, mount a ToastRegion and call the imperative toast API from any client script:

---
import { ToastRegion } from '@var-ui/astro';
---
<ToastRegion placement="bottom-end" />

<button type="button" id="save-btn">Save</button>

<script>
  import { toast } from '@var-ui/astro';

  document.getElementById('save-btn')?.addEventListener('click', () => {
    toast.show({
      tone: 'success',
      title: 'Saved',
      description: 'Your draft was stored.',
    });
  });
</script>

toast.show(), toast.update(id, patch), toast.dismiss(id), and toast.dismissAll() mirror the React imperative API. toast() is shorthand for toast.show().

Interactivity ladder

Components climb only as far as needed — no React, no React Aria:

  1. Zero JS — styled markup + recipes.
  2. Native platform — <button>/<a>, <details>, semantic lists.
  3. Small vanilla TS — color mode, Tabs selection/keyboard, Menu; scripts enhance SSR markup.
  4. Zag.js (post–v0.1) — Dialog, Select, complex overlays.

Utilities

import { mergeProps, combine, cx } from '@var-ui/astro';

See @var-ui/core for theme tokens and component recipes used by Astro components.

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 @var-ui/astro

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229