
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
@hennge/ui-react
Advanced tools
A collection of highly accessible React components implementing the HENNGE One Design System.
A collection of highly accessible React components implementing the HENNGE One Design System
HENNGE UI React is strategically built on industry-leading accessibility foundations:
This approach allows our library to deliver a polished visual layer atop these battle-tested accessibility implementations. By leveraging these foundations, HENNGE applications can more easily achieve WCAG 2.1 Level AA compliance.
Benefits of this architecture include:
pnpm add @hennge/ui-react
Import the CSS in your application entry point:
import "@hennge/ui-react/css";
Although this stylesheet is produced using Tailwind CSS, you DO NOT need Tailwind CSS in your project to use this library.
import { Button } from "@hennge/ui-react";
function MyComponent() {
return (
<Button intent="primary" size="medium">
Click Me
</Button>
);
}
For projects using Tailwind CSS V4, you can integrate HENNGE UI React's styles:
pnpm add -D tailwindcss-react-aria-components
@import "tailwindcss";
@import "@hennge/ui-react/tailwindcss";
@source "../node_modules/@hennge/ui-react";
@source
directive compiles HENNGE UI React with your project's Tailwind CSS for optimal bundle size.
For more granular control, you can selectively import specific theme components:
@import "tailwindcss";
/* Removes most colors shipped by Tailwind CSS */
@import "@hennge/ui-react/tailwindcss/unset-colors.css";
/* Imports the default HENNGE One Design System color theme, including fonts */
@import "@hennge/ui-react/tailwindcss/theme-hennge-default.css";
/* Imports the HENNGE One Identity Edition color theme */
@import "@hennge/ui-react/tailwindcss/theme-hennge-identity.css";
/* Imports the HENNGE One DLP Edition color theme */
@import "@hennge/ui-react/tailwindcss/theme-hennge-dlp.css";
/* Imports the HENNGE One Cybersecurity Edition color theme */
@import "@hennge/ui-react/tailwindcss/theme-hennge-cybersecurity.css";
/* Add utility classes used in HENNGE UI React */
@import "@hennge/ui-react/tailwindcss/utilities.css";
/* Add Tailwind CSS support for React Aria Components */
@plugin "tailwindcss-react-aria-components";
/* Compile Tailwind CSS classes used in HENNGE UI React */
@source "../node_modules/@hennge/ui-react";
HENNGE UI React requires the following font packages for proper display:
pnpm add @fontsource-variable/noto-sans-jp @fontsource-variable/noto-sans-mono
Import the fonts in your application entry point:
import "@fontsource-variable/noto-sans-jp";
import "@fontsource-variable/noto-sans-mono";
For applications requiring Chinese language support:
# Traditional Chinese (zh-Hant-TW)
pnpm add @fontsource-variable/noto-sans-tc
# Simplified Chinese (zh-Hans-CN)
pnpm add @fontsource-variable/noto-sans-sc
And import in your application:
import "@fontsource-variable/noto-sans-tc";
import "@fontsource-variable/noto-sans-sc";
Complete documentation of all components is available in Storybook:
fnm install
This uses the .nvmrc
file in the project root.pnpm build
Builds the package for production, including JavaScript, CSS, and themes.
pnpm build
pnpm dev
Starts the development mode with file watching enabled.
pnpm dev
pnpm typecheck
Runs TypeScript's type checking to ensure there are no type errors.
pnpm typecheck
pnpm lint
Lints the codebase using Biome.
pnpm lint
pnpm test
Runs the test suite using Vitest.
pnpm test
pnpm icons
Compiles SVG files from the /svg
folder into React components. This script automates the SVG-to-React conversion process, ensuring consistent and optimized icon components.
pnpm icons
The SVG icon workflow follows these steps:
SVG files are organized in the /svg
directory with specific naming conventions:
/icon
, /fileIcon
)/fileIcon/csv.svg
will be compiled to /src/FileIconCsv.tsx
/icon/account.svg
will be compiled to /src/IconAccount.tsx
The compiler:
Importing generated icons:
import { IconAccount } from "@hennge/ui-react";
function App() {
return <IconAccount />;
}
New icons should be sourced from the HENNGE Design System Figma file:
/svg
pnpm icons
to generate the React componentspnpm themes
Converts color themes from hexadecimal format to P3 color space using OKLCH syntax. This script enhances color rendering on modern displays while maintaining backward compatibility.
pnpm themes
The theme workflow involves:
Theme source files are stored in /src/themes-hex/
directory in standard hexadecimal format:
theme-hennge-default.css
theme-hennge-identity.css
theme-hennge-dlp.css
theme-hennge-cybersecurity.css
The compiler:
/src/themes/
directoryFinally, during the build process:
This process is typically only needed when updating the design system colors or adding new themes. Most developers won't need to run this script regularly.
A typical development workflow for this package might look like this:
Start the development mode with file watching enabled:
pnpm dev
Make changes to the source code in the /src
directory
Verify type correctness:
pnpm typecheck
Run tests to ensure functionality:
pnpm test
Lint your code to ensure consistency:
pnpm lint
Build the package for production:
pnpm build
Create a tarball for testing with:
pnpm pack
This generates a .tgz
file that can be installed in other projects to verify the package works correctly.
When testing in a monorepo setup, there are additional considerations for handling internal dependencies like @hennge/ui-core
. Yalc provides an excellent solution for this scenario.
Yalc acts as a local package repository, making it easy to share local packages across projects without publishing to a registry. It's especially useful for testing packages with internal dependencies like our monorepo structure.
Installation:
# Install yalc globally
pnpm add -g yalc
Publishing and using packages:
# In ui-core directory
pnpm build
yalc publish # Makes ui-core available in the local yalc store
# In ui-react directory
yalc add @hennge/ui-core # Adds the local ui-core as a dependency
pnpm install
pnpm build
yalc publish # Makes ui-react available in the local yalc store
# In your test project
yalc add @hennge/ui-react # Adds the local ui-react as a dependency
pnpm install
Updating packages during development:
# After making changes to ui-core
pnpm build
yalc push # Updates all projects using this package
# After making changes to ui-react
pnpm build
yalc push # Updates all projects using this package
Removing yalc dependencies when done:
# In your test project
yalc remove --all
pnpm install # Restore regular dependencies
This workflow allows you to test your changes in a real application context without publishing to npm or dealing with complex manual extractions.
Apache-2.0 - see LICENSE for details.
FAQs
A collection of highly accessible React components implementing the HENNGE One Design System.
The npm package @hennge/ui-react receives a total of 318 weekly downloads. As such, @hennge/ui-react popularity was classified as not popular.
We found that @hennge/ui-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.