@dillingerstaffing/strand-ui 0.5.0 → 0.5.1
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 +49 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @dillingerstaffing/strand-ui
|
|
2
|
+
|
|
3
|
+
Preact/React component library built on the [Strand Design Language](https://github.com/dillingerstaffing/strand/blob/main/DESIGN_LANGUAGE.md). 32 components. Zero-runtime CSS. WCAG 2.2 AA.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @dillingerstaffing/strand @dillingerstaffing/strand-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Import CSS in your app entry point:
|
|
12
|
+
|
|
13
|
+
```css
|
|
14
|
+
@import '@dillingerstaffing/strand/css/reset.css';
|
|
15
|
+
@import '@dillingerstaffing/strand/css/tokens.css';
|
|
16
|
+
@import '@dillingerstaffing/strand/css/base.css';
|
|
17
|
+
@import '@dillingerstaffing/strand-ui/css/strand-ui.css';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Use components:
|
|
21
|
+
|
|
22
|
+
```jsx
|
|
23
|
+
import { Button, Card, Stack, Input } from '@dillingerstaffing/strand-ui';
|
|
24
|
+
|
|
25
|
+
function App() {
|
|
26
|
+
return (
|
|
27
|
+
<Card variant="elevated" padding="lg">
|
|
28
|
+
<Stack gap={4}>
|
|
29
|
+
<Input placeholder="Enter your email" />
|
|
30
|
+
<Button>Get Started</Button>
|
|
31
|
+
</Stack>
|
|
32
|
+
</Card>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Also Available
|
|
38
|
+
|
|
39
|
+
- **Vue 3:** [@dillingerstaffing/strand-vue](https://www.npmjs.com/package/@dillingerstaffing/strand-vue)
|
|
40
|
+
- **Svelte:** [@dillingerstaffing/strand-svelte](https://www.npmjs.com/package/@dillingerstaffing/strand-svelte)
|
|
41
|
+
- **CSS Only:** Use classes directly per [HTML_REFERENCE.md](https://github.com/dillingerstaffing/strand/blob/main/HTML_REFERENCE.md)
|
|
42
|
+
|
|
43
|
+
## Links
|
|
44
|
+
|
|
45
|
+
- [GitHub](https://github.com/dillingerstaffing/strand)
|
|
46
|
+
- [Design Language](https://github.com/dillingerstaffing/strand/blob/main/DESIGN_LANGUAGE.md)
|
|
47
|
+
- [Documentation](https://dillingerstaffing.com/labs/strand)
|
|
48
|
+
|
|
49
|
+
Created by [Dillinger Staffing](https://dillingerstaffing.com)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dillingerstaffing/strand-ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Strand UI - Preact/React component library built on the Strand Design Language",
|
|
5
5
|
"author": "Dillinger Staffing <engineering@dillingerstaffing.com> (https://dillingerstaffing.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@dillingerstaffing/strand": "^0.5.
|
|
63
|
+
"@dillingerstaffing/strand": "^0.5.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@testing-library/preact": "^3.2.0",
|