
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
earthling-ui
Advanced tools
A modern, themeable React component library built with TypeScript, Tailwind CSS, and a suite of CLI tools to scaffold projects quickly.
A modern, themeable React component library built with TypeScript, Tailwind CSS, and a suite of CLI tools to scaffold projects quickly.
⚠️ Alpha Status: This project is in active development. APIs and features may change between releases.
apps/*
)apps/*
)packages/*
)packages/*
)Install Earthling UI via Bun:
bun add earthling-ui
Current components:
Button
: Versatile button with filled, outline, and ghost variantsCard
: Container component for grouping related contentInput
: Text input field with various states and validationTextarea
: Multi-line text inputThemeSwitcher
: Toggle between light and dark themesEach component supports:
import { Button } from "earthling-ui/button";
function App() {
return (
<div>
<Button material="filled" scheme="primary" size="md">
Click me
</Button>
</div>
);
}
Earthling UI supports light, dark, and system themes through data attributes:
/* Import required styles */
@import "tailwindcss";
@import "earthling-ui";
@import "earthling-ui/theme/dark";
/* Apply themes based on data-theme attribute */
@layer base {
:root[data-theme="dark"] {
@apply theme-dark;
}
:root[data-theme="system"] {
@media (prefers-color-scheme: dark) {
@apply theme-dark;
}
}
}
// Manual theme control
document.documentElement.setAttribute("data-theme", "dark"); // or 'light' or 'system'
This is a monorepo managed with Bun workspaces. Key packages:
packages/earthling-ui
: The main UI component libraryapps/pwa
: Demo/documentation site (work in progress)# Install dependencies
bun install
# Build the UI library and watch for changes
cd packages/earthling-ui
bun run dev
# Run the demo site
cd apps/pwa
bun run dev
MIT © Steven Frady
FAQs
A modern, themeable React component library built with TypeScript, Tailwind CSS, and a suite of CLI tools to scaffold projects quickly.
We found that earthling-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.