HD-EUI Core is an elite-tier, TypeScript-native React component library engineered for high-stakes enterprise environments. While modern design trends favor excessive whitespace, HD-EUI Core is built for the Power User—providing a hyper-dense, data-rich experience inspired by the Zendesk Compact Utilitarian design system.
Explore the Interactive Documentation (Storybook) →
In complex B2B applications, admin panels, and real-time monitoring systems, "white space" is often wasted space. HD-EUI Core optimizes every pixel to maximize information throughput without compromising cognitive clarity.
- Hyper-Density: Standardized micro-spacing (
2px-4pxgaps) and tight padding (p-1) to maximize screen real estate. - Structured Boundaries: Hard
1pxborders (#d8dcde) replace soft shadows, providing immediate visual sectioning for complex data sets. - Micro-Typography: A precision-tuned typographic scale (
8pxto11px) designed for readability at small sizes.
- 🚀 33+ Production-Ready Components: A comprehensive suite covering Layout, Forms, Data Display, and Navigation.
- 🎨 Tailwind CSS Native: Fully integrated with Tailwind's utility-first engine for zero-overhead styling.
- 🛡️ Strict TypeScript Excellence: 100% type-safe with exported interfaces for every component, prop, and event handler.
- ♿ Enterprise Accessibility: Built-in ARIA support, keyboard navigation, and high-contrast focus states.
- 📦 Ultra-Lightweight: ~20KB gzipped bundle size with full tree-shaking support.
- 🌓 Professional Monochrome Palette: A sophisticated slate-and-azure palette designed for long-duration focus.
- 🌑 Native Dark Mode: Full support for dark themes with a specialized "Deep Slate" palette.
| Token | Hex | Usage |
|---|---|---|
| Primary Text/Actions | #2f3941 |
Main text, primary buttons, active states. |
| Hover State | #1f252a |
Hover backgrounds for primary actions. |
| Borders/Dividers | #d8dcde |
Hard 1px borders for sectioning. |
| Brand/Focus/Active | #1f73b7 |
Focus rings, links, brand accents. |
| Muted/Secondary | #87929d |
Secondary text, disabled states, icons. |
| Background (Light) | #ffffff |
Main workspace background. |
| Background (Dark) | #f8f9fa |
Sidebar and header backgrounds. |
| Level | Size | Weight | Line Height |
|---|---|---|---|
| Header | 11px |
Bold (700) | 1.2 |
| Body | 10px |
Regular (400) | 1.3 |
| Muted | 9px |
Regular (400) | 1.2 |
| Micro | 8px |
Regular (400) | 1.1 |
| Mono | 10px |
Monospace | 1.2 |
npm install @amafjarkasi/hd-eui-coreEnsure your project has the following installed:
npm install react react-dom tailwindcss lucide-react clsxTo unlock the full power of the HD-EUI design system, update your tailwind.config.js:
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: [
"./src/**/*.{js,ts,jsx,tsx}",
"./node_modules/@amafjarkasi/hd-eui-core/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
hd: {
primary: "#2f3941",
"primary-hover": "#1f252a",
border: "#d8dcde",
focus: "#1f73b7",
muted: "#87929d",
"bg-light": "#ffffff",
"bg-dark": "#f8f9fa",
// Dark Mode Tokens
"dark-bg": "#1f252a",
"dark-bg-alt": "#2f3941",
"dark-border": "#3e4b55",
"dark-text": "#d1d5db",
},
},
fontSize: {
header: ["11px", { lineHeight: "1.2", fontWeight: "700" }],
body: ["10px", { lineHeight: "1.3" }],
muted: ["9px", { lineHeight: "1.2" }],
micro: ["8px", { lineHeight: "1.1" }],
mono: ["10px", { fontFamily: "monospace", lineHeight: "1.2" }],
},
spacing: {
tight: "2px",
ultra: "4px",
micro: "1px",
},
},
},
plugins: [],
};import { Button, Card, Badge } from '@amafjarkasi/hd-eui-core';
const App = () => (
<Card title="System Status" footer="v1.0.4">
<div className="flex items-center gap-ultra">
<Badge variant="success">Online</Badge>
<span className="text-body text-hd-primary">Core Engine Active</span>
</div>
<Button variant="primary" size="sm" className="mt-2">Reboot</Button>
</Card>
);import { Table, Badge } from '@amafjarkasi/hd-eui-core';
const columns = [
{ key: 'id', header: 'ID', width: '60px' },
{ key: 'user', header: 'User', sortable: true },
{ key: 'role', header: 'Role', render: (val) => <Badge>{val}</Badge> }
];
const data = [
{ id: '001', user: 'Amaf J.', role: 'Admin' },
{ id: '002', user: 'John D.', role: 'Editor' }
];
<Table
data={data}
columns={columns}
striped
onSort={(key, dir) => console.log(`Sorting ${key} by ${dir}`)}
/>| Category | Components | Description |
|---|---|---|
| Layout | Card, CardGrid, Modal, Sidebar, Accordion, Tabs, DraggablePanel |
Structural components for organizing complex, multi-pane views. |
| Form | Button, Input, Form, Select, Checkbox, Radio, Slider, Dropdown, MultiSelect, DateRangePicker |
High-density input controls with validation and keyboard navigation. |
| Data Display | Table, DataGrid, Tree, Badge, Avatar, List, CodeEditor, Calendar, Timeline |
Optimized for high-throughput information visualization and audit logs. |
| Feedback | Alert, AlertDialog, Toast, Notification, Spinner, ProgressBar, Skeleton, Tooltip, Popover |
Contextual messaging, loading states, and non-blocking information. |
| Navigation | Breadcrumb, Pagination, Stepper, Navbar |
Compact wayfinding for deep application hierarchies. |
HD-EUI Core is built on design tokens. You can import these tokens directly into your own custom components to maintain visual consistency across your entire application:
import { colors, spacing, fontSize } from '@amafjarkasi/hd-eui-core';
const CustomPanel = () => (
<div style={{
backgroundColor: colors["bg-dark"],
padding: spacing.tight,
border: `1px solid ${colors.border}`
}}>
<h1 style={{ fontSize: fontSize.header }}>Custom Header</h1>
<p style={{ fontSize: fontSize.body }}>Integrated with HD-EUI tokens.</p>
</div>
);If you wish to contribute or modify the library:
# Clone the repository
git clone https://github.com/amafjarkasi/hd-eui-core.git
# Install dependencies
npm install
# Start Storybook for interactive development
npm run storybook
# Build the library for production
npm run build
# Run unit tests with Jest
npm testWe are building the future of high-density UI. We welcome all contributions!
- Fork the repository.
- Create a feature branch (
git checkout -b feature/amazing-component). - Commit your changes (
git commit -m 'Add some amazing component'). - Push to the branch (
git push origin feature/amazing-component). - Open a Pull Request.
Please see CONTRIBUTING.md for more details.
Distributed under the MIT License. See LICENSE for more information.
- Issues: GitHub Issue Tracker
- Discussions: GitHub Discussions
- Security: See SECURITY.md for reporting vulnerabilities.
Built with ❤️ by amafjarkasi. If you find this library useful, please give it a ⭐ on GitHub!