@bi-digital/tokens 0.11.11 → 0.12.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bi-digital/tokens",
3
3
  "type": "module",
4
- "version": "0.11.11",
4
+ "version": "0.12.1",
5
5
  "description": "CSS and SASS variables for the BI Design System",
6
6
  "author": "BI Digital",
7
7
  "homepage": "https://designsystem.bi.no/?path=/docs/styles-colors--docs",
@@ -29,7 +29,7 @@
29
29
  "/dist"
30
30
  ],
31
31
  "devDependencies": {
32
- "style-dictionary": "^5.4.0",
32
+ "style-dictionary": "^5.5.0",
33
33
  "vitest": "^4.1.4"
34
34
  },
35
35
  "scripts": {
package/readme.md CHANGED
@@ -21,16 +21,6 @@ In `.css`-files:
21
21
  }
22
22
  ```
23
23
 
24
- In `.scss`-files:
25
-
26
- ```scss
27
- @use '@bi-digital/tokens/dist/tokens' as tokens;
28
-
29
- .example {
30
- color: tokens.$bi-primary-80;
31
- }
32
- ```
33
-
34
24
  CDN:
35
25
 
36
26
  ```html
@@ -41,17 +31,7 @@ We recommend replacing `latest` with a specific version to avoid errors when the
41
31
 
42
32
  ### Variables in media queries
43
33
 
44
- CSS custom properties do not support the use of variables in media queries, but for users of SCSS, this works. You must import the SCSS variables from `@bi-digital/tokens` directly:
45
-
46
- ```scss
47
- @use '@bi-digital/tokens/dist/tokens' as tokens;
48
-
49
- @media (min-width: tokens.$bi-breakpoints-sm) {
50
- .example {
51
- color: tokens.$bi-primary-80;
52
- }
53
- }
54
- ```
34
+ CSS custom properties can't be used inside media query conditions, so this library does not expose any breakpoint tokens.
55
35
 
56
36
  ### VSCode-extensions
57
37
 
package/dist/tokens.scss DELETED
@@ -1,226 +0,0 @@
1
-
2
- // Do not edit directly, this file was auto-generated.
3
-
4
- $bi-basic-key: #000000;
5
- $bi-basic-white: #ffffff;
6
- $bi-neutral-0: #fafbfc;
7
- $bi-neutral-5: #f5f7fa;
8
- $bi-neutral-10: #e4e8ed;
9
- $bi-neutral-15: #d5dde4;
10
- $bi-neutral-20: #c8d1db;
11
- $bi-neutral-25: #bac6d2;
12
- $bi-neutral-30: #acbbca;
13
- $bi-neutral-40: #90a3b7;
14
- $bi-neutral-50: #597694;
15
- $bi-neutral-60: #475e75;
16
- $bi-neutral-70: #3e5266;
17
- $bi-neutral-75: #344557;
18
- $bi-neutral-80: #303f4f;
19
- $bi-neutral-85: #2b3947;
20
- $bi-neutral-90: #26333f;
21
- $bi-neutral-95: #222d38;
22
- $bi-neutral-100: #171f26;
23
- $bi-primary-0: #ebf3ff;
24
- $bi-primary-5: #d9e6f9;
25
- $bi-primary-10: #c5d9f7;
26
- $bi-primary-15: #b2cdf4;
27
- $bi-primary-20: #9ec0f1;
28
- $bi-primary-25: #8bb3ee;
29
- $bi-primary-30: #75a5f1;
30
- $bi-primary-40: #6196f4;
31
- $bi-primary-50: #0a64ff;
32
- $bi-primary-60: #0b4db4;
33
- $bi-primary-70: #0b49a1;
34
- $bi-primary-75: #0c468f;
35
- $bi-primary-80: #093f82;
36
- $bi-primary-85: #083a76;
37
- $bi-primary-90: #042f5b;
38
- $bi-primary-95: #002341;
39
- $bi-primary-100: #001932;
40
- $bi-secondary-0: #fffbeb;
41
- $bi-secondary-5: #fff7d5;
42
- $bi-secondary-10: #fff2bf;
43
- $bi-secondary-15: #ffea95;
44
- $bi-secondary-20: #ffe680;
45
- $bi-secondary-25: #ffe26a;
46
- $bi-secondary-30: #ffde55;
47
- $bi-secondary-40: #ffd52b;
48
- $bi-secondary-50: #ffcd00;
49
- $bi-secondary-60: #deb300;
50
- $bi-secondary-70: #bd9800;
51
- $bi-secondary-75: #9d7e00;
52
- $bi-secondary-80: #7c6400;
53
- $bi-secondary-85: #5b4900;
54
- $bi-secondary-90: #4a3c01;
55
- $bi-secondary-95: #3a2f00;
56
- $bi-secondary-100: #262000;
57
- $bi-info-0: #f3ebff;
58
- $bi-info-5: #e6d5ff;
59
- $bi-info-10: #d9bfff;
60
- $bi-info-15: #cdaaff;
61
- $bi-info-20: #c094ff;
62
- $bi-info-25: #b480ff;
63
- $bi-info-30: #a76aff;
64
- $bi-info-40: #822bff;
65
- $bi-info-50: #6900ff;
66
- $bi-info-60: #5c03dc;
67
- $bi-info-70: #4f05b9;
68
- $bi-info-75: #420896;
69
- $bi-info-80: #3b0984;
70
- $bi-info-85: #350a73;
71
- $bi-info-90: #2e0b61;
72
- $bi-info-95: #280d50;
73
- $bi-info-100: #1a0833;
74
- $bi-warning-0: #fffbeb;
75
- $bi-warning-5: #fff7d5;
76
- $bi-warning-10: #fff2bf;
77
- $bi-warning-15: #ffea95;
78
- $bi-warning-20: #ffe680;
79
- $bi-warning-25: #ffe26a;
80
- $bi-warning-30: #ffde55;
81
- $bi-warning-40: #ffd52b;
82
- $bi-warning-50: #ffcd00;
83
- $bi-warning-60: #deb300;
84
- $bi-warning-70: #bd9800;
85
- $bi-warning-75: #9d7e00;
86
- $bi-warning-80: #7c6400;
87
- $bi-warning-85: #5b4900;
88
- $bi-warning-90: #4a3c01;
89
- $bi-warning-95: #3a2f00;
90
- $bi-warning-100: #262000;
91
- $bi-success-0: #ebffeb;
92
- $bi-success-5: #d5f4d6;
93
- $bi-success-10: #bfeec2;
94
- $bi-success-15: #aae8ae;
95
- $bi-success-20: #95e299;
96
- $bi-success-25: #80dd85;
97
- $bi-success-30: #55d15c;
98
- $bi-success-40: #2bc634;
99
- $bi-success-50: #00ab0b;
100
- $bi-success-60: #04a30d;
101
- $bi-success-70: #078b0f;
102
- $bi-success-75: #0b7411;
103
- $bi-success-80: #0f5d13;
104
- $bi-success-85: #124515;
105
- $bi-success-90: #143a16;
106
- $bi-success-95: #162e17;
107
- $bi-success-100: #0f1f0f;
108
- $bi-alert-0: #fff1f0;
109
- $bi-alert-5: #ffe1df;
110
- $bi-alert-10: #ffd7d5;
111
- $bi-alert-15: #ffc3bf;
112
- $bi-alert-20: #ffafaa;
113
- $bi-alert-25: #ff8780;
114
- $bi-alert-30: #ff5f55;
115
- $bi-alert-40: #ff372b;
116
- $bi-alert-50: #ff0f00;
117
- $bi-alert-60: #e41100;
118
- $bi-alert-70: #c91300;
119
- $bi-alert-75: #ae1601;
120
- $bi-alert-80: #931801;
121
- $bi-alert-85: #731a15;
122
- $bi-alert-90: #6a1b16;
123
- $bi-alert-95: #5d1c18;
124
- $bi-alert-100: #280c0a;
125
- $bi-scale-0: 0;
126
- $bi-scale-0-25x: 0.0625rem;
127
- $bi-scale-0-50x: 0.125rem;
128
- $bi-scale-0-75x: 0.1875rem;
129
- $bi-scale-1x: 0.25rem;
130
- $bi-scale-1-5x: 0.375rem;
131
- $bi-scale-2x: 0.5rem;
132
- $bi-scale-3x: 0.75rem;
133
- $bi-scale-4x: 1rem;
134
- $bi-scale-5x: 1.25rem;
135
- $bi-scale-6x: 1.5rem;
136
- $bi-scale-8x: 2rem;
137
- $bi-scale-9x: 2.25rem;
138
- $bi-scale-10x: 2.5rem;
139
- $bi-scale-11x: 2.75rem;
140
- $bi-scale-12x: 3rem;
141
- $bi-scale-14x: 3.5rem;
142
- $bi-scale-16x: 4rem;
143
- $bi-scale-18x: 4.5rem;
144
- $bi-scale-20x: 5rem;
145
- $bi-scale-24x: 6rem;
146
- $bi-scale-32x: 8rem;
147
- $bi-scale-36x: 9rem;
148
- $bi-scale-40x: 10rem;
149
- $bi-scale-48x: 12rem;
150
- $bi-scale-56x: 14rem;
151
- $bi-scale-64x: 16rem;
152
- $bi-scale-80x: 20rem;
153
- $bi-scale-max: 624.9375rem;
154
- $bi-opacity-dark-80: rgba(38, 51, 63, 0.2);
155
- $bi-opacity-dark-50: rgba(38, 51, 63, 0.5);
156
- $bi-opacity-light-100: rgba(255, 255, 255, 0);
157
- $bi-opacity-light-80: rgba(255, 255, 255, 0.2);
158
- $bi-opacity-light-50: rgba(255, 255, 255, 0.5);
159
- $bi-stroke-none: 0;
160
- $bi-stroke-thin: 0.0625rem;
161
- $bi-stroke-medium: 0.09375rem;
162
- $bi-stroke-thick: 0.125rem;
163
- $bi-radius-none: 0;
164
- $bi-radius-small: 0.125rem;
165
- $bi-radius-medium: 0.25rem;
166
- $bi-radius-large: 0.5rem;
167
- $bi-radius-xl: 0.75rem;
168
- $bi-radius-brand: 3rem;
169
- $bi-radius-full: 624.9375rem;
170
- $bi-icon-small: 1.25rem;
171
- $bi-icon-medium: 1.5rem;
172
- $bi-icon-large: 2rem;
173
- $bi-icon-xl: 2.5rem;
174
- $bi-icon-2xl: 2.75rem;
175
- $bi-icon-primary: #222d38;
176
- $bi-icon-secondary: #475e75;
177
- $bi-icon-disabled: #597694;
178
- $bi-icon-link: #0a64ff;
179
- $bi-elevation-25: rgba(38, 51, 63, 0.15);
180
- $bi-font-family-plain: 'museo-sans', Arial, sans-serif;
181
- $bi-font-family-brand: 'museo-slab', serif;
182
- $bi-font-weight-bold: 700;
183
- $bi-font-weight-regular: 500;
184
- $bi-font-color-primary: #222d38;
185
- $bi-font-color-secondary: #475e75;
186
- $bi-font-color-disabled: #597694;
187
- $bi-font-color-accent: #0b4db4;
188
- $bi-font-color-link: #0a64ff;
189
- $bi-font-color-primary-dark-background: #ffffff;
190
- $bi-font-color-secondary-dark-background-2: rgba(255, 255, 255, 0.7);
191
- $bi-font-color-disabled-dark-background: rgba(255, 255, 255, 0.7);
192
- $bi-font-color-accent-dark-background: #9ec0f1;
193
- $bi-states-hover-dark: rgba(38, 51, 63, 0.1);
194
- $bi-states-hover-light: rgba(255, 255, 255, 0.1);
195
- $bi-states-press-dark: rgba(38, 51, 63, 0.15);
196
- $bi-states-press-light: rgba(255, 255, 255, 0.15);
197
- $bi-layout-navbar-height: 4rem;
198
- $bi-font-display-large: 500 4rem/4.5rem 'museo-slab', serif;
199
- $bi-font-display-medium: 500 3rem/3.5rem 'museo-slab', serif;
200
- $bi-font-headline-large: 500 2.5rem/2.875rem 'museo-slab', serif;
201
- $bi-font-headline-medium: 500 2.25rem/2.5rem 'museo-slab', serif;
202
- $bi-font-headline-small: 500 1.75rem/2rem 'museo-slab', serif;
203
- $bi-font-title-bold-xxl: 700 2rem/2.25rem 'museo-sans', Arial, sans-serif;
204
- $bi-font-title-bold-xl: 700 1.75rem/2rem 'museo-sans', Arial, sans-serif;
205
- $bi-font-title-bold-large: 700 1.5rem/1.6875rem 'museo-sans', Arial, sans-serif;
206
- $bi-font-title-bold-medium: 700 1.25rem/1.4375rem 'museo-sans', Arial, sans-serif;
207
- $bi-font-title-bold-small: 700 1.125rem/1.25rem 'museo-sans', Arial, sans-serif;
208
- $bi-font-title-bold-xs: 700 1rem/1.125rem 'museo-sans', Arial, sans-serif;
209
- $bi-font-title-bold-xxs: 700 0.875rem/1rem 'museo-sans', Arial, sans-serif;
210
- $bi-font-title-regular-xxl: 500 2rem/2.25rem 'museo-sans', Arial, sans-serif;
211
- $bi-font-title-regular-xl: 500 1.75rem/2rem 'museo-sans', Arial, sans-serif;
212
- $bi-font-title-regular-large: 500 1.5rem/1.6875rem 'museo-sans', Arial, sans-serif;
213
- $bi-font-title-regular-medium: 500 1.25rem/1.4375rem 'museo-sans', Arial, sans-serif;
214
- $bi-font-title-regular-small: 500 1.125rem/1.25rem 'museo-sans', Arial, sans-serif;
215
- $bi-font-title-regular-xs: 500 1rem/1.125rem 'museo-sans', Arial, sans-serif;
216
- $bi-font-title-regular-xxs: 500 0.875rem/1rem 'museo-sans', Arial, sans-serif;
217
- $bi-font-label-xl: 700 1.125rem/1.6875rem 'museo-sans', Arial, sans-serif;
218
- $bi-font-label-large: 700 1rem/1.5rem 'museo-sans', Arial, sans-serif;
219
- $bi-font-label-medium: 700 0.875rem/1.25rem 'museo-sans', Arial, sans-serif;
220
- $bi-font-label-small: 700 0.8125rem/1.25rem 'museo-sans', Arial, sans-serif;
221
- $bi-font-label-xs: 700 0.75rem/1.125rem 'museo-sans', Arial, sans-serif;
222
- $bi-font-body-xl: 500 1.125rem/1.6875rem 'museo-sans', Arial, sans-serif;
223
- $bi-font-body-large: 500 1rem/1.5rem 'museo-sans', Arial, sans-serif;
224
- $bi-font-body-medium: 500 0.875rem/1.3125rem 'museo-sans', Arial, sans-serif;
225
- $bi-font-body-small: 500 0.8125rem/1.25rem 'museo-sans', Arial, sans-serif;
226
- $bi-font-body-xs: 500 0.75rem/1.125rem 'museo-sans', Arial, sans-serif;