Skip to content

feat(api): named BeckStyles shortcuts and record render options#11

Merged
phil-scott-78 merged 1 commit into
mainfrom
feat/style-shortcuts-record-options
Jul 10, 2026
Merged

feat(api): named BeckStyles shortcuts and record render options#11
phil-scott-78 merged 1 commit into
mainfrom
feat/style-shortcuts-record-options

Conversation

@phil-scott-78

Copy link
Copy Markdown
Contributor

Summary

  • Add a static property per built-in style on BeckStyles (BeckStyles.Glow, BeckStyles.Sketch, …) as a typed, rename-safe alternative to BeckStyles.ByName["glow"]; All now composes from those same properties.
  • Make SvgRenderOptions a sealed record so hosts can derive per-call options from a base configuration with a with expression (all properties were already init-only).
  • Update the root and package READMEs to show the new shortcut form.

Test plan

  • dotnet test tests/Beck.Tests/Beck.Tests.csproj — 421 passed, 0 failed.

- Add a static property per built-in style on `BeckStyles` so C# callers
  can write `BeckStyles.Glow` instead of `BeckStyles.ByName["glow"]`.
- Make `SvgRenderOptions` a `sealed record` so hosts can derive from a
  base configuration with a `with` expression (properties are init-only).
- Update both READMEs to the new shortcut form.
@phil-scott-78
phil-scott-78 merged commit d6e187a into main Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant