@navikt/ds-css 1.5.9 → 2.0.0-next.1

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/tag.css CHANGED
@@ -1,24 +1,10 @@
1
- :root,
2
- :host {
3
- --navds-tag-color-border: var(--navds-semantic-color-border-muted);
4
- --navds-tag-color-background: var(--navds-semantic-color-component-background-alternate);
5
- --navds-tag-color-info-background: var(--navds-semantic-color-feedback-info-background);
6
- --navds-tag-color-info-border: var(--navds-semantic-color-feedback-info-border);
7
- --navds-tag-color-warning-background: var(--navds-semantic-color-feedback-warning-background);
8
- --navds-tag-color-warning-border: var(--navds-semantic-color-feedback-warning-border);
9
- --navds-tag-color-success-background: var(--navds-semantic-color-feedback-success-background);
10
- --navds-tag-color-success-border: var(--navds-semantic-color-feedback-success-border);
11
- --navds-tag-color-error-background: var(--navds-semantic-color-feedback-danger-background);
12
- --navds-tag-color-error-border: var(--navds-semantic-color-feedback-danger-border);
13
- }
14
-
15
1
  .navds-tag {
16
2
  border: 1px solid;
17
- border-radius: var(--navds-border-radius-small);
3
+ border-radius: var(--a-border-radius-small);
18
4
  display: inline-flex;
19
5
  align-items: center;
20
6
  justify-content: center;
21
- padding: 0.125rem var(--navds-spacing-2);
7
+ padding: var(--a-spacing-05) var(--a-spacing-2);
22
8
  min-height: 32px;
23
9
  line-height: 1;
24
10
  }
@@ -30,101 +16,101 @@
30
16
 
31
17
  .navds-tag--xsmall {
32
18
  min-height: 20px;
33
- padding: 0 var(--navds-spacing-1);
19
+ padding: 0 var(--a-spacing-1);
34
20
  }
35
21
 
36
22
  .navds-tag--error {
37
- border-color: var(--ac-tag-error-border, var(--navds-global-color-red-500));
38
- background-color: var(--ac-tag-error-bg, var(--navds-global-color-red-50));
39
- color: var(--ac-tag-error-text, var(--navds-global-color-gray-900));
23
+ border-color: var(--ac-tag-error-border, var(--a-border-danger));
24
+ background-color: var(--ac-tag-error-bg, var(--a-surface-danger-subtle));
25
+ color: var(--ac-tag-error-text, var(--a-text-default));
40
26
  }
41
27
 
42
28
  .navds-tag--error-filled {
43
29
  border-color: transparent;
44
- background-color: var(--ac-tag-error-filled-bg, var(--navds-global-color-red-500));
45
- color: var(--ac-tag-error-filled-text, var(--navds-global-color-white));
30
+ background-color: var(--ac-tag-error-filled-bg, var(--a-surface-danger));
31
+ color: var(--ac-tag-error-filled-text, var(--a-text-on-danger));
46
32
  }
47
33
 
48
34
  .navds-tag--success {
49
- border-color: var(--ac-tag-success-border, var(--navds-global-color-green-500));
50
- background-color: var(--ac-tag-success-bg, var(--navds-global-color-green-50));
51
- color: var(--ac-tag-success-text, var(--navds-global-color-gray-900));
35
+ border-color: var(--ac-tag-success-border, var(--a-border-success));
36
+ background-color: var(--ac-tag-success-bg, var(--a-surface-success-subtle));
37
+ color: var(--ac-tag-success-text, var(--a-text-default));
52
38
  }
53
39
 
54
40
  .navds-tag--success-filled {
55
41
  border-color: transparent;
56
- background-color: var(--ac-tag-success-filled-bg, var(--navds-global-color-green-500));
57
- color: var(--ac-tag-success-filled-text, var(--navds-global-color-white));
42
+ background-color: var(--ac-tag-success-filled-bg, var(--a-surface-success));
43
+ color: var(--ac-tag-success-filled-text, var(--a-text-on-success));
58
44
  }
59
45
 
60
46
  .navds-tag--warning {
61
- border-color: var(--ac-tag-warning-border, var(--navds-global-color-orange-600));
62
- background-color: var(--ac-tag-warning-bg, var(--navds-global-color-orange-50));
63
- color: var(--ac-tag-warning-text, var(--navds-global-color-gray-900));
47
+ border-color: var(--ac-tag-warning-border, var(--a-border-warning));
48
+ background-color: var(--ac-tag-warning-bg, var(--a-surface-warning-subtle));
49
+ color: var(--ac-tag-warning-text, var(--a-text-default));
64
50
  }
65
51
 
66
52
  .navds-tag--warning-filled {
67
53
  border-color: transparent;
68
- background-color: var(--ac-tag-warning-filled-bg, var(--navds-global-color-orange-500));
69
- color: var(--ac-tag-warning-filled-text, var(--navds-global-color-gray-900));
54
+ background-color: var(--ac-tag-warning-filled-bg, var(--a-surface-warning));
55
+ color: var(--ac-tag-warning-filled-text, var(--a-text-on-warning));
70
56
  }
71
57
 
72
58
  .navds-tag--info {
73
- border-color: var(--ac-tag-info-border, var(--navds-global-color-lightblue-700));
74
- background-color: var(--ac-tag-info-bg, var(--navds-global-color-lightblue-50));
75
- color: var(--ac-tag-info-text, var(--navds-global-color-gray-900));
59
+ border-color: var(--ac-tag-info-border, var(--a-border-info));
60
+ background-color: var(--ac-tag-info-bg, var(--a-surface-info-subtle));
61
+ color: var(--ac-tag-info-text, var(--a-text-default));
76
62
  }
77
63
 
78
64
  .navds-tag--info-filled {
79
65
  border-color: transparent;
80
- background-color: var(--ac-tag-info-filled-bg, var(--navds-global-color-lightblue-500));
81
- color: var(--ac-tag-info-filled-text, var(--navds-global-color-gray-900));
66
+ background-color: var(--ac-tag-info-filled-bg, var(--a-surface-info));
67
+ color: var(--ac-tag-info-filled-text, var(--a-text-on-info));
82
68
  }
83
69
 
84
70
  .navds-tag--neutral {
85
- border-color: var(--ac-tag-neutral-border, var(--navds-global-color-gray-500));
86
- background-color: var(--ac-tag-neutral-bg, var(--navds-global-color-gray-100));
87
- color: var(--ac-tag-neutral-text, var(--navds-global-color-gray-900));
71
+ border-color: var(--ac-tag-neutral-border, var(--a-border-default));
72
+ background-color: var(--ac-tag-neutral-bg, var(--a-surface-neutral-subtle));
73
+ color: var(--ac-tag-neutral-text, var(--a-text-default));
88
74
  }
89
75
 
90
76
  .navds-tag--neutral-filled {
91
77
  border-color: transparent;
92
- background-color: var(--ac-tag-neutral-filled-bg, var(--navds-global-color-gray-800));
93
- color: var(--ac-tag-neutral-filled-text, var(--navds-global-color-white));
78
+ background-color: var(--ac-tag-neutral-filled-bg, var(--a-surface-neutral));
79
+ color: var(--ac-tag-neutral-filled-text, var(--a-text-on-neutral));
94
80
  }
95
81
 
96
82
  .navds-tag--alt1 {
97
- border-color: var(--ac-tag-alt1-border, var(--navds-global-color-purple-400));
98
- background-color: var(--ac-tag-alt1-bg, var(--navds-global-color-purple-100));
99
- color: var(--ac-tag-alt1-text, var(--navds-global-color-gray-900));
83
+ border-color: var(--ac-tag-alt-1-border, var(--a-border-alt-1));
84
+ background-color: var(--ac-tag-alt-1-bg, var(--a-surface-alt-1-subtle));
85
+ color: var(--ac-tag-alt-1-text, var(--a-text-default));
100
86
  }
101
87
 
102
88
  .navds-tag--alt1-filled {
103
89
  border-color: transparent;
104
- background-color: var(--ac-tag-alt1-filled-bg, var(--navds-global-color-purple-400));
105
- color: var(--ac-tag-alt1-filled-text, var(--navds-global-color-white));
90
+ background-color: var(--ac-tag-alt-1-filled-bg, var(--a-surface-alt-1));
91
+ color: var(--ac-tag-alt-1-filled-text, var(--a-text-on-alt-1));
106
92
  }
107
93
 
108
94
  .navds-tag--alt2 {
109
- border-color: var(--ac-tag-alt2-border, var(--navds-global-color-limegreen-500));
110
- background-color: var(--ac-tag-alt2-bg, var(--navds-global-color-limegreen-100));
111
- color: var(--ac-tag-alt2-text, var(--navds-global-color-gray-900));
95
+ border-color: var(--ac-tag-alt-2-border, var(--a-border-alt-2));
96
+ background-color: var(--ac-tag-alt-2-bg, var(--a-surface-alt-2-subtle));
97
+ color: var(--ac-tag-alt-2-text, var(--a-text-default));
112
98
  }
113
99
 
114
100
  .navds-tag--alt2-filled {
115
101
  border-color: transparent;
116
- background-color: var(--ac-tag-alt2-filled-bg, var(--navds-global-color-limegreen-400));
117
- color: var(--ac-tag-alt2-filled-text, var(--navds-global-color-gray-900));
102
+ background-color: var(--ac-tag-alt-2-filled-bg, var(--a-surface-alt-2));
103
+ color: var(--ac-tag-alt-2-filled-text, var(--a-text-on-alt-2));
118
104
  }
119
105
 
120
106
  .navds-tag--alt3 {
121
- border-color: var(--ac-tag-alt3-border, var(--navds-global-color-deepblue-400));
122
- background-color: var(--ac-tag-alt3-bg, var(--navds-global-color-deepblue-100));
123
- color: var(--ac-tag-alt3-text, var(--navds-global-color-gray-900));
107
+ border-color: var(--ac-tag-alt-3-border, var(--a-border-alt-3));
108
+ background-color: var(--ac-tag-alt-3-bg, var(--a-surface-alt-3-subtle));
109
+ color: var(--ac-tag-alt-3-text, var(--a-text-default));
124
110
  }
125
111
 
126
112
  .navds-tag--alt3-filled {
127
113
  border-color: transparent;
128
- background-color: var(--ac-tag-alt3-filled-bg, var(--navds-global-color-deepblue-500));
129
- color: var(--ac-tag-alt3-filled-text, var(--navds-global-color-white));
114
+ background-color: var(--ac-tag-alt-3-filled-bg, var(--a-surface-alt-3));
115
+ color: var(--ac-tag-alt-3-filled-text, var(--a-text-on-alt-3));
130
116
  }
package/toggle-group.css CHANGED
@@ -1,26 +1,15 @@
1
- :root,
2
- :host {
3
- --navds-toggle-group-color-background: var(--navds-semantic-color-component-background-light);
4
- --navds-toggle-group-color-text: var(--navds-semantic-color-text);
5
- --navds-toggle-group-color-border: var(--navds-semantic-color-divider);
6
- --navds-toggle-group-color-background-hover: var(--navds-semantic-color-interaction-primary-hover-subtle);
7
- --navds-toggle-group-color-text-hover: var(--navds-semantic-color-interaction-primary);
8
- --navds-toggle-group-color-background-pressed: var(--navds-semantic-color-interaction-primary-selected);
9
- --navds-toggle-group-color-text-pressed: var(--navds-semantic-color-text-inverted);
10
- }
11
-
12
1
  .navds-toggle-group__wrapper {
13
2
  display: grid;
14
3
  justify-items: start;
15
- gap: var(--navds-spacing-2);
4
+ gap: var(--a-spacing-2);
16
5
  }
17
6
 
18
7
  .navds-toggle-group {
19
- border-radius: 7px; /* Custom value OK */
20
- background-color: var(--navds-toggle-group-color-background);
21
- box-shadow: inset 0 0 0 1px var(--navds-toggle-group-color-border);
22
- padding: calc(var(--navds-spacing-1) + 1px);
23
- gap: var(--navds-spacing-1);
8
+ border-radius: 9px;
9
+ background-color: var(--ac-toggle-group-bg, var(--a-surface-default));
10
+ box-shadow: inset 0 0 0 1px var(--ac-toggle-group-border, var(--a-border-default));
11
+ padding: calc(var(--a-spacing-1) + 1px);
12
+ gap: var(--a-spacing-1);
24
13
  display: inline-grid;
25
14
  grid-auto-flow: column;
26
15
  grid-auto-columns: 1fr;
@@ -30,34 +19,34 @@
30
19
  display: inline-flex;
31
20
  align-items: center;
32
21
  justify-content: center;
33
- padding: var(--navds-spacing-3);
22
+ padding: var(--a-spacing-3);
34
23
  min-height: 48px;
35
24
  border: none;
36
25
  cursor: pointer;
37
- background-color: var(--navds-toggle-group-color-background);
38
- color: var(--navds-toggle-group-color-text);
39
- border-radius: var(--navds-border-radius-small);
26
+ background-color: var(--ac-toggle-group-button-bg, var(--a-surface-default));
27
+ color: var(--ac-toggle-group-button-text, var(--a-text-default));
28
+ border-radius: var(--a-border-radius-medium);
40
29
  min-width: fit-content;
41
30
  }
42
31
 
43
32
  .navds-toggle-group__button:hover {
44
- background-color: var(--navds-toggle-group-color-background-hover);
45
- color: var(--navds-toggle-group-color-text-hover);
33
+ background-color: var(--ac-toggle-group-button-hover-bg, var(--a-surface-action-subtle));
34
+ color: var(--ac-toggle-group-button-hover-text, var(--a-text-action-on-action-subtle));
46
35
  }
47
36
 
48
37
  .navds-toggle-group__button:focus {
49
38
  outline: none;
50
- box-shadow: 0 0 0 1px var(--navds-toggle-group-color-background), 0 0 0 4px var(--navds-semantic-color-focus);
39
+ box-shadow: 0 0 0 1px var(--a-surface-default), 0 0 0 4px var(--a-border-focus);
51
40
  }
52
41
 
53
42
  .navds-toggle-group__button:focus:hover[aria-pressed="false"] {
54
- box-shadow: 0 0 0 1px var(--navds-toggle-group-color-background-hover), 0 0 0 4px var(--navds-semantic-color-focus);
43
+ box-shadow: 0 0 0 1px var(--ac-toggle-group-button-hover-bg, var(--a-surface-action-subtle)), 0 0 0 4px var(--a-border-focus);
55
44
  }
56
45
 
57
46
  .navds-toggle-group__button-inner {
58
47
  display: flex;
59
48
  align-items: center;
60
- gap: var(--navds-spacing-2);
49
+ gap: var(--a-spacing-2);
61
50
  }
62
51
 
63
52
  .navds-toggle-group__button-inner > * {
@@ -66,8 +55,8 @@
66
55
 
67
56
  .navds-toggle-group__button[aria-pressed="true"],
68
57
  .navds-toggle-group__button[aria-checked="true"] {
69
- background-color: var(--navds-toggle-group-color-background-pressed);
70
- color: var(--navds-toggle-group-color-text-pressed);
58
+ background-color: var(--ac-toggle-group-selected-bg, var(--a-surface-action-selected));
59
+ color: var(--ac-toggle-group-selected-text, var(--a-text-on-action));
71
60
  }
72
61
 
73
62
  .navds-toggle-group--small > .navds-toggle-group__button {
package/tokens.json ADDED
@@ -0,0 +1,303 @@
1
+ {
2
+ "alert": {
3
+ "--ac-alert-error-border": "--a-border-danger",
4
+ "--ac-alert-error-bg": "--a-surface-danger-subtle",
5
+ "--ac-alert-warning-border": "--a-border-warning",
6
+ "--ac-alert-warning-bg": "--a-surface-warning-subtle",
7
+ "--ac-alert-info-border": "--a-border-info",
8
+ "--ac-alert-info-bg": "--a-surface-info-subtle",
9
+ "--ac-alert-success-border": "--a-border-success",
10
+ "--ac-alert-success-bg": "--a-surface-success-subtle"
11
+ },
12
+ "accordion": {
13
+ "--ac-accordion-header-text-hover": "--a-text-action-on-action-subtle",
14
+ "--ac-accordion-header-border-hover": "--a-border-strong-hover",
15
+ "--ac-accordion-item-bg-open": "--a-surface-action-subtle",
16
+ "--ac-accordion-item-border-open": "--a-surface-action-subtle",
17
+ "--ac-accordion-content-border": "--a-border-strong",
18
+ "--ac-accordion-content-border-open": "--a-border-strong-hover"
19
+ },
20
+ "button": {
21
+ "--ac-button-primary-bg": "--a-surface-action",
22
+ "--ac-button-primary-text": "--a-text-on-action",
23
+ "--ac-button-primary-hover-bg": "--a-surface-action-hover",
24
+ "--ac-button-primary-active-bg": "--a-surface-action-active",
25
+ "--ac-button-primary-focus-border": "--a-surface-default",
26
+ "--ac-button-secondary-text": "--a-text-action",
27
+ "--ac-button-secondary-bg": "--a-surface-default",
28
+ "--ac-button-secondary-border": "--a-border-action",
29
+ "--ac-button-secondary-hover-text": "--a-text-action-on-action-subtle",
30
+ "--ac-button-secondary-hover-bg": "--a-surface-action-subtle-hover",
31
+ "--ac-button-secondary-focus-border": "--a-border-action",
32
+ "--ac-button-secondary-active-text": "--a-text-on-action",
33
+ "--ac-button-secondary-active-bg": "--a-surface-action-active",
34
+ "--ac-button-secondary-active-focus-border": "--a-surface-default",
35
+ "--ac-button-tertiary-text": "--a-text-action",
36
+ "--ac-button-tertiary-hover-text": "--a-text-action-on-action-subtle",
37
+ "--ac-button-tertiary-hover-bg": "--a-surface-action-subtle-hover",
38
+ "--ac-button-tertiary-focus-border": "--a-border-action",
39
+ "--ac-button-tertiary-active-text": "--a-text-on-action",
40
+ "--ac-button-tertiary-active-bg": "--a-surface-action-active",
41
+ "--ac-button-tertiary-active-hover-bg": "--a-surface-action-active",
42
+ "--ac-button-danger-bg": "--a-surface-danger",
43
+ "--ac-button-danger-text": "--a-text-on-danger",
44
+ "--ac-button-danger-hover-bg": "--a-surface-danger-hover",
45
+ "--ac-button-danger-active-bg": "--a-surface-danger-active",
46
+ "--ac-button-loader-stroke": "currentColor",
47
+ "--ac-button-primary-loader-stroke-bg": "rgb(255 255 255 / 0.3)"
48
+ },
49
+ "chat": {
50
+ "--ac-chat-avatar-bg": "--a-bg-subtle",
51
+ "--ac-chat-avatar-color": "--a-text-default",
52
+ "--ac-chat-bubble-bg": "--a-bg-subtle",
53
+ "--ac-chat-top-text": "--a-text-default"
54
+ },
55
+ "chips": {
56
+ "--ac-chip-toggle-border": "--a-border-default",
57
+ "--ac-chip-toggle-bg": "--a-surface-neutral-subtle",
58
+ "--ac-chip-toggle-hover-border": "--a-border-strong",
59
+ "--ac-chip-toggle-hover-bg": "--a-surface-neutral-subtle-hover",
60
+ "--ac-chip-toggle-pressed-bg": "--a-surface-action-selected",
61
+ "--ac-chip-toggle-pressed-text": "--a-text-on-action",
62
+ "--ac-chip-toggle-pressed-hover-bg": "--a-surface-action-selected-hover",
63
+ "--ac-chip-toggle-focus": "--a-border-focus",
64
+ "--ac-chip-removable-action-bg": "--a-surface-action-selected",
65
+ "--ac-chip-removable-action-text": "--a-text-on-action",
66
+ "--ac-chip-removable-neutral-bg": "--a-surface-neutral-subtle",
67
+ "--ac-chip-removable-neutral-text": "--a-text-default",
68
+ "--ac-chip-removable-neutral-border": "--a-border-default",
69
+ "--ac-chip-removable-action-hover-bg": "--a-surface-action-selected-hover",
70
+ "--ac-chip-removable-neutral-hover-bg": "--a-surface-neutral-subtle-hover",
71
+ "--ac-chip-removable-neutral-hover-border": "--a-border-strong"
72
+ },
73
+ "date": {
74
+ "--ac-date-middle-text": "--a-text-on-action",
75
+ "--ac-date-middle-bg": "--a-surface-action-selected",
76
+ "--ac-date-week-text": "--a-text-on-neutral",
77
+ "--ac-date-week-bg": "--a-surface-neutral",
78
+ "--ac-date-selected-text": "--a-text-on-action",
79
+ "--ac-date-selected-bg": "--a-surface-action-selected",
80
+ "--ac-date-disabled-bg": "--a-surface-neutral-subtle",
81
+ "--ac-date-disabled-text": "--a-text-subtle",
82
+ "--ac-date-hover-bg": "--a-surface-action-subtle-hover",
83
+ "--ac-date-today-border": "--a-border-action-selected",
84
+ "--ac-date-caption-text": "--a-text-default",
85
+ "--ac-date-input-error-border": "--a-border-danger",
86
+ "--ac-date-input-button-text": "--a-text-default"
87
+ },
88
+ "guidepanel": {
89
+ "--ac-guide-panel-bg": "--a-surface-default",
90
+ "--ac-guide-panel-border": "--a-border-action",
91
+ "--ac-guide-panel-illustration-bg": "--a-surface-action-subtle"
92
+ },
93
+ "helptext": {
94
+ "--ac-help-text-button-color": "--a-surface-action",
95
+ "--ac-help-text-popover-bg": "--a-surface-info-subtle"
96
+ },
97
+ "linkpanel": {
98
+ "--ac-link-panel-text": "--a-text-default",
99
+ "--ac-link-panel-hover-text": "--a-text-action",
100
+ "--ac-link-panel-hover-border": "--a-border-action"
101
+ },
102
+ "link": {
103
+ "--ac-link-text": "--a-text-action",
104
+ "--ac-link-focus-text": "--a-text-on-action",
105
+ "--ac-link-focus-bg": "--a-border-focus",
106
+ "--ac-link-focus-border": "--a-border-focus",
107
+ "--ac-link-active-text": "--a-text-on-action",
108
+ "--ac-link-active-bg": "--a-border-focus",
109
+ "--ac-link-active-border": "--a-border-focus"
110
+ },
111
+ "loader": {
112
+ "--ac-loader-stroke": "--a-border-default",
113
+ "--ac-loader-stroke-bg": "--a-surface-active",
114
+ "--ac-loader-neutral-stroke": "--a-border-default",
115
+ "--ac-loader-interaction-stroke": "--a-border-action",
116
+ "--ac-loader-inverted-stroke": "--a-border-on-inverted",
117
+ "--ac-loader-inverted-stroke-bg": "--a-border-on-inverted-subtle"
118
+ },
119
+ "modal": {
120
+ "--ac-modal-bg": "--a-surface-default",
121
+ "--ac-modal-backdrop": "--a-surface-backdrop"
122
+ },
123
+ "pagination": {
124
+ "--ac-pagination-text": "--a-text-default",
125
+ "--ac-pagination-selected-bg": "--a-surface-action-selected",
126
+ "--ac-pagination-selected-text": "--a-text-on-action"
127
+ },
128
+ "panel": {
129
+ "--ac-panel-bg": "--a-surface-default",
130
+ "--ac-panel-border": "--a-border-default"
131
+ },
132
+ "popover": {
133
+ "--ac-popover-bg": "--a-surface-default",
134
+ "--ac-popover-border": "--a-border-default"
135
+ },
136
+ "readmore": {
137
+ "--ac-read-more-text": "--a-text-action",
138
+ "--ac-read-more-hover-bg": "--a-surface-hover",
139
+ "--ac-read-more-active-bg": "--a-surface-active",
140
+ "--ac-read-more-line": "--a-border-divider"
141
+ },
142
+ "stepper": {
143
+ "--ac-stepper-text": "--a-surface-action",
144
+ "--ac-stepper-line": "--a-border-default",
145
+ "--ac-stepper-line-completed": "--a-border-selected",
146
+ "--ac-stepper-non-interactive": "--a-text-subtle",
147
+ "--ac-stepper-active": "--a-text-action-selected",
148
+ "--ac-stepper-active-bg": "--a-surface-action-selected",
149
+ "--ac-stepper-active-border": "--a-border-action-selected",
150
+ "--ac-stepper-active-text": "--a-text-on-action",
151
+ "--ac-stepper-hover-bg": "--a-surface-action-subtle-hover",
152
+ "--ac-stepper-non-interactive-active": "--a-text-default",
153
+ "--ac-stepper-non-interactive-line-completed": "--a-border-strong",
154
+ "--ac-stepper-non-interactive-active-bg": "--a-surface-inverted",
155
+ "--ac-stepper-non-interactive-active-border": "--a-surface-inverted",
156
+ "--ac-stepper-non-interactive-active-text": "--a-text-on-inverted",
157
+ "--ac-stepper-active-completed": "--a-text-action-selected",
158
+ "--ac-stepper-non-interactive-active-completed": "--a-text-default"
159
+ },
160
+ "table": {
161
+ "--ac-table-row-hover": "--a-bg-subtle",
162
+ "--ac-table-row-selected": "--a-surface-action-subtle",
163
+ "--ac-table-row-selected-hover": "--a-surface-action-subtle-hover",
164
+ "--ac-table-row-zebra": "--a-surface-subtle",
165
+ "--ac-table-row-border": "--a-border-default",
166
+ "--ac-table-row-hover-border": "--a-border-strong",
167
+ "--ac-table-sort-button-text": "--a-text-action",
168
+ "--ac-table-sort-button-hover-bg": "--a-bg-subtle",
169
+ "--ac-table-sort-button-sorted-bg": "--a-surface-selected",
170
+ "--ac-table-sort-button-sorted-text": "--a-text-action-on-action-subtle"
171
+ },
172
+ "tabs": {
173
+ "--ac-tabs-border": "--a-border-divider",
174
+ "--ac-tabs-text": "--a-text-subtle",
175
+ "--ac-tabs-hover-border": "--a-border-subtle-hover",
176
+ "--ac-tabs-selected-border": "--a-border-action",
177
+ "--ac-tabs-selected-text": "--a-text-default",
178
+ "--ac-tabs-focus-text": "--a-text-default"
179
+ },
180
+ "tag": {
181
+ "--ac-tag-error-border": "--a-border-danger",
182
+ "--ac-tag-error-bg": "--a-surface-danger-subtle",
183
+ "--ac-tag-error-text": "--a-text-default",
184
+ "--ac-tag-error-filled-bg": "--a-surface-danger",
185
+ "--ac-tag-error-filled-text": "--a-text-on-danger",
186
+ "--ac-tag-success-border": "--a-border-success",
187
+ "--ac-tag-success-bg": "--a-surface-success-subtle",
188
+ "--ac-tag-success-text": "--a-text-default",
189
+ "--ac-tag-success-filled-bg": "--a-surface-success",
190
+ "--ac-tag-success-filled-text": "--a-text-on-success",
191
+ "--ac-tag-warning-border": "--a-border-warning",
192
+ "--ac-tag-warning-bg": "--a-surface-warning-subtle",
193
+ "--ac-tag-warning-text": "--a-text-default",
194
+ "--ac-tag-warning-filled-bg": "--a-surface-warning",
195
+ "--ac-tag-warning-filled-text": "--a-text-on-warning",
196
+ "--ac-tag-info-border": "--a-border-info",
197
+ "--ac-tag-info-bg": "--a-surface-info-subtle",
198
+ "--ac-tag-info-text": "--a-text-default",
199
+ "--ac-tag-info-filled-bg": "--a-surface-info",
200
+ "--ac-tag-info-filled-text": "--a-text-on-info",
201
+ "--ac-tag-neutral-border": "--a-border-default",
202
+ "--ac-tag-neutral-bg": "--a-surface-neutral-subtle",
203
+ "--ac-tag-neutral-text": "--a-text-default",
204
+ "--ac-tag-neutral-filled-bg": "--a-surface-neutral",
205
+ "--ac-tag-neutral-filled-text": "--a-text-on-neutral",
206
+ "--ac-tag-alt-1-border": "--a-border-alt-1",
207
+ "--ac-tag-alt-1-bg": "--a-surface-alt-1-subtle",
208
+ "--ac-tag-alt-1-text": "--a-text-default",
209
+ "--ac-tag-alt-1-filled-bg": "--a-surface-alt-1",
210
+ "--ac-tag-alt-1-filled-text": "--a-text-on-alt-1",
211
+ "--ac-tag-alt-2-border": "--a-border-alt-2",
212
+ "--ac-tag-alt-2-bg": "--a-surface-alt-2-subtle",
213
+ "--ac-tag-alt-2-text": "--a-text-default",
214
+ "--ac-tag-alt-2-filled-bg": "--a-surface-alt-2",
215
+ "--ac-tag-alt-2-filled-text": "--a-text-on-alt-2",
216
+ "--ac-tag-alt-3-border": "--a-border-alt-3",
217
+ "--ac-tag-alt-3-bg": "--a-surface-alt-3-subtle",
218
+ "--ac-tag-alt-3-text": "--a-text-default",
219
+ "--ac-tag-alt-3-filled-bg": "--a-surface-alt-3",
220
+ "--ac-tag-alt-3-filled-text": "--a-text-on-alt-3"
221
+ },
222
+ "togglegroup": {
223
+ "--ac-toggle-group-bg": "--a-surface-default",
224
+ "--ac-toggle-group-border": "--a-border-default",
225
+ "--ac-toggle-group-button-bg": "--a-surface-default",
226
+ "--ac-toggle-group-button-text": "--a-text-default",
227
+ "--ac-toggle-group-button-hover-bg": "--a-surface-action-subtle",
228
+ "--ac-toggle-group-button-hover-text": "--a-text-action-on-action-subtle",
229
+ "--ac-toggle-group-selected-bg": "--a-surface-action-selected",
230
+ "--ac-toggle-group-selected-text": "--a-text-on-action"
231
+ },
232
+ "tooltip": {
233
+ "--ac-tooltip-bg": "--a-surface-inverted",
234
+ "--ac-tooltip-text": "--a-text-on-inverted",
235
+ "--ac-tooltip-key-bg": "--a-surface-neutral",
236
+ "--ac-tooltip-key-text": "--a-text-on-inverted"
237
+ },
238
+ "typography": {
239
+ "--ac-typo-error-text": "--a-text-danger"
240
+ },
241
+ "confirmationpanel": {
242
+ "--ac-confirmation-panel-border": "--a-border-warning",
243
+ "--ac-confirmation-panel-bg": "--a-surface-warning-subtle",
244
+ "--ac-confirmation-panel-checked-border": "--a-border-success",
245
+ "--ac-confirmation-panel-checked-bg": "--a-surface-success-subtle",
246
+ "--ac-confirmation-panel-error-border": "--a-border-danger",
247
+ "--ac-confirmation-panel-error-bg": "--a-surface-danger-subtle"
248
+ },
249
+ "errorsummary": {
250
+ "--ac-error-summary-bg": "--a-surface-default",
251
+ "--ac-error-summary-border": "--a-border-danger"
252
+ },
253
+ "checkbox-radio": {
254
+ "--ac-radio-checkbox-bg": "--a-surface-default",
255
+ "--ac-radio-checkbox-border": "--a-border-strong",
256
+ "--ac-radio-checkbox-action": "--a-surface-action",
257
+ "--ac-radio-checkbox-action-hover-bg": "--a-surface-action-subtle",
258
+ "--ac-radio-checkbox-error-border": "--a-border-danger",
259
+ "--ac-radio-checkbox-error-hover-bg": "--a-surface-danger-subtle"
260
+ },
261
+ "search": {
262
+ "--ac-search-button-border": "--a-border-default",
263
+ "--ac-search-button-border-hover": "--a-border-action",
264
+ "--ac-search-clear-icon": "--a-text-default",
265
+ "--ac-search-clear-icon-hover": "--a-text-action",
266
+ "--ac-search-button-focus-active-border": "--a-surface-default",
267
+ "--ac-search-error-border": "--a-border-danger"
268
+ },
269
+ "select": {
270
+ "--ac-select-bg": "--a-surface-default",
271
+ "--ac-select-border": "--a-border-strong",
272
+ "--ac-select-hover-bg": "--a-border-action",
273
+ "--ac-select-error-border": "--a-surface-danger"
274
+ },
275
+ "switch": {
276
+ "--ac-switch-action": "--a-surface-action",
277
+ "--ac-switch-bg": "--a-surface-neutral",
278
+ "--ac-switch-checked-bg": "--a-surface-success",
279
+ "--ac-switch-hover-bg": "--a-surface-neutral-hover",
280
+ "--ac-switch-checked-hover-bg": "--a-surface-success-hover",
281
+ "--ac-switch-thumb-bg": "--a-surface-default",
282
+ "--ac-switch-thumb-icon": "--a-icon-subtle",
283
+ "--ac-switch-thumb-icon-checked": "--a-icon-success"
284
+ },
285
+ "textfield": {
286
+ "--ac-textfield-bg": "--a-surface-default",
287
+ "--ac-textfield-border": "--a-border-default",
288
+ "--ac-textfield-text": "--a-text-default",
289
+ "--ac-textfield-placeholder": "--a-text-subtle",
290
+ "--ac-textfield-hover-border": "--a-border-action",
291
+ "--ac-textfield-error-border": "--a-border-danger"
292
+ },
293
+ "textarea": {
294
+ "--ac-textarea-bg": "--a-surface-default",
295
+ "--ac-textarea-border": "--a-border-default",
296
+ "--ac-textarea-text": "--a-text-default",
297
+ "--ac-textarea-placeholder": "--a-text-subtle",
298
+ "--ac-textarea-hover-border": "--a-border-action",
299
+ "--ac-textarea-counter-text": "--a-text-subtle",
300
+ "--ac-textarea-counter-error-text": "--a-surface-danger",
301
+ "--ac-textarea-error-border": "--a-border-danger"
302
+ }
303
+ }
package/tooltip.css CHANGED
@@ -9,11 +9,11 @@
9
9
  }
10
10
 
11
11
  .navds-tooltip {
12
- z-index: var(--navds-z-index-tooltip);
13
- background-color: var(--navds-semantic-color-component-background-inverted);
14
- color: var(--navds-semantic-color-text-inverted);
15
- border-radius: var(--navds-border-radius-small);
16
- padding: 0 var(--navds-spacing-2);
12
+ z-index: var(--a-z-index-tooltip);
13
+ background-color: var(--ac-tooltip-bg, var(--a-surface-inverted));
14
+ color: var(--ac-tooltip-text, var(--a-text-on-inverted));
15
+ border-radius: var(--a-border-radius-small);
16
+ padding: 0 var(--a-spacing-2);
17
17
  align-items: center;
18
18
  filter: drop-shadow(0 2px 4px rgba(0 0 0 / 0.1)) drop-shadow(0 4px 6px rgba(0 0 0 / 0.1));
19
19
  display: flex;
@@ -29,22 +29,22 @@
29
29
  width: 7px;
30
30
  transform: rotate(45deg);
31
31
  z-index: -1;
32
- background-color: var(--navds-semantic-color-component-background-inverted);
32
+ background-color: var(--ac-tooltip-bg, var(--a-surface-inverted));
33
33
  position: absolute;
34
34
  }
35
35
 
36
36
  .navds-tooltip__keys {
37
- padding-bottom: var(--navds-spacing-1);
37
+ padding-bottom: var(--a-spacing-1);
38
38
  display: flex;
39
- gap: var(--navds-spacing-1);
39
+ gap: var(--a-spacing-1);
40
40
  }
41
41
 
42
42
  .navds-tooltip__key {
43
- font-family: var(--navds-font-family);
44
- background-color: var(--navds-global-color-gray-700);
45
- color: var(--navds-semantic-color-text-inverted);
46
- border-radius: var(--navds-border-radius-small);
47
- padding: 0 var(--navds-spacing-1);
43
+ font-family: var(--a-font-family);
44
+ background-color: var(--ac-tooltip-key-bg, var(--a-surface-neutral));
45
+ color: var(--ac-tooltip-key-text, var(--a-text-on-inverted));
46
+ border-radius: var(--a-border-radius-small);
47
+ padding: 0 var(--a-spacing-1);
48
48
  min-width: 18px;
49
49
  height: 18px;
50
50
  display: inline-flex;