Skip to content

declare and layout based on element style - #38

Open
cowboyd wants to merge 1 commit into
mainfrom
dom-style
Open

cowboyd wants to merge 1 commit into
mainfrom
dom-style

Conversation

@cowboyd

@cowboyd cowboyd commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

This adds a style system that hews as closely to CSS as possible. It is not, and cannot be, CSS compliant, but where CSS styles provide an answer, it uses it. It's fair to describe it as a subset of CSS.

This CSS based system is completely decoupled from TTY styling and so every property is explicitly mapped over. Included in this PR are styles for display, flex direction, spacing, borders, and CSS colors.

image

Currently there are only default styles and inline styles of an element, but we can later add style rules that match.

image

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • All tests pass (pnpm test)
  • Files are formatted (pnpm format)
  • I have added/updated tests for my changes (if applicable)
  • I have added a changeset

AI-generated code disclosure

  • This PR includes AI-generated code

I used AI to generate test cases, and occasionally suggest code snippets.

@cowboyd
cowboyd added this pull request to stack #39 October 16, 2026 20:44
@socket-security

socket-security Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedhueful@​0.8.17710010091100
Added@​standard-schema/​spec@​1.1.010010010082100

View full report

@cowboyd cowboyd mentioned this pull request Oct 16, 2026
4 of 12 tasks
@cowboyd
cowboyd force-pushed the dom-style branch 2 times, most recently from e7746ec to f9a19d4 Compare October 17, 2026 04:50
@cowboyd
cowboyd force-pushed the dom branch 2 times, most recently from 0bb0996 to ec40edd Compare October 17, 2026 05:00
@cowboyd
cowboyd force-pushed the dom-style branch 6 times, most recently from 4be9ca5 to cad609c Compare October 19, 2026 14:43
@pkg-pr-new

pkg-pr-new Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

commit: ae299a1

@cowboyd
cowboyd force-pushed the dom-style branch 2 times, most recently from 9fb0e99 to 02de507 Compare October 19, 2026 19:31
Base automatically changed from dom to main October 19, 2026 20:58
@cowboyd
cowboyd removed this pull request from stack #39 October 27, 2026 19:30
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