mirror of
https://github.com/jdan/98.css.git
synced 2025-08-29 08:40:24 +02:00
unpkg examples
This commit is contained in:
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
|
||||
|
@@ -95,6 +95,13 @@
|
||||
This means 98.css is compatible with your frontend framework of choice.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Here is an example of <a href="https://codesandbox.io/s/objective-chandrasekhar-t5t6h?file=/src/index.js">98.css used with React</a>, and
|
||||
<a href="https://codesandbox.io/s/late-sound-miqho?file=/index.html">an example with vanilla JavaScript</a>. The fastest way to use 98.css is to import it from unpkg.
|
||||
</p>
|
||||
|
||||
<pre style="width: 360px"><code><link rel="stylesheet" href="https://unpkg.com/98.css"></code></pre>
|
||||
|
||||
<p>
|
||||
You can install 98.css from the <a href="https://github.com/jdan/98.css/releases">GitHub releases page</a>, or <a href="https://www.npmjs.com/package/98.css">from npm</a>.
|
||||
</p>
|
||||
|
@@ -95,10 +95,17 @@
|
||||
This means 98.css is compatible with your frontend framework of choice.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Here is an example of <a href="https://codesandbox.io/s/objective-chandrasekhar-t5t6h?file=/src/index.js">98.css used with React</a>, and
|
||||
<a href="https://codesandbox.io/s/late-sound-miqho?file=/index.html">an example with vanilla JavaScript</a>. The fastest way to use 98.css is to import it from unpkg.
|
||||
</p>
|
||||
|
||||
<pre style="width: 375px"><code><link rel="stylesheet" href="https://unpkg.com/98.css"></code></pre>
|
||||
|
||||
<p>
|
||||
You can install 98.css from the <a href="https://github.com/jdan/98.css/releases">GitHub releases page</a>, or <a href="https://www.npmjs.com/package/98.css">from npm</a>.
|
||||
</p>
|
||||
<pre style="width: 360px"><code>npm install 98.css</code></pre>
|
||||
<pre style="width: 375px"><code>npm install 98.css</code></pre>
|
||||
|
||||
<h2 id="components">Components</h2>
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
"name": "98.css",
|
||||
"version": "0.1.0",
|
||||
"description": "A design system for building faithful recreations of old UIs",
|
||||
"main": "build/style.css",
|
||||
"main": "build/98.css",
|
||||
"directories": {
|
||||
"doc": "docs"
|
||||
},
|
||||
|
Reference in New Issue
Block a user