{"id":13572660,"url":"https://github.com/dracula/dracula-ui","last_synced_at":"2025-04-04T10:31:07.764Z","repository":{"id":60455771,"uuid":"291769878","full_name":"dracula/dracula-ui","owner":"dracula","description":":vampire: A dark-first collection of UI patterns and components.","archived":true,"fork":false,"pushed_at":"2023-12-19T11:46:05.000Z","size":62829,"stargazers_count":894,"open_issues_count":8,"forks_count":41,"subscribers_count":125,"default_branch":"main","last_synced_at":"2024-04-14T14:31:02.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ui.draculatheme.com","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/dracula.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2020-08-31T16:39:14.000Z","updated_at":"2024-04-05T15:03:03.000Z","dependencies_parsed_at":"2024-01-14T08:15:26.594Z","dependency_job_id":"bb5bd9f4-8d01-493f-bfed-4b10ccb84658","html_url":"https://github.com/dracula/dracula-ui","commit_stats":{"total_commits":468,"total_committers":19,"mean_commits":24.63157894736842,"dds":"0.48290598290598286","last_synced_commit":"70cea221f3128214cbb7c928be5227c9a47863d3"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracula%2Fdracula-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracula%2Fdracula-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracula%2Fdracula-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracula%2Fdracula-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dracula","download_url":"https://codeload.github.com/dracula/dracula-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247160349,"owners_count":20893813,"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":"2024-08-01T14:01:30.554Z","updated_at":"2025-04-04T10:31:03.416Z","avatar_url":"https://github.com/dracula.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"**🚧 Dracula UI is no longer maintained. [Read announcement](https://draculatheme.com/blog/sunsetting-dracula-ui).**\n\n# Dracula UI\n\n\u003e A dark-first collection of UI patterns and components.\n\n![Dracula UI](https://ui.draculatheme.com/static/og.jpg)\n\n## :thinking: Why\n\nMost templates are built using light colors and later on adapted to dark colors. Dark themes shouldn't be an afterthought, they should be a top priority.\n\nOur mission is to unleash the creative potential in every developer. We do that by providing modular components that can be used to build modern sites faster.\n\n## :book: Documentation\n\nYou can access the documentation at: [ui.draculatheme.com](https://ui.draculatheme.com)\n\n## :package: Install\n\nYou can install Dracula UI via npm or yarn.\n\n```bash\nnpm install dracula-ui\n\nyarn add dracula-ui\n```\n\n## :zap: Using with HTML\n\nYou can use Dracula UI with plain HTML by importing the CSS file.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"node_modules/dracula-ui/styles/dracula-ui.css\" /\u003e\n```\n\nOr by importing it on your main JavaScript file (when using a tool like [Vite](https://vitejs.dev/), for example).\n\n```js\nimport 'dracula-ui/styles/dracula-ui.css'\n```\n\nYou can also import Dracula UI via npm's [unpkg CDN](https://unpkg.com):\n\n```html\n\u003clink\n  rel=\"stylesheet\"\n  href=\"https://unpkg.com/dracula-ui@1.0.3/styles/dracula-ui.css\"\n/\u003e\n```\n\nNow you can take advantage of all the classes, for example:\n\n```html\n\u003cp class=\"drac-text drac-text-black\"\u003eHello Vampire\u003c/p\u003e\n```\n\n\u003e [See full example](https://github.com/dracula/dracula-ui/tree/main/examples/with-html).\n\n## :sparkles: Using with React\n\nYou can also use Dracula UI with React by importing the JS package.\n\n```js\nimport 'dracula-ui/styles/dracula-ui.css'\nimport { Paragraph } from 'dracula-ui'\n\nfunction App() {\n  return \u003cParagraph color=\"black\"\u003eHello Vampire\u003c/Paragraph\u003e\n}\n\nexport default App;\n```\n\n\u003e [See full example](https://github.com/dracula/dracula-ui/tree/main/examples/with-react).\n\n## :rocket: Using with Next.js\n\nFirst, you need to import the CSS globally.\n\nGo to `pages/_app.js` (or create this file if it doesn't exist yet) and add the CSS import:\n\n```jsx\nimport 'dracula-ui/styles/dracula-ui.css'\n\nfunction MyApp({ Component, pageProps }) {\n  return \u003cComponent {...pageProps} /\u003e\n}\n\nexport default MyApp\n```\n\nThen you can import Dracula UI and use all React components.\n\n```jsx\nimport { Paragraph } from 'dracula-ui'\n\nexport default function Index() {\n  return \u003cParagraph color=\"black\"\u003eHello Vampire\u003c/Paragraph\u003e\n}\n```\n\n\u003e [See full example](https://github.com/dracula/dracula-ui/tree/main/examples/with-next).\n\n## :test_tube: Using with Jekyll\n\nGo to `_config.yml` and include the `node_modules` folder:\n\n```yaml\ninclude:\n  - node_modules\n```\n\nCreate a Sass file at `assets/css/styles.scss` with the following content:\n\n```scss\n---\n---\n@import \"../../node_modules/dracula-ui/styles/dracula-ui.css\"\n```\n\nThe empty front matter at the top tells Jekyll it needs to process the Dracula UI file.\n\nFinally, include the compiled CSS file into your `_layouts`.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"/assets/css/styles.css\"\u003e\n```\n\n\u003e [See full example](https://github.com/dracula/dracula-ui/tree/main/examples/with-jekyll).\n\n## :bulb: Ideas\n\nYou can suggest new ideas using [GitHub Discussions](https://github.com/dracula/dracula-ui/discussions).\n\n## :wave: Questions\n\nIf you find a problem, feel free to open new [GitHub Issues](https://github.com/dracula/dracula-ui/issues).\n\n### :pencil2: License\n\n[MIT License](https://zenorocha.mit-license.org/) © Zeno Rocha","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdracula%2Fdracula-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdracula%2Fdracula-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdracula%2Fdracula-ui/lists"}