@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.
Files changed (168) hide show
  1. package/.github/workflows/ci.yml +21 -0
  2. package/.github-export-ignore +30 -0
  3. package/.tmp-cem/custom-elements.json +13705 -0
  4. package/CONTRIBUTING.md +59 -0
  5. package/DEV.md +54 -0
  6. package/LICENSE +21 -0
  7. package/OPEN_SOURCE_CHECKPOINT.md +133 -0
  8. package/build-infos.json +1 -1
  9. package/concorde-3d.bundle.js +3960 -0
  10. package/concorde-3d.es.js +33433 -0
  11. package/concorde-core.bundle.js +196 -196
  12. package/concorde-core.es.js +3685 -3405
  13. package/concorde-hugging-face-infer.bundle.js +32 -0
  14. package/concorde-hugging-face-infer.es.js +2952 -0
  15. package/concorde-interactive.bundle.js +1157 -0
  16. package/concorde-interactive.es.js +10734 -0
  17. package/concorde-shader.bundle.js +116 -0
  18. package/concorde-shader.es.js +8353 -0
  19. package/concorde-webgpu.bundle.js +307 -0
  20. package/concorde-webgpu.es.js +8627 -0
  21. package/custom-elements-manifest.config.mjs +14 -0
  22. package/dist/concorde-core.bundle.js +196 -196
  23. package/dist/concorde-core.es.js +3685 -3405
  24. package/docs/assets/{index-wVZpLVYW.js → index-D8MVWqY6.js} +1351 -1222
  25. package/docs/assets/index-DiD0qYvE.css +1 -0
  26. package/docs/crawl/core/components/ui/alert/alert.html +71 -172
  27. package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +5 -113
  28. package/docs/crawl/core/components/ui/badge/badge.html +79 -157
  29. package/docs/crawl/core/components/ui/button/button.html +0 -1
  30. package/docs/crawl/core/components/ui/captcha/captcha.html +8 -90
  31. package/docs/crawl/core/components/ui/card/card.html +68 -222
  32. package/docs/crawl/core/components/ui/divider/divider.html +31 -117
  33. package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +101 -232
  34. package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +52 -95
  35. package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +38 -97
  36. package/docs/crawl/core/components/ui/form/input/input.html +3 -3
  37. package/docs/crawl/core/components/ui/form/textarea/textarea.html +3 -3
  38. package/docs/crawl/core/components/ui/group/group.html +38 -60
  39. package/docs/crawl/core/components/ui/icon/icon.html +47 -136
  40. package/docs/crawl/core/components/ui/image/image.html +56 -244
  41. package/docs/crawl/core/components/ui/link/link.html +9 -67
  42. package/docs/crawl/core/components/ui/loader/loader.html +23 -97
  43. package/docs/crawl/core/components/ui/menu/menu.html +90 -162
  44. package/docs/crawl/core/components/ui/modal/modal.html +50 -275
  45. package/docs/crawl/core/components/ui/pop/pop.html +66 -260
  46. package/docs/crawl/core/components/ui/progress/progress.html +30 -103
  47. package/docs/crawl/core/components/ui/table/table.html +171 -303
  48. package/docs/crawl/core/components/ui/toast/toast.html +59 -170
  49. package/docs/crawl/core/components/ui/tooltip/tooltip.html +29 -90
  50. package/docs/crawl/docs/_decorators/ancestor-attribute.html +2 -3
  51. package/docs/crawl/docs/_getting-started/concorde-outside.html +3 -3
  52. package/docs/crawl/docs/_getting-started/start.html +1 -1
  53. package/docs/crawl/docs/_getting-started/theming.html +63 -311
  54. package/docs/crawl/hubs/form-components.html +53 -75
  55. package/docs/crawl/index.html +6 -7
  56. package/docs/docs-mock-api-sw.js +0 -2
  57. package/docs/docs-mock-api-sw.js.map +2 -2
  58. package/docs/index.html +7 -9
  59. package/docs/llms-full.txt +456 -1703
  60. package/docs/llms.txt +32 -25
  61. package/docs/sitemap.xml +0 -3
  62. package/docs/src/core/components/functional/fetch/fetch.md +0 -0
  63. package/docs/src/core/components/functional/if/if.md +0 -0
  64. package/docs/src/core/components/functional/list/list.md +0 -0
  65. package/docs/src/core/components/functional/router/router.md +0 -0
  66. package/docs/src/core/components/functional/sdui/sdui.md +0 -0
  67. package/docs/src/core/components/functional/states/states.md +0 -0
  68. package/docs/src/core/components/functional/submit/submit.md +0 -0
  69. package/docs/src/core/components/ui/alert/alert.md +72 -147
  70. package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -85
  71. package/docs/src/core/components/ui/badge/badge.md +80 -141
  72. package/docs/src/core/components/ui/button/button.md +0 -1
  73. package/docs/src/core/components/ui/captcha/captcha.md +6 -65
  74. package/docs/src/core/components/ui/card/card.md +65 -183
  75. package/docs/src/core/components/ui/divider/divider.md +13 -107
  76. package/docs/src/core/components/ui/form/fieldset/fieldset.md +99 -175
  77. package/docs/src/core/components/ui/form/form-actions/form-actions.md +52 -75
  78. package/docs/src/core/components/ui/form/form-layout/form-layout.md +34 -109
  79. package/docs/src/core/components/ui/form/input/input.md +1 -1
  80. package/docs/src/core/components/ui/form/radio/radio.md +0 -0
  81. package/docs/src/core/components/ui/form/select/select.md +0 -0
  82. package/docs/src/core/components/ui/form/switch/switch.md +0 -0
  83. package/docs/src/core/components/ui/form/textarea/textarea.md +1 -1
  84. package/docs/src/core/components/ui/group/group.md +36 -36
  85. package/docs/src/core/components/ui/icon/icon.md +43 -132
  86. package/docs/src/core/components/ui/image/image.md +53 -179
  87. package/docs/src/core/components/ui/link/link.md +7 -45
  88. package/docs/src/core/components/ui/loader/loader.md +22 -79
  89. package/docs/src/core/components/ui/menu/menu.md +92 -133
  90. package/docs/src/core/components/ui/modal/modal.md +47 -163
  91. package/docs/src/core/components/ui/pop/pop.md +64 -262
  92. package/docs/src/core/components/ui/progress/progress.md +30 -76
  93. package/docs/src/core/components/ui/table/table.md +171 -147
  94. package/docs/src/core/components/ui/toast/toast.md +58 -108
  95. package/docs/src/core/components/ui/tooltip/tooltip.md +26 -68
  96. package/docs/src/docs/_core-concept/subscriber.md +0 -0
  97. package/docs/src/docs/_decorators/ancestor-attribute.md +2 -3
  98. package/docs/src/docs/_getting-started/concorde-outside.md +3 -3
  99. package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -0
  100. package/docs/src/docs/_getting-started/pubsub.md +0 -0
  101. package/docs/src/docs/_getting-started/start.md +1 -1
  102. package/docs/src/docs/_getting-started/theming.md +61 -223
  103. package/docs/src/docs/search/docs-search.json +348 -3083
  104. package/docs/src/tsconfig.declarations.json +22 -0
  105. package/docs/src/tsconfig.emit.json +23 -0
  106. package/docs/src/tsconfig.json +3 -63
  107. package/gitlab/job_github_mirror.sh +39 -0
  108. package/package.json +36 -2
  109. package/scripts/generate-sdui-catalog.mjs +250 -0
  110. package/scripts/generate-sdui-catalog.spec.ts +91 -0
  111. package/scripts/github-export.mjs +150 -0
  112. package/scripts/post-build-docs.js +0 -0
  113. package/scripts/post-build.mjs +0 -0
  114. package/scripts/pre-build.mjs +15 -0
  115. package/src/core/components/functional/fetch/fetch.md +0 -0
  116. package/src/core/components/functional/if/if.md +0 -0
  117. package/src/core/components/functional/if/if.ts +0 -0
  118. package/src/core/components/functional/list/list.demo.ts +0 -0
  119. package/src/core/components/functional/list/list.md +0 -0
  120. package/src/core/components/functional/router/router.md +0 -0
  121. package/src/core/components/functional/router/router.ts +0 -0
  122. package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +5 -5
  123. package/src/core/components/functional/sdui/__fixtures__/descriptors.ts +251 -0
  124. package/src/core/components/functional/sdui/__snapshots__/sdui-action.spec.ts.snap +73 -0
  125. package/src/core/components/functional/sdui/__snapshots__/sdui-incremental.spec.ts.snap +50 -0
  126. package/src/core/components/functional/sdui/__snapshots__/sdui-partial.spec.ts.snap +50 -0
  127. package/src/core/components/functional/sdui/__snapshots__/sdui.regression.spec.ts.snap +461 -0
  128. package/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
  129. package/src/core/components/functional/sdui/component-catalog.json +3103 -0
  130. package/src/core/components/functional/sdui/component-catalog.spec.ts +23 -0
  131. package/src/core/components/functional/sdui/sdui-action.spec.ts +99 -0
  132. package/src/core/components/functional/sdui/sdui-dom-snapshot.ts +61 -0
  133. package/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
  134. package/src/core/components/functional/sdui/sdui-incremental.spec.ts +137 -0
  135. package/src/core/components/functional/sdui/sdui-partial.spec.ts +83 -0
  136. package/src/core/components/functional/sdui/sdui-partial.ts +19 -0
  137. package/src/core/components/functional/sdui/sdui-safe.spec.ts +188 -0
  138. package/src/core/components/functional/sdui/sdui-safe.ts +100 -0
  139. package/src/core/components/functional/sdui/sdui.md +122 -0
  140. package/src/core/components/functional/sdui/sdui.regression.spec.ts +64 -0
  141. package/src/core/components/functional/sdui/sdui.ts +442 -34
  142. package/src/core/components/functional/sdui/types.ts +49 -0
  143. package/src/core/components/functional/states/states.md +0 -0
  144. package/src/core/components/functional/submit/submit.md +0 -0
  145. package/src/core/components/functional/subscriber/subscriber.ts +0 -0
  146. package/src/core/components/functional/value/value.ts +0 -0
  147. package/src/core/components/ui/_css/size.ts +0 -0
  148. package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
  149. package/src/core/components/ui/form/radio/radio.md +0 -0
  150. package/src/core/components/ui/form/select/select.md +0 -0
  151. package/src/core/components/ui/form/switch/switch.md +0 -0
  152. package/src/core/mixins/Subscriber.ts +0 -0
  153. package/src/core/utils/DataBindObserver.ts +0 -0
  154. package/src/core/utils/Objects.ts +0 -0
  155. package/src/core/utils/route.ts +0 -0
  156. package/src/css.d.ts +19 -0
  157. package/src/docs/_core-concept/subscriber.md +0 -0
  158. package/src/docs/_getting-started/my-first-subscriber.md +0 -0
  159. package/src/docs/_getting-started/pubsub.md +0 -0
  160. package/src/docs/example/users.ts +0 -0
  161. package/src/docs/search/page.ts +0 -0
  162. package/src/tsconfig.declarations.json +22 -0
  163. package/src/tsconfig.emit.json +23 -0
  164. package/src/tsconfig.json +90 -0
  165. package/src/tsconfig.tsbuildinfo +1 -1
  166. package/docs/assets/index-CD4WyL6o.css +0 -1
  167. package/docs/crawl/core/components/ui/theme/theme.html +0 -131
  168. package/docs/src/core/components/ui/theme/theme.md +0 -122
@@ -1,253 +1,91 @@
1
- # Customization
1
+ # Adding styles
2
2
 
3
- ## Theme-first customization
3
+ ## Normal Behavior
4
4
 
5
- Concorde components ship with **default styles** (fallback values in each component and in `<sonic-theme>`).
6
- You do not need to define any CSS variables to get a usable UI.
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
- To align the kit with your brand, override **only the essential theme tokens** on `<sonic-theme>`, on `:root`, or in a project stylesheet.
9
- Concorde derives radius steps, button/input rounding, shadows, and most per-component layout from these primitives—**do not copy long lists of derived variables** unless you have a specific need.
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
- <sonic-code language="html">
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
- **Without these overrides**, components keep Concorde’s per-component fallbacks. Built-in light/dark palettes apply only when you set `theme="light"`, `theme="dark"`, or `theme="auto"`.
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
- **What we intentionally avoid:** large public `--sc-alert-*` / `--sc-badge-*` APIs or `::part()` styling hooks on most components. Prefer attributes (`type`, `status`, `size`, …) and the theme tokens above.
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
- ## Only essential CSS variables (public theme API)
29
+ #### CSS "display" Property
109
30
 
110
- These are the **smallest set** we recommend customizing. Everything else should stay internal to the theme or to components (`--sc_*` private variables, attributes like `type`, `size`, `variant`).
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
- ### Surfaces and foreground
34
+ ☢️ **Caution:** Defining the `display` property as `contents` may seem attractive at first, but:
113
35
 
114
- Tokens **without** a `-content` suffix are **fill / background** colors.
115
- Tokens **with** `-content` are **text and icons** on top of the matching fill (solid buttons, badges, alerts, etc.).
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
- #### Neutral fills
40
+ ## TAILWIND Functional Classes
118
41
 
119
- | Variable | Role |
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
- #### Neutral foreground
125
-
126
- | Variable | Role |
127
- |----------|------|
128
- | `--sc-base-content` | Default body text and icons on neutral surfaces |
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
- | Variable | Role |
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
- #### Semantic foreground
53
+ <sonic-code language="javascript">
54
+ <template>
55
+ static styles = [tailwind];
56
+ </template>
57
+ </sonic-code>
140
58
 
141
- | Variable | Role |
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
- ### Shape
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
- | Variable | Role |
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
- ### Typography
69
+ ## Operation without Shadow DOM
152
70
 
153
- | Variable | Role |
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
- ### Forms (only if you customize inputs globally)
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
- Interactive controls expose a few extra **theme-level** tokens; prefer these over styling individual inputs from outside.
76
+ For example, with a text input:
162
77
 
163
- | Variable | Role |
164
- |----------|------|
165
- | `--sc-border-width` | Default border thickness |
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
- ## Tailwind in new components ?
84
+ If there is no shadow DOM (see the **noShadowDom** property of **Subscriber**):
173
85
 
174
- Set <code>tailwind.config.js</code> to match concorde style token in your custom component.
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
- <sonic-code language="js">
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`.