@cocoar/vue-ui 3.4.0-beta.25 → 3.4.0-beta.29
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/dist/components/avatar/CoarAvatar.vue.d.ts +1 -1
- package/dist/components/avatar/CoarAvatar.vue.d.ts.map +1 -1
- package/dist/components/badge/CoarBadge.vue.d.ts +1 -1
- package/dist/components/badge/CoarBadge.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb/CoarBreadcrumbItem.vue.d.ts +2 -2
- package/dist/components/breadcrumb/CoarBreadcrumbItem.vue.d.ts.map +1 -1
- package/dist/components/button/CoarButton.vue.d.ts +2 -2
- package/dist/components/button/CoarButton.vue.d.ts.map +1 -1
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts +3 -3
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts.map +1 -1
- package/dist/components/checkbox-group/CoarCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/checkbox-group/CoarCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts +5 -5
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts +1 -1
- package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts +5 -5
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -1
- package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts +1 -1
- package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts +5 -5
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts.map +1 -1
- package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -1
- package/dist/components/form-field/CoarFormField.vue.d.ts +1 -1
- package/dist/components/form-field/CoarFormField.vue.d.ts.map +1 -1
- package/dist/components/icon/CoarIcon.vue.d.ts +3 -3
- package/dist/components/icon/CoarIcon.vue.d.ts.map +1 -1
- package/dist/components/input-frame/CoarInputFrame.vue.d.ts +1 -1
- package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
- package/dist/components/input-frame/CoarInputFrameButton.vue.d.ts +1 -1
- package/dist/components/input-frame/CoarInputFrameButton.vue.d.ts.map +1 -1
- package/dist/components/link/CoarLink.vue.d.ts +1 -1
- package/dist/components/link/CoarLink.vue.d.ts.map +1 -1
- package/dist/components/listbox/CoarListbox.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarMenuItem.vue.d.ts +3 -3
- package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/notice/CoarNotice.vue.d.ts +1 -1
- package/dist/components/notice/CoarNotice.vue.d.ts.map +1 -1
- package/dist/components/number-input/CoarNumberInput.vue.d.ts +2 -2
- package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts +3 -3
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts.map +1 -1
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
- package/dist/components/overlay/compact-context.d.ts +7 -5
- package/dist/components/overlay/compact-context.d.ts.map +1 -1
- package/dist/components/overlay/useCompactPresentationContext.d.ts +18 -2
- package/dist/components/overlay/useCompactPresentationContext.d.ts.map +1 -1
- package/dist/components/panel-layout/CoarSplitPane.vue.d.ts +1 -1
- package/dist/components/panel-layout/CoarSplitPane.vue.d.ts.map +1 -1
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts +2 -2
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -1
- package/dist/components/popconfirm/CoarPopconfirm.vue.d.ts +1 -1
- package/dist/components/popover/CoarPopover.vue.d.ts +1 -1
- package/dist/components/progress-bar/CoarProgressBar.vue.d.ts +1 -1
- package/dist/components/progress-bar/CoarProgressBar.vue.d.ts.map +1 -1
- package/dist/components/radio-group/CoarRadioGroup.vue.d.ts +2 -2
- package/dist/components/radio-group/CoarRadioGroup.vue.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebar.vue.d.ts +1 -1
- package/dist/components/sidebar/CoarSidebar.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts +2 -2
- package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebarItem.vue.d.ts +2 -2
- package/dist/components/sidebar/CoarSidebarItem.vue.d.ts.map +1 -1
- package/dist/components/spinner/CoarSpinner.vue.d.ts +1 -1
- package/dist/components/spinner/CoarSpinner.vue.d.ts.map +1 -1
- package/dist/components/switch/CoarSwitch.vue.d.ts +3 -3
- package/dist/components/switch/CoarSwitch.vue.d.ts.map +1 -1
- package/dist/components/table/CoarTable.vue.d.ts +1 -1
- package/dist/components/table/CoarTable.vue.d.ts.map +1 -1
- package/dist/components/text-input/CoarTextInput.vue.d.ts +2 -2
- package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -1
- package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts +5 -1
- package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts.map +1 -1
- package/dist/components/theme-editor/color-preview.d.ts +22 -0
- package/dist/components/theme-editor/color-preview.d.ts.map +1 -0
- package/dist/components/theme-editor/font-preview.d.ts +46 -0
- package/dist/components/theme-editor/font-preview.d.ts.map +1 -0
- package/dist/components/theme-editor/scheme-values.d.ts +12 -0
- package/dist/components/theme-editor/scheme-values.d.ts.map +1 -0
- package/dist/components/theme-editor/theme-editor-state.d.ts +198 -182
- package/dist/components/theme-editor/theme-editor-state.d.ts.map +1 -1
- package/dist/components/theme-scope/CoarThemeScope.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +3301 -2155
- package/dist/onest-fonts.d.ts +1 -0
- package/dist/onest-fonts.d.ts.map +1 -0
- package/dist/onest-fonts.js +4 -0
- package/dist/theme/color-contrast.d.ts +10 -0
- package/dist/theme/color-contrast.d.ts.map +1 -0
- package/dist/theme/compact-packages/calendar.d.ts +8 -0
- package/dist/theme/compact-packages/calendar.d.ts.map +1 -0
- package/dist/theme/compact-packages/data-grid.d.ts +8 -0
- package/dist/theme/compact-packages/data-grid.d.ts.map +1 -0
- package/dist/theme/compact-packages/document-viewer.d.ts +8 -0
- package/dist/theme/compact-packages/document-viewer.d.ts.map +1 -0
- package/dist/theme/compact-packages/map.d.ts +11 -0
- package/dist/theme/compact-packages/map.d.ts.map +1 -0
- package/dist/theme/compact-packages/markdown-editor.d.ts +8 -0
- package/dist/theme/compact-packages/markdown-editor.d.ts.map +1 -0
- package/dist/theme/compact-packages/markdown.d.ts +14 -0
- package/dist/theme/compact-packages/markdown.d.ts.map +1 -0
- package/dist/theme/compact-packages/mermaid.d.ts +8 -0
- package/dist/theme/compact-packages/mermaid.d.ts.map +1 -0
- package/dist/theme/compact-packages/page-builder.d.ts +8 -0
- package/dist/theme/compact-packages/page-builder.d.ts.map +1 -0
- package/dist/theme/compact-packages/script-editor.d.ts +8 -0
- package/dist/theme/compact-packages/script-editor.d.ts.map +1 -0
- package/dist/theme/compact-theme.d.ts +11 -0
- package/dist/theme/compact-theme.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/calendar.d.ts +3 -0
- package/dist/theme/enterprise-packages/calendar.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/document-viewer.d.ts +3 -0
- package/dist/theme/enterprise-packages/document-viewer.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/map.d.ts +3 -0
- package/dist/theme/enterprise-packages/map.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/markdown.d.ts +7 -0
- package/dist/theme/enterprise-packages/markdown.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/mermaid.d.ts +3 -0
- package/dist/theme/enterprise-packages/mermaid.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/page-builder.d.ts +3 -0
- package/dist/theme/enterprise-packages/page-builder.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/script-editor.d.ts +7 -0
- package/dist/theme/enterprise-packages/script-editor.d.ts.map +1 -0
- package/dist/theme/enterprise-theme.d.ts +8 -0
- package/dist/theme/enterprise-theme.d.ts.map +1 -0
- package/dist/theme/palette-inputs.d.ts +34 -0
- package/dist/theme/palette-inputs.d.ts.map +1 -0
- package/dist/theme/role-derived-tokens.d.ts +3 -0
- package/dist/theme/role-derived-tokens.d.ts.map +1 -0
- package/dist/theme/role-input-defaults.d.ts +5 -0
- package/dist/theme/role-input-defaults.d.ts.map +1 -0
- package/dist/theme/role-theme-contract.d.ts +8 -0
- package/dist/theme/role-theme-contract.d.ts.map +1 -0
- package/dist/theme/role-theme.d.ts +40 -0
- package/dist/theme/role-theme.d.ts.map +1 -0
- package/package.json +10 -4
- package/skills/cocoar-vue-ui/SKILL.md +2 -1
- package/skills/cocoar-vue-ui/references/foundations/colors.md +32 -3
- package/skills/cocoar-vue-ui/references/foundations/compact-presentation.md +47 -10
- package/skills/cocoar-vue-ui/references/foundations/theming.md +95 -14
- package/skills/cocoar-vue-ui/references/guide/migration-color-roles.md +28 -0
- package/skills/cocoar-vue-ui/references/guide/theming.md +22 -0
- package/styles/tokens/all.css +4 -1
- package/styles/tokens/code-block.css +2 -2
- package/styles/tokens/colors-primitives-dark.css +50 -50
- package/styles/tokens/colors-primitives-light.css +50 -50
- package/styles/tokens/colors-usage.css +126 -111
- package/styles/tokens/compact.css +4239 -254
- package/styles/tokens/components-shared.css +4 -4
- package/styles/tokens/derived.css +525 -0
- package/styles/tokens/menu.css +21 -21
- package/styles/tokens/new-components.css +35 -35
- package/styles/tokens/select-overlay.css +2 -2
- package/styles/tokens/sidebar.css +12 -12
- package/styles/tokens/theme-none.css +99 -93
- package/styles/tokens/typography.css +19 -19
|
@@ -2,16 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
# Compact presentation (Preview)
|
|
4
4
|
|
|
5
|
-
The compact
|
|
5
|
+
The compact presentation is an experiment across the library, not a change of the default theme.
|
|
6
6
|
It uses smaller, normally weighted Inter text, Slate-tinted structure, restrained corners and
|
|
7
7
|
aligned controls. Existing props, events and data formats are unchanged.
|
|
8
8
|
|
|
9
|
+
Compact is a set of values for the tokens every theme uses. The library derives everything else
|
|
10
|
+
from them, with the same rules for every theme. There are two ways to apply the values:
|
|
11
|
+
|
|
12
|
+
- **As a theme of your own:** load the **Compact** preset in the [Theme Editor](./theming.md),
|
|
13
|
+
adjust it (another font, other sizes or colours) and ship the exported theme class. No
|
|
14
|
+
`.coar-compact` is involved.
|
|
15
|
+
- **With the class `.coar-compact`:** the entry the first betas introduced. It applies the same
|
|
16
|
+
values and stays supported; everything below that names the class holds for a theme class too.
|
|
17
|
+
|
|
9
18
|
## Compare this documentation
|
|
10
19
|
|
|
11
20
|
Use **Style → Bisher / Compact** in the navigation to switch the entire documentation:
|
|
12
21
|
the VitePress shell, prose and ordinary live component examples. In a narrower window, the
|
|
13
22
|
selector is in the main navigation menu. The mobile documentation has the same selector in its header.
|
|
14
23
|
|
|
24
|
+
Loading the **Compact** preset in the Theme Editor (the button at the bottom right) switches the
|
|
25
|
+
documentation the same way, shell and prose included, with values you can then edit.
|
|
26
|
+
|
|
15
27
|
The choice is remembered in this browser and follows page navigation. Embedded phone/tablet
|
|
16
28
|
demos follow it without reloading, so their form values and open dialogs remain intact.
|
|
17
29
|
Light/dark mode remains independent. If browser storage is blocked, switching still works
|
|
@@ -23,6 +35,23 @@ their own scopes. This documentation preference does not change an application's
|
|
|
23
35
|
|
|
24
36
|
## Opt in
|
|
25
37
|
|
|
38
|
+
### With an exported theme
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
import '@cocoar/vue-ui/styles';
|
|
42
|
+
import '@cocoar/vue-ui/fonts/compact'; // or the font your theme names
|
|
43
|
+
import './coar-theme--myapp.css'; // Theme Editor → Compact → Download CSS
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<html class="coar-theme--myapp">
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
See [Exporting a theme based on Compact](./theming.md#exporting-a-theme-based-on-compact) for what the
|
|
51
|
+
file contains.
|
|
52
|
+
|
|
53
|
+
### With `.coar-compact`
|
|
54
|
+
|
|
26
55
|
Keep the normal stylesheet import and load the optional font entry:
|
|
27
56
|
|
|
28
57
|
```ts
|
|
@@ -146,8 +175,11 @@ async function edit() {
|
|
|
146
175
|
## Theme inputs and local specialization
|
|
147
176
|
|
|
148
177
|
`CoarThemeScope` continues to accept accent, semantic colors, fonts and component radii.
|
|
149
|
-
Without an explicit accent,
|
|
150
|
-
|
|
178
|
+
Without an explicit accent, Compact uses Slate (`#334155`) for its primary fill instead of the
|
|
179
|
+
legacy blue. An accent you name is used as you chose it: the primary fill shows the colour itself.
|
|
180
|
+
The palette follows the library's common curve in both cases, including its absolute chroma:
|
|
181
|
+
derived accent text, borders and interaction states can therefore be saturated blue even with
|
|
182
|
+
the Slate default. Hover and pressed fills use the default theme's steps for each colour scheme.
|
|
151
183
|
Normal field outlines use a muted Slate tone; hover strengthens them only slightly.
|
|
152
184
|
The `--coar-border-input` and `--coar-border-input-hover` roles remain independently
|
|
153
185
|
customizable, separate from focus and semantic error colors.
|
|
@@ -180,8 +212,9 @@ mobile presentation. Use a sibling outside `.coar-compact` for a fully legacy ar
|
|
|
180
212
|
|
|
181
213
|
## Teleports and global renderers
|
|
182
214
|
|
|
183
|
-
Library overlays carry their
|
|
184
|
-
including changes while open
|
|
215
|
+
Library overlays carry the theme in effect at their trigger, its local scope, mobile roles and
|
|
216
|
+
explicit overrides, including changes while open, whether the theme comes from `.coar-compact` or
|
|
217
|
+
from a theme class. Custom library-like teleports can use the Preview helper:
|
|
185
218
|
|
|
186
219
|
```ts
|
|
187
220
|
const presentation = useCompactPresentationContext(() => origin.value);
|
|
@@ -196,12 +229,15 @@ const presentation = useCompactPresentationContext(() => origin.value);
|
|
|
196
229
|
The helper is exported from `@cocoar/vue-ui`; it observes source ancestors, not all computed CSS
|
|
197
230
|
properties. Register the origin as an element ref and keep it mounted while the tool is open.
|
|
198
231
|
|
|
199
|
-
- **Monaco:** themes are document-global. Compact editor colors activate only when
|
|
200
|
-
|
|
232
|
+
- **Monaco:** themes are document-global. Compact editor colors activate only when the theme applies
|
|
233
|
+
to `html` or `body` (through `.coar-compact` or a theme class); local compact frames do not
|
|
234
|
+
promise an independent Monaco theme.
|
|
201
235
|
Compare legacy and compact editors in separate documents. Shared color roles are converted to
|
|
202
236
|
concrete Monaco colors; code typography remains independent of the UI scale.
|
|
203
|
-
- **Mermaid:** rendering is serialized with the
|
|
204
|
-
mode and token changes rerender
|
|
237
|
+
- **Mermaid:** rendering is serialized with the configuration resolved from the theme in effect at
|
|
238
|
+
the diagram. Local mode and token changes rerender such diagrams; stored diagram source is unchanged.
|
|
239
|
+
- **Map:** Leaflet's controls, popups and tooltips follow the theme in effect at the map. Without a
|
|
240
|
+
theme the library leaves Leaflet's own styles, and yours, alone.
|
|
205
241
|
- **Page Builder:** authoring chrome uses the compact roles, including theme-aware accent ink for
|
|
206
242
|
selected canvas labels and frames. Saved layout and document geometry retain their meaning.
|
|
207
243
|
Embedded library widgets still use the host presentation.
|
|
@@ -212,4 +248,5 @@ Browser emulation is not native keyboard or safe-area acceptance.
|
|
|
212
248
|
|
|
213
249
|
This preview is for testing in real applications, not a completed design review. Native calendar
|
|
214
250
|
gestures and some grid editor and document viewer states still need verification. Keep the
|
|
215
|
-
`.coar-compact`
|
|
251
|
+
theme class (or `.coar-compact`) behind an app-level toggle so testers can compare with the default
|
|
252
|
+
presentation.
|
|
@@ -21,13 +21,15 @@ import CoarThemeEditor from '@cocoar/vue-ui/theme-editor';
|
|
|
21
21
|
|
|
22
22
|
### Props
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
Mounted inside a `.coar-compact` area (the compatibility entry of the Preview
|
|
25
|
+
[compact presentation](./compact-presentation.md)), the editor targets that area rather than a
|
|
26
|
+
neighboring default area. Its teleported tools keep that area's presentation. The editor remains a
|
|
27
|
+
single live editor per document.
|
|
27
28
|
|
|
28
29
|
| Prop | Type | Default | Description |
|
|
29
30
|
|------|------|---------|-------------|
|
|
30
|
-
| `hideDarkToggle` | `boolean` | `false` | Hides the light/dark toggle. Set to `true` when your app manages dark mode itself. |
|
|
31
|
+
| `hideDarkToggle` | `boolean` | `false` | Hides the light/dark toggle. Set to `true` when your app manages dark mode itself; the editor then edits the colours of the scheme your app shows. |
|
|
32
|
+
| `fontPreview` | `boolean` | `true` | Fetches a font chosen in the editor from Google Fonts when the page does not have it, to preview it. See [Type](#type). |
|
|
31
33
|
|
|
32
34
|
## The Token Tree
|
|
33
35
|
|
|
@@ -50,7 +52,13 @@ Changing a primitive ripples through semantic tokens, which ripple through every
|
|
|
50
52
|
|
|
51
53
|
### Presets
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
Five built-in starting points: **Enterprise** (default), **Modern SaaS** (rounded), **Playful** (pill buttons, vivid accent), **Minimal** (sharp corners, no shadows) and **Compact** (Preview) (smaller Inter text, Slate surfaces, 36 px controls). Selecting a preset resets all other tabs to the preset's values.
|
|
56
|
+
|
|
57
|
+
A preset is a complete set of values on the same token contract. Modern SaaS, Playful and Minimal start from Enterprise and supply their own differences; Compact supplies the [compact presentation](./compact-presentation.md). Selecting a card loads its values without reloading the page, and every tab works on top of them. The editor starts with Enterprise, or Compact when mounted inside `.coar-compact`, but applies nothing to the app until you make a change.
|
|
58
|
+
|
|
59
|
+
### Values of this theme
|
|
60
|
+
|
|
61
|
+
Available for **every preset**. It lists the model's values in three groups: typography (body, action, field and caption text), sizes (control heights, row height, paddings, radii) and surfaces and text as a light and a dark colour each. Change any of them independently; the reset button of a row restores the value of the loaded preset. Every preset can be exported as a standalone stylesheet, including before any edit.
|
|
54
62
|
|
|
55
63
|
### Brand
|
|
56
64
|
|
|
@@ -64,11 +72,46 @@ Sets the five base hue values that anchor the entire palette:
|
|
|
64
72
|
| `--coar-warning` | `#cc821f` | Caution |
|
|
65
73
|
| `--coar-info` | `#5e6b84` | Neutral informational |
|
|
66
74
|
|
|
67
|
-
|
|
75
|
+
**Light and dark** (Preview). The Appearance switch at the top of the tab chooses the scheme you see and the one you edit. Every colour of the editor is calculated until you set it:
|
|
76
|
+
|
|
77
|
+
- A base colour is set in light. In dark it is locked and follows the light colour (or the dark half the preset gives it); unlock it to choose another dark colour, lock it again to follow light.
|
|
78
|
+
- Under each base colour, **Aa** shows the text on its solid fill (a primary button, a status badge) with its APCA contrast (Lc). The text colour is calculated for the best contrast in both schemes; unlock it to choose one. Below Lc 60 the editor warns that the text is hard to read; it never refuses the colour.
|
|
79
|
+
|
|
80
|
+
Each colour opens a **palette editor** (floating panel) for the scheme you edit, where you fine-tune L (lightness) and C (chroma) of every step 50–900, step 500 included, in oklch. A step you set is written as its `-lc` or `-lc-dark` input; the other scheme keeps its curve.
|
|
81
|
+
|
|
82
|
+
#### Base colours per scheme (Preview)
|
|
83
|
+
|
|
84
|
+
A value-based theme accepts one colour for both schemes, or a `light-dark()` pair,
|
|
85
|
+
through `--coar-theme-accent`, `--coar-theme-success`, `--coar-theme-error`,
|
|
86
|
+
`--coar-theme-warning` and `--coar-theme-info`. These inputs survive nested
|
|
87
|
+
light/dark boundaries and are carried into teleported overlays. For example,
|
|
88
|
+
over an exported theme:
|
|
89
|
+
|
|
90
|
+
```css
|
|
91
|
+
.coar-theme--acme {
|
|
92
|
+
--coar-theme-accent: light-dark(#1183cd, #facc15);
|
|
93
|
+
--coar-theme-success: light-dark(#15803d, #0d9488);
|
|
94
|
+
--coar-color-green-600-lc-dark: 0.8 0.08;
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Each palette step has its own `-lc` and `-lc-dark` input, including step 500
|
|
99
|
+
(`l c` preserves the base colour). The four status palettes use `green`, `red`,
|
|
100
|
+
`amber` and `slate` in their token names. Existing base and palette overrides
|
|
101
|
+
keep working; `CoarThemeScope` inputs still take precedence over preset values.
|
|
102
|
+
The Brand tab writes exactly these inputs, and only those you set.
|
|
68
103
|
|
|
69
104
|
### Semantic
|
|
70
105
|
|
|
71
|
-
|
|
106
|
+
Text on a solid accent or status fill uses its own computed role:
|
|
107
|
+
`--coar-text-on-accent`, `--coar-text-on-success`, `--coar-text-on-error`,
|
|
108
|
+
`--coar-text-on-warning` and `--coar-text-on-info` (Preview). Each chooses white or
|
|
109
|
+
black by APCA, with or without a preset. A theme can override a role with any
|
|
110
|
+
colour or a `light-dark()` pair; text on neutral or tinted surfaces remains
|
|
111
|
+
palette-derived. See [text on saturated fills](./colors.md#text-on-saturated-fills-preview)
|
|
112
|
+
and the [migration note](../guide/migration-color-roles.md).
|
|
113
|
+
|
|
114
|
+
Maps semantic roles to palette entries, for the scheme you edit. Each row shows the resolved color, lets you pick a palette (Accent / Red / Green / Amber / Slate) and a step (50–900), and has a reset button that turns accent-colored when changed. A role you set in one scheme keeps its default in the other; set in both, it is exported as a `light-dark()` pair.
|
|
72
115
|
|
|
73
116
|
This is the layer that connects intent to color: `--coar-background-semantic-error-bold` points at `Red / 600` by default. Reassigning it to `Amber / 600` would make all error surfaces amber — including form field borders, toast backgrounds, and the danger button — without touching any component code.
|
|
74
117
|
|
|
@@ -78,7 +121,15 @@ Controls the global radius scale (`xxs` → `xl`) plus per-component-group overr
|
|
|
78
121
|
|
|
79
122
|
### Type
|
|
80
123
|
|
|
81
|
-
Font family for body text and headings,
|
|
124
|
+
Font family for body text and headings. Choose Poppins, Inter, Onest, DM Sans, Nunito, Geist or the system font from the list, or **Other font…** to type any family name.
|
|
125
|
+
|
|
126
|
+
**Trying a font without installing it.** When the page does not have the family you chose or typed, the editor fetches it from Google Fonts to show it, and says so under the field. This is a preview only:
|
|
127
|
+
|
|
128
|
+
- The downloaded theme names the font and does not contain it. The file starts with a comment that lists each font and what your app has to load for it.
|
|
129
|
+
- The request goes to Google and carries the IP address of whoever uses the editor. It happens only for a font chosen in the editor, never when the editor mounts. Switch it off with `:font-preview="false"`; a font the page lacks then shows its fallback.
|
|
130
|
+
- A name Google Fonts does not know shows only where that font is installed on the device.
|
|
131
|
+
|
|
132
|
+
The library self-hosts three font entries, none of which loads anything from a CDN: `@cocoar/vue-ui/fonts` (Poppins, Inter 400 and 700, Cascadia Code), `@cocoar/vue-ui/fonts/compact` (Inter 400 to 700) and `@cocoar/vue-ui/fonts/onest` (Onest 400 to 700). Load any other family yourself, self-hosted or from your font provider.
|
|
82
133
|
|
|
83
134
|
### Spacing
|
|
84
135
|
|
|
@@ -92,16 +143,32 @@ Box shadow per component group (buttons never have shadows; cards, menus, dialog
|
|
|
92
143
|
|
|
93
144
|
A single duration multiplier that scales all `--coar-duration-*` tokens proportionally. Set to 0 for instant transitions, or push it above 2× to slow everything down for testing.
|
|
94
145
|
|
|
146
|
+
## Resetting
|
|
147
|
+
|
|
148
|
+
The reset button of a control restores the value of the loaded preset; a lock does the same for a colour of one scheme. **Reset** in the header removes everything the editor changed, in light and in dark, and nothing else: the theme your app has without the editor shows again. Light or dark mode, `.coar-mobile`, other theme scopes and the state of your app are left as they are.
|
|
149
|
+
|
|
95
150
|
## Exporting
|
|
96
151
|
|
|
97
|
-
Type a class name into the name field at the bottom of the editor (default: `custom`), then click **Download CSS
|
|
152
|
+
Type a class name into the name field at the bottom of the editor (default: `custom`), then click **Download CSS**. The live preview and the download are the same CSS, written for another class. Whatever preset you start from, the file contains every value a fresh app needs, with your changes in place, not only the differences against a preset the app would not have. A colour you left locked is written as its calculation; one you set is written as its value, or as a `light-dark()` pair where light and dark differ:
|
|
98
153
|
|
|
99
154
|
```css
|
|
100
|
-
/* coar-theme--myapp.css */
|
|
101
|
-
.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
155
|
+
/* coar-theme--myapp.css (shortened) */
|
|
156
|
+
@layer cocoar.tokens {
|
|
157
|
+
.coar-theme--myapp {
|
|
158
|
+
--coar-role-derivation: ; /* derive the dependent tokens from these values */
|
|
159
|
+
--coar-theme-accent: light-dark(#7c3aed, #a78bfa); /* a dark accent you unlocked */
|
|
160
|
+
--coar-color-accent-600-lc-dark: 0.72 0.12; /* a palette step you set in dark */
|
|
161
|
+
--coar-font-family-body: var(--coar-appearance-font-body, Inter, ui-sans-serif, system-ui, sans-serif);
|
|
162
|
+
--coar-ui-font-size: 13px;
|
|
163
|
+
/* … */
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.coar-mobile .coar-theme--myapp,
|
|
167
|
+
.coar-theme--myapp.coar-mobile,
|
|
168
|
+
.coar-theme--myapp .coar-mobile {
|
|
169
|
+
--coar-interactive-row-height: 44px; /* touch sizes where the theme meets .coar-mobile */
|
|
170
|
+
/* … */
|
|
171
|
+
}
|
|
105
172
|
}
|
|
106
173
|
```
|
|
107
174
|
|
|
@@ -123,8 +190,22 @@ import '@cocoar/vue-ui/styles';
|
|
|
123
190
|
import './coar-theme--myapp.css';
|
|
124
191
|
```
|
|
125
192
|
|
|
193
|
+
`--coar-role-derivation` (an empty value) is what makes the library derive palette steps, aliases and component roles from the values of the theme, on its class and on the scopes nested in it. The app needs the theme class and this file, loaded after the Cocoar stylesheet; it does not need `.coar-compact`. Dark mode and `.coar-mobile` stay separate choices of the app and combine with the theme.
|
|
194
|
+
|
|
195
|
+
The file is written into the cascade layer of the library's tokens, where `.coar-compact` is too. Your own unlayered styles therefore keep the last word, exactly as with the class: the theme sets body text to 14 px on its scope, and an app that declares `html { font-size: 16px }` itself keeps its 16 px (and the `rem` sizes that follow from it).
|
|
196
|
+
|
|
197
|
+
The file names a font, it does not ship one, and it starts with a comment saying what to load. Load the font your theme uses yourself: `import '@cocoar/vue-ui/fonts/compact'` for the Inter weights of the Compact preset, `import '@cocoar/vue-ui/fonts/onest'` for Onest, or your own `@font-face` rules for another family.
|
|
198
|
+
|
|
126
199
|
Because themes are classes, you can apply different themes to different subtrees:
|
|
127
200
|
|
|
201
|
+
> [!WARNING]
|
|
202
|
+
> Reliable isolation of **different nested presets** uses CSS `@scope` and requires
|
|
203
|
+
> Firefox 146+ (Chrome/Edge 119+ and Safari 18+ already support it). Older browsers
|
|
204
|
+
> retain the single-preset fallback, but outer preset values can leak into an inner
|
|
205
|
+
> preset. This does not raise the requirements for an ordinary single preset or
|
|
206
|
+
> light/dark switching. See [browser compatibility](../guide/theming.md#different-presets-inside-one-another-preview),
|
|
207
|
+
> including the Safari 26.0–26.3 native-field caveat. Put theme and mode classes on containers.
|
|
208
|
+
|
|
128
209
|
```html
|
|
129
210
|
<html class="coar-theme--myapp">
|
|
130
211
|
<!-- most of the app uses the custom theme -->
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!-- Generated from apps/docs/guide/migration-color-roles.md by apps/docs/scripts/sync-skill.mjs. Do not edit; edit the docs page. -->
|
|
2
|
+
|
|
3
|
+
# Migrating text on saturated fills
|
|
4
|
+
|
|
5
|
+
Primary and danger buttons, filled badges, selection marks and other saturated
|
|
6
|
+
accent surfaces now read their own `--coar-text-on-accent|success|error|warning|info`
|
|
7
|
+
role (Preview). Without an override, APCA chooses pure white or black from the
|
|
8
|
+
fill. This applies even without a theme or Theme Editor.
|
|
9
|
+
|
|
10
|
+
The library's default fills keep white text. A custom bright accent may now use
|
|
11
|
+
black instead of white. APCA and WCAG contrast ratios are different; automatic
|
|
12
|
+
selection does not guarantee a WCAG ratio of 4.5:1.
|
|
13
|
+
|
|
14
|
+
`--coar-text-on-bold` still exists and keeps its previous meaning, but changing it
|
|
15
|
+
alone no longer overrides text on these saturated fills. Themes that previously
|
|
16
|
+
set it should set the relevant new roles explicitly to keep their chosen ink:
|
|
17
|
+
|
|
18
|
+
```css
|
|
19
|
+
.coar-theme--acme {
|
|
20
|
+
--coar-text-on-accent: light-dark(#102a43, #f0f8ff);
|
|
21
|
+
--coar-text-on-error: #ffffff;
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
One ink is used for normal, hover and pressed fills. Palette-derived text on
|
|
26
|
+
neutral or softly tinted surfaces, including links, notes and validation
|
|
27
|
+
messages, is unaffected. Calendar event-specific ink policies and explicit
|
|
28
|
+
event text colours continue to work as before.
|
|
@@ -99,3 +99,25 @@ The oklch color system requires:
|
|
|
99
99
|
- Safari 18+
|
|
100
100
|
|
|
101
101
|
This covers all modern browsers. For older browsers, consider providing hex fallbacks for your specific brand color.
|
|
102
|
+
|
|
103
|
+
### Different presets inside one another (Preview)
|
|
104
|
+
|
|
105
|
+
The browser requirements above still apply to a single preset, ordinary light/dark
|
|
106
|
+
switching and applications without a preset. Different presets **nested inside one
|
|
107
|
+
another**, such as Enterprise around a Compact section, additionally use CSS
|
|
108
|
+
`@scope` to keep the inner preset's typography, geometry and package inputs independent.
|
|
109
|
+
|
|
110
|
+
- **Chrome / Edge 119+:** already covered by the baseline above.
|
|
111
|
+
- **Firefox 146+:** required for reliable isolation of different nested presets.
|
|
112
|
+
- **Safari 18+:** supports `@scope`. Safari 26.0–26.3 has a regression for scoped
|
|
113
|
+
rules applied directly to `<input>` and `<textarea>`; Safari 26.4 fixes it.
|
|
114
|
+
Apply preset and mode classes to `html` or a container, not directly to native fields.
|
|
115
|
+
|
|
116
|
+
Without `@scope`, the exported stylesheet keeps its unscoped fallback: a single
|
|
117
|
+
preset still works, but values from an outer preset can affect an inner, different
|
|
118
|
+
preset, particularly at light/dark, reset and mobile boundaries. On those browsers,
|
|
119
|
+
use one preset per ancestor chain rather than relying on nested isolation.
|
|
120
|
+
Separate pages or sibling areas with different presets do not have this conflict.
|
|
121
|
+
|
|
122
|
+
This restriction is about mixing presets, not about the usual light/dark switch.
|
|
123
|
+
For the markup and export contract, see [Theme Editor](../foundations/theming.md).
|
package/styles/tokens/all.css
CHANGED
|
@@ -44,5 +44,8 @@
|
|
|
44
44
|
/* 8. Optional mobile presentation (inherited from .coar-mobile) */
|
|
45
45
|
@import './mobile.css';
|
|
46
46
|
|
|
47
|
-
/* 9.
|
|
47
|
+
/* 9. Role derivation: inert until a theme activates it. */
|
|
48
|
+
@import './derived.css';
|
|
49
|
+
|
|
50
|
+
/* 10. `.coar-compact`: the Compact theme preset as a class (Preview). */
|
|
48
51
|
@import './compact.css';
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* Layout */
|
|
15
15
|
--coar-code-block-bg: var(--coar-color-white);
|
|
16
16
|
--coar-code-block-header-bg: var(--coar-color-gray-50);
|
|
17
|
-
--coar-code-block-border: #e1e4e8;
|
|
17
|
+
--coar-code-block-border: var(--coar-d-code-block-border, #e1e4e8);
|
|
18
18
|
|
|
19
19
|
/* Text */
|
|
20
20
|
--coar-code-block-text: #24292e;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
/* Layout */
|
|
48
48
|
--coar-code-block-bg: var(--coar-color-gray-100);
|
|
49
49
|
--coar-code-block-header-bg: var(--coar-color-gray-200);
|
|
50
|
-
--coar-code-block-border: var(--coar-color-gray-300);
|
|
50
|
+
--coar-code-block-border: var(--coar-d-code-block-border, var(--coar-color-gray-300));
|
|
51
51
|
|
|
52
52
|
/* Text */
|
|
53
53
|
--coar-code-block-text: #d4d4d4;
|
|
@@ -22,64 +22,64 @@
|
|
|
22
22
|
--coar-color-gray-900: #fafafa;
|
|
23
23
|
|
|
24
24
|
/* Info (slate) — inherits --coar-info from :root */
|
|
25
|
-
--coar-color-slate-50: oklch(from var(--coar-info) 0.18 0.012 h);
|
|
26
|
-
--coar-color-slate-100: oklch(from var(--coar-info) 0.23 0.018 h);
|
|
27
|
-
--coar-color-slate-200: oklch(from var(--coar-info) 0.30 0.022 h);
|
|
28
|
-
--coar-color-slate-300: oklch(from var(--coar-info) 0.40 0.025 h);
|
|
29
|
-
--coar-color-slate-400: oklch(from var(--coar-info) 0.50 0.03 h);
|
|
30
|
-
--coar-color-slate-500: var(--coar-info);
|
|
31
|
-
--coar-color-slate-600: oklch(from var(--coar-info) 0.70 0.025 h);
|
|
32
|
-
--coar-color-slate-700: oklch(from var(--coar-info) 0.78 0.018 h);
|
|
33
|
-
--coar-color-slate-800: oklch(from var(--coar-info) 0.86 0.012 h);
|
|
34
|
-
--coar-color-slate-900: oklch(from var(--coar-info) 0.93 0.006 h);
|
|
25
|
+
--coar-color-slate-50: var(--coar-d-color-slate-50, oklch(from var(--coar-info) 0.18 0.012 h));
|
|
26
|
+
--coar-color-slate-100: var(--coar-d-color-slate-100, oklch(from var(--coar-info) 0.23 0.018 h));
|
|
27
|
+
--coar-color-slate-200: var(--coar-d-color-slate-200, oklch(from var(--coar-info) 0.30 0.022 h));
|
|
28
|
+
--coar-color-slate-300: var(--coar-d-color-slate-300, oklch(from var(--coar-info) 0.40 0.025 h));
|
|
29
|
+
--coar-color-slate-400: var(--coar-d-color-slate-400, oklch(from var(--coar-info) 0.50 0.03 h));
|
|
30
|
+
--coar-color-slate-500: var(--coar-d-color-slate-500, var(--coar-info));
|
|
31
|
+
--coar-color-slate-600: var(--coar-d-color-slate-600, oklch(from var(--coar-info) 0.70 0.025 h));
|
|
32
|
+
--coar-color-slate-700: var(--coar-d-color-slate-700, oklch(from var(--coar-info) 0.78 0.018 h));
|
|
33
|
+
--coar-color-slate-800: var(--coar-d-color-slate-800, oklch(from var(--coar-info) 0.86 0.012 h));
|
|
34
|
+
--coar-color-slate-900: var(--coar-d-color-slate-900, oklch(from var(--coar-info) 0.93 0.006 h));
|
|
35
35
|
|
|
36
36
|
/* Accent Colors - auto-generated from --coar-accent via oklch
|
|
37
37
|
Designed for dark backgrounds: vibrant mid-range, rich dark tints.
|
|
38
38
|
Inherits --coar-accent from :root, no need to re-declare. */
|
|
39
|
-
--coar-color-accent-50: oklch(from var(--coar-accent) 0.20 0.045 h);
|
|
40
|
-
--coar-color-accent-100: oklch(from var(--coar-accent) 0.25 0.065 h);
|
|
41
|
-
--coar-color-accent-200: oklch(from var(--coar-accent) 0.32 0.095 h);
|
|
42
|
-
--coar-color-accent-300: oklch(from var(--coar-accent) 0.42 0.13 h);
|
|
43
|
-
--coar-color-accent-400: oklch(from var(--coar-accent) 0.52 0.155 h);
|
|
44
|
-
--coar-color-accent-500: var(--coar-accent);
|
|
45
|
-
--coar-color-accent-600: oklch(from var(--coar-accent) 0.68 0.14 h);
|
|
46
|
-
--coar-color-accent-700: oklch(from var(--coar-accent) 0.76 0.11 h);
|
|
47
|
-
--coar-color-accent-800: oklch(from var(--coar-accent) 0.85 0.07 h);
|
|
48
|
-
--coar-color-accent-900: oklch(from var(--coar-accent) 0.93 0.035 h);
|
|
39
|
+
--coar-color-accent-50: var(--coar-d-color-accent-50, oklch(from var(--coar-accent) 0.20 0.045 h));
|
|
40
|
+
--coar-color-accent-100: var(--coar-d-color-accent-100, oklch(from var(--coar-accent) 0.25 0.065 h));
|
|
41
|
+
--coar-color-accent-200: var(--coar-d-color-accent-200, oklch(from var(--coar-accent) 0.32 0.095 h));
|
|
42
|
+
--coar-color-accent-300: var(--coar-d-color-accent-300, oklch(from var(--coar-accent) 0.42 0.13 h));
|
|
43
|
+
--coar-color-accent-400: var(--coar-d-color-accent-400, oklch(from var(--coar-accent) 0.52 0.155 h));
|
|
44
|
+
--coar-color-accent-500: var(--coar-d-color-accent-500, var(--coar-accent));
|
|
45
|
+
--coar-color-accent-600: var(--coar-d-color-accent-600, oklch(from var(--coar-accent) 0.68 0.14 h));
|
|
46
|
+
--coar-color-accent-700: var(--coar-d-color-accent-700, oklch(from var(--coar-accent) 0.76 0.11 h));
|
|
47
|
+
--coar-color-accent-800: var(--coar-d-color-accent-800, oklch(from var(--coar-accent) 0.85 0.07 h));
|
|
48
|
+
--coar-color-accent-900: var(--coar-d-color-accent-900, oklch(from var(--coar-accent) 0.93 0.035 h));
|
|
49
49
|
|
|
50
50
|
/* Success (green) — inherits --coar-success from :root */
|
|
51
|
-
--coar-color-green-50: oklch(from var(--coar-success) 0.20 0.035 h);
|
|
52
|
-
--coar-color-green-100: oklch(from var(--coar-success) 0.25 0.055 h);
|
|
53
|
-
--coar-color-green-200: oklch(from var(--coar-success) 0.32 0.08 h);
|
|
54
|
-
--coar-color-green-300: oklch(from var(--coar-success) 0.42 0.11 h);
|
|
55
|
-
--coar-color-green-400: oklch(from var(--coar-success) 0.52 0.13 h);
|
|
56
|
-
--coar-color-green-500: var(--coar-success);
|
|
57
|
-
--coar-color-green-600: oklch(from var(--coar-success) 0.68 0.12 h);
|
|
58
|
-
--coar-color-green-700: oklch(from var(--coar-success) 0.76 0.09 h);
|
|
59
|
-
--coar-color-green-800: oklch(from var(--coar-success) 0.85 0.06 h);
|
|
60
|
-
--coar-color-green-900: oklch(from var(--coar-success) 0.93 0.03 h);
|
|
51
|
+
--coar-color-green-50: var(--coar-d-color-green-50, oklch(from var(--coar-success) 0.20 0.035 h));
|
|
52
|
+
--coar-color-green-100: var(--coar-d-color-green-100, oklch(from var(--coar-success) 0.25 0.055 h));
|
|
53
|
+
--coar-color-green-200: var(--coar-d-color-green-200, oklch(from var(--coar-success) 0.32 0.08 h));
|
|
54
|
+
--coar-color-green-300: var(--coar-d-color-green-300, oklch(from var(--coar-success) 0.42 0.11 h));
|
|
55
|
+
--coar-color-green-400: var(--coar-d-color-green-400, oklch(from var(--coar-success) 0.52 0.13 h));
|
|
56
|
+
--coar-color-green-500: var(--coar-d-color-green-500, var(--coar-success));
|
|
57
|
+
--coar-color-green-600: var(--coar-d-color-green-600, oklch(from var(--coar-success) 0.68 0.12 h));
|
|
58
|
+
--coar-color-green-700: var(--coar-d-color-green-700, oklch(from var(--coar-success) 0.76 0.09 h));
|
|
59
|
+
--coar-color-green-800: var(--coar-d-color-green-800, oklch(from var(--coar-success) 0.85 0.06 h));
|
|
60
|
+
--coar-color-green-900: var(--coar-d-color-green-900, oklch(from var(--coar-success) 0.93 0.03 h));
|
|
61
61
|
|
|
62
62
|
/* Error (red) — inherits --coar-error from :root */
|
|
63
|
-
--coar-color-red-50: oklch(from var(--coar-error) 0.20 0.04 h);
|
|
64
|
-
--coar-color-red-100: oklch(from var(--coar-error) 0.25 0.06 h);
|
|
65
|
-
--coar-color-red-200: oklch(from var(--coar-error) 0.32 0.09 h);
|
|
66
|
-
--coar-color-red-300: oklch(from var(--coar-error) 0.42 0.12 h);
|
|
67
|
-
--coar-color-red-400: oklch(from var(--coar-error) 0.52 0.145 h);
|
|
68
|
-
--coar-color-red-500: var(--coar-error);
|
|
69
|
-
--coar-color-red-600: oklch(from var(--coar-error) 0.68 0.12 h);
|
|
70
|
-
--coar-color-red-700: oklch(from var(--coar-error) 0.76 0.09 h);
|
|
71
|
-
--coar-color-red-800: oklch(from var(--coar-error) 0.85 0.06 h);
|
|
72
|
-
--coar-color-red-900: oklch(from var(--coar-error) 0.93 0.03 h);
|
|
63
|
+
--coar-color-red-50: var(--coar-d-color-red-50, oklch(from var(--coar-error) 0.20 0.04 h));
|
|
64
|
+
--coar-color-red-100: var(--coar-d-color-red-100, oklch(from var(--coar-error) 0.25 0.06 h));
|
|
65
|
+
--coar-color-red-200: var(--coar-d-color-red-200, oklch(from var(--coar-error) 0.32 0.09 h));
|
|
66
|
+
--coar-color-red-300: var(--coar-d-color-red-300, oklch(from var(--coar-error) 0.42 0.12 h));
|
|
67
|
+
--coar-color-red-400: var(--coar-d-color-red-400, oklch(from var(--coar-error) 0.52 0.145 h));
|
|
68
|
+
--coar-color-red-500: var(--coar-d-color-red-500, var(--coar-error));
|
|
69
|
+
--coar-color-red-600: var(--coar-d-color-red-600, oklch(from var(--coar-error) 0.68 0.12 h));
|
|
70
|
+
--coar-color-red-700: var(--coar-d-color-red-700, oklch(from var(--coar-error) 0.76 0.09 h));
|
|
71
|
+
--coar-color-red-800: var(--coar-d-color-red-800, oklch(from var(--coar-error) 0.85 0.06 h));
|
|
72
|
+
--coar-color-red-900: var(--coar-d-color-red-900, oklch(from var(--coar-error) 0.93 0.03 h));
|
|
73
73
|
|
|
74
74
|
/* Warning (amber) — inherits --coar-warning from :root */
|
|
75
|
-
--coar-color-amber-50: oklch(from var(--coar-warning) 0.22 0.04 h);
|
|
76
|
-
--coar-color-amber-100: oklch(from var(--coar-warning) 0.27 0.06 h);
|
|
77
|
-
--coar-color-amber-200: oklch(from var(--coar-warning) 0.34 0.09 h);
|
|
78
|
-
--coar-color-amber-300: oklch(from var(--coar-warning) 0.44 0.12 h);
|
|
79
|
-
--coar-color-amber-400: oklch(from var(--coar-warning) 0.54 0.14 h);
|
|
80
|
-
--coar-color-amber-500: var(--coar-warning);
|
|
81
|
-
--coar-color-amber-600: oklch(from var(--coar-warning) 0.70 0.12 h);
|
|
82
|
-
--coar-color-amber-700: oklch(from var(--coar-warning) 0.78 0.09 h);
|
|
83
|
-
--coar-color-amber-800: oklch(from var(--coar-warning) 0.86 0.06 h);
|
|
84
|
-
--coar-color-amber-900: oklch(from var(--coar-warning) 0.93 0.03 h);
|
|
75
|
+
--coar-color-amber-50: var(--coar-d-color-amber-50, oklch(from var(--coar-warning) 0.22 0.04 h));
|
|
76
|
+
--coar-color-amber-100: var(--coar-d-color-amber-100, oklch(from var(--coar-warning) 0.27 0.06 h));
|
|
77
|
+
--coar-color-amber-200: var(--coar-d-color-amber-200, oklch(from var(--coar-warning) 0.34 0.09 h));
|
|
78
|
+
--coar-color-amber-300: var(--coar-d-color-amber-300, oklch(from var(--coar-warning) 0.44 0.12 h));
|
|
79
|
+
--coar-color-amber-400: var(--coar-d-color-amber-400, oklch(from var(--coar-warning) 0.54 0.14 h));
|
|
80
|
+
--coar-color-amber-500: var(--coar-d-color-amber-500, var(--coar-warning));
|
|
81
|
+
--coar-color-amber-600: var(--coar-d-color-amber-600, oklch(from var(--coar-warning) 0.70 0.12 h));
|
|
82
|
+
--coar-color-amber-700: var(--coar-d-color-amber-700, oklch(from var(--coar-warning) 0.78 0.09 h));
|
|
83
|
+
--coar-color-amber-800: var(--coar-d-color-amber-800, oklch(from var(--coar-warning) 0.86 0.06 h));
|
|
84
|
+
--coar-color-amber-900: var(--coar-d-color-amber-900, oklch(from var(--coar-warning) 0.93 0.03 h));
|
|
85
85
|
}
|
|
@@ -24,52 +24,52 @@
|
|
|
24
24
|
--coar-info: #5e6b84;
|
|
25
25
|
|
|
26
26
|
/* Success (green) — auto-generated from --coar-success */
|
|
27
|
-
--coar-color-green-50: oklch(from var(--coar-success) 0.97 0.012 h);
|
|
28
|
-
--coar-color-green-100: oklch(from var(--coar-success) 0.92 0.035 h);
|
|
29
|
-
--coar-color-green-200: oklch(from var(--coar-success) 0.84 0.065 h);
|
|
30
|
-
--coar-color-green-300: oklch(from var(--coar-success) 0.74 0.10 h);
|
|
31
|
-
--coar-color-green-400: oklch(from var(--coar-success) 0.66 0.13 h);
|
|
32
|
-
--coar-color-green-500: var(--coar-success);
|
|
33
|
-
--coar-color-green-600: oklch(from var(--coar-success) 0.47 0.12 h);
|
|
34
|
-
--coar-color-green-700: oklch(from var(--coar-success) 0.40 0.10 h);
|
|
35
|
-
--coar-color-green-800: oklch(from var(--coar-success) 0.33 0.08 h);
|
|
36
|
-
--coar-color-green-900: oklch(from var(--coar-success) 0.26 0.06 h);
|
|
27
|
+
--coar-color-green-50: var(--coar-d-color-green-50, oklch(from var(--coar-success) 0.97 0.012 h));
|
|
28
|
+
--coar-color-green-100: var(--coar-d-color-green-100, oklch(from var(--coar-success) 0.92 0.035 h));
|
|
29
|
+
--coar-color-green-200: var(--coar-d-color-green-200, oklch(from var(--coar-success) 0.84 0.065 h));
|
|
30
|
+
--coar-color-green-300: var(--coar-d-color-green-300, oklch(from var(--coar-success) 0.74 0.10 h));
|
|
31
|
+
--coar-color-green-400: var(--coar-d-color-green-400, oklch(from var(--coar-success) 0.66 0.13 h));
|
|
32
|
+
--coar-color-green-500: var(--coar-d-color-green-500, var(--coar-success));
|
|
33
|
+
--coar-color-green-600: var(--coar-d-color-green-600, oklch(from var(--coar-success) 0.47 0.12 h));
|
|
34
|
+
--coar-color-green-700: var(--coar-d-color-green-700, oklch(from var(--coar-success) 0.40 0.10 h));
|
|
35
|
+
--coar-color-green-800: var(--coar-d-color-green-800, oklch(from var(--coar-success) 0.33 0.08 h));
|
|
36
|
+
--coar-color-green-900: var(--coar-d-color-green-900, oklch(from var(--coar-success) 0.26 0.06 h));
|
|
37
37
|
|
|
38
38
|
/* Error (red) — auto-generated from --coar-error */
|
|
39
|
-
--coar-color-red-50: oklch(from var(--coar-error) 0.97 0.012 h);
|
|
40
|
-
--coar-color-red-100: oklch(from var(--coar-error) 0.92 0.035 h);
|
|
41
|
-
--coar-color-red-200: oklch(from var(--coar-error) 0.84 0.07 h);
|
|
42
|
-
--coar-color-red-300: oklch(from var(--coar-error) 0.74 0.11 h);
|
|
43
|
-
--coar-color-red-400: oklch(from var(--coar-error) 0.66 0.145 h);
|
|
44
|
-
--coar-color-red-500: var(--coar-error);
|
|
45
|
-
--coar-color-red-600: oklch(from var(--coar-error) 0.47 0.13 h);
|
|
46
|
-
--coar-color-red-700: oklch(from var(--coar-error) 0.40 0.11 h);
|
|
47
|
-
--coar-color-red-800: oklch(from var(--coar-error) 0.33 0.09 h);
|
|
48
|
-
--coar-color-red-900: oklch(from var(--coar-error) 0.26 0.07 h);
|
|
39
|
+
--coar-color-red-50: var(--coar-d-color-red-50, oklch(from var(--coar-error) 0.97 0.012 h));
|
|
40
|
+
--coar-color-red-100: var(--coar-d-color-red-100, oklch(from var(--coar-error) 0.92 0.035 h));
|
|
41
|
+
--coar-color-red-200: var(--coar-d-color-red-200, oklch(from var(--coar-error) 0.84 0.07 h));
|
|
42
|
+
--coar-color-red-300: var(--coar-d-color-red-300, oklch(from var(--coar-error) 0.74 0.11 h));
|
|
43
|
+
--coar-color-red-400: var(--coar-d-color-red-400, oklch(from var(--coar-error) 0.66 0.145 h));
|
|
44
|
+
--coar-color-red-500: var(--coar-d-color-red-500, var(--coar-error));
|
|
45
|
+
--coar-color-red-600: var(--coar-d-color-red-600, oklch(from var(--coar-error) 0.47 0.13 h));
|
|
46
|
+
--coar-color-red-700: var(--coar-d-color-red-700, oklch(from var(--coar-error) 0.40 0.11 h));
|
|
47
|
+
--coar-color-red-800: var(--coar-d-color-red-800, oklch(from var(--coar-error) 0.33 0.09 h));
|
|
48
|
+
--coar-color-red-900: var(--coar-d-color-red-900, oklch(from var(--coar-error) 0.26 0.07 h));
|
|
49
49
|
|
|
50
50
|
/* Warning (amber) — auto-generated from --coar-warning */
|
|
51
|
-
--coar-color-amber-50: oklch(from var(--coar-warning) 0.97 0.015 h);
|
|
52
|
-
--coar-color-amber-100: oklch(from var(--coar-warning) 0.92 0.04 h);
|
|
53
|
-
--coar-color-amber-200: oklch(from var(--coar-warning) 0.86 0.08 h);
|
|
54
|
-
--coar-color-amber-300: oklch(from var(--coar-warning) 0.78 0.12 h);
|
|
55
|
-
--coar-color-amber-400: oklch(from var(--coar-warning) 0.72 0.14 h);
|
|
56
|
-
--coar-color-amber-500: var(--coar-warning);
|
|
57
|
-
--coar-color-amber-600: oklch(from var(--coar-warning) 0.50 0.12 h);
|
|
58
|
-
--coar-color-amber-700: oklch(from var(--coar-warning) 0.43 0.10 h);
|
|
59
|
-
--coar-color-amber-800: oklch(from var(--coar-warning) 0.36 0.08 h);
|
|
60
|
-
--coar-color-amber-900: oklch(from var(--coar-warning) 0.29 0.06 h);
|
|
51
|
+
--coar-color-amber-50: var(--coar-d-color-amber-50, oklch(from var(--coar-warning) 0.97 0.015 h));
|
|
52
|
+
--coar-color-amber-100: var(--coar-d-color-amber-100, oklch(from var(--coar-warning) 0.92 0.04 h));
|
|
53
|
+
--coar-color-amber-200: var(--coar-d-color-amber-200, oklch(from var(--coar-warning) 0.86 0.08 h));
|
|
54
|
+
--coar-color-amber-300: var(--coar-d-color-amber-300, oklch(from var(--coar-warning) 0.78 0.12 h));
|
|
55
|
+
--coar-color-amber-400: var(--coar-d-color-amber-400, oklch(from var(--coar-warning) 0.72 0.14 h));
|
|
56
|
+
--coar-color-amber-500: var(--coar-d-color-amber-500, var(--coar-warning));
|
|
57
|
+
--coar-color-amber-600: var(--coar-d-color-amber-600, oklch(from var(--coar-warning) 0.50 0.12 h));
|
|
58
|
+
--coar-color-amber-700: var(--coar-d-color-amber-700, oklch(from var(--coar-warning) 0.43 0.10 h));
|
|
59
|
+
--coar-color-amber-800: var(--coar-d-color-amber-800, oklch(from var(--coar-warning) 0.36 0.08 h));
|
|
60
|
+
--coar-color-amber-900: var(--coar-d-color-amber-900, oklch(from var(--coar-warning) 0.29 0.06 h));
|
|
61
61
|
|
|
62
62
|
/* Info (slate) — auto-generated from --coar-info */
|
|
63
|
-
--coar-color-slate-50: oklch(from var(--coar-info) 0.97 0.006 h);
|
|
64
|
-
--coar-color-slate-100: oklch(from var(--coar-info) 0.92 0.012 h);
|
|
65
|
-
--coar-color-slate-200: oklch(from var(--coar-info) 0.84 0.02 h);
|
|
66
|
-
--coar-color-slate-300: oklch(from var(--coar-info) 0.74 0.03 h);
|
|
67
|
-
--coar-color-slate-400: oklch(from var(--coar-info) 0.66 0.035 h);
|
|
68
|
-
--coar-color-slate-500: var(--coar-info);
|
|
69
|
-
--coar-color-slate-600: oklch(from var(--coar-info) 0.47 0.03 h);
|
|
70
|
-
--coar-color-slate-700: oklch(from var(--coar-info) 0.40 0.025 h);
|
|
71
|
-
--coar-color-slate-800: oklch(from var(--coar-info) 0.35 0.02 h);
|
|
72
|
-
--coar-color-slate-900: oklch(from var(--coar-info) 0.30 0.02 h);
|
|
63
|
+
--coar-color-slate-50: var(--coar-d-color-slate-50, oklch(from var(--coar-info) 0.97 0.006 h));
|
|
64
|
+
--coar-color-slate-100: var(--coar-d-color-slate-100, oklch(from var(--coar-info) 0.92 0.012 h));
|
|
65
|
+
--coar-color-slate-200: var(--coar-d-color-slate-200, oklch(from var(--coar-info) 0.84 0.02 h));
|
|
66
|
+
--coar-color-slate-300: var(--coar-d-color-slate-300, oklch(from var(--coar-info) 0.74 0.03 h));
|
|
67
|
+
--coar-color-slate-400: var(--coar-d-color-slate-400, oklch(from var(--coar-info) 0.66 0.035 h));
|
|
68
|
+
--coar-color-slate-500: var(--coar-d-color-slate-500, var(--coar-info));
|
|
69
|
+
--coar-color-slate-600: var(--coar-d-color-slate-600, oklch(from var(--coar-info) 0.47 0.03 h));
|
|
70
|
+
--coar-color-slate-700: var(--coar-d-color-slate-700, oklch(from var(--coar-info) 0.40 0.025 h));
|
|
71
|
+
--coar-color-slate-800: var(--coar-d-color-slate-800, oklch(from var(--coar-info) 0.35 0.02 h));
|
|
72
|
+
--coar-color-slate-900: var(--coar-d-color-slate-900, oklch(from var(--coar-info) 0.30 0.02 h));
|
|
73
73
|
--coar-color-white: #ffffff;
|
|
74
74
|
|
|
75
75
|
/* THEMING: Set your brand color here. All accent shades auto-calculate from it.
|
|
@@ -78,14 +78,14 @@
|
|
|
78
78
|
|
|
79
79
|
/* Accent Colors - auto-generated from --coar-accent via oklch
|
|
80
80
|
Extracts hue (h) from your brand color, applies designed lightness/chroma curves. */
|
|
81
|
-
--coar-color-accent-50: oklch(from var(--coar-accent) 0.97 0.012 h);
|
|
82
|
-
--coar-color-accent-100: oklch(from var(--coar-accent) 0.92 0.035 h);
|
|
83
|
-
--coar-color-accent-200: oklch(from var(--coar-accent) 0.84 0.075 h);
|
|
84
|
-
--coar-color-accent-300: oklch(from var(--coar-accent) 0.74 0.115 h);
|
|
85
|
-
--coar-color-accent-400: oklch(from var(--coar-accent) 0.66 0.145 h);
|
|
86
|
-
--coar-color-accent-500: var(--coar-accent);
|
|
87
|
-
--coar-color-accent-600: oklch(from var(--coar-accent) 0.53 0.15 h);
|
|
88
|
-
--coar-color-accent-700: oklch(from var(--coar-accent) 0.47 0.14 h);
|
|
89
|
-
--coar-color-accent-800: oklch(from var(--coar-accent) 0.39 0.12 h);
|
|
90
|
-
--coar-color-accent-900: oklch(from var(--coar-accent) 0.31 0.095 h);
|
|
81
|
+
--coar-color-accent-50: var(--coar-d-color-accent-50, oklch(from var(--coar-accent) 0.97 0.012 h));
|
|
82
|
+
--coar-color-accent-100: var(--coar-d-color-accent-100, oklch(from var(--coar-accent) 0.92 0.035 h));
|
|
83
|
+
--coar-color-accent-200: var(--coar-d-color-accent-200, oklch(from var(--coar-accent) 0.84 0.075 h));
|
|
84
|
+
--coar-color-accent-300: var(--coar-d-color-accent-300, oklch(from var(--coar-accent) 0.74 0.115 h));
|
|
85
|
+
--coar-color-accent-400: var(--coar-d-color-accent-400, oklch(from var(--coar-accent) 0.66 0.145 h));
|
|
86
|
+
--coar-color-accent-500: var(--coar-d-color-accent-500, var(--coar-accent));
|
|
87
|
+
--coar-color-accent-600: var(--coar-d-color-accent-600, oklch(from var(--coar-accent) 0.53 0.15 h));
|
|
88
|
+
--coar-color-accent-700: var(--coar-d-color-accent-700, oklch(from var(--coar-accent) 0.47 0.14 h));
|
|
89
|
+
--coar-color-accent-800: var(--coar-d-color-accent-800, oklch(from var(--coar-accent) 0.39 0.12 h));
|
|
90
|
+
--coar-color-accent-900: var(--coar-d-color-accent-900, oklch(from var(--coar-accent) 0.31 0.095 h));
|
|
91
91
|
}
|