wc-mixin/examples
Buddy 76d78e1925 Accept a CSSStyleSheet as css; move example CSS and templates into files
css is now string | CSSStyleSheet. A sheet is adopted as-is: into its own
shadow root, an enclosing shadow root, or document.adoptedStyleSheets for
light DOM at the document level. Strings behave as before.

The examples import their styles with `with { type: 'css' }` and their
static templates with `with { type: 'text' }`. Safari doesn't support those
yet, so vite.config.ts rewrites them into modules Vite builds: a constructed
CSSStyleSheet, or the file's text. npm run examples now just runs vite,
with root set in the config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 11:44:27 -08:00
..
color-swatch-picker.css Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
color-swatch-picker.ts Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
dispatch.ts Add examples page with a context manager 2026-11-10 09:59:09 -08:00
hero-banner.css Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
hero-banner.ts Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
index.html Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
labeled-field.css Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
labeled-field.html Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
labeled-field.ts Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
main-context.css Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
main-context.ts Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
main.ts Add examples page with a context manager 2026-11-10 09:59:09 -08:00
modules.d.ts Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
secret-note.css Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
secret-note.html Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
secret-note.ts Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
star-rating.css Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
star-rating.html Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
star-rating.ts Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
style.css Add examples page with a context manager 2026-11-10 09:59:09 -08:00
themes.ts Add examples page with a context manager 2026-11-10 09:59:09 -08:00