@cobwds/mcp-server 1.19.3 → 1.23.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/README.md +6 -15
- package/data/cem/custom-elements.json +10084 -6696
- package/data/frameworks.json +14 -0
- package/data/guides/form-validation.md +1 -1
- package/data/guides/frameworks/angular.md +184 -26
- package/data/guides/frameworks/react-additions.md +69 -0
- package/data/guides/frameworks/react.md +209 -27
- package/data/guides/frameworks/vue.md +356 -0
- package/data/tokens/tokens.css +45 -56
- package/data/tokens/tokens.json +39 -78
- package/dist/index.js +0 -0
- package/dist/lib/cem-parser.d.ts +12 -0
- package/dist/lib/cem-parser.d.ts.map +1 -1
- package/dist/lib/framework-snippets.d.ts +36 -0
- package/dist/lib/framework-snippets.d.ts.map +1 -0
- package/dist/lib/framework-snippets.js +55 -0
- package/dist/lib/framework-usage.d.ts +20 -0
- package/dist/lib/framework-usage.d.ts.map +1 -0
- package/dist/lib/framework-usage.js +50 -0
- package/dist/lib/frameworks-data.d.ts +19 -0
- package/dist/lib/frameworks-data.d.ts.map +1 -0
- package/dist/lib/frameworks-data.js +40 -0
- package/dist/resources/frameworks.d.ts +15 -0
- package/dist/resources/frameworks.d.ts.map +1 -0
- package/dist/resources/frameworks.js +104 -0
- package/dist/resources/guides.d.ts.map +1 -1
- package/dist/resources/guides.js +12 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +2 -0
- package/dist/tools/component-tools.d.ts.map +1 -1
- package/dist/tools/component-tools.js +20 -5
- package/dist/tools/guide-tools.js +1 -1
- package/dist/tools/utility-tools.d.ts +48 -0
- package/dist/tools/utility-tools.d.ts.map +1 -1
- package/dist/tools/utility-tools.js +236 -71
- package/package.json +6 -4
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
GENERATED FILE. Do not edit directly.
|
|
3
|
+
Source: packages/vue/README.md
|
|
4
|
+
Regenerate with: npm run sync:guides -w @cobwds/mcp-server
|
|
5
|
+
-->
|
|
6
|
+
# @cobwds/vue
|
|
7
|
+
|
|
8
|
+
Vue 3 components for the City of Boston Web Design System (COBWDS). Generated from the COBWDS web components library.
|
|
9
|
+
|
|
10
|
+
You get two ways to use the design system, and can mix them freely:
|
|
11
|
+
|
|
12
|
+
- **Wrapper components** (`<CobTextinput>`) — real Vue components with
|
|
13
|
+
typed props, `@cob-*` events, `<template #slot>` slots, and `v-model`
|
|
14
|
+
on form controls.
|
|
15
|
+
- **Raw `<cob-*>` tags** — the custom elements themselves, typed in
|
|
16
|
+
templates and TSX.
|
|
17
|
+
|
|
18
|
+
Requires Vue 3.4 or later (tested on 3.4 and 3.5).
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
### Setup a new React project
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm create vue@latest
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Install NYS Design System
|
|
29
|
+
```bash
|
|
30
|
+
npm install @cobwds/vue @cobwds/styles
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Load styles
|
|
34
|
+
|
|
35
|
+
Import the design system stylesheet once, in your app's main.ts:
|
|
36
|
+
|
|
37
|
+
```tsx
|
|
38
|
+
import "@cobwds/styles/full";
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Vue's default TypeScript config rejects side-effect imports it can't
|
|
42
|
+
resolve, and a stylesheet isn't a module. If `npm run build` fails with
|
|
43
|
+
`TS2882: Cannot find module or type declarations for side-effect import of
|
|
44
|
+
'@cobwds/styles/full'`, declare the stylesheets once in `env.d.ts`:
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
// env.d.ts
|
|
48
|
+
declare module "@cobwds/styles/*";
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Optional agency theme: `<html data-theme="health">`. Themes: `admin`,
|
|
52
|
+
`business`, `environment`, `health`, `local`, `safety`, `transportation`.
|
|
53
|
+
Fonts aren't bundled. Load them the way your agency normally does.
|
|
54
|
+
|
|
55
|
+
### 4. Use a component
|
|
56
|
+
|
|
57
|
+
```vue
|
|
58
|
+
<script setup lang="ts">
|
|
59
|
+
import { CobAlert, CobButton } from "@cobwds/vue";
|
|
60
|
+
|
|
61
|
+
const start = () => console.log("started");
|
|
62
|
+
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<template>
|
|
66
|
+
<CobAlert type="info" heading="Welcome" />
|
|
67
|
+
<CobButton label="Start" @cob-click="start" />
|
|
68
|
+
</template>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Importing a wrapper registers its custom element as a side effect — no
|
|
72
|
+
`app.use()` call or global registration. Run `npm run dev`; you should see
|
|
73
|
+
a styled alert and button.
|
|
74
|
+
|
|
75
|
+
That's the whole setup. No compiler options are needed for wrapper
|
|
76
|
+
components. If you'd rather write raw `<cob-*>` tags, see
|
|
77
|
+
[Raw tags](#raw-tags).
|
|
78
|
+
|
|
79
|
+
## Props, events, slots, and refs
|
|
80
|
+
|
|
81
|
+
**Props** are typed from the underlying element class and set as DOM
|
|
82
|
+
properties. Use camelCase or kebab-case in templates, whichever you
|
|
83
|
+
prefer (`appName` and `app-name` are the same prop). Bind numbers and
|
|
84
|
+
booleans with `:` so they keep their type:
|
|
85
|
+
|
|
86
|
+
```vue
|
|
87
|
+
<CobPagination :total-pages="5" :current-page="1" />
|
|
88
|
+
<CobTextinput label="Name" required :disabled="locked" />
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
A prop you don't pass is left alone, so the element keeps its own
|
|
92
|
+
default.
|
|
93
|
+
|
|
94
|
+
**Events** keep their full COBWDS names. Listen with `@cob-change`,
|
|
95
|
+
`@cob-input`, and so on. The handler parameter is the typed event, so
|
|
96
|
+
`e.detail` autocompletes:
|
|
97
|
+
|
|
98
|
+
```vue
|
|
99
|
+
<CobTextinput
|
|
100
|
+
label="First name"
|
|
101
|
+
@cob-input="(e) => console.log(e.detail.value)"
|
|
102
|
+
/>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Use the `cob-*` events rather than native `@input` and `@change`: they
|
|
106
|
+
are COBWDS's public event contract, they carry typed details, and they cover
|
|
107
|
+
cases native events don't (a combobox selection, a date picked from the
|
|
108
|
+
calendar).
|
|
109
|
+
|
|
110
|
+
**Slots** work with `<template #name>`. The default slot renders as direct
|
|
111
|
+
children:
|
|
112
|
+
|
|
113
|
+
```vue
|
|
114
|
+
<CobTextinput label="Email">
|
|
115
|
+
<template #description>We'll never share it.</template>
|
|
116
|
+
</CobTextinput>
|
|
117
|
+
|
|
118
|
+
<CobTooltip text="Tooltip text">
|
|
119
|
+
<CobButton label="Hover me" />
|
|
120
|
+
</CobTooltip>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Named slot content is wrapped in a `<span slot="…" style="display:
|
|
124
|
+
contents">` so any content (text, components, fragments) can fill it. You
|
|
125
|
+
can also put a plain `slot="name"` attribute on your own child element.
|
|
126
|
+
|
|
127
|
+
**Refs** on a wrapper resolve to the Vue component instance. The element
|
|
128
|
+
itself is `$el`, typed as the element class:
|
|
129
|
+
|
|
130
|
+
```vue
|
|
131
|
+
<script setup lang="ts">
|
|
132
|
+
import { ref } from "vue";
|
|
133
|
+
import { CobTextinput } from "@cobwds/vue";
|
|
134
|
+
|
|
135
|
+
const name = ref<InstanceType<typeof CobTextinput> | null>(null);
|
|
136
|
+
const check = () => name.value?.$el.checkValidity();
|
|
137
|
+
</script>
|
|
138
|
+
|
|
139
|
+
<template>
|
|
140
|
+
<CobTextinput ref="name" label="Name" />
|
|
141
|
+
</template>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Forms
|
|
145
|
+
|
|
146
|
+
### `v-model`
|
|
147
|
+
|
|
148
|
+
Every form control supports `v-model`. It binds the property the
|
|
149
|
+
component's form contract defines:
|
|
150
|
+
|
|
151
|
+
| Component | `v-model` value |
|
|
152
|
+
| --- | --- |
|
|
153
|
+
| `CobTextinput`, `CobTextarea`, `CobSelect`, `CobCombobox`, `CobDatepicker`, `CobRadiogroup` | `string` |
|
|
154
|
+
| `CobCheckboxgroup` | `string[]` |
|
|
155
|
+
| `CobCheckbox`, `CobToggle` | `boolean` |
|
|
156
|
+
|
|
157
|
+
```vue
|
|
158
|
+
<script setup lang="ts">
|
|
159
|
+
import { reactive } from "vue";
|
|
160
|
+
import {
|
|
161
|
+
CobCheckbox,
|
|
162
|
+
CobCheckboxgroup,
|
|
163
|
+
CobRadiobutton,
|
|
164
|
+
CobRadiogroup,
|
|
165
|
+
CobTextinput,
|
|
166
|
+
} from "@cobwds/vue";
|
|
167
|
+
|
|
168
|
+
const model = reactive({
|
|
169
|
+
firstName: "",
|
|
170
|
+
agree: false,
|
|
171
|
+
languages: [] as string[],
|
|
172
|
+
contact: "",
|
|
173
|
+
});
|
|
174
|
+
</script>
|
|
175
|
+
|
|
176
|
+
<template>
|
|
177
|
+
<CobTextinput v-model="model.firstName" label="First name" required />
|
|
178
|
+
<CobCheckbox v-model="model.agree" label="I agree to the terms" />
|
|
179
|
+
|
|
180
|
+
<CobCheckboxgroup v-model="model.languages" label="Languages">
|
|
181
|
+
<CobCheckbox label="English" value="en" />
|
|
182
|
+
<CobCheckbox label="Spanish" value="es" />
|
|
183
|
+
</CobCheckboxgroup>
|
|
184
|
+
|
|
185
|
+
<CobRadiogroup v-model="model.contact" label="Preferred contact" name="contact">
|
|
186
|
+
<CobRadiobutton label="Email" name="contact" value="email" />
|
|
187
|
+
<CobRadiobutton label="Phone" name="contact" value="phone" />
|
|
188
|
+
</CobRadiogroup>
|
|
189
|
+
</template>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
- Bind checkbox and radio groups on `CobCheckboxgroup` and
|
|
193
|
+
`CobRadiogroup`, not on each child.
|
|
194
|
+
- The model updates on the component's `cob-input` and `cob-change`
|
|
195
|
+
events. Add `.lazy` (`v-model.lazy`) to update on `cob-change` alone, as
|
|
196
|
+
on a native input.
|
|
197
|
+
- **File input** has no `v-model`. Listen for the change event and read
|
|
198
|
+
the files from its detail:
|
|
199
|
+
|
|
200
|
+
```vue
|
|
201
|
+
<CobFileinput
|
|
202
|
+
label="Resume"
|
|
203
|
+
@cob-change="(e) => (model.resume = e.detail.files[0]?.name ?? '')"
|
|
204
|
+
/>
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Submit and validate with a native form
|
|
208
|
+
|
|
209
|
+
COBWDS form components are form-associated custom elements: they submit
|
|
210
|
+
with a plain `<form>` like native inputs, and `required`, `pattern`, and
|
|
211
|
+
the rest drive the component's own validation and error display.
|
|
212
|
+
|
|
213
|
+
```vue
|
|
214
|
+
<form @submit.prevent="onSubmit">
|
|
215
|
+
<CobTextinput v-model="model.firstName" label="First name" required />
|
|
216
|
+
<CobButton type="submit" label="Submit" />
|
|
217
|
+
</form>
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
`cob-button type="submit"` submits through `form.requestSubmit()`, so an
|
|
221
|
+
invalid form blocks `@submit` and the component shows its error.
|
|
222
|
+
|
|
223
|
+
To drive errors from your own validation library instead, set the
|
|
224
|
+
component's error props:
|
|
225
|
+
|
|
226
|
+
```vue
|
|
227
|
+
<CobTextinput
|
|
228
|
+
v-model="model.firstName"
|
|
229
|
+
label="First name"
|
|
230
|
+
:show-error="!!errors.firstName"
|
|
231
|
+
:error-message="errors.firstName"
|
|
232
|
+
/>
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### Reset
|
|
236
|
+
|
|
237
|
+
Setting the model back to its initial values resets every control. The
|
|
238
|
+
file input has no bound value, so also call `reset()` on the form:
|
|
239
|
+
|
|
240
|
+
```ts
|
|
241
|
+
const form = ref<HTMLFormElement | null>(null);
|
|
242
|
+
|
|
243
|
+
function reset() {
|
|
244
|
+
Object.assign(model, initialModel());
|
|
245
|
+
form.value?.reset();
|
|
246
|
+
}
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## Raw tags
|
|
250
|
+
|
|
251
|
+
If you prefer the custom elements directly, import the package once for
|
|
252
|
+
its side effects and types, then tell Vue's compiler that `cob-*` tags are
|
|
253
|
+
custom elements so it doesn't try to resolve them as components:
|
|
254
|
+
|
|
255
|
+
```ts
|
|
256
|
+
// vite.config.ts
|
|
257
|
+
import vue from "@vitejs/plugin-vue";
|
|
258
|
+
|
|
259
|
+
export default {
|
|
260
|
+
plugins: [
|
|
261
|
+
vue({
|
|
262
|
+
template: {
|
|
263
|
+
compilerOptions: { isCustomElement: (tag) => tag.startsWith("cob-") },
|
|
264
|
+
},
|
|
265
|
+
}),
|
|
266
|
+
],
|
|
267
|
+
};
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
```vue
|
|
271
|
+
<script setup lang="ts">
|
|
272
|
+
import { reactive } from "vue";
|
|
273
|
+
import "@cobwds/vue"; // registers every element and adds the tag types
|
|
274
|
+
|
|
275
|
+
const model = reactive({ firstName: "" });
|
|
276
|
+
</script>
|
|
277
|
+
|
|
278
|
+
<template>
|
|
279
|
+
<cob-textinput
|
|
280
|
+
label="First name"
|
|
281
|
+
:value="model.firstName"
|
|
282
|
+
@cob-input="(e) => (model.firstName = e.detail.value)"
|
|
283
|
+
/>
|
|
284
|
+
</template>
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
Raw tags are typed in `.vue` templates (checked by `vue-tsc`) and in TSX.
|
|
288
|
+
Bind properties with `:` and update your state from the `@cob-*`
|
|
289
|
+
listener.
|
|
290
|
+
|
|
291
|
+
**Raw tags have no working `v-model`.** Vue's built-in `v-model` listens for
|
|
292
|
+
native `input` events instead of the `cob-*` events that make up COBWDS's
|
|
293
|
+
contract, so it misses updates (a combobox selection, a calendar pick, a
|
|
294
|
+
checkbox). Use a wrapper component, or bind `:value` and `@cob-input`
|
|
295
|
+
yourself as above.
|
|
296
|
+
|
|
297
|
+
## TypeScript
|
|
298
|
+
|
|
299
|
+
- `CobTextinputProps` is the full prop type, including the `on*` event
|
|
300
|
+
handlers and, for form controls, `modelValue`.
|
|
301
|
+
- `CobTextinputElement` is the element class type.
|
|
302
|
+
- `CobTextinputSlots` and `CobTextinputSlotName` describe the slots.
|
|
303
|
+
- Event detail types come from the component packages:
|
|
304
|
+
`import type { CobTextinputInputEvent } from "@cobwds/cob-textinput"`.
|
|
305
|
+
- Run `vue-tsc --noEmit` in your build to type-check templates. Unknown
|
|
306
|
+
props on a wrapper are compile errors; slot names are checked in `.vue`
|
|
307
|
+
files but not in TSX.
|
|
308
|
+
|
|
309
|
+
## SSR and Nuxt
|
|
310
|
+
|
|
311
|
+
The package is safe to import in Node, and a wrapper renders its bare
|
|
312
|
+
element on the server. Components upgrade and become interactive in the
|
|
313
|
+
browser; there is no declarative shadow DOM rendering in this release, and
|
|
314
|
+
hydration has not been verified. For SSR frameworks such as Nuxt, render
|
|
315
|
+
COBWDS components inside client-only boundaries (`<ClientOnly>`) until you
|
|
316
|
+
have tested hydration in your app.
|
|
317
|
+
|
|
318
|
+
## Troubleshooting
|
|
319
|
+
|
|
320
|
+
**The element renders but has no styling or behavior.** The custom
|
|
321
|
+
element didn't upgrade. Import the component from `@cobwds/vue` (the import
|
|
322
|
+
registers it) and check the browser console for load errors. If you use
|
|
323
|
+
raw `<cob-*>` tags, add `import "@cobwds/vue"` yourself.
|
|
324
|
+
|
|
325
|
+
**Everything renders unstyled.** Import `@cobwds/styles/full` once at your
|
|
326
|
+
entry file.
|
|
327
|
+
|
|
328
|
+
**`Failed to resolve component: cob-…`.** You used a raw tag without the
|
|
329
|
+
`isCustomElement` compiler option. Add it (see [Raw tags](#raw-tags)) or
|
|
330
|
+
use the wrapper component instead.
|
|
331
|
+
|
|
332
|
+
**`v-model` on a raw `<cob-*>` tag doesn't update.** See
|
|
333
|
+
[Raw tags](#raw-tags): use a wrapper, or bind `:value` and `@cob-input`.
|
|
334
|
+
|
|
335
|
+
**A prop change doesn't reach the element.** Bind numbers and booleans
|
|
336
|
+
with `:` (`:total-pages="5"`), not as plain attributes, so Vue passes the
|
|
337
|
+
typed value.
|
|
338
|
+
|
|
339
|
+
**Slot content has an extra wrapper.** Named slot content sits inside a
|
|
340
|
+
`display: contents` span. To avoid it, put a `slot="name"` attribute on
|
|
341
|
+
your own child element instead of using `<template #name>`.
|
|
342
|
+
|
|
343
|
+
**`app.use(router)` or the `<cob-*>` types break with two Vue versions.**
|
|
344
|
+
Two copies of Vue in `node_modules` give TypeScript two sets of types. Run
|
|
345
|
+
`npm ls vue` and dedupe. In a monorepo where you pin a different Vue in one
|
|
346
|
+
workspace, map `vue` in that app's `tsconfig.json`:
|
|
347
|
+
|
|
348
|
+
```json
|
|
349
|
+
{ "compilerOptions": { "baseUrl": ".", "paths": { "vue": ["./node_modules/vue"] } } }
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
## How this package is built
|
|
353
|
+
|
|
354
|
+
`src/generated/` is written by the `@cobwds/codegen` CEM plugin on every
|
|
355
|
+
`npm run cem` and is not committed. The one hand-written file is
|
|
356
|
+
`src/runtime.ts`, which builds each wrapper from the generated metadata.
|
package/data/tokens/tokens.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* City of Boston Web Design System v1.
|
|
2
|
+
* City of Boston Web Design System v1.23.1
|
|
3
3
|
* Description: A web design system for the City of Boston's digital products.
|
|
4
4
|
* Repository: https://github.com/CityOfBoston/nywds-poc
|
|
5
5
|
* License: MIT
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--cob-border-width-lg: 4px;
|
|
13
13
|
--cob-border-width-md: 2px;
|
|
14
14
|
--cob-border-width-sm: 1px;
|
|
15
|
-
--cob-color-accent: var(--cob-color-
|
|
15
|
+
--cob-color-accent: var(--cob-color-red-400);
|
|
16
16
|
--cob-color-admin-orange-10: #fcf4ef;
|
|
17
17
|
--cob-color-admin-orange-50: #f9e9e0;
|
|
18
18
|
--cob-color-admin-orange-100: #f3d3c1;
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
--cob-color-black-transparent-700: #000000b3;
|
|
38
38
|
--cob-color-black-transparent-800: #000000cc;
|
|
39
39
|
--cob-color-black-transparent-900: #000000e6;
|
|
40
|
-
--cob-color-blue-10: #
|
|
41
|
-
--cob-color-blue-50: #
|
|
42
|
-
--cob-color-blue-100: #
|
|
43
|
-
--cob-color-blue-200: #
|
|
44
|
-
--cob-color-blue-300: #
|
|
45
|
-
--cob-color-blue-400: #
|
|
46
|
-
--cob-color-blue-500:
|
|
47
|
-
--cob-color-blue-600: #
|
|
48
|
-
--cob-color-blue-700:
|
|
49
|
-
--cob-color-blue-800: #
|
|
40
|
+
--cob-color-blue-10: #f0f7fd;
|
|
41
|
+
--cob-color-blue-50: #e3f0fb;
|
|
42
|
+
--cob-color-blue-100: #c7e1f8;
|
|
43
|
+
--cob-color-blue-200: #93c5f1;
|
|
44
|
+
--cob-color-blue-300: #5fa9ea;
|
|
45
|
+
--cob-color-blue-400: #268be3;
|
|
46
|
+
--cob-color-blue-500: var(--cob-color-optimistic-blue);
|
|
47
|
+
--cob-color-blue-600: #145b99;
|
|
48
|
+
--cob-color-blue-700: #0f4575;
|
|
49
|
+
--cob-color-blue-800: #0b3051;
|
|
50
50
|
--cob-color-blue-900: var(--cob-color-charles-blue);
|
|
51
51
|
--cob-color-business-teal-10: #f2f6f6;
|
|
52
52
|
--cob-color-business-teal-50: #e5eded;
|
|
@@ -90,24 +90,13 @@
|
|
|
90
90
|
--cob-color-green-700: #165923;
|
|
91
91
|
--cob-color-green-800: #0f3d18;
|
|
92
92
|
--cob-color-green-900: #08210d;
|
|
93
|
-
--cob-color-health-purple-10: #f4f4f8;
|
|
94
|
-
--cob-color-health-purple-50: #e9eaf1;
|
|
95
|
-
--cob-color-health-purple-100: #d3d5e3;
|
|
96
|
-
--cob-color-health-purple-200: #bbb8cc;
|
|
97
|
-
--cob-color-health-purple-300: #a39bb6;
|
|
98
|
-
--cob-color-health-purple-400: #8b7fa0;
|
|
99
|
-
--cob-color-health-purple-500: #736289;
|
|
100
|
-
--cob-color-health-purple-600: #5b4573;
|
|
101
|
-
--cob-color-health-purple-700: #43285d;
|
|
102
|
-
--cob-color-health-purple-800: #2c1a3e;
|
|
103
|
-
--cob-color-health-purple-900: #160d1f;
|
|
104
93
|
--cob-color-info: var(--cob-color-blue-600);
|
|
105
94
|
--cob-color-info-strong: var(--cob-color-blue-800);
|
|
106
95
|
--cob-color-info-weak: var(--cob-color-blue-50);
|
|
107
96
|
--cob-color-ink: var(--cob-color-neutral-900);
|
|
108
97
|
--cob-color-ink-reverse: var(--cob-color-white);
|
|
109
98
|
--cob-color-link: var(--cob-color-blue-600);
|
|
110
|
-
--cob-color-link-neutral: var(--cob-color-
|
|
99
|
+
--cob-color-link-neutral: var(--cob-color-blue-900);
|
|
111
100
|
--cob-color-link-reverse: var(--cob-color-neutral-300);
|
|
112
101
|
--cob-color-link-reverse-neutral: var(--cob-color-white);
|
|
113
102
|
--cob-color-link-reverse-strong: var(--cob-color-neutral-50);
|
|
@@ -137,17 +126,28 @@
|
|
|
137
126
|
--cob-color-neutral-800: #323435;
|
|
138
127
|
--cob-color-neutral-900: #1b1b1b;
|
|
139
128
|
--cob-color-optimistic-blue: #1871bd;
|
|
140
|
-
--cob-color-
|
|
141
|
-
--cob-color-
|
|
142
|
-
--cob-color-
|
|
143
|
-
--cob-color-
|
|
144
|
-
--cob-color-
|
|
145
|
-
--cob-color-
|
|
146
|
-
--cob-color-
|
|
147
|
-
--cob-color-
|
|
148
|
-
--cob-color-
|
|
149
|
-
--cob-color-
|
|
150
|
-
--cob-color-
|
|
129
|
+
--cob-color-purple-10: #f4f4f8;
|
|
130
|
+
--cob-color-purple-50: #e9eaf1;
|
|
131
|
+
--cob-color-purple-100: #d3d5e3;
|
|
132
|
+
--cob-color-purple-200: #bbb8cc;
|
|
133
|
+
--cob-color-purple-300: #a39bb6;
|
|
134
|
+
--cob-color-purple-400: #8b7fa0;
|
|
135
|
+
--cob-color-purple-500: #736289;
|
|
136
|
+
--cob-color-purple-600: #5b4573;
|
|
137
|
+
--cob-color-purple-700: #43285d;
|
|
138
|
+
--cob-color-purple-800: #2c1a3e;
|
|
139
|
+
--cob-color-purple-900: #160d1f;
|
|
140
|
+
--cob-color-red-10: #fff3f2;
|
|
141
|
+
--cob-color-red-50: #fee8e6;
|
|
142
|
+
--cob-color-red-100: #fed1ce;
|
|
143
|
+
--cob-color-red-200: #fda9a4;
|
|
144
|
+
--cob-color-red-300: #fc7e76;
|
|
145
|
+
--cob-color-red-400: var(--cob-color-freedom-trail-red);
|
|
146
|
+
--cob-color-red-500: #e51205;
|
|
147
|
+
--cob-color-red-600: #c20f04;
|
|
148
|
+
--cob-color-red-700: #9e0d03;
|
|
149
|
+
--cob-color-red-800: #7c0a03;
|
|
150
|
+
--cob-color-red-900: #590702;
|
|
151
151
|
--cob-color-safety-gray-10: #f2f5f6;
|
|
152
152
|
--cob-color-safety-gray-50: #e5ebed;
|
|
153
153
|
--cob-color-safety-gray-100: #cdd6da;
|
|
@@ -159,17 +159,6 @@
|
|
|
159
159
|
--cob-color-safety-gray-700: #435d6e;
|
|
160
160
|
--cob-color-safety-gray-800: #30424f;
|
|
161
161
|
--cob-color-safety-gray-900: #1d2830;
|
|
162
|
-
--cob-color-state-blue-10: #f7fafd;
|
|
163
|
-
--cob-color-state-blue-50: #eff6fb;
|
|
164
|
-
--cob-color-state-blue-100: #cddde9;
|
|
165
|
-
--cob-color-state-blue-200: #abc4d8;
|
|
166
|
-
--cob-color-state-blue-300: #89abc7;
|
|
167
|
-
--cob-color-state-blue-400: #6792b6;
|
|
168
|
-
--cob-color-state-blue-500: #457aa5;
|
|
169
|
-
--cob-color-state-blue-600: #2d618c;
|
|
170
|
-
--cob-color-state-blue-700: #154973;
|
|
171
|
-
--cob-color-state-blue-800: #0e324f;
|
|
172
|
-
--cob-color-state-blue-900: #081b2b;
|
|
173
162
|
--cob-color-success: var(--cob-color-green-600);
|
|
174
163
|
--cob-color-success-strong: var(--cob-color-green-800);
|
|
175
164
|
--cob-color-success-weak: var(--cob-color-green-50);
|
|
@@ -185,11 +174,11 @@
|
|
|
185
174
|
--cob-color-text-weak: var(--cob-color-neutral-700);
|
|
186
175
|
--cob-color-text-weaker: var(--cob-color-neutral-500);
|
|
187
176
|
--cob-color-text-weakest: var(--cob-color-neutral-200);
|
|
188
|
-
--cob-color-theme: var(--cob-color-
|
|
177
|
+
--cob-color-theme: var(--cob-color-blue-500);
|
|
189
178
|
--cob-color-theme-faint: var(--cob-color-blue-10);
|
|
190
|
-
--cob-color-theme-mid: var(--cob-color-blue-
|
|
179
|
+
--cob-color-theme-mid: var(--cob-color-blue-200);
|
|
191
180
|
--cob-color-theme-strong: var(--cob-color-blue-800);
|
|
192
|
-
--cob-color-theme-stronger: var(--cob-color-
|
|
181
|
+
--cob-color-theme-stronger: var(--cob-color-blue-900);
|
|
193
182
|
--cob-color-theme-weak: var(--cob-color-blue-100);
|
|
194
183
|
--cob-color-theme-weaker: var(--cob-color-blue-50);
|
|
195
184
|
--cob-color-transparent: #ffffff00;
|
|
@@ -435,13 +424,13 @@
|
|
|
435
424
|
|
|
436
425
|
[data-theme="health"],
|
|
437
426
|
.cob-theme-health {
|
|
438
|
-
--cob-color-theme: var(--cob-color-
|
|
439
|
-
--cob-color-theme-faint: var(--cob-color-
|
|
440
|
-
--cob-color-theme-mid: var(--cob-color-
|
|
441
|
-
--cob-color-theme-strong: var(--cob-color-
|
|
442
|
-
--cob-color-theme-stronger: var(--cob-color-
|
|
443
|
-
--cob-color-theme-weak: var(--cob-color-
|
|
444
|
-
--cob-color-theme-weaker: var(--cob-color-
|
|
427
|
+
--cob-color-theme: var(--cob-color-purple-700);
|
|
428
|
+
--cob-color-theme-faint: var(--cob-color-purple-10);
|
|
429
|
+
--cob-color-theme-mid: var(--cob-color-purple-500);
|
|
430
|
+
--cob-color-theme-strong: var(--cob-color-purple-800);
|
|
431
|
+
--cob-color-theme-stronger: var(--cob-color-purple-900);
|
|
432
|
+
--cob-color-theme-weak: var(--cob-color-purple-100);
|
|
433
|
+
--cob-color-theme-weaker: var(--cob-color-purple-50);
|
|
445
434
|
}
|
|
446
435
|
|
|
447
436
|
[data-theme="local"],
|