@arclux/arc-ui-html
v4.7.1
Published
ARC UI — Standalone CSS for vanilla projects. Auto-generated by @arclux/prism.
Downloads
829
Maintainers
Readme
@arclux/arc-ui-html
Standalone CSS and copy-paste HTML examples for using ARC UI components without JavaScript.
Auto-generated — this package is produced by Prism from the canonical source in
@arclux/arc-ui. Do not edit by hand.
Installation
npm install @arclux/arc-ui-htmlOr skip the install entirely and copy what you need — everything in this package is plain CSS and HTML.
Usage
Include the bundled CSS (contains all components and design tokens):
<link rel="stylesheet" href="node_modules/@arclux/arc-ui-html/css/arc-ui.css" />Or import individual component CSS files. These reference the design-token custom properties, so the tokens must already be defined on the page (via arc-ui.css or your own definitions):
<link rel="stylesheet" href="node_modules/@arclux/arc-ui-html/css/button.css" />
<link rel="stylesheet" href="node_modules/@arclux/arc-ui-html/css/card.css" />For fully self-contained snippets with styles baked in, use the .inline.html examples described below.
Examples
The examples/ directory has a ready-to-paste HTML snippet per component, in two flavors:
button.html— class-based markup, pairs with the component's CSS filebutton.inline.html— the same markup with inline styles + a small<style>block, for contexts where you can't load a stylesheet (emails, embeds, CMS islands)
Components whose behavior fundamentally requires JavaScript (overlays, command palette, interactive inputs, …) are not included here — use @arclux/arc-ui or a framework wrapper for those.
HTML Markup
Components use the .arc-* class prefix. Variants are set via data attributes:
<span class="arc-button" data-variant="primary" data-size="lg">
<button class="btn">Get Started</button>
</span>Theming
Dark mode is the default. Switch with data-theme on the root element:
<html data-theme="light">
<html data-theme="auto">All styling flows from CSS custom properties; overriding the base accent tokens re-themes every component — see the theming guide:
:root {
--accent-primary: rgb(77, 126, 247);
--accent-primary-rgb: 77, 126, 247;
}