Skip to content

feat: add layered style export#3563

Merged
harbournick merged 1 commit into
mainfrom
artem/layer-css-v2
May 29, 2026
Merged

feat: add layered style export#3563
harbournick merged 1 commit into
mainfrom
artem/layer-css-v2

Conversation

@artem-harbour
Copy link
Copy Markdown
Contributor

@artem-harbour artem-harbour commented May 29, 2026

Linear: SD-2559

Adds optional layered CSS support via superdoc/style.layered.css while keeping superdoc/style.css unchanged.

This PR introduces a build-time Vite plugin that emits dist/style.layered.css from the final bundled style.css by wrapping it in @layer superdoc, exposes the new entry in package exports, and updates theming/docs guidance for layered cascade usage.

@artem-harbour artem-harbour self-assigned this May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📖 Docs preview: https://superdoc-artem-layer-css-v2.mintlify.app

@github-actions
Copy link
Copy Markdown
Contributor

Agent docs audit

Found deterministic findings on 1 changed agent-doc item(s).

packages/superdoc/AGENTS.md (296 lines)

  • over nested-warn (296 > 200)
  • 3 broken path ref(s)

Broken path refs:

  • superdoc/style.css
  • superdoc/style.layered.css
  • superdoc/ui/react

Deterministic L1 only: no AI, no Bash, no secrets. Semantic L2/L3 audit runs weekly on main. Policy: agent-docs-policy.md.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 29, 2026

SD-2559

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 9 files

Tip: cubic could auto-approve low-risk PRs like this, if it thinks it's safe to merge. Learn more

Re-trigger cubic

Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harbournick harbournick merged commit 63c71be into main May 29, 2026
74 checks passed
@harbournick harbournick deleted the artem/layer-css-v2 branch May 29, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants