@oslokommune/punkt-css 0.18.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +260 -0
  2. package/CONTRIBUTING.md +116 -0
  3. package/LICENSE +23 -0
  4. package/README.md +221 -0
  5. package/dist/css/components/alert.css +111 -0
  6. package/dist/css/components/alert.min.css +1 -0
  7. package/dist/css/components/backlink.css +38 -0
  8. package/dist/css/components/backlink.min.css +1 -0
  9. package/dist/css/components/badge.css +52 -0
  10. package/dist/css/components/badge.min.css +1 -0
  11. package/dist/css/components/breadcrumbs.css +116 -0
  12. package/dist/css/components/breadcrumbs.min.css +1 -0
  13. package/dist/css/components/footer.css +48 -0
  14. package/dist/css/components/footer.min.css +1 -0
  15. package/dist/css/components/header.css +123 -0
  16. package/dist/css/components/header.min.css +1 -0
  17. package/dist/css/components/icon.css +63 -0
  18. package/dist/css/components/icon.min.css +1 -0
  19. package/dist/css/components/teaserlist.css +53 -0
  20. package/dist/css/components/teaserlist.min.css +1 -0
  21. package/dist/css/pkt-base.css +9721 -0
  22. package/dist/css/pkt-base.min.css +1 -0
  23. package/dist/css/pkt-components.css +611 -0
  24. package/dist/css/pkt-components.min.css +1 -0
  25. package/dist/css/pkt-elements.css +881 -0
  26. package/dist/css/pkt-elements.min.css +1 -0
  27. package/dist/css/pkt-normalise.css +221 -0
  28. package/dist/css/pkt-normalise.min.css +1 -0
  29. package/dist/css/pkt.css +11415 -0
  30. package/dist/css/pkt.min.css +1 -0
  31. package/dist/scss/abstracts/_index.scss +3 -0
  32. package/dist/scss/abstracts/functions/_index.scss +65 -0
  33. package/dist/scss/abstracts/mixins/_breakpoints.scss +60 -0
  34. package/dist/scss/abstracts/mixins/_index.scss +2 -0
  35. package/dist/scss/abstracts/mixins/_typography.scss +45 -0
  36. package/dist/scss/abstracts/placeholders/_index.scss +19 -0
  37. package/dist/scss/abstracts/variables/_breakpoints.scss +8 -0
  38. package/dist/scss/abstracts/variables/_colors.scss +55 -0
  39. package/dist/scss/abstracts/variables/_index.scss +24 -0
  40. package/dist/scss/abstracts/variables/_spacing.scss +22 -0
  41. package/dist/scss/abstracts/variables/_typography.scss +430 -0
  42. package/dist/scss/base/_accessibility.scss +11 -0
  43. package/dist/scss/base/_colors.scss +24 -0
  44. package/dist/scss/base/_containers.scss +75 -0
  45. package/dist/scss/base/_defaults.scss +48 -0
  46. package/dist/scss/base/_grid.scss +114 -0
  47. package/dist/scss/base/_index.scss +9 -0
  48. package/dist/scss/base/_oslo-sans.scss +21 -0
  49. package/dist/scss/base/_spacing.scss +109 -0
  50. package/dist/scss/base/_typography.scss +102 -0
  51. package/dist/scss/base/_visibility.scss +28 -0
  52. package/dist/scss/components/_alert.scss +153 -0
  53. package/dist/scss/components/_backlink.scss +50 -0
  54. package/dist/scss/components/_badge.scss +59 -0
  55. package/dist/scss/components/_breadcrumbs.scss +130 -0
  56. package/dist/scss/components/_footer.scss +52 -0
  57. package/dist/scss/components/_header.scss +125 -0
  58. package/dist/scss/components/_icon.scss +83 -0
  59. package/dist/scss/components/_index.scss +8 -0
  60. package/dist/scss/components/_teaserlist.scss +56 -0
  61. package/dist/scss/elements/_button.scss +412 -0
  62. package/dist/scss/elements/_form.scss +190 -0
  63. package/dist/scss/elements/_hr.scss +8 -0
  64. package/dist/scss/elements/_image.scss +32 -0
  65. package/dist/scss/elements/_index.scss +8 -0
  66. package/dist/scss/elements/_list.scss +104 -0
  67. package/dist/scss/elements/_section.scss +98 -0
  68. package/dist/scss/elements/_select.scss +82 -0
  69. package/dist/scss/elements/_table.scss +80 -0
  70. package/dist/scss/normalise/_index.scss +241 -0
  71. package/dist/scss/pkt-base.scss +4 -0
  72. package/dist/scss/pkt-components.scss +4 -0
  73. package/dist/scss/pkt-elements.scss +4 -0
  74. package/dist/scss/pkt-normalise.scss +4 -0
  75. package/dist/scss/pkt.scss +13 -0
  76. package/index.js +1 -0
  77. package/package.json +40 -0
@@ -0,0 +1,104 @@
1
+ /*
2
+ * List elements
3
+ */
4
+
5
+ @use 'sass:map';
6
+ @use '../abstracts/variables';
7
+ @use '../abstracts/mixins/breakpoints' as *;
8
+
9
+ // Container for vertical lists
10
+ // TODO: This needs work, doesn't hold ut ATM!
11
+ .pkt-list {
12
+ display: grid;
13
+ grid-template-columns: auto;
14
+ grid-template-rows: auto;
15
+ list-style: none;
16
+ padding: 0;
17
+ position: relative;
18
+ row-gap: 1.5rem;
19
+
20
+ &.two-cols-tablet-up {
21
+ @include bp('tablet-up') {
22
+ column-gap: 1.5rem;
23
+ grid-template-columns: 1fr 1fr;
24
+ grid-template-rows: auto;
25
+ }
26
+ }
27
+ &.three-cols-laptop-up {
28
+ @include bp('laptop-up') {
29
+ column-gap: 1.5rem;
30
+ grid-template-columns: 1fr 1fr 1fr;
31
+ }
32
+ }
33
+
34
+ li > a {
35
+ display: grid;
36
+ grid-template-columns: 2rem auto;
37
+ column-gap: 1rem;
38
+ }
39
+ }
40
+
41
+ // ==========================================================================
42
+ // Definition lists
43
+ // ==========================================================================
44
+
45
+ .pkt-dl,
46
+ .pkt-dl--narrow {
47
+ display: flex;
48
+ flex-direction: column;
49
+
50
+ @supports (display: grid) {
51
+ display: grid;
52
+ flex-direction: column;
53
+ grid-template-columns: 1fr;
54
+ margin: 0.5rem 0;
55
+ }
56
+ }
57
+
58
+ .pkt-dl {
59
+ @include bp('tablet-up') {
60
+ grid-template-columns: minmax(9rem, auto) 1fr;
61
+ border-bottom: 0;
62
+ }
63
+ }
64
+
65
+ @mixin dt-narrow {
66
+ padding: 0.5em 0 0;
67
+ font-size: map.get(variables.$font-size, 'size-14');
68
+ border-bottom: none;
69
+ }
70
+
71
+ @mixin dd-narrow {
72
+ padding: 0 0 0.5em;
73
+ font-weight: 500;
74
+ border-bottom: 1px solid rgba(black, 0.15);
75
+ }
76
+
77
+ .pkt-dt {
78
+ @include dt-narrow;
79
+
80
+ @include bp('tablet-up') {
81
+ font-size: inherit;
82
+ }
83
+ }
84
+
85
+ .pkt-dl--narrow > .pkt-dt {
86
+ @include dt-narrow;
87
+ }
88
+
89
+ .pkt-dd {
90
+ @include dd-narrow;
91
+
92
+ @include bp('tablet-up') {
93
+ border-bottom: 1px solid rgba(black, 0.15);
94
+
95
+ @supports (display: grid) {
96
+ padding: 0.25em 0 0.25em 1.25em;
97
+ border-bottom: 0;
98
+ }
99
+ }
100
+ }
101
+
102
+ .pkt-dl--narrow > .pkt-dd {
103
+ @include dd-narrow;
104
+ }
@@ -0,0 +1,98 @@
1
+ /*
2
+ * Section elements
3
+ *
4
+ */
5
+
6
+ @use 'sass:map';
7
+ @use '../abstracts/variables';
8
+ @use '../abstracts/mixins/breakpoints' as *;
9
+
10
+ @mixin -section($backgroundColor: none) {
11
+ margin: 1rem 0;
12
+
13
+ @if $backgroundColor !=none {
14
+ @include bp('phablet-up') {
15
+ padding: 1rem;
16
+ }
17
+
18
+ @include bp('tablet-up') {
19
+ padding: 1.5rem;
20
+ }
21
+
22
+ padding: 0.75rem;
23
+ background-color: $backgroundColor;
24
+
25
+ /*
26
+ @if luminance($backgroundColor) < 0.4 {
27
+ color: white;
28
+
29
+ a:not([class^='ok-btn']) {
30
+ color: white;
31
+ text-decoration: underline;
32
+ }
33
+ }
34
+ */
35
+ }
36
+ }
37
+
38
+ .pkt-section {
39
+ @include -section;
40
+ }
41
+
42
+ .pkt-section--dark {
43
+ @include -section(map.get(variables.$colors, 'color-blue-dark'));
44
+ color: white;
45
+
46
+ a.pkt-btn--ter {
47
+ color: white;
48
+ }
49
+ }
50
+
51
+ .pkt-section--danger {
52
+ @include -section(map.get(variables.$colors, 'color-red'));
53
+
54
+ color: black;
55
+
56
+ a.pkt-btn--ter {
57
+ color: black;
58
+ }
59
+ }
60
+
61
+ .pkt-section--grey {
62
+ @include -section(map.get(variables.$colors, 'color-gray'));
63
+ }
64
+
65
+ .pkt-section--success {
66
+ @include -section(map.get(variables.$colors, 'color-green'));
67
+
68
+ color: black;
69
+
70
+ a.pkt-btn--ter {
71
+ color: black;
72
+ }
73
+ }
74
+
75
+ .pkt-section--warning {
76
+ @include -section(map.get(variables.$colors, 'color-yellow'));
77
+ }
78
+
79
+ .pkt-section--info {
80
+ @include -section(map.get(variables.$colors, 'color-blue-light'));
81
+
82
+ a.pkt-btn--ter {
83
+ color: black;
84
+ }
85
+ }
86
+
87
+ .pkt-section--frame {
88
+ @include -section(white);
89
+ border: 1px solid map.get(variables.$colors, 'oslo-grey-dark');
90
+ }
91
+
92
+ [class*='ok-section-'] > [class^='ok-title-'] {
93
+ margin-top: 0;
94
+ }
95
+
96
+ .pkt-section--margin-top {
97
+ margin-top: 2.5rem;
98
+ }
@@ -0,0 +1,82 @@
1
+ /*
2
+ * Select component
3
+ *
4
+ * TODO: Det er ikke optimalt løst å duplisere svg-ikonet,
5
+ * så dette må refaktoreres ved anledning.
6
+ */
7
+
8
+ @use 'sass:map';
9
+ @use '../abstracts/variables';
10
+ @use '../abstracts/functions';
11
+
12
+ @mixin -icon-arrow($status: enabled) {
13
+ $svg-color: #2a2859;
14
+ @if $status != enabled {
15
+ $svg-color: #b9b9b9;
16
+ }
17
+
18
+ $arrow: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16 19.41L6.33 10 5 11.29 16 22l11-10.71L25.67 10 16 19.41z' fill-rule='evenodd' fill='#{$svg-color}' /></svg>") !default;
19
+ background-image: functions.escape-svg($arrow);
20
+ }
21
+
22
+ .pkt-select {
23
+ display: block;
24
+ background-color: var(--color-white);
25
+ @include -icon-arrow('enabled');
26
+ background-repeat: no-repeat;
27
+ background-position: right 0.7rem top 50%;
28
+ background-size: 2rem auto, 100%;
29
+ border: 2px solid var(--color-blue-dark);
30
+ border-radius: 0;
31
+ color: var(--color-blue-dark);
32
+ font-family: inherit;
33
+ font-size: map.get(variables.$font-size, 'size-16');
34
+ font-weight: normal;
35
+ height: 3.125rem;
36
+ line-height: 2rem;
37
+ margin: 0;
38
+ max-width: 100%;
39
+ padding: 0.4375rem 3rem 0.4375rem 0.5rem;
40
+ width: 100%;
41
+ appearance: none;
42
+ -moz-appearance: none;
43
+ -webkit-appearance: none;
44
+
45
+ &::-ms-expand {
46
+ display: none;
47
+ }
48
+
49
+ &:enabled:focus {
50
+ border-color: var(--color-active);
51
+ outline: 2px solid var(--color-active);
52
+ }
53
+
54
+ &:enabled:hover {
55
+ --fg-color: var(--color-active);
56
+ border-color: var(--color-active);
57
+ color: var(--color-active);
58
+ }
59
+
60
+ &:enabled:active {
61
+ border-color: var(--color-active);
62
+ outline: none;
63
+ }
64
+
65
+ // Remove outline from select box in FF
66
+ &:-moz-focusring {
67
+ color: transparent;
68
+ text-shadow: 0 0 0 var(--color-active);
69
+ }
70
+
71
+ &:disabled {
72
+ @include -icon-arrow('disabled');
73
+ border-color: var(--color-grayscale-30);
74
+ color: var(--color-grayscale-30);
75
+ }
76
+
77
+ option {
78
+ background-color: var(--color-white);
79
+ color: var(--color-blue-dark);
80
+ font-weight: normal;
81
+ }
82
+ }
@@ -0,0 +1,80 @@
1
+ /*
2
+ * Table elements
3
+ */
4
+
5
+ @use 'sass:map';
6
+ @use '../abstracts/variables';
7
+
8
+ $-borderRadius: 2px;
9
+ $-boxShadow: 0 1px 3px rgba(map.get(variables.$colors, 'color-blue-dark'), 0.25);
10
+
11
+ $-defaultColor: map.get(variables.$colors, 'color-gray');
12
+ $-infoColor: map.get(variables.$colors, 'color-yellow');
13
+ $-successColor: map.get(variables.$colors, 'color-green-light');
14
+ $-strongColor: map.get(variables.$colors, 'color-blue-dark');
15
+
16
+ .pkt-table {
17
+ width: 100%;
18
+ font-size: map.get(variables.$font-size, 'size-14');
19
+ border-radius: $-borderRadius;
20
+ border-collapse: collapse;
21
+
22
+ &__th {
23
+ color: black;
24
+ font-weight: 500;
25
+ text-align: left;
26
+ background: $-defaultColor;
27
+ border-bottom: 1px solid $-defaultColor;
28
+
29
+ &:first-child {
30
+ border-top-left-radius: $-borderRadius;
31
+ }
32
+
33
+ &:last-child {
34
+ border-top-right-radius: $-borderRadius;
35
+ }
36
+ }
37
+
38
+ th,
39
+ td {
40
+ min-width: 200px;
41
+ padding: 0.5rem;
42
+ text-align: left;
43
+ border-bottom: 1px solid $-defaultColor;
44
+ }
45
+
46
+ tbody tr:hover {
47
+ & > td {
48
+ background: rgba(map.get(variables.$colors, 'color-blue-dark'), 0.02);
49
+ }
50
+ }
51
+
52
+ &--info .pkt-table__th {
53
+ background: rgba($-infoColor, 0.25);
54
+ border-bottom: 1px solid $-infoColor;
55
+ }
56
+
57
+ &--success .pkt-table__th {
58
+ background: rgba($-successColor, 0.25);
59
+ border-bottom: 1px solid $-successColor;
60
+ }
61
+
62
+ &--strong .pkt-table__th {
63
+ background: rgba($-strongColor, 0.25);
64
+ border-bottom: 1px solid $-strongColor;
65
+ }
66
+
67
+ &--shadow {
68
+ background: white;
69
+ box-shadow: $-boxShadow;
70
+
71
+ & > tbody tr:last-of-type td {
72
+ border-bottom: none;
73
+ }
74
+ }
75
+ }
76
+
77
+ .pkt-table-container {
78
+ margin: 1rem 0;
79
+ overflow-x: auto;
80
+ }
@@ -0,0 +1,241 @@
1
+ /**
2
+ * Normalisering av HTML elementer
3
+ * I hovedsak hentet fra normalize.css
4
+ * Normalize har MIT lisens. https://github.com/necolas/normalize.css
5
+ *
6
+ * Mål:
7
+ * - fikse forskjeller mellom nettlesere gjennom å sette gode standardverdier
8
+ * - fikse rariteter og bugs noen nettlesere har
9
+ * - sette noen grunnverdier for å forbedre brukervennlighet
10
+ *
11
+ */
12
+
13
+ /* Box sizing rules */
14
+ *,
15
+ *::before,
16
+ *::after {
17
+ box-sizing: border-box;
18
+ }
19
+
20
+ /* Prevent adjustments of font size after orientation changes in iOS.
21
+ * https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/
22
+ */
23
+
24
+ html {
25
+ -moz-text-size-adjust: none;
26
+ -webkit-text-size-adjust: none;
27
+ text-size-adjust: none;
28
+ }
29
+
30
+ /**
31
+ * 1. Correct the inheritance and scaling of font size in all browsers.
32
+ * 2. Correct the odd `em` font sizing in all browsers.
33
+ */
34
+
35
+ pre,
36
+ code,
37
+ kbd,
38
+ samp {
39
+ font-family: monospace, monospace; /* 1 */
40
+ font-size: 1em; /* 2 */
41
+ }
42
+
43
+ /**
44
+ * Add the correct font weight in Chrome, Edge, and Safari.
45
+ */
46
+
47
+ b,
48
+ strong {
49
+ font-weight: bolder;
50
+ }
51
+
52
+ /**
53
+ * Add the correct font size in all browsers.
54
+ */
55
+
56
+ small {
57
+ font-size: 80%;
58
+ }
59
+
60
+ /**
61
+ * Prevent `sub` and `sup` elements from affecting the line height in
62
+ * all browsers.
63
+ */
64
+
65
+ sub,
66
+ sup {
67
+ font-size: 75%;
68
+ line-height: 0;
69
+ position: relative;
70
+ vertical-align: baseline;
71
+ }
72
+
73
+ sub {
74
+ bottom: -0.25em;
75
+ }
76
+
77
+ sup {
78
+ top: -0.5em;
79
+ }
80
+
81
+ /* Forms
82
+ ========================================================================== */
83
+
84
+ /**
85
+ * 1. Change the font styles in all browsers.
86
+ * 2. Remove the margin in Firefox and Safari.
87
+ */
88
+
89
+ button,
90
+ input,
91
+ optgroup,
92
+ select,
93
+ textarea {
94
+ font-family: inherit; /* 1 */
95
+ font-size: 100%; /* 1 */
96
+ line-height: 1.15; /* 1 */
97
+ margin: 0; /* 2 */
98
+ }
99
+
100
+ /**
101
+ * Show the overflow in Edge.
102
+ */
103
+
104
+ button,
105
+ input {
106
+ overflow: visible;
107
+ }
108
+
109
+ /**
110
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
111
+ */
112
+
113
+ button,
114
+ select {
115
+ text-transform: none;
116
+ }
117
+
118
+ /**
119
+ * 1. Remove the default `border-radius` that macOS Chrome adds.
120
+ * 2. Correct the inability to style clickable types in iOS and Safari.
121
+ */
122
+
123
+ button,
124
+ [type='button'],
125
+ [type='reset'],
126
+ [type='submit'] {
127
+ border-radius: 0; /* 1 */
128
+ -webkit-appearance: button; /* 2 */
129
+ }
130
+
131
+ /**
132
+ * Remove the inner border and padding in Firefox.
133
+ */
134
+
135
+ button::-moz-focus-inner,
136
+ [type='button']::-moz-focus-inner,
137
+ [type='reset']::-moz-focus-inner,
138
+ [type='submit']::-moz-focus-inner {
139
+ border-style: none;
140
+ padding: 0;
141
+ }
142
+
143
+ /**
144
+ * Restore the focus styles unset by the previous rule.
145
+ */
146
+
147
+ button:-moz-focusring,
148
+ [type='button']:-moz-focusring,
149
+ [type='reset']:-moz-focusring,
150
+ [type='submit']:-moz-focusring {
151
+ outline: 1px dotted ButtonText;
152
+ }
153
+
154
+ /**
155
+ * Correct the padding in Firefox.
156
+ */
157
+
158
+ fieldset {
159
+ padding: 0.35em 0.75em 0.625em;
160
+ }
161
+
162
+ /**
163
+ * 1. Correct the text wrapping in Edge and IE.
164
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
165
+ * 3. Remove the padding so developers are not caught out when they zero out
166
+ * `fieldset` elements in all browsers.
167
+ */
168
+
169
+ legend {
170
+ box-sizing: border-box; /* 1 */
171
+ color: inherit; /* 2 */
172
+ display: table; /* 1 */
173
+ max-width: 100%; /* 1 */
174
+ padding: 0; /* 3 */
175
+ white-space: normal; /* 1 */
176
+ }
177
+
178
+ /**
179
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
180
+ */
181
+
182
+ progress {
183
+ vertical-align: baseline;
184
+ }
185
+
186
+ /**
187
+ * 1. Remove the default vertical scrollbar in IE 10+.
188
+ * 2. Only resize vertically to not break containers horizontally.
189
+ */
190
+
191
+ textarea {
192
+ overflow: auto; /* 1 */
193
+ resize: vertical; /* 2 */
194
+ }
195
+
196
+ /**
197
+ * Correct the cursor style of increment and decrement buttons in Chrome.
198
+ */
199
+
200
+ [type='number']::-webkit-inner-spin-button,
201
+ [type='number']::-webkit-outer-spin-button {
202
+ height: auto;
203
+ }
204
+
205
+ /**
206
+ * 1. Correct the odd appearance in Chrome and Safari.
207
+ * 2. Correct the outline style in Safari.
208
+ */
209
+
210
+ [type='search'] {
211
+ -webkit-appearance: textfield; /* 1 */
212
+ outline-offset: -2px; /* 2 */
213
+ }
214
+
215
+ /**
216
+ * Remove the inner padding in Chrome and Safari on macOS.
217
+ */
218
+
219
+ [type='search']::-webkit-search-decoration {
220
+ -webkit-appearance: none;
221
+ }
222
+
223
+ /**
224
+ * 1. Correct the inability to style clickable types in iOS and Safari.
225
+ * 2. Change font properties to `inherit` in Safari.
226
+ */
227
+
228
+ ::-webkit-file-upload-button {
229
+ -webkit-appearance: button; /* 1 */
230
+ font: inherit; /* 2 */
231
+ }
232
+
233
+ /* Remove all animations and transitions for people that prefer not to see them */
234
+ @media (prefers-reduced-motion: reduce) {
235
+ * {
236
+ transition-duration: 0.01ms !important;
237
+ animation-duration: 0.01ms !important;
238
+ animation-iteration-count: 1 !important;
239
+ scroll-behavior: auto !important;
240
+ }
241
+ }
@@ -0,0 +1,4 @@
1
+ @charset "utf-8";
2
+
3
+ // Base
4
+ @forward 'base';
@@ -0,0 +1,4 @@
1
+ @charset "utf-8";
2
+
3
+ // Components
4
+ @forward "components";
@@ -0,0 +1,4 @@
1
+ @charset "utf-8";
2
+
3
+ // HTML elements
4
+ @forward "elements";
@@ -0,0 +1,4 @@
1
+ @charset "utf-8";
2
+
3
+ // Normalise
4
+ @forward "normalise";
@@ -0,0 +1,13 @@
1
+ @charset "utf-8";
2
+
3
+ // Normalise
4
+ @forward 'normalise';
5
+
6
+ // Base
7
+ @forward 'base';
8
+
9
+ // HTML elements
10
+ @forward 'elements';
11
+
12
+ // Components
13
+ @forward 'components';
package/index.js ADDED
@@ -0,0 +1 @@
1
+ import './dist/css/ods.min.css';
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@oslokommune/punkt-css",
3
+ "version": "0.18.2",
4
+ "description": "Punkt - designsystem av Oslo Origo",
5
+ "author": "Team Min side <team-minside@oslo.kommune.no>",
6
+ "type": "module",
7
+ "main": "index.js",
8
+ "module": "index.js",
9
+ "files": [
10
+ "/dist",
11
+ "CONTRIBUTING.md",
12
+ "CHANGELOG.md"
13
+ ],
14
+ "license": "MIT",
15
+ "scripts": {
16
+ "build": "node ./scripts/build.js",
17
+ "watch": "chokidar \"src/**/*\" -c \"npm run build\"",
18
+ "dev": "vite serve dev/",
19
+ "preview": "vite preview"
20
+ },
21
+ "devDependencies": {
22
+ "chokidar-cli": "^3.0.0",
23
+ "edit-json-file": "^1.6.2",
24
+ "fs-extra": "^10.0.0",
25
+ "prettier": "^2.4.1",
26
+ "sass": "^1.55.0",
27
+ "svgo": "^2.8.0",
28
+ "svgson": "^5.2.1",
29
+ "vite": "^3.1.0",
30
+ "@oslokommune/oslo-designsystem": "^0.17.1"
31
+ },
32
+ "homepage": "https://designsystem.oslo.kommune.no",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/oslokommune/oslo-designsystem.git"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/oslokommune/oslo-designsystem/issues"
39
+ }
40
+ }