occam-styles 4.1.253 → 4.1.255

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  - [Introduction](#introduction)
8
8
  - [Installation](#installation)
9
+ - [Example](#example)
10
+ - [Usage](#sage)
9
11
  - [Building](#building)
10
12
  - [Acknowledgements](#acknowledgements)
11
13
  - [Contact](#contact)
@@ -52,18 +54,40 @@ For instructions on how to remove all ligatures, etc, see the following:
52
54
 
53
55
  Only the regular font face is being used currently.
54
56
 
55
- ## Building
57
+ ## Example
56
58
 
57
- Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have a look at the `package.json` file. The pertinent commands are:
59
+ There is a small development server that can be run from within the project's directory with the following command:
60
+
61
+ npm start
62
+
63
+ The example will then be available at the following URL:
64
+
65
+ http://localhost:8888
66
+
67
+ The source for the example can be found in the `src/example.js` file and corresponding `src/example` folder. You are encouraged to try the example whilst reading what follows. You can rebuild it on the fly with the following command:
58
68
 
59
- npm run build-debug
60
69
  npm run watch-debug
61
70
 
62
- You can also start a small development server:
71
+ The development server will reload the page whenever you make changes.
63
72
 
64
- npm start
73
+ One last thing to bear in mind is that this package is included by way of a relative rather than a package import. If you are importing it into your own application, however, you should use the standard package import.
74
+
75
+ ## Usage
76
+
77
+ The various styles and elements can be importsed in the usual manner:
65
78
 
66
- The example will then be available at http://localhost:8888 and will reload automatically when changes are made.
79
+ ```
80
+ import { CreateSessionToolbarSVG } from "occam-styles";
81
+ ```
82
+
83
+ For a complete list see the `src/index.js` file.
84
+
85
+ ## Building
86
+
87
+ Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have a look at the `package.json` file. The pertinent commands are:
88
+
89
+ npm run build-debug
90
+ npm run watch-debug
67
91
 
68
92
  ## Acknowledgements
69
93