Skip to content

geckoui/GeckoUI

Repository files navigation

Gecko UI

Gecko UI

The only thing our Gecko 🦎 eats is bugs! 🐛

📚 Documentation: Gecko

Installation

npm install @geckoui/geckoui
# or
pnpm add @geckoui/geckoui
# or
yarn add @geckoui/geckoui

Install react-hook-form for form components

npm install react-hook-form

# or
pnpm add react-hook-form

# or
yarn add react-hook-form

Quick Start

1. Import Styles

Import the component styles in your app:

import "@geckoui/geckoui/styles.css";

If you use tailwindcss, make sure to import the css inside layer directive to correctly override the styles:

@import "tailwindcss";

@layer components {
  @import "@geckoui/geckoui/styles.css";
}

2. Use Components

import { Alert, Button, Input } from "@geckoui/geckoui";

function App() {
  return (
    <div>
      <Button variant="contained" color="primary">
        Click me
      </Button>

      <Input placeholder="Enter your name" />

      <Alert variant="success" title="Operation completed successfully!" />
    </div>
  );
}

Theming

GeckoUI uses OKLCH color values with CSS custom properties (--color-*) powered by Tailwind CSS v4. You can override colors using any CSS color format — oklch, hex, rgb, hsl, etc.

Dark Mode

Add the .dark class to your root element:

<div className="dark">
  <App />
</div>

Customizing Colors

Override CSS variables to match your brand:

:root {
  --color-primary-500: oklch(0.65 0.24 330);
  --color-primary-600: oklch(0.55 0.22 330);

  /* hex works too */
  --color-primary-700: #6d28d9;
}

Import after the base styles:

import "@geckoui/geckoui/styles.css";

import "./my-theme.css";

Advanced Usage

Custom Styling with Data Attributes

Components use data-* attributes for variant/state styling:

/* Target specific variants */
.GeckoUIButton[data-variant="filled"][data-color="primary"] {
  /* Your custom styles */
}

.GeckoUIInput__input {
  /* Style the inner input element */
}

TypeScript

All components are fully typed. Import types as needed:

import type { ButtonProps, InputProps } from "@geckoui/geckoui";

AI Skills

Install the GeckoUI skill to help AI assistants (Claude Code, etc.) generate accurate component code and themes:

npx skills add GeckoUI/skills

The skill provides component API references, theming variables, and class name mappings so AI agents can generate correct GeckoUI code without hallucination.

License

This project is licensed under the MIT License.

Support

For issues and feature requests, please visit our @geckoui/geckoui.

About

Gecko UI -- Flexible, powerful and focus on DX for developers.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors