@wwtdev/bsds-css 2.29.0 → 3.0.0-rc.21
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 +4 -4
- package/dist/wwt-bsds-preset.js +196 -68
- package/dist/wwt-bsds.css +2182 -1460
- package/dist/wwt-bsds.min.css +1 -1
- package/package.json +7 -11
- package/dist/components/_accordions.scss +0 -122
- package/dist/components/_alert.scss +0 -143
- package/dist/components/_badge.scss +0 -95
- package/dist/components/_banner.scss +0 -68
- package/dist/components/_buttons.scss +0 -289
- package/dist/components/_chart.scss +0 -169
- package/dist/components/_circle-buttons.scss +0 -231
- package/dist/components/_dropdown-options.scss +0 -236
- package/dist/components/_dropdown.scss +0 -189
- package/dist/components/_empty-state.scss +0 -99
- package/dist/components/_filter-buttons.scss +0 -116
- package/dist/components/_flyout.scss +0 -75
- package/dist/components/_form-booleans.scss +0 -182
- package/dist/components/_form-character-count.scss +0 -21
- package/dist/components/_form-container.scss +0 -111
- package/dist/components/_form-elements.scss +0 -40
- package/dist/components/_form-field-details.scss +0 -19
- package/dist/components/_form-hints.scss +0 -22
- package/dist/components/_form-input-composite.scss +0 -312
- package/dist/components/_form-input-phone.scss +0 -21
- package/dist/components/_form-input-search.scss +0 -74
- package/dist/components/_form-labels.scss +0 -40
- package/dist/components/_form-switches.scss +0 -154
- package/dist/components/_form-text-fields.scss +0 -205
- package/dist/components/_horizontal-navigation-mobile.scss +0 -238
- package/dist/components/_horizontal-navigation.scss +0 -220
- package/dist/components/_inline-tabs.scss +0 -86
- package/dist/components/_loader.scss +0 -105
- package/dist/components/_modal.scss +0 -185
- package/dist/components/_overlay.scss +0 -34
- package/dist/components/_pagination.scss +0 -85
- package/dist/components/_pills.scss +0 -216
- package/dist/components/_profile-details.scss +0 -44
- package/dist/components/_profile-img.scss +0 -73
- package/dist/components/_profile-layout.scss +0 -29
- package/dist/components/_spinner.scss +0 -95
- package/dist/components/_tab-list.scss +0 -151
- package/dist/components/_table.scss +0 -331
- package/dist/components/_tables.scss +0 -84
- package/dist/components/_timeline.scss +0 -122
- package/dist/components/_toast.scss +0 -149
- package/dist/components/_toaster.scss +0 -27
- package/dist/components/_tooltip.scss +0 -183
- package/dist/components/_vertical-navigation.scss +0 -280
- package/dist/components/accordions.css +0 -118
- package/dist/components/alert.css +0 -139
- package/dist/components/badge.css +0 -91
- package/dist/components/banner.css +0 -64
- package/dist/components/buttons.css +0 -285
- package/dist/components/chart.css +0 -165
- package/dist/components/circle-buttons.css +0 -227
- package/dist/components/dropdown-options.css +0 -232
- package/dist/components/dropdown.css +0 -185
- package/dist/components/empty-state.css +0 -95
- package/dist/components/filter-buttons.css +0 -112
- package/dist/components/flyout.css +0 -71
- package/dist/components/form-booleans.css +0 -178
- package/dist/components/form-character-count.css +0 -17
- package/dist/components/form-container.css +0 -108
- package/dist/components/form-elements.css +0 -36
- package/dist/components/form-field-details.css +0 -15
- package/dist/components/form-hints.css +0 -18
- package/dist/components/form-input-composite.css +0 -308
- package/dist/components/form-input-phone.css +0 -17
- package/dist/components/form-input-search.css +0 -70
- package/dist/components/form-labels.css +0 -36
- package/dist/components/form-switches.css +0 -150
- package/dist/components/form-text-fields.css +0 -201
- package/dist/components/horizontal-navigation-mobile.css +0 -234
- package/dist/components/horizontal-navigation.css +0 -216
- package/dist/components/inline-tabs.css +0 -83
- package/dist/components/loader.css +0 -101
- package/dist/components/modal.css +0 -181
- package/dist/components/overlay.css +0 -30
- package/dist/components/pagination.css +0 -81
- package/dist/components/pills.css +0 -212
- package/dist/components/profile-details.css +0 -40
- package/dist/components/profile-img.css +0 -69
- package/dist/components/profile-layout.css +0 -25
- package/dist/components/spinner.css +0 -91
- package/dist/components/tab-list.css +0 -147
- package/dist/components/table.css +0 -327
- package/dist/components/tables.css +0 -80
- package/dist/components/timeline.css +0 -118
- package/dist/components/toast.css +0 -145
- package/dist/components/toaster.css +0 -23
- package/dist/components/tooltip.css +0 -179
- package/dist/components/vertical-navigation.css +0 -276
- package/dist/wwt-bsds-wc-base.css +0 -1129
package/README.md
CHANGED
|
@@ -14,11 +14,11 @@ import '@wwtdev/bsds-css/dist/wwt-bsds.min.css'
|
|
|
14
14
|
|
|
15
15
|
## Using with Tailwind CSS
|
|
16
16
|
|
|
17
|
-
If your project uses Tailwind, complete the steps above and then [install Tailwind](https://tailwindcss.com/docs/installation) if you haven't already. You can follow the instructions in their docs with the exceptions listed below
|
|
17
|
+
If your project uses Tailwind, complete the steps above and then [install Tailwind](https://tailwindcss.com/docs/installation) if you haven't already. You can follow the instructions in their docs with the exceptions listed below
|
|
18
18
|
|
|
19
19
|
### 1. Add the WWT Preset to the Tailwind config.
|
|
20
20
|
|
|
21
|
-
For new projects, we recommend that you use the provided config file as a [**preset**](https://tailwindcss.com/docs/presets). When setting up the `tailwind.config.js` file, import the WWT preset from the CSS Framework package. Note that `wwt-bsds-preset.js` sets `config.corePlugins.preflight: false` by default; we do this to apply our style resets instead of the Tailwind resets.
|
|
21
|
+
For new projects, we recommend that you use the provided config file as a [**preset**](https://tailwindcss.com/docs/presets). When setting up the `tailwind.config.js` file, import the WWT preset from the CSS Framework package. Note that `wwt-bsds-preset.js` sets `config.corePlugins.preflight: false` by default; we do this to apply our style resets instead of the Tailwind resets.
|
|
22
22
|
|
|
23
23
|
```javascript
|
|
24
24
|
/* tailwind.config.js */
|
|
@@ -58,7 +58,7 @@ Once you have completed the Tailwind installation steps, you can use the classes
|
|
|
58
58
|
|
|
59
59
|
#### Order matters!
|
|
60
60
|
|
|
61
|
-
In your project's stylesheet ordering, the BSDS CSS framework should come first, _then_ the base Tailwind styles for easier overriding via TW utilities.
|
|
61
|
+
In your project's stylesheet ordering, the BSDS CSS framework should come first, _then_ the base Tailwind styles for easier overriding via TW utilities.
|
|
62
62
|
|
|
63
63
|
```javascript
|
|
64
64
|
/* src/main.js */
|
|
@@ -71,7 +71,7 @@ import './styles/tailwind.css'
|
|
|
71
71
|
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
Alternatively, you can leverage native CSS `@layer` to ensure TW utilities will always trump these styles.
|
|
74
|
+
Alternatively, you can leverage native CSS `@layer` to ensure TW utilities will always trump these styles.
|
|
75
75
|
|
|
76
76
|
```css
|
|
77
77
|
/* src/styles/index.css (or wherever your styles live) */
|
package/dist/wwt-bsds-preset.js
CHANGED
|
@@ -100,12 +100,47 @@ module.exports = {
|
|
|
100
100
|
500: "#17171F",
|
|
101
101
|
600: "#0B0B10"
|
|
102
102
|
},
|
|
103
|
+
"shadow-primary": "rgba(0, 0, 0, 0.06)",
|
|
104
|
+
"shadow-secondary": "rgba(28, 0, 135, 0.2)",
|
|
103
105
|
"gradient-dark":
|
|
104
106
|
"linear-gradient(90deg, #1C0087 0%, #EE282A 35%, #FFFFFF 50%, #0086EA 65%, #1C0087 100%)",
|
|
105
107
|
"gradient-light":
|
|
106
108
|
"linear-gradient(90deg, #1C0087 0%, #EE282A 20%, #EE282A 40%, #1C0087 50%, #0086EA 60%, #0086EA 80%, #1C0087 100%)",
|
|
107
109
|
"gradient-line":
|
|
108
|
-
"linear-gradient(90deg, #EE282A 0%, #1C0087 50%, #0086EA 100%)"
|
|
110
|
+
"linear-gradient(90deg, #EE282A 0%, #1C0087 50%, #0086EA 100%)",
|
|
111
|
+
// Atom
|
|
112
|
+
"gradient-atom-ai-border": "conic-gradient(from 180deg at 50% 50%, var(--bs-royal-400) -96.8deg, var(--bs-pink-400) 74.2deg, var(--bs-blue-400) 98.8deg, var(--bs-orange-400) 259.6deg, var(--bs-royal-400) 283.2deg, var(--bs-pink-400) 414.4deg)",
|
|
113
|
+
"gradient-atom-ai-bg": "conic-gradient(from 180deg at 50% 50%, rgba(22, 47, 180, 0.05) -96.8deg, rgba(227, 28, 121, 0.05) 74.2deg, rgba(0, 134, 234, 0.05) 98.8deg, rgba(251, 85, 14, 0.05) 259.6deg, rgba(22, 47, 180, 0.05) 283.2deg, rgba(227, 28, 121, 0.05) 414.4deg)",
|
|
114
|
+
// Top
|
|
115
|
+
"gradient-blue-top-left":
|
|
116
|
+
"radial-gradient(312.54% 141.42% at 0% 0%, #162FB4 0%, #1D1E48 100%)",
|
|
117
|
+
"gradient-blue-top-center":
|
|
118
|
+
"radial-gradient(201.14% 201.14% at 50% -51.28%, #162FB4 26.06%, #1D1E48 100%)",
|
|
119
|
+
"gradient-blue-top-right":
|
|
120
|
+
"radial-gradient(312.54% 141.42% at 100% 0%, #162FB4 0%, #1D1E48 100%)",
|
|
121
|
+
// Mid
|
|
122
|
+
"gradient-blue-mid-left":
|
|
123
|
+
"radial-gradient(347.1% 117.22% at -9.27% 49.86%, #162FB4 8.19%, #1D1E48 100%)",
|
|
124
|
+
// "gradient-blue-mid-right":
|
|
125
|
+
// "radial-gradient(347.1% 117.22% at -9.27% 49.86%, #162FB4 8.19%, #1D1E48 100%)",
|
|
126
|
+
// Center
|
|
127
|
+
"gradient-blue-center":
|
|
128
|
+
"radial-gradient(172.57% 58.28% at 50% 49.86%, #162FB4 0%, #1D1E48 100%)",
|
|
129
|
+
// Bottom
|
|
130
|
+
// "gradient-blue-bottom-left":
|
|
131
|
+
// "radial-gradient(312.54% 141.42% at 100% 0%, #162FB4 0%, #1D1E48 100%)",
|
|
132
|
+
// "gradient-blue-bottom-center":
|
|
133
|
+
// "radial-gradient(201.14% 201.14% at 50% -51.28%, #162FB4 26.06%, #1D1E48 100%)",
|
|
134
|
+
// "gradient-blue-bottom-right":
|
|
135
|
+
// "radial-gradient(312.54% 141.42% at 100% 0%, #162FB4 0%, #1D1E48 100%)",
|
|
136
|
+
// Light Blue
|
|
137
|
+
"gradient-light-blue-transparent":
|
|
138
|
+
"radial-gradient(236% 114.71% at 94.24% 7.6%, rgba(153, 207, 247, 0.20) 0%, rgba(203, 192, 218, 0.08) 100%)",
|
|
139
|
+
"gradient-light-blue-opaque":
|
|
140
|
+
"linear-gradient(311deg, #EBF7FF 9.29%, #FBFAFC 92%)",
|
|
141
|
+
// Light Gray
|
|
142
|
+
"gradient-light-gray":
|
|
143
|
+
"linear-gradient(180deg, #F7F7FC 24.82%, #F0F0FA 100%)",
|
|
109
144
|
},
|
|
110
145
|
fontFamily: {
|
|
111
146
|
sans: [
|
|
@@ -125,60 +160,57 @@ module.exports = {
|
|
|
125
160
|
]
|
|
126
161
|
},
|
|
127
162
|
fontSize: {
|
|
128
|
-
xs: ".75rem", // 12px
|
|
129
|
-
sm: ".875rem", // 14px
|
|
163
|
+
xs: "0.75rem", // 12px
|
|
164
|
+
sm: "0.875rem", // 14px
|
|
130
165
|
base: "1rem", // 16px
|
|
131
166
|
md: "1.125rem", // 18px
|
|
132
167
|
lg: "1.25rem", // 20px
|
|
133
168
|
xl: "1.5rem", // 24px
|
|
134
|
-
"2xl": "
|
|
135
|
-
"3xl": "
|
|
136
|
-
"4xl": "
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"f-xl": "clamp(1.25rem, calc(1.13rem + 0.50vw), 1.50rem)",
|
|
145
|
-
"f-2xl": "clamp(1.50rem, calc(1.25rem + 1.00vw), 2.00rem)",
|
|
146
|
-
"f-3xl": "clamp(2.00rem, calc(1.88rem + 0.50vw), 2.25rem)",
|
|
147
|
-
"f-4xl": "clamp(2.25rem, calc(1.88rem + 1.50vw), 3.00rem)"
|
|
169
|
+
"2xl": "1.75rem", // 28px
|
|
170
|
+
"3xl": "2rem", // 32px
|
|
171
|
+
"4xl": "2.25rem", // 36px
|
|
172
|
+
"5xl": "2.625rem", // 42px
|
|
173
|
+
"6xl": "3rem", // 48px
|
|
174
|
+
},
|
|
175
|
+
fontWeight: {
|
|
176
|
+
"light": "300",
|
|
177
|
+
"normal": "400",
|
|
178
|
+
"semibold": "600"
|
|
148
179
|
},
|
|
149
180
|
extend: {
|
|
150
|
-
animation: {
|
|
151
|
-
'spin-2': 'spin 2s linear infinite',
|
|
152
|
-
'spin-3': 'spin 3s linear infinite'
|
|
153
|
-
},
|
|
154
181
|
backgroundColor: {
|
|
182
|
+
"transparent": "var(--bs-transparent)",
|
|
183
|
+
"inherit": "var(--bs-inherit)",
|
|
184
|
+
"current": "var(--bs-current)",
|
|
155
185
|
"base": "var(--bs-bg-base)",
|
|
156
|
-
"
|
|
186
|
+
"light": "var(--bs-bg-light)",
|
|
187
|
+
"medium": "var(--bs-bg-medium)",
|
|
188
|
+
"disabled": "var(--bs-bg-disabled)",
|
|
189
|
+
"invert-base": "var(--bs-bg-invert-base)",
|
|
190
|
+
"invert-light": "var(--bs-bg-invert-light)",
|
|
191
|
+
"invert-medium": "var(--bs-bg-invert-medium)",
|
|
157
192
|
"base-to-light": "var(--bs-bg-base-to-light)",
|
|
158
193
|
"base-to-medium": "var(--bs-bg-base-to-medium)",
|
|
159
|
-
"
|
|
194
|
+
"medium-to-base": "var(--bs-bg-medium-to-base)",
|
|
195
|
+
"medium-to-light": "var(--bs-bg-medium-to-light)",
|
|
160
196
|
"light-to-base": "var(--bs-bg-light-to-base)",
|
|
161
197
|
"light-to-medium": "var(--bs-bg-light-to-medium)",
|
|
162
|
-
"medium": "var(--bs-bg-medium)",
|
|
163
|
-
"medium-to-light": "var(--bs-bg-medium-to-light)",
|
|
164
|
-
"medium-to-base": "var(--bs-bg-medium-to-base)",
|
|
165
|
-
"invert-to-light": "var(--bs-bg-invert-to-light)",
|
|
166
|
-
"invert-to-base": "var(--bs-bg-invert-to-base)",
|
|
167
|
-
"invert-to-medium": "var(--bs-bg-invert-to-medium)",
|
|
168
|
-
"disabled": "var(--bs-bg-disabled)"
|
|
169
198
|
},
|
|
170
199
|
borderColor: {
|
|
171
|
-
"
|
|
200
|
+
"transparent": "var(--bs-transparent)",
|
|
201
|
+
"inherit": "var(--bs-inherit)",
|
|
202
|
+
"current": "var(--bs-current)",
|
|
172
203
|
"base": "var(--bs-border-base)",
|
|
173
204
|
"medium": "var(--bs-border-medium)",
|
|
174
|
-
"medium-to-light": "var(--bs-border-medium-to-light)",
|
|
175
205
|
"light": "var(--bs-border-light)",
|
|
206
|
+
"dark": "var(--bs-border-dark)",
|
|
207
|
+
"medium-to-light": "var(--bs-border-medium-to-light)",
|
|
176
208
|
"input": "var(--bs-border-input)",
|
|
177
209
|
"active": "var(--bs-border-active)",
|
|
178
210
|
"error": "var(--bs-border-error)"
|
|
179
211
|
},
|
|
180
212
|
borderRadius: {
|
|
181
|
-
md: ".25rem"
|
|
213
|
+
md: "0.25rem"
|
|
182
214
|
},
|
|
183
215
|
borderWidth: {
|
|
184
216
|
1: "1px",
|
|
@@ -186,66 +218,74 @@ module.exports = {
|
|
|
186
218
|
},
|
|
187
219
|
boxShadow: {
|
|
188
220
|
DEFAULT:
|
|
189
|
-
"-4px 4px 12px
|
|
221
|
+
"-4px 4px 12px var(--bs-shadow-primary), -8px 8px 16px var(--bs-shadow-secondary)",
|
|
190
222
|
contentLow:
|
|
191
|
-
"-4px 4px 12px
|
|
223
|
+
"-4px 4px 12px var(--bs-shadow-primary), -8px 8px 16px var(--bs-shadow-secondary)",
|
|
192
224
|
contentLowCenter:
|
|
193
|
-
"0px 0px 12px
|
|
225
|
+
"0px 0px 12px var(--bs-shadow-primary), 0px 0px 16px var(--bs-shadow-secondary)",
|
|
194
226
|
contentMedium:
|
|
195
|
-
"-8px 8px 24px
|
|
227
|
+
"-8px 8px 24px var(--bs-shadow-primary), -16px 16px 32px var(--bs-shadow-secondary)",
|
|
196
228
|
contentHigh:
|
|
197
|
-
"0px 16px 48px
|
|
229
|
+
"0px 16px 48px var(--bs-shadow-primary), 0px 32px 64px var(--bs-shadow-secondary)",
|
|
198
230
|
drawerLeft:
|
|
199
|
-
"-12px 12px 24px
|
|
231
|
+
"-12px 12px 24px var(--bs-shadow-primary), -16px 16px 32px var(--bs-shadow-secondary)",
|
|
200
232
|
drawerRight:
|
|
201
|
-
"-12px 12px 24px
|
|
202
|
-
profilePhoto: "inset 0px 0px 0.5em
|
|
233
|
+
"-12px 12px 24px var(--bs-shadow-primary), 16px 16px 32px var(--bs-shadow-secondary)",
|
|
234
|
+
profilePhoto: "inset 0px 0px 0.5em var(--bs-shadow-secondary)",
|
|
203
235
|
},
|
|
204
236
|
colors: {
|
|
237
|
+
// Blue
|
|
205
238
|
"blue-base": "var(--bs-blue-base)",
|
|
206
239
|
"blue-medium": "var(--bs-blue-medium)",
|
|
207
240
|
"blue-light": "var(--bs-blue-light)",
|
|
208
241
|
"blue-lightest": "var(--bs-blue-lightest)",
|
|
242
|
+
// Plum
|
|
209
243
|
"plum-base": "var(--bs-plum-base)",
|
|
210
244
|
"plum-medium": "var(--bs-plum-medium)",
|
|
211
245
|
"plum-light": "var(--bs-plum-light)",
|
|
212
246
|
"plum-lightest": "var(--bs-plum-lightest)",
|
|
247
|
+
// Red
|
|
213
248
|
"red-base": "var(--bs-red-base)",
|
|
214
249
|
"red-medium": "var(--bs-red-medium)",
|
|
215
250
|
"red-light": "var(--bs-red-light)",
|
|
216
251
|
"red-lightest": "var(--bs-red-lightest)",
|
|
252
|
+
// Royal
|
|
217
253
|
"royal-base": "var(--bs-royal-base)",
|
|
218
254
|
"royal-medium": "var(--bs-royal-medium)",
|
|
219
255
|
"royal-light": "var(--bs-royal-light)",
|
|
220
256
|
"royal-lightest": "var(--bs-royal-lightest)",
|
|
257
|
+
// Navy
|
|
221
258
|
"navy-base": "var(--bs-navy-base)",
|
|
222
259
|
"navy-medium": "var(--bs-navy-medium)",
|
|
223
260
|
"navy-light": "var(--bs-navy-light)",
|
|
224
261
|
"navy-lightest": "var(--bs-navy-lightest)",
|
|
262
|
+
// Pink
|
|
225
263
|
"pink-base": "var(--bs-pink-base)",
|
|
226
264
|
"pink-medium": "var(--bs-pink-medium)",
|
|
227
265
|
"pink-light": "var(--bs-pink-light)",
|
|
228
266
|
"pink-lightest": "var(--bs-pink-lightest)",
|
|
267
|
+
// Violet
|
|
229
268
|
"violet-base": "var(--bs-violet-base)",
|
|
230
269
|
"violet-medium": "var(--bs-violet-medium)",
|
|
231
270
|
"violet-light": "var(--bs-violet-light)",
|
|
232
271
|
"violet-lightest": "var(--bs-violet-lightest)",
|
|
272
|
+
// Orange
|
|
273
|
+
"warning": "var(--bs-warning)",
|
|
233
274
|
"orange-base": "var(--bs-orange-base)",
|
|
234
275
|
"orange-medium": "var(--bs-orange-medium)",
|
|
235
276
|
"orange-light": "var(--bs-orange-light)",
|
|
236
277
|
"orange-lightest": "var(--bs-orange-lightest)",
|
|
237
|
-
|
|
238
|
-
// 👆 leaving here for compatibility. Map to / deprecate in favor of 'warning.'
|
|
278
|
+
// Purple
|
|
239
279
|
"purple-base": "var(--bs-purple-base)",
|
|
240
280
|
"purple-medium": "var(--bs-purple-medium)",
|
|
241
281
|
"purple-light": "var(--bs-purple-light)",
|
|
242
282
|
"purple-lightest": "var(--bs-purple-lightest)",
|
|
283
|
+
// Gray
|
|
243
284
|
"gray-dark": "var(--bs-gray-dark)",
|
|
244
285
|
"gray-base": "var(--bs-gray-base)",
|
|
245
286
|
"gray-medium": "var(--bs-gray-medium)",
|
|
246
287
|
"gray-light": "var(--bs-gray-light)",
|
|
247
|
-
"gray-lightest": "var(--bs-gray-lightest)"
|
|
248
|
-
"warning": "var(--bs-warning)"
|
|
288
|
+
"gray-lightest": "var(--bs-gray-lightest)"
|
|
249
289
|
},
|
|
250
290
|
height: {
|
|
251
291
|
18: "4.5rem",
|
|
@@ -255,9 +295,10 @@ module.exports = {
|
|
|
255
295
|
76: "19rem",
|
|
256
296
|
},
|
|
257
297
|
lineHeight: {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
regular: 1.
|
|
298
|
+
"none": 1,
|
|
299
|
+
"sm": 1.10,
|
|
300
|
+
"regular": 1.30,
|
|
301
|
+
"lg": 1.50
|
|
261
302
|
},
|
|
262
303
|
margin: {
|
|
263
304
|
13: "3.25rem",
|
|
@@ -289,30 +330,37 @@ module.exports = {
|
|
|
289
330
|
dt: "1166px",
|
|
290
331
|
},
|
|
291
332
|
spacing: {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
"
|
|
297
|
-
"
|
|
298
|
-
"
|
|
299
|
-
"
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
"
|
|
303
|
-
"
|
|
304
|
-
"
|
|
305
|
-
"
|
|
306
|
-
"
|
|
307
|
-
"
|
|
333
|
+
"none": "0", // 0
|
|
334
|
+
"0": "var(--bs-space-none)",
|
|
335
|
+
"3xs": "0.25rem", // 4px
|
|
336
|
+
"1": "var(--bs-space-3xs)",
|
|
337
|
+
"2xs": "0.5rem", // 8px
|
|
338
|
+
"2": "var(--bs-space-2xs)",
|
|
339
|
+
"xs": "0.75rem", // 12px
|
|
340
|
+
"3": "var(--bs-space-xs)",
|
|
341
|
+
"sm": "1rem", // 16px
|
|
342
|
+
"4": "var(--bs-space-sm)",
|
|
343
|
+
"md": "1.5rem", // 24px
|
|
344
|
+
"6": "var(--bs-space-md)",
|
|
345
|
+
"lg": "2rem", // 32px
|
|
346
|
+
"8": "var(--bs-space-lg)",
|
|
347
|
+
"xl": "3rem", // 48px
|
|
348
|
+
"12": "var(--bs-space-xl)",
|
|
349
|
+
"2xl": "4rem", // 64px
|
|
350
|
+
"16": "var(--bs-space-2xl)",
|
|
351
|
+
"3xl": "6rem", // 96px
|
|
352
|
+
"24": "var(--bs-space-3xl)",
|
|
353
|
+
"4xl": "8rem", // 128px
|
|
354
|
+
"32": "var(--bs-space-4xl)",
|
|
308
355
|
},
|
|
309
356
|
textColor: {
|
|
357
|
+
"transparent": "var(--bs-transparent)",
|
|
358
|
+
"inherit": "var(--bs-inherit)",
|
|
359
|
+
"current": "var(--bs-current)",
|
|
310
360
|
"ink-base": "var(--bs-ink-base)",
|
|
311
361
|
"ink-medium": "var(--bs-ink-medium)",
|
|
312
362
|
"ink-light": "var(--bs-ink-light)",
|
|
313
|
-
"ink-accent": "var(--bs-ink-accent)",
|
|
314
363
|
"ink-disabled": "var(--bs-ink-disabled)",
|
|
315
|
-
"ink-invert": "var(--bs-ink-invert)",
|
|
316
364
|
"ink-invert-base": "var(--bs-ink-invert-base)",
|
|
317
365
|
"ink-invert-light": "var(--bs-ink-invert-light)",
|
|
318
366
|
"ink-invert-medium": "var(--bs-ink-invert-medium)",
|
|
@@ -336,14 +384,94 @@ module.exports = {
|
|
|
336
384
|
plugin(function ({ addUtilities }) {
|
|
337
385
|
addUtilities({
|
|
338
386
|
'.bs-bg-atom-ai': {
|
|
339
|
-
backgroundImage: `var(--bs-
|
|
387
|
+
backgroundImage: `var(--bs-gradient-atom-ai-bg)`
|
|
340
388
|
},
|
|
341
389
|
'.bs-border-atom-ai': {
|
|
342
390
|
/* border-image (which is needed for the border gradient) cannot be combined with border-radius 🤷♂️ */
|
|
343
391
|
/* this uses the background-clip property, which is compatible */
|
|
344
392
|
background: `linear-gradient(white, white) padding-box,
|
|
345
|
-
var(--bs-atom-ai) border-box`,
|
|
393
|
+
var(--bs-gradient-atom-ai-border) border-box`,
|
|
346
394
|
border: '2px solid transparent'
|
|
395
|
+
},
|
|
396
|
+
// Text size overrides for mobile/dt screens and font-weight + line-height
|
|
397
|
+
'text-xs': {
|
|
398
|
+
fontSize: 'var(--bs-text-xs)',
|
|
399
|
+
fontWeight: "var(--bs-font-semibold)",
|
|
400
|
+
lineHeight: "var(--bs-leading-lg)",
|
|
401
|
+
},
|
|
402
|
+
'text-sm': {
|
|
403
|
+
fontSize: 'var(--bs-text-sm)',
|
|
404
|
+
fontWeight: "var(--bs-font-normal)",
|
|
405
|
+
lineHeight: "var(--bs-leading-lg)",
|
|
406
|
+
},
|
|
407
|
+
'text-base': {
|
|
408
|
+
fontSize: 'var(--bs-text-base)',
|
|
409
|
+
fontWeight: "var(--bs-font-normal)",
|
|
410
|
+
lineHeight: "var(--bs-leading-lg)",
|
|
411
|
+
},
|
|
412
|
+
'.text-md': {
|
|
413
|
+
fontSize: 'var(--bs-text-base)',
|
|
414
|
+
fontWeight: "var(--bs-font-normal)",
|
|
415
|
+
lineHeight: "var(--bs-leading-lg)",
|
|
416
|
+
'@screen dt': {
|
|
417
|
+
fontSize: 'var(--bs-text-md)',
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
'.text-lg': {
|
|
421
|
+
fontSize: 'var(--bs-text-md)',
|
|
422
|
+
fontWeight: "var(--bs-font-normal)",
|
|
423
|
+
lineHeight: "var(--bs-leading-regular)",
|
|
424
|
+
'@screen dt': {
|
|
425
|
+
fontSize: 'var(--bs-text-lg)',
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
'.text-xl': {
|
|
429
|
+
fontSize: 'var(--bs-text-lg)',
|
|
430
|
+
fontWeight: "var(--bs-font-normal)",
|
|
431
|
+
lineHeight: "var(--bs-leading-sm)",
|
|
432
|
+
'@screen dt': {
|
|
433
|
+
fontSize: 'var(--bs-text-xl)'
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
'.text-2xl': {
|
|
437
|
+
fontSize: 'var(--bs-text-xl)',
|
|
438
|
+
fontWeight: "var(--bs-font-light)",
|
|
439
|
+
lineHeight: "var(--bs-leading-sm)",
|
|
440
|
+
'@screen dt': {
|
|
441
|
+
fontSize: 'var(--bs-text-2xl)'
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
'.text-3xl': {
|
|
445
|
+
fontSize: 'var(--bs-text-2xl)',
|
|
446
|
+
fontWeight: "var(--bs-font-light)",
|
|
447
|
+
lineHeight: "var(--bs-leading-sm)",
|
|
448
|
+
'@screen dt': {
|
|
449
|
+
fontSize: 'var(--bs-text-3xl)'
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
'.text-4xl': {
|
|
453
|
+
fontSize: 'var(--bs-text-3xl)',
|
|
454
|
+
fontWeight: "var(--bs-font-light)",
|
|
455
|
+
lineHeight: "var(--bs-leading-sm)",
|
|
456
|
+
'@screen dt': {
|
|
457
|
+
fontSize: 'var(--bs-text-4xl)'
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
'.text-5xl': {
|
|
461
|
+
fontSize: 'var(--bs-text-4xl)',
|
|
462
|
+
fontWeight: "var(--bs-font-light)",
|
|
463
|
+
lineHeight: "var(--bs-leading-sm)",
|
|
464
|
+
'@screen dt': {
|
|
465
|
+
fontSize: 'var(--bs-text-5xl)'
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
'.text-6xl': {
|
|
469
|
+
fontSize: 'var(--bs-text-5xl)',
|
|
470
|
+
fontWeight: "var(--bs-font-light)",
|
|
471
|
+
lineHeight: "var(--bs-leading-sm)",
|
|
472
|
+
'@screen dt': {
|
|
473
|
+
fontSize: 'var(--bs-text-6xl)'
|
|
474
|
+
}
|
|
347
475
|
}
|
|
348
476
|
})
|
|
349
477
|
})
|