@navikt/ds-tailwind 1.0.0-rc.1 → 1.0.0-rc.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 +36 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# NAV tailwind-preset
|
|
2
|
+
|
|
3
|
+
Custom tailwind-preset based on @navikt/ds-tokens.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install `@navikt/ds-tailwind` with yarn
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
yarn add @navikt/ds-tailwind
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Install `@navikt/ds-tailwind` with npm
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @navikt/ds-tailwind
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
// tailwind.config.js
|
|
23
|
+
|
|
24
|
+
module.exports = {
|
|
25
|
+
presets: [require("@navikt/ds-tailwind")],
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Learn more
|
|
30
|
+
|
|
31
|
+
- [Designsystem documentation](https://aksel.nav.no/designsystem)
|
|
32
|
+
- [Storybook](https://master--5f801fb2aea7820022de2936.chromatic.com/)
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
[MIT](https://github.com/navikt/Designsystemet/blob/master/LICENCE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-tailwind",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
4
4
|
"description": "Auto-generated tailwind config based on @navikt/ds-tokens",
|
|
5
5
|
"author": "NAV Designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"directory": "@navikt/core/tailwind"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@navikt/ds-tokens": "^1.0.0-rc.
|
|
25
|
+
"@navikt/ds-tokens": "^1.0.0-rc.2",
|
|
26
26
|
"@types/jest": "^27.0.1",
|
|
27
27
|
"@types/node": "^17.0.35",
|
|
28
28
|
"jest": "^27.2.0",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"ts-node": "^10.3.0",
|
|
32
32
|
"typescript": "^4.7.2"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "60f13970436275f5af4a206995c545475c2f09db"
|
|
35
35
|
}
|