@oslokommune/punkt-css 17.0.6 → 17.0.7
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/CHANGELOG.md +18 -0
- package/dist/css/pkt-base.css +13213 -13213
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-docs.css +13213 -13213
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt-grid.css +2232 -0
- package/dist/css/pkt-grid.min.css +1 -0
- package/dist/css/pkt-tokens.css +273 -0
- package/dist/css/pkt-tokens.min.css +1 -0
- package/dist/css/pkt-utilities.css +11335 -0
- package/dist/css/pkt-utilities.min.css +1 -0
- package/dist/css/pkt.css +13213 -13213
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/base/_colors-tokens.scss +106 -0
- package/dist/scss/base/_colors-utilities.scss +43 -0
- package/dist/scss/base/_colors.scss +2 -144
- package/dist/scss/base/_index.scss +10 -3
- package/dist/scss/pkt-grid.scss +6 -0
- package/dist/scss/pkt-tokens.scss +5 -0
- package/dist/scss/pkt-utilities.scss +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Colors
|
|
3
|
+
* Brand
|
|
4
|
+
* Light mode
|
|
5
|
+
* Dark mode
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use '../abstracts/variables';
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
/**
|
|
12
|
+
* @tokens Colors
|
|
13
|
+
* @presenter Color
|
|
14
|
+
*/
|
|
15
|
+
// Brand
|
|
16
|
+
@each $name, $color in variables.$pkt-colors {
|
|
17
|
+
--pkt-color-#{$name}: #{$color};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Semantic
|
|
21
|
+
@each $name, $color in variables.$pkt-semantic-colors {
|
|
22
|
+
--pkt-color-#{$name}: #{$color};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Deprecated colors
|
|
26
|
+
@each $name, $color in variables.$colors {
|
|
27
|
+
--#{$name}: #{$color};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Dark mode
|
|
31
|
+
&[data-mode='dark'],
|
|
32
|
+
[data-mode='dark'] {
|
|
33
|
+
// Background
|
|
34
|
+
--pkt-color-background-card: var(--pkt-color-grays-gray-700);
|
|
35
|
+
--pkt-color-background-default: var(--pkt-color-grays-gray-1000);
|
|
36
|
+
--pkt-color-background-subtle: var(--pkt-color-grays-gray-1000);
|
|
37
|
+
--pkt-color-background-transparent: var(--pkt-color-brand-neutrals-transparent);
|
|
38
|
+
|
|
39
|
+
// Borders
|
|
40
|
+
--pkt-color-border-default: var(--pkt-color-brand-neutrals-white);
|
|
41
|
+
--pkt-color-border-beige: var(--pkt-color-brand-dark-beige-1000);
|
|
42
|
+
--pkt-color-border-blue: var(--pkt-color-brand-blue-1000);
|
|
43
|
+
--pkt-color-border-green: var(--pkt-color-brand-green-1000);
|
|
44
|
+
--pkt-color-border-light-beige: var(--pkt-color-brand-light-beige-1000);
|
|
45
|
+
--pkt-color-border-red: var(--pkt-color-brand-red-1000);
|
|
46
|
+
--pkt-color-border-subtle: var(--pkt-color-brand-dark-blue-700);
|
|
47
|
+
--pkt-color-border-yellow: var(--pkt-color-brand-yellow-1000);
|
|
48
|
+
--pkt-color-border-states-active: var(--pkt-color-brand-blue-500);
|
|
49
|
+
--pkt-color-border-states-disabled: var(--pkt-color-grays-gray-500);
|
|
50
|
+
--pkt-color-border-states-focus: var(--pkt-color-brand-purple-1000);
|
|
51
|
+
--pkt-color-border-states-hover: var(--pkt-color-brand-blue-500);
|
|
52
|
+
|
|
53
|
+
// Surface
|
|
54
|
+
--pkt-color-surface-default-faded-green: var(--pkt-color-brand-light-green-400);
|
|
55
|
+
--pkt-color-surface-default-faded-red: var(--pkt-color-brand-red-400);
|
|
56
|
+
--pkt-color-surface-default-gray: var(--pkt-color-brand-neutrals-100);
|
|
57
|
+
--pkt-color-surface-default-light-beige: var(--pkt-color-brand-light-beige-1000);
|
|
58
|
+
--pkt-color-surface-default-light-blue: var(--pkt-color-brand-blue-300);
|
|
59
|
+
--pkt-color-surface-default-light-green: var(--pkt-color-brand-green-400);
|
|
60
|
+
--pkt-color-surface-default-red: var(--pkt-color-brand-red-600);
|
|
61
|
+
--pkt-color-surface-default-yellow: var(--pkt-color-brand-yellow-500);
|
|
62
|
+
--pkt-color-surface-strong-beige: var(--pkt-color-brand-dark-beige-1000);
|
|
63
|
+
--pkt-color-surface-strong-blue: var(--pkt-color-brand-blue-1000);
|
|
64
|
+
--pkt-color-surface-strong-dark-blue: var(--pkt-color-brand-dark-blue-1000);
|
|
65
|
+
--pkt-color-surface-strong-dark-green: var(--pkt-color-brand-dark-green-1000);
|
|
66
|
+
--pkt-color-surface-strong-gray: var(--pkt-color-brand-neutrals-200);
|
|
67
|
+
--pkt-color-surface-strong-green: var(--pkt-color-brand-green-1000);
|
|
68
|
+
--pkt-color-surface-strong-light-green: var(--pkt-color-brand-light-green-1000);
|
|
69
|
+
--pkt-color-surface-strong-red: var(--pkt-color-brand-red-1000);
|
|
70
|
+
--pkt-color-surface-strong-yellow: var(--pkt-color-brand-yellow-1000);
|
|
71
|
+
--pkt-color-surface-subtle-light-blue: var(--pkt-color-brand-blue-200);
|
|
72
|
+
--pkt-color-surface-subtle-light-red: var(--pkt-color-brand-red-100);
|
|
73
|
+
--pkt-color-surface-subtle-pale-blue: var(--pkt-color-brand-blue-100);
|
|
74
|
+
--pkt-color-surface-subtle-white: var(--pkt-color-brand-neutrals-white);
|
|
75
|
+
|
|
76
|
+
// Text
|
|
77
|
+
--pkt-color-text-body-dark: var(--pkt-color-brand-dark-blue-1000);
|
|
78
|
+
--pkt-color-text-body-default: var(--pkt-color-brand-neutrals-white);
|
|
79
|
+
--pkt-color-text-body-light: var(--pkt-color-brand-neutrals-white);
|
|
80
|
+
--pkt-color-text-placeholder: var(--pkt-color-grays-gray-300);
|
|
81
|
+
--pkt-color-text-action-disabled: var(--pkt-color-grays-gray-200);
|
|
82
|
+
--pkt-color-text-action-active: var(--pkt-color-brand-blue-500);
|
|
83
|
+
--pkt-color-text-action-hover: var(--pkt-color-brand-blue-500);
|
|
84
|
+
--pkt-color-text-action-normal: var(--pkt-color-brand-neutrals-white);
|
|
85
|
+
|
|
86
|
+
// Input (shared)
|
|
87
|
+
--pkt-color-input-background-normal: var(--pkt-color-brand-neutrals-white);
|
|
88
|
+
--pkt-color-input-border-active: var(--pkt-color-brand-blue-500);
|
|
89
|
+
--pkt-color-input-border-disabled: var(--pkt-color-grays-gray-200);
|
|
90
|
+
--pkt-color-input-border-error: var(--pkt-color-brand-red-1000);
|
|
91
|
+
--pkt-color-input-border-hover: var(--pkt-color-brand-blue-500);
|
|
92
|
+
--pkt-color-input-border-normal: var(--pkt-color-brand-neutrals-white);
|
|
93
|
+
--pkt-color-input-text-active: var(--pkt-color-brand-warm-blue-1000);
|
|
94
|
+
--pkt-color-input-text-disabled: var(--pkt-color-grays-gray-200);
|
|
95
|
+
--pkt-color-input-text-hover: var(--pkt-color-brand-warm-blue-1000);
|
|
96
|
+
--pkt-color-input-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
97
|
+
--pkt-color-input-text-error: var(--pkt-color-brand-red-1000);
|
|
98
|
+
--pkt-color-input-text-open: var(--pkt-color-brand-dark-blue-1000);
|
|
99
|
+
|
|
100
|
+
// Input - Checkbox/Radio specific
|
|
101
|
+
--pkt-color-input-check-background: var(--pkt-color-brand-dark-blue-1000);
|
|
102
|
+
--pkt-color-input-check-border: var(--pkt-color-brand-neutrals-white);
|
|
103
|
+
--pkt-color-input-check-text-active: var(--pkt-color-brand-blue-500);
|
|
104
|
+
--pkt-color-input-check-text-hover: var(--pkt-color-brand-blue-500);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Colors
|
|
2
|
+
// Hjelpeklasser
|
|
3
|
+
|
|
4
|
+
@use '../abstracts/variables';
|
|
5
|
+
|
|
6
|
+
@each $name, $color in variables.$pkt-colors {
|
|
7
|
+
.pkt-color-bg-#{$name} {
|
|
8
|
+
background-color: $color !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.pkt-color-txt-#{$name} {
|
|
12
|
+
color: $color !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pkt-color-border-#{$name} {
|
|
16
|
+
border-color: $color !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@each $name, $color in variables.$pkt-semantic-colors {
|
|
21
|
+
.pkt-color-bg-#{$name} {
|
|
22
|
+
background-color: var(--pkt-color-#{$name}) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pkt-color-txt-#{$name} {
|
|
26
|
+
color: var(--pkt-color-#{$name}) !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pkt-color-border-#{$name} {
|
|
30
|
+
border-color: var(--pkt-color-#{$name}) !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Deprecated
|
|
35
|
+
@each $name, $color in variables.$colors {
|
|
36
|
+
.bg-#{$name} {
|
|
37
|
+
background-color: $color !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.txt-#{$name} {
|
|
41
|
+
color: $color !important;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,144 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Brand
|
|
4
|
-
* Light mode
|
|
5
|
-
* Dark mode
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
@use '../abstracts/variables';
|
|
9
|
-
|
|
10
|
-
:root {
|
|
11
|
-
/**
|
|
12
|
-
* @tokens Colors
|
|
13
|
-
* @presenter Color
|
|
14
|
-
*/
|
|
15
|
-
// Brand
|
|
16
|
-
@each $name, $color in variables.$pkt-colors {
|
|
17
|
-
--pkt-color-#{$name}: #{$color};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Semantic
|
|
21
|
-
@each $name, $color in variables.$pkt-semantic-colors {
|
|
22
|
-
--pkt-color-#{$name}: #{$color};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Deprecated colors
|
|
26
|
-
@each $name, $color in variables.$colors {
|
|
27
|
-
--#{$name}: #{$color};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Dark mode
|
|
31
|
-
&[data-mode='dark'],
|
|
32
|
-
[data-mode='dark'] {
|
|
33
|
-
// Background
|
|
34
|
-
--pkt-color-background-card: var(--pkt-color-grays-gray-700);
|
|
35
|
-
--pkt-color-background-default: var(--pkt-color-grays-gray-1000);
|
|
36
|
-
--pkt-color-background-subtle: var(--pkt-color-grays-gray-1000);
|
|
37
|
-
--pkt-color-background-transparent: var(--pkt-color-brand-neutrals-transparent);
|
|
38
|
-
|
|
39
|
-
// Borders
|
|
40
|
-
--pkt-color-border-default: var(--pkt-color-brand-neutrals-white);
|
|
41
|
-
--pkt-color-border-beige: var(--pkt-color-brand-dark-beige-1000);
|
|
42
|
-
--pkt-color-border-blue: var(--pkt-color-brand-blue-1000);
|
|
43
|
-
--pkt-color-border-green: var(--pkt-color-brand-green-1000);
|
|
44
|
-
--pkt-color-border-light-beige: var(--pkt-color-brand-light-beige-1000);
|
|
45
|
-
--pkt-color-border-red: var(--pkt-color-brand-red-1000);
|
|
46
|
-
--pkt-color-border-subtle: var(--pkt-color-brand-dark-blue-700);
|
|
47
|
-
--pkt-color-border-yellow: var(--pkt-color-brand-yellow-1000);
|
|
48
|
-
--pkt-color-border-states-active: var(--pkt-color-brand-blue-500);
|
|
49
|
-
--pkt-color-border-states-disabled: var(--pkt-color-grays-gray-500);
|
|
50
|
-
--pkt-color-border-states-focus: var(--pkt-color-brand-purple-1000);
|
|
51
|
-
--pkt-color-border-states-hover: var(--pkt-color-brand-blue-500);
|
|
52
|
-
// Surface
|
|
53
|
-
--pkt-color-surface-default-faded-green: var(--pkt-color-brand-light-green-400);
|
|
54
|
-
--pkt-color-surface-default-faded-red: var(--pkt-color-brand-red-400);
|
|
55
|
-
--pkt-color-surface-default-gray: var(--pkt-color-brand-neutrals-100);
|
|
56
|
-
--pkt-color-surface-default-light-beige: var(--pkt-color-brand-light-beige-1000);
|
|
57
|
-
--pkt-color-surface-default-light-blue: var(--pkt-color-brand-blue-300);
|
|
58
|
-
--pkt-color-surface-default-light-green: var(--pkt-color-brand-green-400);
|
|
59
|
-
--pkt-color-surface-default-red: var(--pkt-color-brand-red-600);
|
|
60
|
-
--pkt-color-surface-default-yellow: var(--pkt-color-brand-yellow-500);
|
|
61
|
-
--pkt-color-surface-strong-beige: var(--pkt-color-brand-dark-beige-1000);
|
|
62
|
-
--pkt-color-surface-strong-blue: var(--pkt-color-brand-blue-1000);
|
|
63
|
-
--pkt-color-surface-strong-dark-blue: var(--pkt-color-brand-dark-blue-1000);
|
|
64
|
-
--pkt-color-surface-strong-dark-green: var(--pkt-color-brand-dark-green-1000);
|
|
65
|
-
--pkt-color-surface-strong-gray: var(--pkt-color-brand-neutrals-200);
|
|
66
|
-
--pkt-color-surface-strong-green: var(--pkt-color-brand-green-1000);
|
|
67
|
-
--pkt-color-surface-strong-light-green: var(--pkt-color-brand-light-green-1000);
|
|
68
|
-
--pkt-color-surface-strong-red: var(--pkt-color-brand-red-1000);
|
|
69
|
-
--pkt-color-surface-strong-yellow: var(--pkt-color-brand-yellow-1000);
|
|
70
|
-
--pkt-color-surface-subtle-light-blue: var(--pkt-color-brand-blue-200);
|
|
71
|
-
--pkt-color-surface-subtle-light-red: var(--pkt-color-brand-red-100);
|
|
72
|
-
--pkt-color-surface-subtle-pale-blue: var(--pkt-color-brand-blue-100);
|
|
73
|
-
--pkt-color-surface-subtle-white: var(--pkt-color-brand-neutrals-white);
|
|
74
|
-
|
|
75
|
-
// Text
|
|
76
|
-
--pkt-color-text-body-dark: var(--pkt-color-brand-dark-blue-1000);
|
|
77
|
-
--pkt-color-text-body-default: var(--pkt-color-brand-neutrals-white);
|
|
78
|
-
--pkt-color-text-body-light: var(--pkt-color-brand-neutrals-white);
|
|
79
|
-
--pkt-color-text-placeholder: var(--pkt-color-grays-gray-300);
|
|
80
|
-
--pkt-color-text-action-disabled: var(--pkt-color-grays-gray-200);
|
|
81
|
-
--pkt-color-text-action-active: var(--pkt-color-brand-blue-500);
|
|
82
|
-
--pkt-color-text-action-hover: var(--pkt-color-brand-blue-500);
|
|
83
|
-
--pkt-color-text-action-normal: var(--pkt-color-brand-neutrals-white);
|
|
84
|
-
|
|
85
|
-
// Input (shared)
|
|
86
|
-
--pkt-color-input-background-normal: var(--pkt-color-brand-neutrals-white);
|
|
87
|
-
--pkt-color-input-border-active: var(--pkt-color-brand-blue-500);
|
|
88
|
-
--pkt-color-input-border-disabled: var(--pkt-color-grays-gray-200);
|
|
89
|
-
--pkt-color-input-border-error: var(--pkt-color-brand-red-1000);
|
|
90
|
-
--pkt-color-input-border-hover: var(--pkt-color-brand-blue-500);
|
|
91
|
-
--pkt-color-input-border-normal: var(--pkt-color-brand-neutrals-white);
|
|
92
|
-
--pkt-color-input-text-active: var(--pkt-color-brand-warm-blue-1000);
|
|
93
|
-
--pkt-color-input-text-disabled: var(--pkt-color-grays-gray-200);
|
|
94
|
-
--pkt-color-input-text-hover: var(--pkt-color-brand-warm-blue-1000);
|
|
95
|
-
--pkt-color-input-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
96
|
-
--pkt-color-input-text-error: var(--pkt-color-brand-red-1000);
|
|
97
|
-
--pkt-color-input-text-open: var(--pkt-color-brand-dark-blue-1000);
|
|
98
|
-
|
|
99
|
-
// Input - Checkbox/Radio specific
|
|
100
|
-
--pkt-color-input-check-background: var(--pkt-color-brand-dark-blue-1000);
|
|
101
|
-
--pkt-color-input-check-border: var(--pkt-color-brand-neutrals-white);
|
|
102
|
-
--pkt-color-input-check-text-active: var(--pkt-color-brand-blue-500);
|
|
103
|
-
--pkt-color-input-check-text-hover: var(--pkt-color-brand-blue-500);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@each $name, $color in variables.$pkt-colors {
|
|
108
|
-
.pkt-color-bg-#{$name} {
|
|
109
|
-
background-color: $color !important;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.pkt-color-txt-#{$name} {
|
|
113
|
-
color: $color !important;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.pkt-color-border-#{$name} {
|
|
117
|
-
border-color: $color !important;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@each $name, $color in variables.$pkt-semantic-colors {
|
|
122
|
-
.pkt-color-bg-#{$name} {
|
|
123
|
-
background-color: var(--pkt-color-#{$name}) !important;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.pkt-color-txt-#{$name} {
|
|
127
|
-
color: var(--pkt-color-#{$name}) !important;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.pkt-color-border-#{$name} {
|
|
131
|
-
border-color: var(--pkt-color-#{$name}) !important;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// Deprecated
|
|
136
|
-
@each $name, $color in variables.$colors {
|
|
137
|
-
.bg-#{$name} {
|
|
138
|
-
background-color: $color !important;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.txt-#{$name} {
|
|
142
|
-
color: $color !important;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
1
|
+
@forward 'colors-tokens';
|
|
2
|
+
@forward 'colors-utilities';
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
// tokens → reset → typograhy → grid → utilities → a11y.
|
|
2
|
+
// Utilities ligger sist med vilje, så de vinner på spesifisitet når !important fjernes senere
|
|
1
3
|
@forward 'oslo-sans';
|
|
2
|
-
@forward 'colors';
|
|
4
|
+
@forward 'colors-tokens';
|
|
5
|
+
|
|
3
6
|
@forward 'defaults';
|
|
4
|
-
@forward '
|
|
7
|
+
@forward 'typography';
|
|
8
|
+
|
|
5
9
|
@forward 'containers';
|
|
6
10
|
@forward 'grid';
|
|
7
|
-
@forward 'typography';
|
|
8
11
|
@forward 'layouts';
|
|
12
|
+
|
|
13
|
+
@forward 'colors-utilities';
|
|
14
|
+
@forward 'spacing';
|
|
9
15
|
@forward 'visibility';
|
|
16
|
+
|
|
10
17
|
@forward 'accessibility';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.7",
|
|
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",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"astro": "^7.2.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "d13f13397fd20b7d41aee384f6ae985b32d8b507"
|
|
66
66
|
}
|