XSA

XSA stands for EXtended Style Attribute. It is a lightweight, low-level meta-framework that unlocks the full potential of the native HTML style attribute by orchestrating three core web standards: the style attribute, CSS attribute selectors, and CSS custom properties.

Centered around a strict custom property naming convention, XSA provides a production-ready library of CSS rules triggered by these custom properties, along with utility scripts to dynamically generate them as needed.

Advanced Styling via HTML Attributes

XSA Properties Defined in the Style Attribute
<div style="--color--: var(--red);"> … </div>

By wrapping a standard CSS property with double hyphens (--) at both the beginning and end, we convert it into an XSA Property. When declared inside an inline style attribute,

The Corresponding CSS Rule for the XSA Property
[style*="--color--:"] {
  color: var(--color--);
}

the declaration itself acts as a reactive trigger, mapping the scoped value back to the native CSS property to render the style.

These underlying CSS rules can be loaded via a pre-built CSS library or automatically generated on the fly using JavaScript or PHP compilation scripts.

Overriding and Muting an XSA Property via Global CSS
[style*="--color--:"] {
  color: var(--color--);
}
.example:where([style*="--color--:"]) {
  color: inherit;
}

Because an XSA property carries a flat specificity of exactly one attribute selector, it can be seamlessly overridden, customized, or completely muted from your global stylesheet without ever resorting to !important.

An XSA Property Preceded by an XSA Prefix
<div style="--cqi-s_c3-first_hover_color--: var(--red);"> … </div>

By pairing an XSA Prefix - which encodes complex responsive queries and descendant targets - with the native cascading inheritance of CSS custom properties,

The Corresponding Complex CSS Rule Generated Behind the Scenes
@container (inline-size > 480px) {
  [style*="--cqi-s_c3-first_hover_color--:"] > * > * > *:where(:first-child):where(:hover) {
    color: var(--cqi-s_c3-first_hover_color--);
  }
}

XSA unlocks advanced responsive container/media queries, pseudo-classes, and deep descendant component targeting directly from the HTML layer - orchestrations previously impossible with standard inline styles.

Achieving an HTML-First Architecture

By redefining the utility of the style attribute through a predictable naming convention, XSA achieves a truly "HTML-First" architecture that remains entirely decoupled from specific CMS platforms, monolithic CSS frameworks, or hardcoded design tokens.

Varying Class-Based Red Configurations Across Ecosystems
/* WordPress */
.has-red-color { color: … ; }
.has-red-background-color { background-color: … ; }

/* Bootstrap */
.text-danger { color: … ; }
.bg-danger { background-color: … ; }

/* Tailwind CSS */
.text-red-500 { color: … ; }
.bg-red-500 { background-color: … ; }

For instance, the utility class names used to define text or background colors vary wildly across different CMS environments and styling frameworks. Consequently, simply swapping out the global stylesheet breaks the user interface because the HTML markup itself must be completely rewritten. This proves traditional HTML is deeply and unsustainably dependent on its underlying CSS architecture.

Color Orchestration via Decoupled --what-- and --do Semantics
<style>
/* --do */
:root { --red: … ; --yellow: … ; --green: … ; --blue: … ; … }
[style*="var(--color-danger)"] { --color-danger: … ; }
</style>
<style>
/* --what-- */
[style*="--color--:"] { color: var(--color--); }
[style*="--background-color--:"] { background-color: var(--background-color--); }
</style>
<div style="--color--: var(--red); … "> … <div>
<div style="--background-color--: var(--color-danger); … "> … <div>

XSA beautifully resolves this by decoupling the combined utility concept of .what-do into distinct --what-- (the native property target) and --do (the presentational value intent), encapsulating this logic safely within the style attribute. By establishing this clean, standard interface, HTML is finally liberated from external styling ecosystems, ensuring total portability.

Put simply, custom properties based on native CSS property names declared in the style attribute can now be authored with the fluid flexibility of utility classes, but without ever binding your HTML to a specific CMS or framework ecosystem.

For more detailed specifications, please visit the XSA GitHub repository and explore our available packages.

To gain an objective third-party assessment of XSA and discover how it reshapes web development, try prompting Google Gemini or ChatGPT with the following inquiry:

The XSA HTML Manual

While the open-source GitHub repositories, modular packages, and AI evaluations offer a strong starting point, this premium manual dives deep into advanced architectural strategies and production-ready applications.

True to its core philosophy, this manual is delivered entirely as an interactive, living HTML file built natively with XSA. It serves as an immediate, practical demonstration of the framework's capabilities, complete with copy-pasteable HTML snippets, advanced layout blueprints, and live interactive demos.

Additionally, it includes fully optimized YAML prompts engineered to instruct LLMs to flawlessly generate XSA-compliant component nodes.

Manual Table of Contents
  1. What is XSA?
  2. The Purpose of XSA
  3. Features of XSA
  4. How to Install XSA
  5. XSA Syntax Reference
  6. XSA Demonstration
  7. AI-Driven Development

If you have an aversion to Tailwind CSS, feel fatigued by fragile JavaScript toolchains, or simply seek long-term web robustness that remains entirely pristine as long as a browser exists?XSA and this manual are the exact prescription you need.

The manual is high-density content (Approx. 200KB / 70,000 characters) and includes both English and Japanese editions. Thanks to native browser translation capabilities, it can be easily enjoyed in any language. Grab your copy today to elevate your vanilla development workflow.

Get the XSA HTML Manual