Skip to content

Commit d922229

Browse files
committed
Document Unstyled working rules
1 parent d2ae269 commit d922229

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ Before pushing changes that touch Kotlin (`.kt`) files, you must run `jvmTest` a
2222
- Compose Unstyled promises that it will never take or force design choices on the user. Keep APIs focused on behavior, state, semantics, and slots so design systems can provide their own visuals, icons, animation, layout, and styling.
2323
- Modifier chains in public composables must always start with the `modifier` parameter before adding internal modifiers.
2424

25+
## Working in Unstyled
26+
27+
- Treat the rules in this file as product constraints, not preferences. If a change needs to break one of them, call that out explicitly before making the change.
28+
- When adding or changing APIs, keep the unstyled promise intact: expose behavior and extension points, not visual opinions.
29+
- Primitives must follow the WAI-ARIA Authoring Practices Guide patterns for semantics and accessibility: https://www.w3.org/WAI/ARIA/apg/patterns/. Verify this with semantic checks in unit tests.
30+
2531
## Design with Compose
2632

2733
- Never use the old `shadow()` API as it uses Material Design's specs. Always prefer using `dropShadow()` (`androidx.compose.ui.draw.dropShadow`) instead.

0 commit comments

Comments
 (0)