Scan your whole stack
From OX Research Newsroom
Are you using dil-ui?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.0
dil-ui was last scanned on 29 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.0 LATEST | 29 Nov 2026 | 1 rule fired |
| 0.2.0-rc.2 | 29 Nov 2026 | 1 rule fired |
| 0.2.0-rc.1 | 27 Nov 2026 | 1 rule fired |
| 0.1.0 | 12 Oct 2026 | Not shown |
| 0.0.1 | 13 Aug 2026 | Not shown |
Findings for v0.2.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 code obtains a function through a computed property lookup whose key is not a plain literal, calls it, and then calls the value it returns. Obfuscated loaders use this double indirection to reach the Function constructor without its name appearing in the source. This is a code shape, not evidence of intent, and is shown to help review obfuscated code.
MEDIUMThe score describes 0.2.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A React component library built with TypeScript. Components are exported from the dil-ui package and grouped below by their source folder for easy browsing.
npm install dil-ui
See the release and installation guide for local tarball installs and versioned releases.
Import the library stylesheet once in your application entry point.
import "dil-ui/styles.css";
Components are available as named exports:
import { Button, Card } from "dil-ui";
function Example() {
return (
<Card>
<Button>Get started</Button>
</Card>
);
}
Component names below reflect the library's exported components; compound components are grouped together where applicable.
info, success, warning, danger) with automatic status/alert ARIA roles and theme-safe contrast tokens.Use a built-in theme (neobrutalism, glassmorphism, or retroterminal) with ThemeProvider, or pass a custom Theme object. To create a preset based on an existing one, copy its tokens and override the values you need:
import { ThemeProvider, themeRegistry, type Theme } from "dil-ui";
const base = themeRegistry.glassmorphism;
const oceanTheme: Theme = {
...base,
name: "ocean",
light: {
...base.light,
colors: { ...base.light.colors, primary: "#075985" },
foregrounds: { ...base.light.foregrounds, primary: "#FFFFFF" },
},
dark: {
...base.dark,
colors: { ...base.dark.colors, primary: "#7DD3FC" },
foregrounds: { ...base.dark.foregrounds, primary: "#000000" },
},
};
<ThemeProvider theme={oceanTheme} mode="system">{/* app */}</ThemeProvider>;
The Theme type and built-in themeRegistry are exported from dil-ui. Custom themes need both light and dark tokens and can also be passed to ThemeScope. Use useTheme and useThemeTokens to access the active theme within components.
ThemeProvider and ThemeScope include theme tokens in the server HTML. Explicit light and dark modes render their own tokens immediately. On the server and during hydration, system starts with light tokens. It follows the browser preference after hydration and updates when that preference changes.
ThemeScope provides its preset and mode to useTheme and useThemeTokens inside the scope. Dialog, Popover, and Tooltip use the nearest theme. A custom portal target keeps its placement and receives the source theme tokens when it belongs to a different scope.
The optional ThemeTokens.foregrounds entries pair text and icons with their corresponding solid fills (--dil-color-*-foreground), while ThemeTokens.textColors provides WCAG AA (>= 4.5:1) surface-safe accent text tokens (--dil-color-*-text) for headings, links, and inline accents placed directly on --dil-color-background or --dil-color-surface. Built-in presets also emit --dil-color-surface-subtle, --dil-font-heading, --dil-font-mono, --dil-effect-backdrop-blur, --dil-effect-page-background, and resolved data-dil-theme="<name>" / data-dil-mode="light|dark" attributes on ThemeProvider and ThemedPortal. An omitted foreground or text-accent entry falls back to the theme's colors.text value.
Give an icon-only IconButton a name with aria-label or aria-labelledby. Open the showcase's Actions section to compare filled, transparent, and disabled controls through the preset and color-mode controls.
npm install
npm run dev
npm test
npm run build
npm pack builds the library and verifies the package's JavaScript, CSS and declaration entry points. Recharts is installed as a package dependency. If you load the UMD bundle directly from a script tag, load Recharts first so the Recharts global is available.
The package is pre-1.0, so component APIs may change as the library develops.
Import dil-ui/styles.css once. The package scopes its resets and generated utilities to dil-ui component markup. It uses private names for its Tailwind utility properties and animations. Components can render outside ThemeProvider, and your app's Tailwind utilities can override component defaults through className.
The showcase compiles its own page styles. They are separate from the published stylesheet.
Import dil-ui/styles.css from your root layout. Import interactive dil-ui components and hooks from a client component with a "use client" directive. The server page can render that client component.
The packed package was verified in a Next.js 16.4.6 production build with React 19.3.0, including prerendered content, stylesheet loading and a hydrated button interaction.
Run npm run dev to browse the examples in src/examples. The showcase lets you select a theme preset and color mode, compare unthemed examples, and open a navbar and sidebar demo.
Open Portfolio patterns (?example=portfolio) to try section navigation and terminal commands. Enter help, use the arrow keys to recall commands, and enter cv to preview a dialog. On mobile, open the navigation menu with Enter and dismiss it with Escape.
Run npm run build:showcase to create a static site in dist-showcase/. Run npm run preview:showcase to preview that output locally. A static host can serve that directory, including when hosted under a subdirectory. The library package uses dist/.
See the readiness review and release plan.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.