{"id":24874631,"url":"https://github.com/dirheimerb/tailwind-debug-ts","last_synced_at":"2025-03-27T02:15:39.612Z","repository":{"id":236842969,"uuid":"793261011","full_name":"dirheimerb/tailwind-debug-ts","owner":"dirheimerb","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-28T21:19:32.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T07:28:56.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dirheimerb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-28T21:19:30.000Z","updated_at":"2024-04-28T21:19:36.000Z","dependencies_parsed_at":"2024-04-28T22:29:43.290Z","dependency_job_id":"da598cfa-742e-45ee-aef8-b5bb21de48f3","html_url":"https://github.com/dirheimerb/tailwind-debug-ts","commit_stats":null,"previous_names":["dirheimerb/tailwind-debug-ts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Ftailwind-debug-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Ftailwind-debug-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Ftailwind-debug-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Ftailwind-debug-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dirheimerb","download_url":"https://codeload.github.com/dirheimerb/tailwind-debug-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245767360,"owners_count":20668826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-02-01T07:28:03.109Z","updated_at":"2025-03-27T02:15:39.586Z","avatar_url":"https://github.com/dirheimerb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debug Screens Tailwind CSS Plugin\n\nThis plugin adds a visual overlay to your Tailwind CSS project to help developers see which media query is currently active. It's designed for development use to assist in responsive design debugging.\n\n## Installation\n\nBefore you can use or test the plugin, you need to have Node.js installed. If you don't have Node.js installed, you can download and install it from [Node.js official website](https://nodejs.org/).\n\n### Step 1: Install Dependencies\n\nAfter setting up Node.js, you need to install the necessary dependencies. Run the following commands in your project directory:\n\n```bash\nnpm install tailwindcss postcss autoprefixer jest postcss-js --save-dev\n```\n\nThis will install Tailwind CSS, PostCSS, Autoprefixer (required by Tailwind CSS), Jest for testing, and postcss-js for running PostCSS in a JavaScript environment.\n\n### Step 2: Configure Tailwind CSS\n\nCreate a `tailwind.config.js` file in your project root if you don't already have one:\n\n```javascript\nmodule.exports = {\n  content: ['./src/**/*.{html,js}'],\n  theme: {\n    extend: {},\n  },\n  plugins: [require('tailwindcss-debug-ts')],\n};\n```\n\nReplace `tailwindcss-debug-ts` with the actual path to the plugin file.\n\n### Step 3: Setup Jest\n\nCreate a `jest.config.js` file in your project root to configure Jest:\n\n```javascript\nmodule.exports = {\n  testEnvironment: 'node',\n  transform: {\n    '^.+\\\\.js$': 'babel-jest',\n  },\n};\n```\n\nThis configuration sets up Jest to use the Node environment and transpile JavaScript files using Babel.\n\n### Step 4: Running Tests\n\nTo run your tests, you can add a test script to your `package.json`:\n\n```json\n\"scripts\": {\n  \"test\": \"jest\"\n}\n```\n\nThen, execute the tests by running:\n\n```bash\nnpm test\n```\n\n## Documentation\n\nRefer to the source code for detailed comments on each part of the plugin's functionality. The plugin's primary features include creating a fixed overlay that indicates the active screen size based on your Tailwind CSS configuration.\n\n## Notes\n\n- This plugin is intended for development use only.\n- Ensure that the plugin is not enabled in your production builds to avoid performance overhead.\n\nThank you for using the Debug Screens Tailwind CSS Plugin!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirheimerb%2Ftailwind-debug-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirheimerb%2Ftailwind-debug-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirheimerb%2Ftailwind-debug-ts/lists"}