{"id":28583832,"url":"https://github.com/keenthemes/ktui","last_synced_at":"2026-03-04T09:31:23.020Z","repository":{"id":290731345,"uuid":"975378258","full_name":"keenthemes/ktui","owner":"keenthemes","description":"Open-source collection of customizable UI components for Tailwind CSS and vanilla JavaScript","archived":false,"fork":false,"pushed_at":"2026-03-03T05:58:47.000Z","size":2556,"stargazers_count":129,"open_issues_count":22,"forks_count":21,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-03-03T09:29:13.480Z","etag":null,"topics":["components","javascript","keenthemes","metronic","shadcn-ui","tailwindcss","typescript","ui","vanilla-js"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keenthemes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-30T08:08:30.000Z","updated_at":"2026-03-03T05:58:51.000Z","dependencies_parsed_at":"2025-11-29T06:09:55.385Z","dependency_job_id":null,"html_url":"https://github.com/keenthemes/ktui","commit_stats":null,"previous_names":["keenthemes/ktui"],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/keenthemes/ktui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenthemes%2Fktui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenthemes%2Fktui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenthemes%2Fktui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenthemes%2Fktui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keenthemes","download_url":"https://codeload.github.com/keenthemes/ktui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenthemes%2Fktui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30077069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["components","javascript","keenthemes","metronic","shadcn-ui","tailwindcss","typescript","ui","vanilla-js"],"created_at":"2025-06-11T06:00:18.344Z","updated_at":"2026-03-04T09:31:23.010Z","avatar_url":"https://github.com/keenthemes.png","language":"TypeScript","funding_links":[],"categories":["Libs and Components"],"sub_categories":[],"readme":"# KTUI\n\n[🌐 Visit the Official Website](https://ktui.io)\n\n**KTUI** is a modern, modular JavaScript/TypeScript UI library for building fast, interactive, and beautiful web applications. KTUI offers a comprehensive suite of DOM-based UI components and utilities, designed for flexibility, accessibility, and seamless integration with any web project.\n\n---\n\n## Installation\n\nBefore you begin, ensure you have installed [Node.js](https://nodejs.org) and [Tailwind CSS](https://tailwindcss.com/), and have a working Tailwind based project.\n\n### Install via NPM\n\n```bash\nnpm i @keenthemes/ktui\n```\n\n---\n\n## Variables\n\nInclude KTUI variables in your Tailwind entry file `style.css`:\n\n```css\n/** Colors **/\n:root {\n    /** Base Colors **/\n    --background: oklch(1 0 0); /* --color-white */\n    --foreground: oklch(14.1% 0.005 285.823); /* --color-zinc-950 */\n    --card: oklch(1 0 0); /* --color-white */\n    --card-foreground: oklch(14.1% 0.005 285.823); /* --color-zinc-950 */\n    --popover: oklch(1 0 0); /* --color-white */\n    --popover-foreground: oklch(14.1% 0.005 285.823); /* --color-zinc-950 */\n    --primary: oklch(62.3% 0.214 259.815); /* --color-blue-500 */\n    --primary-foreground: oklch(1 0 0); /* --color-white */\n    --secondary: oklch(96.7% 0.003 264.542); /* --color-zinc-100 */\n    --secondary-foreground: oklch(21% 0.006 285.885); /* --color-zinc-900 */\n    --muted: oklch(96.7% 0.003 264.542); /* --color-zinc-100 */\n    --muted-foreground: oklch(55.2% 0.016 285.938); /* --color-zinc-500 */\n    --accent: oklch(96.7% 0.003 264.542); /* --color-zinc-100 */\n    --accent-foreground: oklch(21% 0.006 285.885); /* --color-zinc-900 */\n    --destructive: oklch(57.7% 0.245 27.325); /* --color-red-600 */\n    --destructive-foreground: oklch(1 0 0); /* --color-white */\n    --mono: oklch(14.1% 0.005 285.823); /* --color-zinc-950 */\n    --mono-foreground: oklch(1 0 0);  /* --color-white */\n\n    /** Base Styles **/\n    --border: oklch(94% 0.004 286.32); /* between --color-zinc-100 and --color-zinc-200 */\n    --input: oklch(92% 0.004 286.32); /* --color-zinc-200 */\n    --ring: oklch(87.1% 0.006 286.286); /* --color-zinc-400 */\n    --radius: 0.5rem;\n}\n\n.dark {\n    /** Base Colors **/\n    --background: oklch(14.1% 0.005 285.823); /* --color-zinc-950 */\n    --foreground: oklch(98.5% 0 0); /* --color-zinc-50 */\n    --card: oklch(14.1% 0.005 285.823); /* --color-zinc-950 */\n    --card-foreground: oklch(98.5% 0 0); /* --color-zinc-50 */\n    --popover: oklch(14.1% 0.005 285.823); /* --color-zinc-950 */\n    --popover-foreground: oklch(98.5% 0 0); /* --color-zinc-50 */\n    --primary: oklch(54.6% 0.245 262.881); /* --color-blue-600 */\n    --primary-foreground: oklch(1 0 0); /* --color-white */\n    --secondary: oklch(27.4% 0.006 286.033); /* --color-zinc-800 */\n    --secondary-foreground: oklch(98.5% 0 0); /* --color-zinc-50 */\n    --muted: oklch(21% 0.006 285.885); /* --color-zinc-900 */\n    --muted-foreground: oklch(55.2% 0.016 285.938); /* --color-zinc-500 */\n    --accent: oklch(21% 0.006 285.885); /* --color-zinc-900 */\n    --accent-foreground: oklch(98.5% 0 0); /* --color-zinc-50 */\n    --destructive: oklch(57.7% 0.245 27.325); /* --color-red-600 */\n    --destructive-foreground: oklch(1 0 0); /* --color-white */\n    --mono: oklch(87.1% 0.006 286.286); /* --color-zinc-300 */\n    --mono-foreground: oklch(0 0 0); /* --color-black */\n\n    /** Base Styles **/\n    --border: oklch(27.4% 0.006 286.033); /* --color-zinc-800 */\n    --input: oklch(27.4% 0.006 286.033); /* --color-zinc-800 */\n    --ring: oklch(27.4% 0.006 286.033); /* --color-zinc-600 */\n}\n\n/** Theme Setup **/\n@theme inline {\n    /** Base Colors **/\n    --color-background: var(--background);\n    --color-foreground: var(--foreground);\n\n    --color-card: var(--card);\n    --color-card-foreground: var(--card-foreground);\n\n    --color-popover: var(--popover);\n    --color-popover-foreground: var(--popover-foreground);\n\n    --color-muted: var(--muted);\n    --color-muted-foreground: var(--muted-foreground);\n\n    --color-accent: var(--accent);\n    --color-accent-foreground: var(--accent-foreground);\n\n    --color-primary: var(--primary);\n    --color-primary-foreground: var(--primary-foreground);\n\n    --color-secondary: var(--secondary);\n    --color-secondary-foreground: var(--secondary-foreground);\n\n    --color-destructive: var(--destructive);\n    --color-destructive-foreground: var(--destructive-foreground);\n\n    --color-mono: var(--mono);\n    --color-mono-foreground: var(--mono-foreground);\n\n    /** Base Styles **/\n    --color-border: var(--border);\n    --color-input: var(--input);\n    --color-ring: var(--ring);\n\n    --radius-xl: calc(var(--radius) + 4px);\n    --radius-lg: var(--radius);\n    --radius-md: calc(var(--radius) - 2px);\n    --radius-sm: calc(var(--radius) - 4px);\n}\n```\n\n---\n\n## Dark Mode\n\nTo enable automated dark mode support add below Tailwind variant in your Tailwind entry file `style.css`:\n\n```css\n@custom-variant dark (\u0026:is(.dark *));\n```\n\n---\n\n## Styles\n\nInclude KTUI styles in your Tailwind entry file `style.css`:\n\n```css\n@import \"./node_modules/ktui/styles.css\";\n```\n\n---\n\n## Font\n\nSpecify a font family of your choice in your Tailwind entry file `style.css`:\n\n```css\n@theme  {\n    --default-font-family: Inter;\n}\n```\n\nInclude the font file:\n\n```html\n\u003chtml\u003e\n    \u003chead\u003e\n        ...\n        \u003clink href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700\u0026display=swap\" rel=\"stylesheet\"/\u003e\n        ...\n    \u003c/head\u003e\n    \u003cbody className=\"antialiased\"\u003e\n        ....\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n---\n\n## Assets\n\nInclude KTUI JavaScript, Tailwind CSS, and fonts:\n\n```html\n\u003chtml\u003e\n    \u003chead\u003e\n        ...\n        \u003clink href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700\u0026display=swap\" rel=\"stylesheet\"/\u003e\n        \u003clink href=\"my_project_root/css/styles.css\" rel=\"stylesheet\"/\u003e\n        ...\n    \u003c/head\u003e\n    \u003cbody className=\"antialiased\"\u003e\n        ....\n    \u003c/body\u003e\n    \u003cscript src=\"./node_modules/@keenthemes/ktui/dist/ktui.min.js\"\u003e\n    \u003c/script\u003e\n\u003c/html\u003e\n```\n\n---\n\n## RTL Support\n\nTo globally setup the RTL direction add a `dir=\"rtl\"` attribute on the html as shown below:\n\n```html\n\u003c!-- Setup rtl mode --\u003e\n\u003chtml dir=\"rtl\"\u003e\n    \u003c!-- HTML markup --\u003e\n\u003c/html\u003e\n```\n\nKTUI utilizes the logical CSS properties as the default method for handling RTL support. This approach simplifies RTL support by using context-aware properties that adjust based on the document's text direction.\n\n```html\n\u003c!-- Using logical properties --\u003e\n\u003cdiv class=\"text-start ps-5\"\u003e\n    Example text\n\u003c/div\u003e\n```\n\nFor specific cases, you can use the `rtl:*` Tailwind modifier to easily control alignments for both LTR and RTL directions.\n\n```html\n\u003c!-- Using rtl modifier --\u003e\n\u003cdiv class=\"text-left pl-5 rtl:text-right rtl:pr-5\"\u003e\n    Example text\n\u003c/div\u003e\n```\n\n---\n\n## License\n\nKTUI is distributed under the MIT license. See [LICENSE.md](https://github.com/keenthemes/ktui/blob/main/LICENSE.md) for full details.\n\n---\n\n## Contributing\n\nPlease see our [CONTRIBUTING.md](https://github.com/keenthemes/ktui/blob/main/CONTRIBUTING.md) for guidelines if you wish to contribute to KTUI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeenthemes%2Fktui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeenthemes%2Fktui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeenthemes%2Fktui/lists"}