This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
➕ Add more installation instructions (#153)
- Loading branch information
1 parent
70cea22
commit 1eaa8e1
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,29 @@ yarn add dracula-ui`} | |
language="html" | ||
code={`<link rel="stylesheet" href="node_modules/dracula-ui/styles/dracula-ui.css" />`} | ||
/> | ||
<Paragraph> | ||
Or by importing it on your main JavaScript file (when using a tool | ||
like | ||
<Anchor href="https://vitejs.dev/" isExternal={true} pl="xxs"> | ||
Vite | ||
</Anchor> | ||
, for example). | ||
</Paragraph> | ||
<CodeHighlight | ||
language="js" | ||
code={`import 'dracula-ui/styles/dracula-ui.css'`} | ||
/> | ||
<Paragraph> | ||
You can also import Dracula UI via npm's | ||
<Anchor href="https://unpkg.com" isExternal={true} pl="xxs"> | ||
unpkg CDN | ||
</Anchor> | ||
: | ||
</Paragraph> | ||
<CodeHighlight | ||
language="html" | ||
code={`<link rel="stylesheet" href="https://unpkg.com/[email protected]/styles/dracula-ui.css" />`} | ||
/> | ||
<Paragraph> | ||
Now you can take advantage of all the classes, for example: | ||
</Paragraph> | ||
|