Skip to content

Commit 4042300

Browse files
committed
docs: add npm to readme
1 parent 4a2d76b commit 4042300

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ dev.css is a great choice for:
2525

2626
dev.css was not meant for very complex websites. Although, if you need something more complex, you could build from/modify this stylesheet for your website. An example of a site that uses dev.css is [SkywardMC's wiki](https://skywardmc.org).
2727

28-
## Importing
28+
## Installing
29+
30+
### HTML import
2931

3032
To use dev.css in your HTML, simply add the following line to the `<head>` section of your HTML file:
3133

@@ -36,6 +38,18 @@ To use dev.css in your HTML, simply add the following line to the `<head>` secti
3638
/>
3739
```
3840

41+
### `npm`, `pnpm`, etc
42+
43+
Another way to install dev.css is to add the npm package to your project through your preferred package manager. This command adds the latest version to your project.
44+
45+
```sh
46+
npm add @intergrav/dev.css
47+
# or
48+
pnpm add @intergrav/dev.css
49+
```
50+
51+
### Importing fonts
52+
3953
You can also load a font from [intergrav/fonts](https://github.com/intergrav/fonts#readme) (or anywhere else) if you'd like a consistent font. Geist and Inter fonts work with dev.css out of the box, other fonts will require a theme to be used. If these fonts are not available, the default system/browser sans-serif and monospace fonts will be used, such as Microsoft's Segoe UI or Apple's San Francisco.
4054

4155
## Elements and Structure

0 commit comments

Comments
 (0)