@navikt/ds-tokens 2.0.0-next.0 → 2.0.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.
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
- # NAV tokens
1
+ # Aksel tokens
2
2
 
3
- Design-tokens used when implementing @navikt/ds-css. This package is consumed by @navikt/ds-css at buildtime, so not needed separately for regular use of css-variables.
3
+ Design-tokens for NAVs designsystem and used when implementing @navikt/ds-css.
4
+
5
+ Node: This package is consumed by `@navikt/ds-css`, so not needed separately for regular use of css-variables.
4
6
 
5
7
  Formats
6
8
 
@@ -12,15 +14,8 @@ Formats
12
14
 
13
15
  ## Installation
14
16
 
15
- Install `@navikt/ds-tokens` with yarn
16
-
17
17
  ```bash
18
18
  yarn add @navikt/ds-tokens
19
- ```
20
-
21
- Install `@navikt/ds-tokens` with npm
22
-
23
- ```bash
24
19
  npm install @navikt/ds-tokens
25
20
  ```
26
21
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 18:26:45 GMT
3
+ * Generated on Mon, 21 Nov 2022 13:26:06 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -162,7 +162,7 @@ module.exports = {
162
162
  "ATextVisited": "rgba(99, 70, 137, 1)",
163
163
  "ATextDanger": "rgba(195, 0, 0, 1)",
164
164
  "ATextActionSelected": "rgba(0, 91, 130, 1)",
165
- "ATextActionHover": "rgba(0, 103, 197, 1)",
165
+ "ATextActionOnActionSubtle": "rgba(0, 86, 180, 1)",
166
166
  "ATextAction": "rgba(0, 103, 197, 1)",
167
167
  "ATextOnInverted": "rgba(255, 255, 255, 1)",
168
168
  "ATextOnNeutral": "rgba(255, 255, 255, 1)",
@@ -223,6 +223,7 @@ module.exports = {
223
223
  "AIconDefault": "rgba(38, 38, 38, 1)",
224
224
  "AIconSubtle": "rgba(112, 112, 112, 1)",
225
225
  "AIconActionSelected": "rgba(0, 91, 130, 1)",
226
+ "AIconActionOnActionSubtle": "rgba(0, 86, 180, 1)",
226
227
  "AIconAction": "rgba(0, 103, 197, 1)",
227
228
  "AIconSuccess": "rgba(6, 137, 58, 1)",
228
229
  "AIconDanger": "rgba(195, 0, 0, 1)",
package/dist/tokens.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 18:26:45 GMT
3
+ * Generated on Mon, 21 Nov 2022 13:26:06 GMT
4
4
  */
5
5
 
6
6
  :root, :host {
@@ -176,6 +176,7 @@
176
176
  --a-icon-danger: var(--a-red-500);
177
177
  --a-icon-success: var(--a-green-500);
178
178
  --a-icon-action: var(--a-blue-500);
179
+ --a-icon-action-on-action-subtle: var(--a-blue-600);
179
180
  --a-icon-action-selected: var(--a-deepblue-500);
180
181
  --a-icon-subtle: var(--a-gray-600);
181
182
  --a-icon-default: var(--a-gray-900);
@@ -236,7 +237,7 @@
236
237
  --a-text-on-neutral: var(--a-white);
237
238
  --a-text-on-inverted: var(--a-white);
238
239
  --a-text-action: var(--a-blue-500);
239
- --a-text-action-hover: var(--a-blue-500);
240
+ --a-text-action-on-action-subtle: var(--a-blue-600);
240
241
  --a-text-action-selected: var(--a-deepblue-500);
241
242
  --a-text-danger: var(--a-red-500);
242
243
  --a-text-visited: var(--a-purple-500);
package/dist/tokens.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 18:26:45 GMT
3
+ * Generated on Mon, 21 Nov 2022 13:26:06 GMT
4
4
  */
5
5
 
6
6
  export const AFontFamily : string;
@@ -161,7 +161,7 @@ export const ATextSubtle : string;
161
161
  export const ATextVisited : string;
162
162
  export const ATextDanger : string;
163
163
  export const ATextActionSelected : string;
164
- export const ATextActionHover : string;
164
+ export const ATextActionOnActionSubtle : string;
165
165
  export const ATextAction : string;
166
166
  export const ATextOnInverted : string;
167
167
  export const ATextOnNeutral : string;
@@ -222,6 +222,7 @@ export const ASurfaceAlt3 : string;
222
222
  export const AIconDefault : string;
223
223
  export const AIconSubtle : string;
224
224
  export const AIconActionSelected : string;
225
+ export const AIconActionOnActionSubtle : string;
225
226
  export const AIconAction : string;
226
227
  export const AIconSuccess : string;
227
228
  export const AIconDanger : string;
package/dist/tokens.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 18:26:45 GMT
3
+ * Generated on Mon, 21 Nov 2022 13:26:06 GMT
4
4
  */
5
5
 
6
6
  export const AFontFamily = "\"Source Sans Pro\", Arial, sans-serif";
@@ -161,7 +161,7 @@ export const ATextSubtle = "rgba(0, 0, 0, 0.56)";
161
161
  export const ATextVisited = "rgba(99, 70, 137, 1)";
162
162
  export const ATextDanger = "rgba(195, 0, 0, 1)";
163
163
  export const ATextActionSelected = "rgba(0, 91, 130, 1)";
164
- export const ATextActionHover = "rgba(0, 103, 197, 1)";
164
+ export const ATextActionOnActionSubtle = "rgba(0, 86, 180, 1)";
165
165
  export const ATextAction = "rgba(0, 103, 197, 1)";
166
166
  export const ATextOnInverted = "rgba(255, 255, 255, 1)";
167
167
  export const ATextOnNeutral = "rgba(255, 255, 255, 1)";
@@ -222,6 +222,7 @@ export const ASurfaceAlt3 = "rgba(0, 91, 130, 1)";
222
222
  export const AIconDefault = "rgba(38, 38, 38, 1)";
223
223
  export const AIconSubtle = "rgba(112, 112, 112, 1)";
224
224
  export const AIconActionSelected = "rgba(0, 91, 130, 1)";
225
+ export const AIconActionOnActionSubtle = "rgba(0, 86, 180, 1)";
225
226
  export const AIconAction = "rgba(0, 103, 197, 1)";
226
227
  export const AIconSuccess = "rgba(6, 137, 58, 1)";
227
228
  export const AIconDanger = "rgba(195, 0, 0, 1)";
package/dist/tokens.less CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Thu, 17 Nov 2022 18:26:45 GMT
3
+ // Generated on Mon, 21 Nov 2022 13:26:06 GMT
4
4
 
5
5
  @a-font-family: "Source Sans Pro", Arial, sans-serif;
6
6
  @a-font-line-height-heading-2xlarge: 3.25rem;
@@ -160,7 +160,7 @@
160
160
  @a-text-visited: rgba(99, 70, 137, 1);
161
161
  @a-text-danger: rgba(195, 0, 0, 1);
162
162
  @a-text-action-selected: rgba(0, 91, 130, 1);
163
- @a-text-action-hover: rgba(0, 103, 197, 1);
163
+ @a-text-action-on-action-subtle: rgba(0, 86, 180, 1);
164
164
  @a-text-action: rgba(0, 103, 197, 1);
165
165
  @a-text-on-inverted: rgba(255, 255, 255, 1);
166
166
  @a-text-on-neutral: rgba(255, 255, 255, 1);
@@ -221,6 +221,7 @@
221
221
  @a-icon-default: rgba(38, 38, 38, 1);
222
222
  @a-icon-subtle: rgba(112, 112, 112, 1);
223
223
  @a-icon-action-selected: rgba(0, 91, 130, 1);
224
+ @a-icon-action-on-action-subtle: rgba(0, 86, 180, 1);
224
225
  @a-icon-action: rgba(0, 103, 197, 1);
225
226
  @a-icon-success: rgba(6, 137, 58, 1);
226
227
  @a-icon-danger: rgba(195, 0, 0, 1);
package/dist/tokens.scss CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Thu, 17 Nov 2022 18:26:45 GMT
3
+ // Generated on Mon, 21 Nov 2022 13:26:06 GMT
4
4
 
5
5
  $a-font-family: "Source Sans Pro", Arial, sans-serif;
6
6
  $a-font-line-height-heading-2xlarge: 3.25rem;
@@ -160,7 +160,7 @@ $a-text-subtle: rgba(0, 0, 0, 0.56);
160
160
  $a-text-visited: rgba(99, 70, 137, 1);
161
161
  $a-text-danger: rgba(195, 0, 0, 1);
162
162
  $a-text-action-selected: rgba(0, 91, 130, 1);
163
- $a-text-action-hover: rgba(0, 103, 197, 1);
163
+ $a-text-action-on-action-subtle: rgba(0, 86, 180, 1);
164
164
  $a-text-action: rgba(0, 103, 197, 1);
165
165
  $a-text-on-inverted: rgba(255, 255, 255, 1);
166
166
  $a-text-on-neutral: rgba(255, 255, 255, 1);
@@ -221,6 +221,7 @@ $a-surface-alt-3: rgba(0, 91, 130, 1);
221
221
  $a-icon-default: rgba(38, 38, 38, 1);
222
222
  $a-icon-subtle: rgba(112, 112, 112, 1);
223
223
  $a-icon-action-selected: rgba(0, 91, 130, 1);
224
+ $a-icon-action-on-action-subtle: rgba(0, 86, 180, 1);
224
225
  $a-icon-action: rgba(0, 103, 197, 1);
225
226
  $a-icon-success: rgba(6, 137, 58, 1);
226
227
  $a-icon-danger: rgba(195, 0, 0, 1);
package/docs.json CHANGED
@@ -182,8 +182,11 @@
182
182
  { "name": "--a-text-visited", "value": "rgba(99, 70, 137, 1)" },
183
183
  { "name": "--a-text-danger", "value": "rgba(195, 0, 0, 1)" },
184
184
  { "name": "--a-text-action", "value": "rgba(0, 103, 197, 1)" },
185
- { "name": "--a-text-action-hover", "value": "rgba(0, 103, 197, 1)" },
186
185
  { "name": "--a-text-action-selected", "value": "rgba(0, 91, 130, 1)" },
186
+ {
187
+ "name": "--a-text-action-on-action-subtle",
188
+ "value": "rgba(0, 86, 180, 1)"
189
+ },
187
190
  { "name": "--a-text-on-inverted", "value": "rgba(255, 255, 255, 1)" },
188
191
  { "name": "--a-text-on-neutral", "value": "rgba(255, 255, 255, 1)" },
189
192
  { "name": "--a-text-on-action", "value": "rgba(255, 255, 255, 1)" },
@@ -280,6 +283,10 @@
280
283
  { "name": "--a-icon-on-inverted", "value": "rgba(255, 255, 255, 1)" },
281
284
  { "name": "--a-icon-action", "value": "rgba(0, 103, 197, 1)" },
282
285
  { "name": "--a-icon-action-selected", "value": "rgba(0, 91, 130, 1)" },
286
+ {
287
+ "name": "--a-icon-action-on-action-subtle",
288
+ "value": "rgba(0, 86, 180, 1)"
289
+ },
283
290
  { "name": "--a-icon-on-action", "value": "rgba(255, 255, 255, 1)" },
284
291
  { "name": "--a-icon-success", "value": "rgba(6, 137, 58, 1)" },
285
292
  { "name": "--a-icon-on-success", "value": "rgba(255, 255, 255, 1)" },
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@navikt/ds-tokens",
3
- "version": "2.0.0-next.0",
4
- "description": "Auto-generated design-tokens for NAV design-systems framework",
5
- "author": "NAV Designsystem team",
3
+ "version": "2.0.0",
4
+ "description": "Design-tokens for NAV designsystem",
5
+ "author": "Aksel | NAV designsystem team",
6
6
  "keywords": [
7
7
  "css",
8
8
  "less",
@@ -18,7 +18,7 @@
18
18
  "docs.json"
19
19
  ],
20
20
  "scripts": {
21
- "build": "node ./config/build.js && yarn validate-docs",
21
+ "build": "node ./config/build.js > /dev/null && yarn validate-docs",
22
22
  "watch": "nodemon --watch src/index.js --exec \"yarn build\"",
23
23
  "token": "cd config && style-dictionary build",
24
24
  "test": "jest",
@@ -17,8 +17,12 @@
17
17
  "selected": {
18
18
  "value": "{a.deepblue.500.value}"
19
19
  },
20
- "hover": {
21
- "value": "{a.blue.500.value}"
20
+ "on": {
21
+ "action": {
22
+ "subtle": {
23
+ "value": "{a.blue.600.value}"
24
+ }
25
+ }
22
26
  },
23
27
  "@": {
24
28
  "value": "{a.blue.500.value}"
@@ -263,6 +267,13 @@
263
267
  },
264
268
  "action": {
265
269
  "selected": { "value": "{a.deepblue.500.value}" },
270
+ "on": {
271
+ "action": {
272
+ "subtle": {
273
+ "value": "{a.blue.600.value}"
274
+ }
275
+ }
276
+ },
266
277
  "@": { "value": "{a.blue.500.value}" }
267
278
  },
268
279
  "success": {