unpkg examples
This commit is contained in:
parent
b905822a0e
commit
fea8b5be89
4 changed files with 48 additions and 4 deletions
34
README.md
34
README.md
|
|
@ -4,9 +4,39 @@ A design system for building faithful recreations of old UIs.
|
|||
|
||||

|
||||
|
||||
### Installation
|
||||
98.css is a CSS file that takes semantic HTML and makes it look pretty. It does not ship with any JavaScript, so it is compatible with your frontend framework of choice. Here is an example of [98.css being used with React](https://codesandbox.io/s/objective-chandrasekhar-t5t6h?file=/src/index.js).
|
||||
|
||||
You can grab 98.css from npm.
|
||||
### Installation / Usage
|
||||
|
||||
The easiest way to use 98.css is to import it from [unpkg](https://unpkg.com/).
|
||||
|
||||
```
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>98.css example</title>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="stylesheet" href="https://unpkg.com/98.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="window" style="margin: 32px; width: 250px">
|
||||
<div class="title-bar">
|
||||
<div class="title-bar-text">
|
||||
My First VB4 Program
|
||||
</div>
|
||||
</div>
|
||||
<div class="window-body">
|
||||
<p>Hello, world!</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
Here is an example of [98.css being used with React](https://codesandbox.io/s/objective-chandrasekhar-t5t6h?file=/src/index.js), and [an example with vanilla JavaScript](https://codesandbox.io/s/late-sound-miqho?file=/index.html). The fastest way to use 98.css is to import it from unpkg.
|
||||
|
||||
Alternatively, you can grab 98.css for [the releases page](https://github.com/jdan/98.css/releases) or [npm](https://www.npmjs.com/package/98.css)
|
||||
|
||||
```
|
||||
npm install 98.css
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue