Concorde documentation (crawl) · interactive version

Concorde concept — lit + tailwind + vite. Some notes for an overview of Concorde's functioning Doc ID: docs/_core-concept/overview. Keywords: Concorde, supersoniks, docs/_core-concept/overview, overview, lit + tailwind + vite, concept, DataProvider, custom elements, reactive properties. URL: https://concorde.supersoniks.org/crawl/docs/_core-concept/overview.html.

lit + tailwind + vite

Some notes for an overview of Concorde's functioning

Standard Web components

A web component is simply a custom HTML element created using web standards:

web component = Custom Elements + shadowDom + HTML templates

Lit Library

Concorde components are written using the lightweight Lit library: https://lit.dev/.

A good portion of the elements documented on the Lit website are standard JavaScript concepts (e.g., mixins, tagged template literals).

The library simplifies the writing of web components by automating certain tasks:

Our use of Lit rarely goes beyond this hello world

Typescript Language

We write the components in TypeScript, which is then compiled into JS.

Static and inferred typing provides stronger validation of the program's functioning during compilation. However, we often use the "any" type due to time constraints.

Lit uses TypeScript to simplify development through metadata:

☢️Warning:

Compatibility with Classic JS Libraries

Compatibility issues may arise when using JS libraries, particularly regarding DOM traversal. This is because these libraries are blocked from traversing the DOM due to the presence of the shadow DOM. Here are some examples of things that may cause problems:

Topics to Explore for Further Learning

🧱 Creating components

🎨 Adding styles

🥨 Sharing data