{"id":18405278,"url":"https://github.com/jln13x/tailwindcss-highlights","last_synced_at":"2026-02-03T09:46:16.454Z","repository":{"id":60312415,"uuid":"541699008","full_name":"jln13x/tailwindcss-highlights","owner":"jln13x","description":"A plugin for tailwindcss to add highlights to your text","archived":false,"fork":false,"pushed_at":"2024-10-09T08:44:04.000Z","size":1166,"stargazers_count":182,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-11T15:27:48.124Z","etag":null,"topics":["highlights","marks","plugin","tailwind","tailwindcss","tailwindcss-plugin"],"latest_commit_sha":null,"homepage":"https://tailwindcss-highlights.hubatsch.dev/","language":"Astro","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/jln13x.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-26T17:13:15.000Z","updated_at":"2025-07-23T10:36:58.000Z","dependencies_parsed_at":"2025-04-07T08:42:25.573Z","dependency_job_id":null,"html_url":"https://github.com/jln13x/tailwindcss-highlights","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jln13x/tailwindcss-highlights","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jln13x%2Ftailwindcss-highlights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jln13x%2Ftailwindcss-highlights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jln13x%2Ftailwindcss-highlights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jln13x%2Ftailwindcss-highlights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jln13x","download_url":"https://codeload.github.com/jln13x/tailwindcss-highlights/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jln13x%2Ftailwindcss-highlights/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29039961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T09:33:44.148Z","status":"ssl_error","status_checked_at":"2026-02-03T09:33:43.343Z","response_time":96,"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":["highlights","marks","plugin","tailwind","tailwindcss","tailwindcss-plugin"],"created_at":"2024-11-06T03:01:19.445Z","updated_at":"2026-02-03T09:46:16.420Z","avatar_url":"https://github.com/jln13x.png","language":"Astro","funding_links":[],"categories":["Astro"],"sub_categories":[],"readme":"# tailwindcss-highlights - A plugin for tailwindcss\n\nSee it in Action 👉 [Preview](https://tailwindcss-highlights.hubatsch.dev/) or [Playground](https://play.tailwindcss.com/hM0gHS3erl)\n\n\nThis plugin adds utility classes to easily add highlights to your texts.\n\n## Installation\n\nTo install the package, run\n\n    npm install -D tailwindcss-highlights\n\nAdd the plugin to the `tailwind.config.js` file in:\n\n```javascript\nmodule.exports = {\n  plugins: [\n    require('tailwindcss-highlights')),\n  ]\n}\n```\n\n## Usage\n\nUse `highlight` to add the default highlight (variant 1) to your element. \n```html\n\u003cp class=\"highlight\"\u003e\n    Lorem Ipsum\n\u003c/p\u003e\n```\n\\\nTo change the color of the highlight use `highlight-{color}`. All the colors from your theme (default ones and customs) are available aswell as [arbitrary values](https://tailwindcss.com/docs/adding-custom-styles#using-arbitrary-values).\n\n```html\n\u003cp class=\"highlight highlight-indigo-600\"\u003e\n    Lorem Ipsum\n\u003c/p\u003e\n```\n\\\nYou can choose from different kinds of variants with `highlight-variant-{value}`. Check out the available variants on the [Preview](https://tailwindcss-highlights.hubatsch.dev/) or use your own variant e.g. `highlight-variant-[url(./path/to/custom-variant.svg)]`.\n\n```html\n\u003cp class=\"highlight highlight-indigo-600 highlight-variant-7\"\u003e\n    Lorem Ipsum\n\u003c/p\u003e\n```\nCredits for some of the variants: [svgbox](https://svgbox.net/)\n\n\\\nUse the `highlight-spread-`-Utility to make the highlight spread into some direction.\n\n- `highlight-spread-{size}` - Spread in all directions\n- `highlight-spread-{y,x}-{size}` - Spread on the x or y axis\n- `highlight-spread-{t,b,l,r}-{size}` - Set the spread for each direction individually\n\u003cbr /\u003e\n\n| Size   | Value   |\n| ------ | ------- |\n| `0`    | `0`     |\n| `none` | `0`     |\n| `sm`   | `-4px`  |\n| `md`   | `-8px`  |\n| `lg`   | `-12px` |\n| `xl`   | `-16px` |\n\n[Arbitrary values](https://tailwindcss.com/docs/adding-custom-styles#using-arbitrary-values) are also supported.\n\u003cbr /\u003e\n\n```html\n\u003cp class=\"highlight highlight-indigo-600 highlight-variant-7 highlight-spread-md\"\u003e\n    Lorem Ipsum\n\u003c/p\u003e\n\n\u003cp class=\"highlight highlight-indigo-600 highlight-spread-x-sm highlight-spread-y-xl\"\u003e\n    Lorem Ipsum\n\u003c/p\u003e\n\n\u003cp class=\"highlight highlight-indigo-600 highlight-spread-l-xl highlight-spread-t-sm\"\u003e\n    Lorem Ipsum\n\u003c/p\u003e\n```\n\n## Other Examples\nThis plugin adds the highlight as `::after`-pseudo element so its possible to add additional styling by using the `after:`-utility.\n\\\n\u003cbr /\u003e\n**Change the position**\n```html\n\u003cp class=\"highlight highlight-variant-5 after:translate-y-2 after:-translate-x-4\"\u003e\n    Lorem Ipsum\n\u003c/p\u003e\n```\n**Adding a gradient to the highlight**\n```html\n\u003cp class=\"highlight highlight-variant-12 after:bg-gradient-to-tr after:from-amber-500 after:to-sky-500\"\u003e\n    Lorem Ipsum\n\u003c/p\u003e\n```\n\\\n**Rotate the highlight**\n```html\n\u003cp class=\"highlight highlight-variant-12 after:rotate-12\"\u003e\n    Lorem Ipsum\n\u003c/p\u003e\n```\n\nNote: The owner of this repository is not with associated with the company Tailwind Labs Inc. This is just a plugin for [tailwindcss](https://tailwindcss.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjln13x%2Ftailwindcss-highlights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjln13x%2Ftailwindcss-highlights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjln13x%2Ftailwindcss-highlights/lists"}