diff --git a/.claude/docs/DESIGN.md b/.claude/docs/DESIGN.md index d25fe3c97..9d403edc7 100644 --- a/.claude/docs/DESIGN.md +++ b/.claude/docs/DESIGN.md @@ -46,6 +46,7 @@ Reference: `packages/webkit/src/components/webkit/actions/button/button.vue`. | `text-label-sm` / `text-label-md` / `text-label-lg` | Labels, compact UI text | | `text-overline-md` / `text-overline-sm` / `text-overline-xs` | Overlines (uppercase, tracking baked in) | | `text-button-lg` / `text-button-md` | Button labels | +| `text-link` | Inline `` inside body/heading copy (inherits parent size; hover underline) | These classes are **mobile-first**: font sizes can change at `sm`, `md`, etc. Do not duplicate breakpoint logic in components. @@ -69,6 +70,18 @@ Font family, line height, letter spacing, and responsive font size live in `text ``` +### Inline links vs navigation `Link` + +For anchors **inside** body or heading copy, use the `text-link` typography class on a plain `` (inherits size from the parent `text-body-*` / `text-heading-*` class): + +```html +

+ Read the documentation. +

+``` + +For **standalone** navigation links (icon, ghost hover surface, fixed height), use `@aziontech/webkit/navigation/link` — not `text-link` alone. + --- ## Spacing diff --git a/.specs/_schema.json b/.specs/_schema.json index c854e0d3c..d9a1d5dfe 100644 --- a/.specs/_schema.json +++ b/.specs/_schema.json @@ -24,6 +24,7 @@ "type": "string", "enum": [ "actions", + "code", "content", "data", "feedback", diff --git a/apps/storybook/src/foundations/components/ColorPaletteSection.vue b/apps/storybook/src/foundations/components/ColorPaletteSection.vue new file mode 100644 index 000000000..ad2cf85fe --- /dev/null +++ b/apps/storybook/src/foundations/components/ColorPaletteSection.vue @@ -0,0 +1,84 @@ + + + diff --git a/apps/storybook/src/foundations/components/ColorPlayground.vue b/apps/storybook/src/foundations/components/ColorPlayground.vue index 5df3f490c..76906e060 100644 --- a/apps/storybook/src/foundations/components/ColorPlayground.vue +++ b/apps/storybook/src/foundations/components/ColorPlayground.vue @@ -1,17 +1,19 @@ diff --git a/apps/storybook/src/foundations/components/SpacingPreview.vue b/apps/storybook/src/foundations/components/SpacingPreview.vue index 82b926226..60cca1f01 100644 --- a/apps/storybook/src/foundations/components/SpacingPreview.vue +++ b/apps/storybook/src/foundations/components/SpacingPreview.vue @@ -1,20 +1,41 @@ diff --git a/apps/storybook/src/foundations/components/layout/ArchitectureDiagram.vue b/apps/storybook/src/foundations/components/layout/ArchitectureDiagram.vue index 906ecab9f..cb4212759 100644 --- a/apps/storybook/src/foundations/components/layout/ArchitectureDiagram.vue +++ b/apps/storybook/src/foundations/components/layout/ArchitectureDiagram.vue @@ -1,7 +1,6 @@