@obosbbl/grunnmuren-tailwind 2.4.7 → 2.4.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-tailwind",
3
- "version": "2.4.7",
3
+ "version": "2.4.9",
4
4
  "description": "Grunnmuren Tailwind preset",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -19,7 +19,7 @@
19
19
  "tw-animate-css": "^1.2.5"
20
20
  },
21
21
  "devDependencies": {
22
- "tailwindcss": "4.2.1"
22
+ "tailwindcss": "4.2.2"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "tailwindcss": "^4.0.0"
package/tailwind-base.css CHANGED
@@ -69,6 +69,14 @@
69
69
  font-display: swap;
70
70
  }
71
71
 
72
+ @font-face {
73
+ font-family: OBOSText;
74
+ font-weight: 500;
75
+ font-style: italic;
76
+ src: url('https://www.obos.no/fonts/OBOSText-MediumItalic.woff2') format('woff2');
77
+ font-display: swap;
78
+ }
79
+
72
80
  @font-face {
73
81
  font-family: OBOSDisplay;
74
82
  font-weight: 600; /* SemiBold */
@@ -78,7 +86,7 @@
78
86
  }
79
87
 
80
88
  html {
81
- @apply text-black antialiased font-normal font-text;
89
+ @apply font-text font-normal text-black antialiased;
82
90
  }
83
91
 
84
92
  b {
@@ -100,11 +108,11 @@
100
108
 
101
109
  /*** Layout ***/
102
110
  @utility page-layout {
103
- @apply flex flex-col min-h-screen;
111
+ @apply flex min-h-screen flex-col;
104
112
  }
105
113
 
106
114
  @utility page-layout-main {
107
- @apply bg-white grow;
115
+ @apply grow bg-white;
108
116
  }
109
117
 
110
118
  /** Grid column spacing */
@@ -114,7 +122,7 @@
114
122
 
115
123
  /** Grid base, defines the grid columns and their spacing */
116
124
  @utility layout-grid {
117
- @apply layout-grid-gap-x sm:grid-cols-14 grid;
125
+ @apply layout-grid-gap-x grid sm:grid-cols-14;
118
126
  }
119
127
 
120
128
  /** Grid container that applies the grid columns, grid spacing and the container component class */
@@ -226,33 +234,33 @@
226
234
  }
227
235
 
228
236
  @utility container {
229
- @apply w-full px-(--container-gutter-width) mx-auto max-w-(--container-width);
237
+ @apply mx-auto w-full max-w-(--container-width) px-(--container-gutter-width);
230
238
  }
231
239
 
232
240
  @utility container-prose {
233
- @apply w-full px-(--container-gutter-width) mx-auto;
241
+ @apply mx-auto w-full px-(--container-gutter-width);
234
242
  max-width: 45.5rem;
235
243
  }
236
244
 
237
245
  /*** Typography styles ***/
238
246
  @utility heading-xl {
239
- @apply font-display font-semibold text-[2.8125rem]/[3.625rem] lg:text-[3.9375rem]/[5.125rem];
247
+ @apply font-display text-[2.8125rem]/[3.625rem] font-semibold lg:text-[3.9375rem]/[5.125rem];
240
248
  }
241
249
 
242
250
  @utility heading-l {
243
- @apply font-display font-semibold text-[1.8125rem]/[2.75rem] lg:text-[2.25rem]/[3.5rem];
251
+ @apply font-display text-[1.8125rem]/[2.75rem] font-semibold lg:text-[2.25rem]/[3.5rem];
244
252
  }
245
253
 
246
254
  @utility heading-m {
247
- @apply font-text font-medium text-[1.4375rem]/[2.25rem] lg:text-[1.625rem]/[2.5625rem];
255
+ @apply font-text text-[1.4375rem]/[2.25rem] font-medium lg:text-[1.625rem]/[2.5625rem];
248
256
  }
249
257
 
250
258
  @utility heading-s {
251
- @apply font-text font-medium text-[1.1875rem]/[1.875rem] lg:text-[1.3125rem]/[2.125rem];
259
+ @apply font-text text-[1.1875rem]/[1.875rem] font-medium lg:text-[1.3125rem]/[2.125rem];
252
260
  }
253
261
 
254
262
  @utility heading-xs {
255
- @apply font-text font-medium text-[1.125rem]/[1.75rem] lg:text-[1.1875rem]/[1.9375rem];
263
+ @apply font-text text-[1.125rem]/[1.75rem] font-medium lg:text-[1.1875rem]/[1.9375rem];
256
264
  }
257
265
 
258
266
  @utility paragraph {
@@ -260,11 +268,11 @@
260
268
  }
261
269
 
262
270
  @utility lead {
263
- @apply font-medium text-[1.4375rem]/[2.25rem] lg:text-[1.625rem]/[2.5625rem];
271
+ @apply text-[1.4375rem]/[2.25rem] font-medium lg:text-[1.625rem]/[2.5625rem];
264
272
  }
265
273
 
266
274
  @utility blockquote {
267
- @apply font-medium italic grid grid-cols-[3rem_1fr] gap-x-[0.4375rem] pt-4 text-[1.625rem]/[2.5625rem] lg:text-[1.4375rem]/[2.25rem] before:text-[4.6875rem]/[1.6875rem] before:font-display before:not-italic before:content-["“"];
275
+ @apply before:font-display grid grid-cols-[2.6875rem_1fr] pt-4 text-[1.1875rem]/[1.875rem] font-medium italic before:text-[3.5625rem]/[1.5625rem] before:not-italic before:content-["“"] lg:grid-cols-[2.9375rem_1fr] lg:gap-x-[0.375rem] lg:text-[1.3125rem]/[2.125rem] lg:before:text-[3.9375rem]/[1.8125rem];
268
276
  }
269
277
 
270
278
  @utility description {
@@ -328,7 +336,7 @@
328
336
  /*** Stepper component styles ***/
329
337
  .stepper-container,
330
338
  [data-slot='stepper-container'] {
331
- @apply relative max-lg:overflow-hidden max-lg:min-w-full;
339
+ @apply relative max-lg:min-w-full max-lg:overflow-hidden;
332
340
  /** Make room for the focus outline */
333
341
  @apply max-lg:px-1;
334
342
  }
@@ -340,11 +348,11 @@
340
348
 
341
349
  [data-slot='step'] {
342
350
  counter-increment: step-counter;
343
- @apply flex items-center gap-x-2 relative max-lg:my-1.5 not-last:grow;
351
+ @apply relative flex items-center gap-x-2 not-last:grow max-lg:my-1.5;
344
352
 
345
353
  &::before {
346
354
  content: counter(step-counter);
347
- @apply shrink-0 font-semibold size-8 border-2 rounded-full border-blue-dark grid place-content-center;
355
+ @apply border-blue-dark grid size-8 shrink-0 place-content-center rounded-full border-2 font-semibold;
348
356
  }
349
357
 
350
358
  /** Place the focus styles on the ::before element instead of the link, since the link text is not visible on smaller screens */
@@ -355,14 +363,14 @@
355
363
  }
356
364
 
357
365
  [data-slot='link'] {
358
- @apply max-lg:absolute max-lg:opacity-0 max-lg:max-w-11 max-lg:overflow-x-hidden;
366
+ @apply max-lg:absolute max-lg:max-w-11 max-lg:overflow-x-hidden max-lg:opacity-0;
359
367
  @apply focus-visible:outline-none;
360
368
  /** Create a 44x44 px clickable area, where the step number next to each link will also be covered **/
361
- @apply py-2.5 lg:pl-11 lg:-ml-11 -my-2.5;
369
+ @apply -my-2.5 py-2.5 lg:-ml-11 lg:pl-11;
362
370
  }
363
371
 
364
372
  &::before {
365
- @apply bg-white text-blue-dark;
373
+ @apply text-blue-dark bg-white;
366
374
  }
367
375
 
368
376
  &[data-state='completed'] {
@@ -374,16 +382,16 @@
374
382
  /* order matters here, as data-current selector needs to come after completed state selector */
375
383
  &[data-current='true'] {
376
384
  &::before {
377
- @apply bg-sky-light border-4 text-blue-dark;
385
+ @apply bg-sky-light text-blue-dark border-4;
378
386
  }
379
387
  }
380
388
 
381
389
  svg {
382
- @apply text-white absolute border-2 border-white bg-blue-dark rounded-full left-4.5 -top-1.5 size-5;
390
+ @apply bg-blue-dark absolute -top-1.5 left-4.5 size-5 rounded-full border-2 border-white text-white;
383
391
  }
384
392
 
385
393
  [data-slot='progress-bar'] {
386
- @apply w-4 max-lg:grow lg:w-14 lg:rotate-90 lg:absolute lg:-left-3 lg:px-1.5 lg:-bottom-[calc(100%-2px)];
394
+ @apply w-4 max-lg:grow lg:absolute lg:-bottom-[calc(100%-2px)] lg:-left-3 lg:w-14 lg:rotate-90 lg:px-1.5;
387
395
  }
388
396
  }
389
397
  }
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  &:where([class~='lead']) {
96
- @apply font-medium text-[1.4375rem]/[2.25rem] lg:text-[1.625rem]/[2.5625rem];
96
+ @apply text-[1.4375rem]/[2.25rem] font-medium lg:text-[1.625rem]/[2.5625rem];
97
97
  margin-top: 1.2em;
98
98
  margin-bottom: 1.2em;
99
99
  }
@@ -102,7 +102,7 @@
102
102
  color: var(--tw-prose-links);
103
103
  text-decoration: underline;
104
104
  /** Copied from the Link component: **/
105
- @apply inline-flex cursor-pointer items-center gap-1 font-medium hover:no-underline focus-visible:outline-current focus-visible:outline-focus-offset [&>svg]:shrink-0;
105
+ @apply focus-visible:outline-focus-offset inline-flex cursor-pointer items-center gap-1 font-medium hover:no-underline focus-visible:outline-current [&>svg]:shrink-0;
106
106
  }
107
107
 
108
108
  &:where(strong) {
@@ -195,7 +195,7 @@
195
195
  }
196
196
 
197
197
  &:where(blockquote) {
198
- @apply font-medium italic grid grid-cols-[3rem_1fr] gap-x-[0.4375rem] pt-4 text-[1.4375rem]/[2.25rem] lg:text-[1.625rem]/[2.5625rem] before:text-[4.6875rem]/[1.6875rem] before:font-display before:not-italic before:content-["“"];
198
+ @apply before:font-display grid grid-cols-[2.25rem_1fr] pt-4 text-[1rem]/[1.625rem] font-medium italic before:text-[3rem]/[1.375rem] before:not-italic before:content-["“"] lg:text-[1rem]/[1.6875rem];
199
199
  margin-top: 1.6em;
200
200
  margin-bottom: 1.6em;
201
201
  }
@@ -285,7 +285,7 @@
285
285
  }
286
286
 
287
287
  &:where(code) {
288
- @apply text-(--tw-prose-code) py-0.5 px-2 rounded-sm border border-gray bg-gray-lightest whitespace-nowrap font-semibold text-sm;
288
+ @apply border-gray bg-gray-lightest rounded-sm border px-2 py-0.5 text-sm font-semibold whitespace-nowrap text-(--tw-prose-code);
289
289
  }
290
290
 
291
291
  &:where(a code) {