freshcrate
Skin:/
Home > Frameworks > david-ai

david-ai

David AI is a free and open-source collection of customizable, production-ready UI components built with Tailwind CSS.

Why this rank:Strong adoptionHealthy release cadence

Description

David AI is a free and open-source collection of customizable, production-ready UI components built with Tailwind CSS.

README

Note

This repository was previously named tailwind-starter-kit and has been renamed to david-ai to better reflect its purpose and direction.

David UI - Free Tailwind CSS Components Library

David UI is a free and open-source collection of customizable, production-ready UI components built with Tailwind CSS. Designed to be developer-friendly and performance-focused, David UI streamlines the creation of modern, visually appealing interfaces, helping you deliver high-quality user experiences faster.

David UI Thumb

npm version npm downloads

Table of Contents

Getting Started

Learn how to use david-ai components to quickly and easily create elegant and flexible pages using Tailwind CSS.

david-ai is working with Tailwind CSS classes and you need to have Tailwind CSS installed on your project - Tailwind CSS Installation.

Using with CDN

You can include david-ai via a CDN and initialize alerts globally in the browser. Add the following script to your HTML file:

<script
  src="https://cdn.jsdelivr.net/gh/creativetimofficial/david-ai@1.0.6/packages/dist/david-ai.min.js"
  defer
></script>

Basic Usage NPM

npm i david-ai

After installing, you can use the components in your project across different frameworks:

import { initAlert } from "david-ai";

// Initialize alerts
initAlert();

Using with Global Access

If you prefer, you can use the DavidAI global object instead of directly importing initAlert:

import * as DavidAI from "david-ai";

// Initialize alerts
DavidAI.initAlert();

TypeScript

David AI components can be used in two ways - through simple ESM imports or programmatically with TypeScript support. Here's how to use both approaches:

Simple ESM Import

The quickest way to use components is through direct ESM imports:

import { initAlert } from "david-ai";

// Initialize alerts
initAlert();

Programmatic Usage with TypeScript

For more control and type safety, you can use the programmatic approach with full TypeScript support:

This programmatic approach provides:

  • Full TypeScript support
  • Fine-grained control over component behavior
  • Access to component instance methods
  • Proper cleanup on unmount
import { Accordion } from "david-ai";
import type { AccordionConfig, IAccordion } from "david-ai";

document.addEventListener("DOMContentLoaded", () => {
  const container = document.getElementById("accordion-container");

  if (container) {
    const config: AccordionConfig = {
      exclusive: true,
      allOpen: false,
    };

    const accordion: IAccordion = new Accordion(container, config);

    // Handle external button controls
    const showAllButton = document.getElementById("show-all");
    const hideAllButton = document.getElementById("hide-all");
    const toggleFirstButton = document.getElementById("toggle-first");

    showAllButton?.addEventListener("click", () => {
      accordion.showAll();
    });

    hideAllButton?.addEventListener("click", () => {
      accordion.hideAll();
    });

    toggleFirstButton?.addEventListener("click", () => {
      const firstButton = document.getElementById("button-1") as HTMLElement;
      if (firstButton) {
        accordion.toggle(firstButton);
      }
    });

    // Cleanup on unmount
    window.addEventListener("unload", () => {
      accordion.cleanup();
    });
  }
});

For detailed usage of each component, check out their respective documentation:

Congratulations 🥳, you did it, now you're ready to use david-ai.

Documentation

David UI’s documentation includes code snippets, previews, and detailed usage instructions for each component, ensuring a smooth implementation process.

Visit the David UI Docs to explore the entire library.

Explore Components

accordion alert avatar
Accordion Alert Avatar
typography breadcrumbs button
Badge Breadcrumbs Button
select card checkbox
Button Group Card Checkbox
chip tooltip menu
Chip Collapse Dropdown
typography icon-button typography
Footer Icon Button Image
input tooltip dialog
Input List Modal
navbar pagination popover
Navbar Pagination Popover
progress-bar radio-button tooltip
Progress Bar Radio Button Rating Bar
tooltip tooltip tooltip
Sidebar Spinner Stepper
switch typography tabs
Switch Table Tabs
textarea tooltip typography
Textarea Tooltip Typography
tooltip tooltip
Timeline Video

Community

  • We're excited to see the community adopt David AI, raise issues, and provide feedback.
  • Whether it's a feature request, bug report, or a project to showcase, please get involved!

License

Copyright (c) 2020-2025 Creative Tim

David UI is distributed under the MIT License, providing freedom and flexibility for all projects.

Older Version

You can find the older version of the David UI in the tailwind-starter-kit branch.

Contribute & Feedback

We welcome contributions and feedback! If you have suggestions, encounter issues, or want to propose new components, feel free to open an issue or submit a pull request on our repository. Your input helps make David UI better for everyone.


Build better, faster, and smarter with David UI. Explore the documentation and start leveraging our components to deliver polished, user-friendly interfaces with ease.

Release History

VersionChangesUrgencyDate
v1.0.6## [1.0.6] 2024-12-30 ### Added for NPM - Added TypeScript support for all JavaScript components - Accordion component rewritten in TypeScript - Added AccordionConfig interface and IAccordion interface - Added programmatic Accordion class implementation - Gallery component rewritten in TypeScript - Stepper component rewritten in TypeScript - Added StepperConfig interface and IStepper interface - Added programmatic Stepper class implementation - Popover compoLow1/8/2025
v1.0.5## [1.0.5] 2024-12-24 ### Added for NPM - Added new functions for Accordion, Gallery and Stepper - Added cleanup functions for Accordion, Gallery and StepperLow12/24/2024
v1.0.4## [1.0.4] 2024-12-19 ### Added for NPM - Fixed Cleanup functions `clear()` replaced with `delete()` - Global init for all components via `initDavidAI()` - Fixed Popover custom content animation breakingLow12/19/2024
v1.0.3## [1.0.3] 2024-12-19 ### Added for NPM - Added for all components - Init functions on DOMContentLoaded - MutationObserver to reinitialize the components when new elements are added Low12/19/2024
v1.0.2## [1.0.2] 2024-12-19 ### Added for NPM - All components are now updated with weakset - to prevent memory leaks - to prevent multiple instances of the same component from being created - duplicate instances of the same component will be ignored - will initialize the components only onceLow12/19/2024
v1.0.1## [1.0.1] 2024-12-18 ### Added for NPM - Added export for esmLow12/19/2024
1.0.0-betaRelease 1.0.0-betaLow12/14/2024
1.1.0## [1.1.0] 2021-03-23 ### Bug fixing - https://github.com/creativetimofficial/tailwind-starter-kit/issues/19 - https://github.com/creativetimofficial/tailwind-starter-kit/issues/16 - https://github.com/creativetimofficial/tailwind-starter-kit/issues/10 - Thanks to this comment https://github.com/creativetimofficial/tailwind-starter-kit/issues/10#issuecomment-730641008 from @ryanwinchester ### Major style changes - The upgrade of Tailwind CSS from version 1 to version 2, will cause multiLow3/23/2021

Dependencies & License Audit

Loading dependencies...

Similar Packages

codexmasterMaster Codex with this Framework file system + Prompt Generator consisting of 32 markdown files that will set such strict constraints and rules for Codex that its output is nearly flawless. Files for:prompt-generator
ai-dev-assistant-frameworkA plug-and-play framework for AI-assisted software development, enhancing context-aware collaboration in complex codebases. Perfect for tools like GitHub Copilot. 🐙✨main@2026-06-06
einoThe ultimate LLM/AI application development framework in Go.v0.9.4
neuron-php-docNeuron PHP Framework documentationmain@2026-06-04
delight-ai-agentSendbird AI-Agent main@2026-06-02

More in Frameworks

langchainThe agent engineering platform
deer-flowAn open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message gateway, it handles different levels of ta
tqdmFast, Extensible Progress Meter
simBuild, deploy, and orchestrate AI agents. Sim is the central intelligence layer for your AI workforce.