From a1e879035c321e6124465cd5072d754310db461d Mon Sep 17 00:00:00 2001 From: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com> Date: Thu, 10 Jul 2025 15:36:03 -0400 Subject: [PATCH 01/14] Fix code example styles (#1156) --- packages/webawesome/docs/_utils/code-examples.js | 4 +++- .../webawesome/docs/assets/styles/code-examples.css | 12 ++---------- .../docs/assets/styles/code-highlighter.css | 3 ++- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/packages/webawesome/docs/_utils/code-examples.js b/packages/webawesome/docs/_utils/code-examples.js index 5b7a9a8b6..84b2d28d4 100644 --- a/packages/webawesome/docs/_utils/code-examples.js +++ b/packages/webawesome/docs/_utils/code-examples.js @@ -37,7 +37,9 @@ export function codeExamplesPlugin(options = {}) { const codeExample = parse(`
To manually import this component from React, use the following code.
-import '@awesome.me/webawesome/dist/react/{{ componentName }}';
+ import {{ component.name }} from '@awesome.me/webawesome/dist/react/{{ componentName }}';
From f49c10b05bf9fb23d052efec0c9a915802fd6040 Mon Sep 17 00:00:00 2001
From: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com>
Date: Fri, 11 Jul 2025 15:03:18 -0400
Subject: [PATCH 04/14] Replace old `--wa-flow-spacing` with
`--wa-content-spacing` (#1157)
* remove old `--wa-flow-spacing`
* add changelog
---
packages/webawesome/docs/assets/styles/code-examples.css | 2 +-
packages/webawesome/docs/assets/styles/docs.css | 8 ++------
packages/webawesome/docs/docs/resources/changelog.md | 1 +
packages/webawesome/docs/docs/resources/community.md | 6 +++---
4 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/packages/webawesome/docs/assets/styles/code-examples.css b/packages/webawesome/docs/assets/styles/code-examples.css
index 11a64f692..1e213f323 100644
--- a/packages/webawesome/docs/assets/styles/code-examples.css
+++ b/packages/webawesome/docs/assets/styles/code-examples.css
@@ -3,7 +3,7 @@
border: var(--wa-border-style) var(--wa-panel-border-width) var(--wa-color-neutral-border-quiet);
border-radius: var(--wa-border-radius-l);
color: var(--wa-color-text-normal);
- margin-block-end: var(--wa-flow-spacing);
+ margin-block-end: var(--wa-content-spacing);
isolation: isolate;
}
diff --git a/packages/webawesome/docs/assets/styles/docs.css b/packages/webawesome/docs/assets/styles/docs.css
index 4daa4b299..ba413cb2c 100644
--- a/packages/webawesome/docs/assets/styles/docs.css
+++ b/packages/webawesome/docs/assets/styles/docs.css
@@ -26,10 +26,6 @@ body.theme-transitioning {
transition: opacity 200ms ease-out;
}
-wa-page {
- --wa-flow-spacing: var(--wa-space-xl);
-}
-
/* Header */
wa-page::part(header) {
background-color: var(--wa-color-surface-default);
@@ -314,7 +310,7 @@ h1.title {
gap: var(--wa-space-xs);
flex-wrap: wrap;
align-items: center;
- margin-block-end: var(--wa-flow-spacing);
+ margin-block-end: var(--wa-content-spacing);
code {
line-height: var(--wa-line-height-condensed);
@@ -357,7 +353,7 @@ h1.title {
border: var(--wa-border-style) var(--wa-border-width-s);
border-radius: var(--wa-border-radius-l);
padding: 1rem;
- margin-block-end: var(--wa-flow-spacing);
+ margin-block-end: var(--wa-content-spacing);
:first-child {
margin-block-start: 0;
diff --git a/packages/webawesome/docs/docs/resources/changelog.md b/packages/webawesome/docs/docs/resources/changelog.md
index b6b5bb5d8..f24c96517 100644
--- a/packages/webawesome/docs/docs/resources/changelog.md
+++ b/packages/webawesome/docs/docs/resources/changelog.md
@@ -92,6 +92,7 @@ Many of these changes and improvements were the direct result of feedback from u
- Added a new free component: `Fusce mollis quam lorem, et gravida arcu laoreet ut. Pellentesque et malesuada mi. Morbi faucibus nisl nec nulla porta, ac scelerisque elit finibus.
+The Road goes ever on and on+
+Out from the door where it began.
Donec varius, ipsum sit amet lobortis tristique, quam arcu pellentesque turpis, non porta lacus arcu non arcu. Morbi luctus at nisl sit amet faucibus.
+`. Paragraphs inherit the default text styles set on the `
` element and use `text-wrap: pretty` to prevent orphaned lines in supported browsers. ```html {.example}@@ -55,7 +80,7 @@ Standard paragraph text with optimal spacing and readability. ### Blockquotes -Styled quotations that stand out from regular text. +Emphasize longer quotations with `
`. Block quotes use your theme's serif font family and a leading border to stand out. ```html {.example}@@ -67,51 +92,51 @@ Styled quotations that stand out from regular text. ### Lists -Organized content in bulleted or numbered format with proper nesting support. +Create ordered and unordered lists with `` and `
`, plus `
- ` for list items within. ```html {.example} -
-
+- List item 1
-- - List item 2 -
--
-- Subitem a
-- Subitem b
-- List item 3
-+``` -### Description Lists - -Term and definition pairs for glossaries and descriptions. +Use `+
-- First item
+- + Another item +
++
+- Nested item
+- Another nested item
+- Final item
+-
+- List item 1
-- - List item 2 -
--
-- Subitem a
-- Subitem b
-- List item 3
-+
+- First item
+- + Another item +
++
+- Nested item
+- Another nested item
+- Final item
+` to create lists of terms (`
- `) and definitions (`
- `). ```html {.example}
-
``` +### Code blocks + +Create code blocks or other preformatted text with `- Definition 1
+- First term
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-- Definition 2
+- Second term
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-- Definition 3
+- Final term
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. @@ -119,13 +144,153 @@ Term and definition pairs for glossaries and descriptions.
`. Preformatted text uses your theme's monospace font family and a subtle background color. + +```html {.example} ++// do a thing +export function thing() { + return true; +} ++``` + +### Inline text + +Use any inline text element like ``, ``, ``, ``, and others to stylize or emphasize text. + +```html {.example} +++``` + +## Widgets & media + +### Media + +Add responsive media with `+ Bold + Italic + Underline ++ +Strike-through+Deleted+ Inserted + Small +`, `