@coopdigital/styles 0.5.1 → 0.5.2
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 +39 -13
- package/package.json +10 -2
package/README.md
CHANGED
|
@@ -10,12 +10,15 @@
|
|
|
10
10
|
[all_contributors_badge]: https://img.shields.io/badge/all_contributors-15-C08A00.svg ''
|
|
11
11
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
12
12
|
|
|
13
|
-
|
|
14
13
|
<a href="https://www.npmjs.com/package/@coopdigital/styles"><img src="https://img.shields.io/npm/v/%40coopdigital%2Fstyles?color=E85A00" alt="npm version" /></a>
|
|
15
14
|
<img alt="NPM Last Update" src="https://img.shields.io/npm/last-update/%40coopdigital%2Fstyles?label=published&color=6762F9">
|
|
16
15
|
<img alt="NPM Downloads" src="https://img.shields.io/npm/d18m/%40coopdigital%2Fstyles?color=819C00">
|
|
17
16
|
[![All Contributors][all_contributors_badge]](#contributors)
|
|
18
17
|
|
|
18
|
+
> Styles for the Experience Library design system.
|
|
19
|
+
|
|
20
|
+
You can see the full range of styles and documentation on the [Experience Kit Storybook](https://static.coop.co.uk/experience-kit-storybook-react)
|
|
21
|
+
|
|
19
22
|
## Getting started
|
|
20
23
|
|
|
21
24
|
Install the package from NPM:
|
|
@@ -23,22 +26,21 @@ Install the package from NPM:
|
|
|
23
26
|
npm install @coopdigital/styles
|
|
24
27
|
```
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
Import the main stylesheet and any corresponding component styles you need:
|
|
27
32
|
```
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
import "@coopdigital/styles/dist/main.css"
|
|
34
|
+
import "@coopdigital/styles/dist/components/Pill.css"
|
|
30
35
|
```
|
|
31
36
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
Alternatively if your project uses SASS you can import the source stylesheets using either the @use or @import format:
|
|
38
|
+
```
|
|
39
|
+
@use "@coopdigital/styles/src/main.scss"
|
|
40
|
+
@use "@coopdigital/styles/src/components/Pill.scss"
|
|
41
|
+
```
|
|
36
42
|
|
|
37
|
-
|
|
38
|
-
| -------------------- | ---------------------------------------- |
|
|
39
|
-
| `npm run test` | To run vitest |
|
|
40
|
-
| `npm run test:coverage` | To run vitest test coverage |
|
|
41
|
-
| `npm run build` | To run build script |
|
|
43
|
+
This package can be used alongside our [react components package](https://www.npmjs.com/package/@coopdigital/react).
|
|
42
44
|
|
|
43
45
|
## Contributors ✨
|
|
44
46
|
|
|
@@ -139,3 +141,27 @@ Thanks goes to these wonderful people:
|
|
|
139
141
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
140
142
|
|
|
141
143
|
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.
|
|
144
|
+
|
|
145
|
+
## License
|
|
146
|
+
|
|
147
|
+
MIT License
|
|
148
|
+
|
|
149
|
+
Copyright (c) Co-operative Group Limited
|
|
150
|
+
|
|
151
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
152
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
153
|
+
in the Software without restriction, including without limitation the rights
|
|
154
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
155
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
156
|
+
furnished to do so, subject to the following conditions:
|
|
157
|
+
|
|
158
|
+
The above copyright notice and this permission notice shall be included in all
|
|
159
|
+
copies or substantial portions of the Software.
|
|
160
|
+
|
|
161
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
162
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
163
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
164
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
165
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
166
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
167
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopdigital/styles",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
"dist",
|
|
11
11
|
"src"
|
|
12
12
|
],
|
|
13
|
+
"keywords": [
|
|
14
|
+
"co-op",
|
|
15
|
+
"design-system",
|
|
16
|
+
"experience-kit",
|
|
17
|
+
"experience-library",
|
|
18
|
+
"styles",
|
|
19
|
+
"sass"
|
|
20
|
+
],
|
|
13
21
|
"scripts": {
|
|
14
22
|
"test": "vitest run",
|
|
15
23
|
"test:watch": "vitest",
|
|
@@ -23,5 +31,5 @@
|
|
|
23
31
|
"glob": "^11.0.1",
|
|
24
32
|
"sass-embedded": "^1.85.0"
|
|
25
33
|
},
|
|
26
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "827c8ec0c84d2f8034e28acde178e7c3e7ed488b"
|
|
27
35
|
}
|