{"id":16688872,"url":"https://github.com/danieldietrich/windify","last_synced_at":"2026-04-06T21:30:59.737Z","repository":{"id":62354887,"uuid":"444636252","full_name":"danieldietrich/windify","owner":"danieldietrich","description":"🚀 Toolless Tailwind CSS and Windi CSS, directly in the browser.","archived":false,"fork":false,"pushed_at":"2022-02-03T19:06:22.000Z","size":88,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-02T00:14:24.080Z","etag":null,"topics":["css","tailwindcss","utility-first","windicss"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/danieldietrich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-05T02:34:50.000Z","updated_at":"2022-02-04T03:06:33.000Z","dependencies_parsed_at":"2022-10-31T10:48:08.180Z","dependency_job_id":null,"html_url":"https://github.com/danieldietrich/windify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danieldietrich/windify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldietrich%2Fwindify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldietrich%2Fwindify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldietrich%2Fwindify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldietrich%2Fwindify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danieldietrich","download_url":"https://codeload.github.com/danieldietrich/windify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldietrich%2Fwindify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31491094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"last_error":"SSL_read: 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":["css","tailwindcss","utility-first","windicss"],"created_at":"2024-10-12T15:45:32.263Z","updated_at":"2026-04-06T21:30:59.713Z","avatar_url":"https://github.com/danieldietrich.png","language":"JavaScript","funding_links":["https://github.com/sponsors/danieldietrich"],"categories":[],"sub_categories":[],"readme":"[![npm version](https://img.shields.io/npm/v/windify?logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/windify/)[![brotlied](https://img.badgesize.io/https://cdn.jsdelivr.net/npm/windify.svg?compression=brotli\u0026label=brotlied\u0026max=1500\u0026softmax=1000\u0026style=flat-square)](https://www.jsdelivr.com/package/npm/windify)[![hits/month](https://data.jsdelivr.com/v1/package/npm/windify/badge)](https://www.jsdelivr.com/package/npm/windify)[![license](https://img.shields.io/github/license/danieldietrich/copy?style=flat-square)](https://opensource.org/licenses/MIT/)[![sponsor](https://img.shields.io/badge/GitHub-💖Sponsors-b5b7b9?logo=github\u0026style=flat-square)](https://github.com/sponsors/danieldietrich)[![follow](https://img.shields.io/twitter/follow/danieldietrich?logo=twitter\u0026style=flat-square)](https://twitter.com/danieldietrich/)\n\n\u003cp\u003e\n  \u003ca href=\"https://windify.tw/#gh-light-mode-only\" target=\"_blank\"\u003e\n    \u003cimg src=\"./public/windify-light.svg\" alt=\"Tailwind CSS\" width=\"350\" height=\"70\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://windify.tw/#gh-dark-mode-only\" target=\"_blank\"\u003e\n    \u003cimg src=\"./public/windify-dark.svg\" alt=\"Tailwind CSS\" width=\"350\" height=\"70\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nToolless [Tailwind CSS](https://tailwindcss.com) and [Windi CSS](https://windicss.org), directly in the browser.\n\n## Features\n\n* **Use Tailwind CSS and Windi CSS directly in the browser, no build tools needed!**\n* No need to learn anything about NodeJS, just edit and run index.html\n* Processes all inline styles and transforms directives like `@apply`\n* Prevents FOUC (flash of unstyled content)\n* Tracks document changes by running in watch mode by default\n* Parses Tailwind CSS directives and replaces them with the corresponding CSS\n* Scans the document for Tailwind CSS classes and adds them to the document\n\nNote: Windify internally uses [Windi CSS](https://windicss.org) to generate the CSS. In the following we use _Tailwind CSS_ as a synonym for all tools that support [Tailwind CSS](https://tailwindcss.com) syntax.\n\n## Usage\n\n1. Add Windify `\u003cscript\u003e` to your HTML\n\n```html\n\u003c!-- umd package --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/windify\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  window.addEventListener('load', () =\u003e windify());\n\u003c/script\u003e\n\n\u003c!-- alternative: modern javascript --\u003e\n\u003cscript type=\"module\"\u003e\n  import windify from \"https://esm.run/windify\";\n  window.addEventListener('load', () =\u003e windify());\n\u003c/script\u003e\n```\n\n2. Start to use Tailwind CSS / Windi CSS syntax in your HTML\n\n```html\n\u003ch1 class=\"bg-gray-100 hello\"\u003eHello!\u003c/h1\u003e\n```\n\nWindify will process all `\u003cstyle lang=\"windify\"\u003e` inline styles and transform directives like `@apply`\n\n```html\n\u003cstyle lang=\"windify\"\u003e\n  .hello {\n    @apply\n      text-purple-600 font-semibold;\n    }\n  }\n\u003c/style\u003e    \n```\n\n3. Prevent FOUC (flash of unstyled content)\n\nFOUC is prevented by hiding the HTML content until Windify is ready.\n\nWe do this by setting the `hidden` attribute on `html`, `body` or the _root_ element (see [options](#options) below).\n\n```html\n\u003cbody hidden\u003e\n    \u003c!-- content goes here --\u003e\n\u003c/body\u003e\n```\n\n## Options\n\nWindify can be configured with the following options:\n\n| Option | Type | Default | Description |\n| --- | --- | --- | --- |\n| minify | boolean | true | minify the output |\n| parseCss | boolean | true | parse CSS styles `\u003cstyle lang='windify'\u003e` and process directives like `@apply` |\n| preflight | boolean | true | enables CSS reset for descendants of the root element |\n| root | HTMLElement | document.body | the DOM element that will be scanned for windi classes |\n| watch | boolean | true | enable/disable watch mode, only applies to the root element and its children |\n| windiCssVersion | string | 'latest' | Windi CSS version that is used internally to parse and generate CSS |\n| config | object | | optional [windicss config](https://windicss.org/guide/configuration.html) |\n\nAll configuration properties are optional, choose the defaults you like:\n\n```js\nwindify({\n  minify: false,\n  parseCss: false,\n  preflight: false,\n  root: document.querySelector('#root'),\n  watch: false,\n  windiCssVersion: '3.4.3',\n  config: {\n    ...\n  }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieldietrich%2Fwindify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieldietrich%2Fwindify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieldietrich%2Fwindify/lists"}