{"id":21567522,"url":"https://github.com/alcidesqueiroz/tooltippy","last_synced_at":"2025-08-08T12:08:22.693Z","repository":{"id":55936408,"uuid":"124614637","full_name":"alcidesqueiroz/tooltippy","owner":"alcidesqueiroz","description":"💬 Graceful CSS-only tooltips in under 1kb gzipped.","archived":false,"fork":false,"pushed_at":"2020-12-07T00:00:08.000Z","size":533,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T00:58:05.022Z","etag":null,"topics":["css","css-only","elegant","fancy","graceful","hints","modern","multiple-themes","tiny","tooltips","ui","under-1kb-gzipped"],"latest_commit_sha":null,"homepage":null,"language":"Stylus","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/alcidesqueiroz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-10T02:26:22.000Z","updated_at":"2024-02-13T05:26:52.000Z","dependencies_parsed_at":"2022-08-15T09:50:39.627Z","dependency_job_id":null,"html_url":"https://github.com/alcidesqueiroz/tooltippy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alcidesqueiroz/tooltippy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcidesqueiroz%2Ftooltippy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcidesqueiroz%2Ftooltippy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcidesqueiroz%2Ftooltippy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcidesqueiroz%2Ftooltippy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alcidesqueiroz","download_url":"https://codeload.github.com/alcidesqueiroz/tooltippy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcidesqueiroz%2Ftooltippy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269417542,"owners_count":24413384,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","css-only","elegant","fancy","graceful","hints","modern","multiple-themes","tiny","tooltips","ui","under-1kb-gzipped"],"created_at":"2024-11-24T10:31:27.273Z","updated_at":"2025-08-08T12:08:22.660Z","avatar_url":"https://github.com/alcidesqueiroz.png","language":"Stylus","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tooltippy [![Build status](https://travis-ci.com/alcidesqueiroz/tooltippy.svg?branch=master)](https://travis-ci.com/alcidesqueiroz/tooltippy)\n\n\u003e 💬 Graceful CSS-only tooltips in under 1kb gzipped.\n\n![Tooltippy is sexy!](https://gist.githubusercontent.com/alcidesqueiroz/c3d6c6edc559194bc37a2c464a21768d/raw/8d8b01f62703f8cb7442e369ef805965c1efe77e/tooltippy.png)\n\n## Install\n\nWith npm:\n```\n$ npm install tooltippy\n```\n\nWith Yarn:\n\n```\n$ yarn add tooltippy\n```\n\n## Usage\n\n1. Pick one of the available themes (you can see animated previews below);\n2. Import your theme's stylesheet (from inside the `/dist` folder). Naturally, the recommended format for production is the minified one, but expanded and debug versions are available for each theme too;\n3. In your target element, set the value of the `data-tooltippy` attribute to the text you want to show;\n4. Add the `.tooltippy` class to your target element;\n5. Define the position of your tooltip by using one of the existing direction classes (`.tooltippy--top`, `.tooltippy--left`, `.tooltippy--bottom` and `.tooltippy--right`);\n6. **Optional step**: If you want, you can import the suggested font-face for the theme you have chosen. All theme stylesheets have font-stacks with similar web-safe font-families as fallback.\n\n\n```html\n\u003cdiv class=\"tooltippy tooltippy--top\" data-tooltippy=\"Hodor... Hodor?? Hodor!\"\u003e\n  \u003cimg src=\"hodor.jpg\" /\u003e\n\u003c/div\u003e\n```\n\n- **IMPORTANT NOTICE 1**: In order to behave correctly, the tooltip target element *MUST* have its `position` set to `relative`, `absolute` or `fixed`.\n- **IMPORTANT NOTICE 2**: [Replaced elements](https://stackoverflow.com/a/6949190) (like `img` or `input`) can't be used as target.\n\n## Themes\n\n### Hipster\n\n- **Stylesheet:** `dist/tooltippy--hipster.min.css`\n- **Suggested font-face:** [Raleway (weight 500)](https://fonts.googleapis.com/css?family=Raleway:500)\n\n![Hipster theme](https://gist.githubusercontent.com/alcidesqueiroz/c3d6c6edc559194bc37a2c464a21768d/raw/278d1b8985497ff1fd58a7f6ecf3d102fadbd048/tooltippy--hipster.gif)\n\n### Biz\n\n- **Stylesheet:** `dist/tooltippy--biz.min.css`\n- **Suggested font-face:** [Open Sans (weight 400)](https://fonts.googleapis.com/css?family=Open+Sans:400)\n\n![Biz theme](https://gist.githubusercontent.com/alcidesqueiroz/c3d6c6edc559194bc37a2c464a21768d/raw/278d1b8985497ff1fd58a7f6ecf3d102fadbd048/tooltippy--biz.gif)\n\n### Translucid\n\n- **Stylesheet:** `dist/tooltippy--translucid.min.css`\n- **Suggested font-face:** [Roboto Slab (weight 300)](https://fonts.googleapis.com/css?family=Roboto+Slab:300)\n\n![Translucid theme](https://gist.githubusercontent.com/alcidesqueiroz/c3d6c6edc559194bc37a2c464a21768d/raw/278d1b8985497ff1fd58a7f6ecf3d102fadbd048/tooltippy--translucid.gif)\n\n### High contrast\n\n- **Stylesheet:** `dist/tooltippy--high-contrast.min.css`\n- **Suggested font-face:** [Roboto (weight 500)](https://fonts.googleapis.com/css?family=Roboto:500)\n\n![High contrast theme](https://gist.githubusercontent.com/alcidesqueiroz/c3d6c6edc559194bc37a2c464a21768d/raw/278d1b8985497ff1fd58a7f6ecf3d102fadbd048/tooltippy--high-contrast.gif)\n\n\n## Author\n\nAlcides Queiroz Aguiar\n\n- Website: [www.alcidesqueiroz.com](https://www.alcidesqueiroz.com)\n- Medium: [@alcidesqueiroz](https://medium.com/@alcidesqueiroz)\n- Twitter: [alcidesqueiroz](https://twitter.com/alcidesqueiroz)\n- Behance [alcidesqueiroz](https://behance.net/alcidesqueiroz)\n- Stack Overflow: [http://is.gd/aqanso](http://stackoverflow.com/users/1295666/alcides-queiroz-aguiar)\n- E-mail: alcidesqueiroz \u0026lt;at\u0026gt; gmail\n\n\n## License\n\nThis code is free to use under the terms of the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcidesqueiroz%2Ftooltippy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falcidesqueiroz%2Ftooltippy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcidesqueiroz%2Ftooltippy/lists"}