diff --git a/site/content/docs/components/buttons.md b/site/content/docs/components/buttons.md new file mode 100644 index 0000000..811328b --- /dev/null +++ b/site/content/docs/components/buttons.md @@ -0,0 +1,22 @@ +--- +title: "Buttons" +description: "Button styles in ASW — primary, secondary, and danger variants." +type: docs +weight: 33 +date: 2026-04-11 +tags: ["components", "buttons", "forms"] +ai-disclosure: "generated" +ai-model: "claude-sonnet-4-6" +ai-provider: "Anthropic" +--- + +` + + + + diff --git a/site/content/docs/components/callouts.md b/site/content/docs/components/callouts.md new file mode 100644 index 0000000..de32e6e --- /dev/null +++ b/site/content/docs/components/callouts.md @@ -0,0 +1,22 @@ +--- +title: "Callouts" +description: "Attention-drawing callout blocks using the data-callout attribute." +type: docs +weight: 35 +date: 2026-04-11 +tags: ["components", "callouts", "data-attributes"] +ai-disclosure: "generated" +ai-model: "claude-sonnet-4-6" +ai-provider: "Anthropic" +--- + +Add `data-callout=""` to any block element to style it as a callout. Four types are available: `note`, `tip`, `warning`, and `error`. No extra classes needed. + +## Inline Demo + +
+
Note — General information worth highlighting.
+
Tip — A helpful suggestion or best practice.
+
Warning — Something to watch out for.
+
Error — A critical issue or destructive action.
+
diff --git a/site/content/docs/components/dialog.md b/site/content/docs/components/dialog.md new file mode 100644 index 0000000..1b2adc0 --- /dev/null +++ b/site/content/docs/components/dialog.md @@ -0,0 +1,28 @@ +--- +title: "Dialog" +description: "Native HTML dialog element styled by ASW." +type: docs +weight: 36 +date: 2026-04-11 +tags: ["components", "dialog", "modal"] +ai-disclosure: "generated" +ai-model: "claude-sonnet-4-6" +ai-provider: "Anthropic" +--- + +ASW styles the native `` element — no JavaScript modal libraries required. Call `dialog.showModal()` to open it. The `::backdrop` pseudo-element receives a semi-transparent overlay automatically. + +## Inline Demo + +
+ + +
+

Dialog title

+

This is a native <dialog> element. ASW styles the backdrop and container automatically.

+
+ +
+
+
+
diff --git a/site/content/docs/components/forms.md b/site/content/docs/components/forms.md new file mode 100644 index 0000000..2f3aac1 --- /dev/null +++ b/site/content/docs/components/forms.md @@ -0,0 +1,37 @@ +--- +title: "Forms" +description: "Form element styling in ASW — inputs, selects, textareas, and labels." +type: docs +weight: 34 +date: 2026-04-11 +tags: ["components", "forms", "inputs"] +ai-disclosure: "generated" +ai-model: "claude-sonnet-4-6" +ai-provider: "Anthropic" +--- + +All standard form elements are styled out of the box. Labels, inputs, selects, and textareas share consistent sizing and focus rings that respect the accent token. + +## Inline Demo + +
+
+ + + + +
+
diff --git a/site/content/docs/content/_index.md b/site/content/docs/content/_index.md new file mode 100644 index 0000000..595ae96 --- /dev/null +++ b/site/content/docs/content/_index.md @@ -0,0 +1,4 @@ +--- +title: "Content" +weight: 25 +--- diff --git a/site/content/docs/content/blockquotes.md b/site/content/docs/content/blockquotes.md new file mode 100644 index 0000000..d6f2fb4 --- /dev/null +++ b/site/content/docs/content/blockquotes.md @@ -0,0 +1,22 @@ +--- +title: "Blockquotes" +description: "Styled blockquotes in ASW — left-border accent, muted text, optional citation." +type: docs +weight: 26 +date: 2026-04-11 +tags: ["content", "blockquote", "typography"] +ai-disclosure: "generated" +ai-model: "claude-sonnet-4-6" +ai-provider: "Anthropic" +--- + +`
` receives a left-border in the accent colour, slight indent, and reduced opacity. A `