Skip to content

Commit 4fa1999

Browse files
committed
docs: update README and homepage with new features
- Add font-smoothing, color-scheme to fixes layer docs - Add text-wrap, isolation to elements layer docs - Update homepage layer descriptions
1 parent 166874d commit 4fa1999

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ If you're using other `@layer` declarations, include ours in your order:
8181

8282
### Layer: `fixes`
8383

84-
- Prevents text-size inflation on mobile browsers
84+
- Prevents text-size inflation on mobile browsers (`text-size-adjust`)
85+
- Enables automatic dark mode for native UI elements (`color-scheme: light dark`)
86+
- Applies optimized font rendering on macOS/WebKit (`-webkit-font-smoothing: antialiased`)
8587
- Respects `prefers-reduced-motion` for scroll behavior
8688

8789
### Layer: `elements` (optional)
@@ -90,7 +92,10 @@ If you're using other `@layer` declarations, include ours in your order:
9092
- `--font-system-ui-sans` – System UI fonts with emoji support
9193
- `--font-system-ui-mono` – Monospace fonts for code
9294
- Applies font stacks to `body` and code elements
93-
- Improves link underline rendering
95+
- Improves link underline rendering (`text-decoration-skip-ink`)
96+
- Balanced text wrapping for headings (`text-wrap: balance`)
97+
- Prettier text wrapping for paragraphs (`text-wrap: pretty`)
98+
- Creates isolated stacking context for React/Next.js/Vue root elements (`#root`, `#__next`, `#app`)
9499

95100
## Browser Support
96101

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h4>@layer reset</h4>
127127
<span class="layer-number">2</span>
128128
<div class="layer-info">
129129
<h4>@layer fixes</h4>
130-
<p>Browser-specific workarounds. Text-size-adjust, reduced motion preferences.</p>
130+
<p>Browser-specific workarounds. Text-size-adjust, font smoothing, color-scheme, reduced motion.</p>
131131
</div>
132132
<span class="layer-badge">Core</span>
133133
</div>
@@ -136,7 +136,7 @@ <h4>@layer fixes</h4>
136136
<span class="layer-number">3</span>
137137
<div class="layer-info">
138138
<h4>@layer elements</h4>
139-
<p>System font stacks with emoji support. Minimal element defaults for typography.</p>
139+
<p>System font stacks, text-wrap balance/pretty, stacking context isolation for app roots.</p>
140140
</div>
141141
<span class="layer-badge optional">Optional</span>
142142
</div>

0 commit comments

Comments
 (0)