@supersoniks/concorde 5.0.5 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +21 -0
- package/.github-export-ignore +30 -0
- package/.tmp-cem/custom-elements.json +13705 -0
- package/CONTRIBUTING.md +59 -0
- package/DEV.md +54 -0
- package/LICENSE +21 -0
- package/OPEN_SOURCE_CHECKPOINT.md +133 -0
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +3960 -0
- package/concorde-3d.es.js +33433 -0
- package/concorde-core.bundle.js +196 -196
- package/concorde-core.es.js +3685 -3405
- package/concorde-hugging-face-infer.bundle.js +32 -0
- package/concorde-hugging-face-infer.es.js +2952 -0
- package/concorde-interactive.bundle.js +1157 -0
- package/concorde-interactive.es.js +10734 -0
- package/concorde-shader.bundle.js +116 -0
- package/concorde-shader.es.js +8353 -0
- package/concorde-webgpu.bundle.js +307 -0
- package/concorde-webgpu.es.js +8627 -0
- package/custom-elements-manifest.config.mjs +14 -0
- package/dist/concorde-core.bundle.js +196 -196
- package/dist/concorde-core.es.js +3685 -3405
- package/docs/assets/{index-wVZpLVYW.js → index-D8MVWqY6.js} +1351 -1222
- package/docs/assets/index-DiD0qYvE.css +1 -0
- package/docs/crawl/core/components/ui/alert/alert.html +71 -172
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +5 -113
- package/docs/crawl/core/components/ui/badge/badge.html +79 -157
- package/docs/crawl/core/components/ui/button/button.html +0 -1
- package/docs/crawl/core/components/ui/captcha/captcha.html +8 -90
- package/docs/crawl/core/components/ui/card/card.html +68 -222
- package/docs/crawl/core/components/ui/divider/divider.html +31 -117
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +101 -232
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +52 -95
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +38 -97
- package/docs/crawl/core/components/ui/form/input/input.html +3 -3
- package/docs/crawl/core/components/ui/form/textarea/textarea.html +3 -3
- package/docs/crawl/core/components/ui/group/group.html +38 -60
- package/docs/crawl/core/components/ui/icon/icon.html +47 -136
- package/docs/crawl/core/components/ui/image/image.html +56 -244
- package/docs/crawl/core/components/ui/link/link.html +9 -67
- package/docs/crawl/core/components/ui/loader/loader.html +23 -97
- package/docs/crawl/core/components/ui/menu/menu.html +90 -162
- package/docs/crawl/core/components/ui/modal/modal.html +50 -275
- package/docs/crawl/core/components/ui/pop/pop.html +66 -260
- package/docs/crawl/core/components/ui/progress/progress.html +30 -103
- package/docs/crawl/core/components/ui/table/table.html +171 -303
- package/docs/crawl/core/components/ui/toast/toast.html +59 -170
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +29 -90
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +2 -3
- package/docs/crawl/docs/_getting-started/concorde-outside.html +3 -3
- package/docs/crawl/docs/_getting-started/start.html +1 -1
- package/docs/crawl/docs/_getting-started/theming.html +63 -311
- package/docs/crawl/hubs/form-components.html +53 -75
- package/docs/crawl/index.html +6 -7
- package/docs/docs-mock-api-sw.js +0 -2
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +7 -9
- package/docs/llms-full.txt +456 -1703
- package/docs/llms.txt +32 -25
- package/docs/sitemap.xml +0 -3
- package/docs/src/core/components/functional/fetch/fetch.md +0 -0
- package/docs/src/core/components/functional/if/if.md +0 -0
- package/docs/src/core/components/functional/list/list.md +0 -0
- package/docs/src/core/components/functional/router/router.md +0 -0
- package/docs/src/core/components/functional/sdui/sdui.md +0 -0
- package/docs/src/core/components/functional/states/states.md +0 -0
- package/docs/src/core/components/functional/submit/submit.md +0 -0
- package/docs/src/core/components/ui/alert/alert.md +72 -147
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -85
- package/docs/src/core/components/ui/badge/badge.md +80 -141
- package/docs/src/core/components/ui/button/button.md +0 -1
- package/docs/src/core/components/ui/captcha/captcha.md +6 -65
- package/docs/src/core/components/ui/card/card.md +65 -183
- package/docs/src/core/components/ui/divider/divider.md +13 -107
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +99 -175
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +52 -75
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +34 -109
- package/docs/src/core/components/ui/form/input/input.md +1 -1
- package/docs/src/core/components/ui/form/radio/radio.md +0 -0
- package/docs/src/core/components/ui/form/select/select.md +0 -0
- package/docs/src/core/components/ui/form/switch/switch.md +0 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +1 -1
- package/docs/src/core/components/ui/group/group.md +36 -36
- package/docs/src/core/components/ui/icon/icon.md +43 -132
- package/docs/src/core/components/ui/image/image.md +53 -179
- package/docs/src/core/components/ui/link/link.md +7 -45
- package/docs/src/core/components/ui/loader/loader.md +22 -79
- package/docs/src/core/components/ui/menu/menu.md +92 -133
- package/docs/src/core/components/ui/modal/modal.md +47 -163
- package/docs/src/core/components/ui/pop/pop.md +64 -262
- package/docs/src/core/components/ui/progress/progress.md +30 -76
- package/docs/src/core/components/ui/table/table.md +171 -147
- package/docs/src/core/components/ui/toast/toast.md +58 -108
- package/docs/src/core/components/ui/tooltip/tooltip.md +26 -68
- package/docs/src/docs/_core-concept/subscriber.md +0 -0
- package/docs/src/docs/_decorators/ancestor-attribute.md +2 -3
- package/docs/src/docs/_getting-started/concorde-outside.md +3 -3
- package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/docs/src/docs/_getting-started/pubsub.md +0 -0
- package/docs/src/docs/_getting-started/start.md +1 -1
- package/docs/src/docs/_getting-started/theming.md +61 -223
- package/docs/src/docs/search/docs-search.json +348 -3083
- package/docs/src/tsconfig.declarations.json +22 -0
- package/docs/src/tsconfig.emit.json +23 -0
- package/docs/src/tsconfig.json +3 -63
- package/gitlab/job_github_mirror.sh +39 -0
- package/package.json +36 -2
- package/scripts/generate-sdui-catalog.mjs +250 -0
- package/scripts/generate-sdui-catalog.spec.ts +91 -0
- package/scripts/github-export.mjs +150 -0
- package/scripts/post-build-docs.js +0 -0
- package/scripts/post-build.mjs +0 -0
- package/scripts/pre-build.mjs +15 -0
- package/src/core/components/functional/fetch/fetch.md +0 -0
- package/src/core/components/functional/if/if.md +0 -0
- package/src/core/components/functional/if/if.ts +0 -0
- package/src/core/components/functional/list/list.demo.ts +0 -0
- package/src/core/components/functional/list/list.md +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +5 -5
- package/src/core/components/functional/sdui/__fixtures__/descriptors.ts +251 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-action.spec.ts.snap +73 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-incremental.spec.ts.snap +50 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-partial.spec.ts.snap +50 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui.regression.spec.ts.snap +461 -0
- package/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
- package/src/core/components/functional/sdui/component-catalog.json +3103 -0
- package/src/core/components/functional/sdui/component-catalog.spec.ts +23 -0
- package/src/core/components/functional/sdui/sdui-action.spec.ts +99 -0
- package/src/core/components/functional/sdui/sdui-dom-snapshot.ts +61 -0
- package/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
- package/src/core/components/functional/sdui/sdui-incremental.spec.ts +137 -0
- package/src/core/components/functional/sdui/sdui-partial.spec.ts +83 -0
- package/src/core/components/functional/sdui/sdui-partial.ts +19 -0
- package/src/core/components/functional/sdui/sdui-safe.spec.ts +188 -0
- package/src/core/components/functional/sdui/sdui-safe.ts +100 -0
- package/src/core/components/functional/sdui/sdui.md +122 -0
- package/src/core/components/functional/sdui/sdui.regression.spec.ts +64 -0
- package/src/core/components/functional/sdui/sdui.ts +442 -34
- package/src/core/components/functional/sdui/types.ts +49 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/submit/submit.md +0 -0
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +0 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/switch/switch.md +0 -0
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/css.d.ts +19 -0
- package/src/docs/_core-concept/subscriber.md +0 -0
- package/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/src/docs/_getting-started/pubsub.md +0 -0
- package/src/docs/example/users.ts +0 -0
- package/src/docs/search/page.ts +0 -0
- package/src/tsconfig.declarations.json +22 -0
- package/src/tsconfig.emit.json +23 -0
- package/src/tsconfig.json +90 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/docs/assets/index-CD4WyL6o.css +0 -1
- package/docs/crawl/core/components/ui/theme/theme.html +0 -131
- package/docs/src/core/components/ui/theme/theme.md +0 -122
|
@@ -1,253 +1,91 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Adding styles
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Normal Behavior
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
No style crosses the shadow root of a component, except for inheritable properties (which have the "inherit" property possible) and CSS variables.
|
|
6
|
+
Properties integrated via a "[slot](https://developer.mozilla.org/en/docs/Web/HTML/Element/slot)" remain stylizable in a conventional way.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
- **During creation / from the inside:**
|
|
9
|
+
- We edit the [static "styles" property of the lit component](https://lit.dev/docs/components/styles/), which can also reference shared and dynamic styles.
|
|
10
|
+
These styles are scoped and do not impact the outside.
|
|
11
|
+
- We use CSS variables as the value of properties intended to be customized from the outside.
|
|
12
|
+
For each variable, we define a default value to have a simple but consistent base style.
|
|
13
|
+
- We only rewrite inheritable properties with hard values if they are truly specific to the component.
|
|
14
|
+
- The `<style>` tag as a direct child can be used as a last resort, especially if there is a need for particularly dynamic customization. Performance is reduced.
|
|
15
|
+
- **During use / from the outside:**
|
|
16
|
+
We define values for **inheritable CSS properties** (e.g., font-\_, color...) using tools like Tailwind.
|
|
17
|
+
We modify the value of **CSS variables** used by the component.
|
|
10
18
|
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<sonic-theme color font class="block bg-base min-h-screen">
|
|
14
|
-
<!-- your app -->
|
|
15
|
-
</sonic-theme>
|
|
16
|
-
</template>
|
|
17
|
-
</sonic-code>
|
|
18
|
-
|
|
19
|
-
<sonic-code language="javascript">
|
|
20
|
-
<template>
|
|
21
|
-
import "@supersoniks/concorde/theme";
|
|
22
|
-
</template>
|
|
23
|
-
</sonic-code>
|
|
24
|
-
|
|
25
|
-
| Attribute | Effect |
|
|
26
|
-
|-----------|--------|
|
|
27
|
-
| *(omit)* \| `theme="custom"` | Default: core tokens + your `--sc-*`; no built-in light/dark palette |
|
|
28
|
-
| `theme="light"` \| `"dark"` \| `"auto"` | Opt-in presets; `auto` follows `prefers-color-scheme` |
|
|
29
|
-
| `class="bg-base block"` (Tailwind) | Page/surface background (`--sc-base`) |
|
|
30
|
-
| `color` | Text color (`--sc-base-content`) |
|
|
31
|
-
| `font` | Base font family/weight (`--sc-font-family-base`, etc.) |
|
|
32
|
-
|
|
33
|
-
Popovers, modals, and toasts mount under the nearest `<sonic-theme>`.
|
|
34
|
-
|
|
35
|
-
## Customization example
|
|
36
|
-
|
|
37
|
-
Example (full brand override on `<sonic-theme>` or `:root`). Set every essential token below; derived radii and shadows still come from the theme engine—only `--sc-rounded` is listed here.
|
|
38
|
-
|
|
39
|
-
<sonic-code language="css">
|
|
40
|
-
<template>
|
|
41
|
-
sonic-theme {
|
|
42
|
-
/* Semantic fills */
|
|
43
|
-
--sc-primary: #353429;
|
|
44
|
-
--sc-secondary: #f43f5e;
|
|
45
|
-
--sc-info: #7c3aed;
|
|
46
|
-
--sc-danger: #d71839;
|
|
47
|
-
--sc-warning: #f97316;
|
|
48
|
-
--sc-success: #10b981;
|
|
49
|
-
--sc-contrast: #111;
|
|
50
|
-
|
|
51
|
-
/* Text/icons on semantic fills */
|
|
52
|
-
--sc-primary-content: #fff;
|
|
53
|
-
--sc-secondary-content: #fff;
|
|
54
|
-
--sc-info-content: #fff;
|
|
55
|
-
--sc-danger-content: #fff;
|
|
56
|
-
--sc-warning-content: #fff;
|
|
57
|
-
--sc-success-content: #fff;
|
|
58
|
-
--sc-contrast-content: #fff;
|
|
59
|
-
|
|
60
|
-
/* Neutral fills */
|
|
61
|
-
--sc-base: #fff;
|
|
62
|
-
--sc-base-50: #f6f6f5;
|
|
63
|
-
--sc-base-100: #ededec;
|
|
64
|
-
--sc-base-200: #d7d7d4;
|
|
65
|
-
--sc-base-300: #c8c7c4;
|
|
66
|
-
--sc-base-400: #a8a7a2;
|
|
67
|
-
--sc-base-500: #94938c;
|
|
68
|
-
--sc-base-600: #76756c;
|
|
69
|
-
--sc-base-700: #59584e;
|
|
70
|
-
--sc-base-800: #47463b;
|
|
71
|
-
--sc-base-900: #353429;
|
|
72
|
-
|
|
73
|
-
/* Text/icons on neutral surfaces */
|
|
74
|
-
--sc-base-content: var(--sc-base-900);
|
|
75
|
-
|
|
76
|
-
/* Typography */
|
|
77
|
-
--sc-font-family-base: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto,
|
|
78
|
-
"Helvetica Neue", Arial, sans-serif;
|
|
79
|
-
--sc-headings-font-family: "alternate-gothic-compressed", system-ui, sans-serif;
|
|
80
|
-
--sc-headings-line-height: 1.1;
|
|
81
|
-
--sc-headings-font-weight: bold;
|
|
82
|
-
--sc-headings-text-transform: none;
|
|
83
|
-
|
|
84
|
-
/* Shape (primitive only) */
|
|
85
|
-
--sc-rounded: 0;
|
|
86
|
-
|
|
87
|
-
/* Forms */
|
|
88
|
-
--sc-border-width: 0.2rem;
|
|
89
|
-
--sc-form-height: 2em;
|
|
90
|
-
--sc-input-bg: var(--sc-base);
|
|
91
|
-
--sc-input-color: var(--sc-base-content);
|
|
92
|
-
--sc-input-border-color: var(--sc-input-color);
|
|
93
|
-
--sc-input-active-bg: var(--sc-primary);
|
|
94
|
-
--sc-input-active-color: var(--sc-primary-content);
|
|
95
|
-
--sc-input-active-border-color: var(--sc-primary);
|
|
96
|
-
}
|
|
97
|
-
</template>
|
|
98
|
-
</sonic-code>
|
|
99
|
-
|
|
100
|
-
<sonic-button href="https://delanfranchi.github.io/concordecolors/"> Palette generator: concordecolors</sonic-button>
|
|
19
|
+
## Choosing Style Presets via Reactive Properties:
|
|
101
20
|
|
|
21
|
+
The declaration of reactive properties is useful for selecting a particular configuration that mostly affects a set of properties.
|
|
102
22
|
|
|
103
|
-
|
|
23
|
+
For example, a `size` property (xs, sm, md, xl) will affect margins, font, line heights to align them with the corresponding CSS vars, which can be customized using the methods mentioned earlier if necessary.
|
|
104
24
|
|
|
105
|
-
|
|
25
|
+
It is recommended to use the `{reflect: true}` property for reactive properties that have an associated style on the `:host()`. For example: `:host([type='primary']){...}`
|
|
106
26
|
|
|
27
|
+
☢️ **Caution:** Passing class names via reactive properties / HTML attributes of the component should be avoided as it can quickly lead to difficult-to-manage situations.
|
|
107
28
|
|
|
108
|
-
|
|
29
|
+
#### CSS "display" Property
|
|
109
30
|
|
|
110
|
-
|
|
31
|
+
By default, the display property is `inline`.
|
|
32
|
+
Therefore, be careful to define it according to the needs, as one might mistakenly expect it to be `block` as with a regular `<div>`.
|
|
111
33
|
|
|
112
|
-
|
|
34
|
+
☢️ **Caution:** Defining the `display` property as `contents` may seem attractive at first, but:
|
|
113
35
|
|
|
114
|
-
|
|
115
|
-
|
|
36
|
+
- It almost always leads to the creation of wrappers to style the content (instead of using `:host`).
|
|
37
|
+
- It is no longer possible to directly add classes to the component or style it from the outside.
|
|
38
|
+
Ultimately, the amount of code to write increases significantly.
|
|
116
39
|
|
|
117
|
-
|
|
40
|
+
## TAILWIND Functional Classes
|
|
118
41
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
| `--sc-base` | Main surface / page background |
|
|
122
|
-
| `--sc-base-50` … `--sc-base-900` | Neutral scale (borders, subtle backgrounds, muted UI) |
|
|
42
|
+
[tailwind](https://tailwindcss.com/) has been integrated into Concorde and is available in scoped components (with Shadow DOM).
|
|
43
|
+
To use it, you need to import the following:
|
|
123
44
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
#### Semantic fills
|
|
45
|
+
<sonic-code language="javascript">
|
|
46
|
+
<template>
|
|
47
|
+
import { tailwind } from "@supersoniks/concorde/la-billetterie/ui/theme/theme";
|
|
48
|
+
</template>
|
|
49
|
+
</sonic-code>
|
|
131
50
|
|
|
132
|
-
|
|
133
|
-
|----------|------|
|
|
134
|
-
| `--sc-primary` | Primary actions, links, emphasis |
|
|
135
|
-
| `--sc-secondary` | Secondary brand accent (when used) |
|
|
136
|
-
| `--sc-info`, `--sc-success`, `--sc-warning`, `--sc-danger` | Status and feedback |
|
|
137
|
-
| `--sc-contrast` | High-contrast fills (e.g. on media) |
|
|
51
|
+
Then include the `tailwind` style in the static `styles` property of the component:
|
|
138
52
|
|
|
139
|
-
|
|
53
|
+
<sonic-code language="javascript">
|
|
54
|
+
<template>
|
|
55
|
+
static styles = [tailwind];
|
|
56
|
+
</template>
|
|
57
|
+
</sonic-code>
|
|
140
58
|
|
|
141
|
-
|
|
142
|
-
|----------|------|
|
|
143
|
-
| `--sc-primary-content`, `--sc-secondary-content`, … | Text/icons on the matching semantic **fill** (`--sc-primary`, etc.) |
|
|
59
|
+
Finally, use it in the HTML within the render function:
|
|
144
60
|
|
|
145
|
-
|
|
61
|
+
<sonic-code language="html">
|
|
62
|
+
<template>
|
|
63
|
+
<p class="m-2">A paragraph with margin</p>
|
|
64
|
+
</template>
|
|
65
|
+
</sonic-code>
|
|
146
66
|
|
|
147
|
-
|
|
148
|
-
|----------|------|
|
|
149
|
-
| `--sc-rounded` | **Single primitive** corner radius; the theme computes `--sc-rounded-sm`, `--sc-btn-rounded`, `--sc-input-rounded`, etc. |
|
|
67
|
+
The colors from Concorde's theme are referenced in Tailwind's theme.
|
|
150
68
|
|
|
151
|
-
|
|
69
|
+
## Operation without Shadow DOM
|
|
152
70
|
|
|
153
|
-
|
|
154
|
-
|----------|------|
|
|
155
|
-
| `--sc-font-family-base` | Body UI text |
|
|
156
|
-
| `--sc-font-weight-base`, `--sc-font-style-base` | Optional |
|
|
157
|
-
| `--sc-headings-font-family`, `--sc-headings-line-height`, `--sc-headings-font-weight`, `--sc-headings-text-transform` | Headings (modal titles, etc.) |
|
|
71
|
+
### Usefulness
|
|
158
72
|
|
|
159
|
-
|
|
73
|
+
This operation is particularly useful when it comes to **adding behavior to a simple existing element**.
|
|
74
|
+
It may also become necessary to establish **compatibility with a traditional JS library**.
|
|
160
75
|
|
|
161
|
-
|
|
76
|
+
For example, with a text input:
|
|
162
77
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
| `--sc-form-height` | Control height |
|
|
167
|
-
| `--sc-input-bg`, `--sc-input-color`, `--sc-input-border-color` | Default field chrome |
|
|
168
|
-
| `--sc-input-active-bg`, `--sc-input-active-color`, `--sc-input-active-border-color` | Focus/active state |
|
|
78
|
+
- Trigger automatic data or filter update when typing text.
|
|
79
|
+
- Automatic formatting.
|
|
80
|
+
- Constraints that cannot be handled by native methods.
|
|
169
81
|
|
|
170
|
-
|
|
82
|
+
### Consequences
|
|
171
83
|
|
|
172
|
-
|
|
84
|
+
If there is no shadow DOM (see the **noShadowDom** property of **Subscriber**):
|
|
173
85
|
|
|
174
|
-
|
|
86
|
+
- Styling using the static "styles" property of the lit component will not be applied.
|
|
87
|
+
- The element and its content can be styled in a traditional manner.
|
|
175
88
|
|
|
176
|
-
|
|
177
|
-
<template>
|
|
178
|
-
...
|
|
179
|
-
theme: {
|
|
180
|
-
borderRadius: {
|
|
181
|
-
DEFAULT: "var(--sc-rounded)",
|
|
182
|
-
none: "0",
|
|
183
|
-
sm: "var(--sc-rounded-sm)",
|
|
184
|
-
md: "var(--sc-rounded-md)",
|
|
185
|
-
lg: "var(--sc-rounded-lg)",
|
|
186
|
-
xl: "var(--sc-rounded-xl)",
|
|
187
|
-
full: "9999px",
|
|
188
|
-
},
|
|
189
|
-
boxShadow: {
|
|
190
|
-
DEFAULT: "var(--sc-shadow)",
|
|
191
|
-
none: "none",
|
|
192
|
-
sm: "var(--sc-shadow-sm)",
|
|
193
|
-
md: "var(--sc-shadow-md)",
|
|
194
|
-
lg: "var(--sc-shadow-lg)",
|
|
195
|
-
xl: "var(--sc-shadow-xl)",
|
|
196
|
-
},
|
|
197
|
-
colors: {
|
|
198
|
-
transparent: "transparent",
|
|
199
|
-
current: "currentColor",
|
|
200
|
-
content: "var(--sc-base-content)",
|
|
201
|
-
base: "var(--sc-base)",
|
|
202
|
-
neutral: {
|
|
203
|
-
0: "var(--sc-base)",
|
|
204
|
-
50: "var(--sc-base-50)",
|
|
205
|
-
100: "var(--sc-base-100)",
|
|
206
|
-
200: "var(--sc-base-200)",
|
|
207
|
-
300: "var(--sc-base-300)",
|
|
208
|
-
400: "var(--sc-base-400)",
|
|
209
|
-
500: "var(--sc-base-500)",
|
|
210
|
-
600: "var(--sc-base-600)",
|
|
211
|
-
700: "var(--sc-base-700)",
|
|
212
|
-
800: "var(--sc-base-800)",
|
|
213
|
-
900: "var(--sc-base-900)",
|
|
214
|
-
content: "var(--sc-base)",
|
|
215
|
-
},
|
|
216
|
-
primary: {
|
|
217
|
-
DEFAULT: "var(--sc-primary)",
|
|
218
|
-
content: "var(--sc-primary-content)",
|
|
219
|
-
},
|
|
220
|
-
success: {
|
|
221
|
-
DEFAULT: "var(--sc-success)",
|
|
222
|
-
content: "var(--sc-success-content)",
|
|
223
|
-
},
|
|
224
|
-
danger: {
|
|
225
|
-
DEFAULT: "var(--sc-danger)",
|
|
226
|
-
content: "var(--sc-danger-content)",
|
|
227
|
-
},
|
|
228
|
-
warning: {
|
|
229
|
-
DEFAULT: "var(--sc-warning)",
|
|
230
|
-
content: "var(--sc-warning-content)",
|
|
231
|
-
},
|
|
232
|
-
info: {
|
|
233
|
-
DEFAULT: "var(--sc-info)",
|
|
234
|
-
content: "var(--sc-info-content)",
|
|
235
|
-
},
|
|
236
|
-
contrast: {
|
|
237
|
-
DEFAULT: "var(--sc-contrast)",
|
|
238
|
-
content: "var(--sc-contrast-content)",
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
extend: {
|
|
242
|
-
borderWidth: {
|
|
243
|
-
DEFAULT: "var(--sc-border-width)",
|
|
244
|
-
},
|
|
245
|
-
fontFamily: {
|
|
246
|
-
headings: ["var(--sc-headings-font-family, var(--sc-font-family-base, sans-serif))"],
|
|
247
|
-
body: ["var(--sc-font-family-base)"],
|
|
248
|
-
monospace: ["var(--sc-font-family-monospace, monospace)"],
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
</template>
|
|
252
|
-
</sonic-code>
|
|
89
|
+
For example, the components `queue`, `list`, and `fetch` do not have a shadow DOM.
|
|
253
90
|
|
|
91
|
+
ℹ️ **Note:** Specifically in this case, it may be useful to set the `display` property to `contents`.
|