@oslokommune/punkt-css 12.34.4 → 12.35.0

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.
@@ -6,7 +6,7 @@
6
6
  @forward 'spacing';
7
7
 
8
8
  // Default icon path
9
- $icon-path: 'https://punkt-cdn.oslo.kommune.no/12.34/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/12.35/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -65,7 +65,9 @@ $font-size: (
65
65
  'size-30': 1.875rem,
66
66
  'size-36': 2.25rem,
67
67
  'size-40': 2.5rem,
68
+ 'size-48': 3rem,
68
69
  'size-54': 3.375rem,
70
+ 'size-70': 4.375rem,
69
71
  ) !default;
70
72
 
71
73
  $font-weight: (
@@ -115,12 +117,24 @@ $pkt-font-weight: (
115
117
 
116
118
  // pkt specific styles
117
119
  $pkt-styles: (
120
+ 'pkt-txt-70': (
121
+ 'size': 'size-70',
122
+ 'weight': 'regular',
123
+ 'letter-spacing': 'tighter',
124
+ 'line-height': 'lh-82',
125
+ ),
118
126
  'pkt-txt-54': (
119
127
  'size': 'size-54',
120
128
  'weight': 'regular',
121
129
  'letter-spacing': 'tighter',
122
130
  'line-height': 'lh-82',
123
131
  ),
132
+ 'pkt-txt-48': (
133
+ 'size': 'size-48',
134
+ 'weight': 'regular',
135
+ 'letter-spacing': 'tight',
136
+ 'line-height': 'lh-54',
137
+ ),
124
138
  'pkt-txt-40': (
125
139
  'size': 'size-40',
126
140
  'weight': 'regular',
@@ -0,0 +1,48 @@
1
+ @use 'sass:map';
2
+ @use '../abstracts/variables';
3
+ @use '../abstracts/mixins/typography';
4
+ @use '../abstracts/mixins/breakpoints' as *;
5
+ @use '../abstracts/functions';
6
+
7
+ .pkt-heading {
8
+ font-size: 1.5rem;
9
+ font-weight: 600;
10
+ line-height: 1.2;
11
+
12
+ &--xlarge {
13
+ @include typography.get-text('pkt-txt-70');
14
+ }
15
+
16
+ &--large {
17
+ @include typography.get-text('pkt-txt-48');
18
+ }
19
+
20
+ &--medium {
21
+ @include typography.get-text('pkt-txt-30');
22
+ }
23
+
24
+ &--small {
25
+ @include typography.get-text('pkt-txt-24');
26
+ }
27
+
28
+ &--xsmall {
29
+ @include typography.get-text('pkt-txt-22');
30
+ }
31
+
32
+ &--noSpacing {
33
+ margin-bottom: 0;
34
+ margin-top: 0;
35
+ }
36
+
37
+ &--start {
38
+ text-align: start;
39
+ }
40
+
41
+ &--end {
42
+ text-align: end;
43
+ }
44
+
45
+ &--center {
46
+ text-align: center;
47
+ }
48
+ }
@@ -8,6 +8,7 @@
8
8
  @forward 'combobox';
9
9
  @forward 'footer';
10
10
  @forward 'header';
11
+ @forward 'heading';
11
12
  @forward 'icon';
12
13
  @forward 'inputwrapper';
13
14
  @forward 'linkcard';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "12.34.4",
3
+ "version": "12.35.0",
4
4
  "description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -57,5 +57,5 @@
57
57
  "url": "https://github.com/oslokommune/punkt/issues"
58
58
  },
59
59
  "license": "MIT",
60
- "gitHead": "437c77a182d85a710e0d5adbf492ea7585a0d472"
60
+ "gitHead": "897a80f0520cca735bc514c074d11a7e750079cc"
61
61
  }