@cargosense/cargo-design-system 1.0.1 → 1.0.4

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
@@ -2,6 +2,24 @@
2
2
 
3
3
  This is the repository for the CargoSense Design System node package. The documentation for is hosted at https://docs.cargosense.com/design-system-docs.
4
4
 
5
+ ## Usage
6
+
7
+ Include these lines in your project:
8
+
9
+ ```js
10
+ // In your script.js file
11
+ import { registerAllComponents } from '@cargosense/cargo-design-system/register'
12
+ registerAllComponents();
13
+
14
+ // Or to import a specific component
15
+ import { registerButton } from '@cargosense/cargo-design-system/register'
16
+ registerButton();
17
+
18
+ import '@cargosense/cargo-design-system/fonts'; // Import fonts
19
+ import "@cargosense/cargo-design-system/styles"; // Import CSS Variables
20
+
21
+ ```
22
+
5
23
  ## Organization
6
24
 
7
25
  There are many different directory style structures for design systems, we will be adhering to a molecular structure where **atoms** are the smallest, most basic components (such as badges, icons, Key/Value pairs, etc). **Molecules** are larger components, usually those which rely on the smaller atom components to make up the bigger component as well. **Organisms** are either bigger components on the page or components that use several molecules/atoms. **Templates** are fully built out pages.