@komocode/freeui
v0.1.0
Published
Matte black React controls with electric blue highlights and React, SwiftUI, and GPUI components.
Maintainers
Readme
FreeUI
Matte charcoal. Electric blue. Precise controls.
A component kit for React, SwiftUI, and GPUI — with shared design tokens and native implementations.
Installation · Use the components · Native libraries · Compatibility
At a glance
| | Included | | :--- | :--- | | React | 77 interactive component specimens, source previews, and registry entries | | SwiftUI + GPUI | 11 core control families implemented independently in each framework | | Materials | Matte charcoal surfaces, electric blue active states, and self-hosted Manrope for React | | Precision input | Sliders and knobs with numeric entry, keyboard controls, modifier speed, and reset | | Shared foundations | CSS, Swift, and Rust tokens generated from one source; shared numeric fixtures | | Installation | React npm package or source files; native Swift and Rust dependencies |
Explore the live showcase and documentation.
Installation
React
Install the library in your own React app:
npm install @komocode/freeui react@^19 react-dom@^19Import the compiled stylesheet once in your application entry point. It includes the FreeUI theme, Tailwind utilities and preflight, and the bundled Manrope font.
import '@komocode/freeui/styles.css';
import { FreeButton, FreeSlider } from '@komocode/freeui';
import { Dialog, DialogContent } from '@komocode/freeui/dialog';The root export provides the freeui-* core controls. All 77 React components are available by filename as subpath imports. npm contains the React library; native installation remains described below.
Use FreeUI inside your existing application and build it with your application's normal tooling. FreeUI has no runtime server requirement. For source-based use, copy the source below or build a local npm package.
Copy the source
Copy the modules you need and their local dependencies directly from this repository:
Requires React 19, TypeScript, and Tailwind CSS 4. Keep the @/* alias pointing at your project root or update imports. Import src/freeui.css in your application's CSS entry point and copy the fonts to public/fonts. Install the dependencies used by your selected modules from package.json. showcase/src/theme.css belongs to the development showcase. Preserve attribution headers and license notices.
Use the components
import { useState } from 'react';
import { FreeButton, FreeSlider } from '@komocode/freeui';
export function Mixer() {
const [active, setActive] = useState(false);
const [gain, setGain] = useState(0.5);
return (
<div>
<FreeButton active={active} onClick={() => setActive(!active)}>
Monitor
</FreeButton>
<FreeSlider value={gain} onValueChange={setGain} label="Gain" />
</div>
);
}If you copied source files, import from your local paths instead, such as @/components/ui/freeui-button and @/components/ui/freeui-slider. See the installation guide for more detail.
Native libraries
SwiftUI and GPUI each provide 11 core families: button, slider, knob, menu, toolbar, action bar, sub bar, titlebar content strip, inspector, disclosure, and statusbar.
These are native implementations with framework-specific APIs. The other 66 React entries and advanced React variants are outside native coverage. GPUI also exposes themed upstream standard controls under freeui::components.
| Framework | Requirements | Add to your app |
| :--- | :--- | :--- |
| SwiftUI | Swift 6 · macOS 14+ or iOS 17+ | Add native/swiftui as a local Swift Package and link FreeUI. Guide |
| GPUI | Rust 1.98+ · Xcode on macOS | Add native/gpui as a Cargo path dependency. Guide |
Verification boundary: native previews show built macOS apps. iOS SDK typechecking is separate from device validation; Linux and Windows GPUI builds are unverified. See full compatibility notes.
Development
See CONTRIBUTING.md for the optional local showcase, registry tooling, package builds, tests, and publishing. Those workflows are for developing FreeUI.
The website and demos live in showcase/. Component sources, shared fonts, and installation documentation remain separate from the website.
CI runs React and packaging checks on Node.js 20 and 24. Shared tokens live in design/tokens.json; numeric fixtures live in design/numeric-cases.json. Generated build output and downloads are excluded from Git.
The original showcase/public/js/ui.js API and its 24 vanilla controls remain available in the vanilla kit, independently of React.
License & attribution
See LICENSE for FreeUI's terms and THIRD_PARTY_LICENSES.md for shadcn attribution, library provenance, and Manrope's font license. Preserve the included notices when copying or installing components.
The source review documents provenance evidence and remaining legal-review limits.
