Skip to content

Commit ba03b76

Browse files
committed
chore: point ui-component to css-mixin and write doc comments in css-containers
1 parent 65bfcd8 commit ba03b76

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

‎skills/css-containers/SKILL.md‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,19 @@ The container names, each with what carries it and what reads it:
4040
```css
4141
/* containers.module.css */
4242

43-
/* A grid of tiles, `Grid variant='tiles'`. Read by Grid and by the tiles, which close up at 420
44-
or less. */
43+
/**
44+
* A grid of tiles, `Grid variant='tiles'`. Read by Grid and by the tiles,
45+
* which close up at 420 or less.
46+
*/
4547

4648
.tiles {
4749
container: tiles / inline-size;
4850
}
4951

50-
/* A page's row of a search, its filters and its actions. Read by the filter's trigger, which
51-
chooses its words by the room its row leaves. */
52+
/**
53+
* A page's row of a search, its filters and its actions. Read by the filter's
54+
* trigger, which chooses its words by the room its row leaves.
55+
*/
5256

5357
.toolbar {
5458
container: toolbar / inline-size;

‎skills/ui-component/SKILL.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ metadata:
7474
- Implement responsiveness via CSS, not JS (`userAgent`/`matchMedia`/…) — it keeps server-side rendering simple.
7575
- A part that follows its parent's width uses a named container from the shared containers module — see the `css-containers` skill.
7676
- Color tokens for a light and a dark theme are `light-dark()` pairs — see the `css-light-dark` skill.
77+
- A style several components share is a mixin, a class in the shared mixins module — see the `css-mixin` skill.
7778

7879
## UX & A11y
7980

0 commit comments

Comments
 (0)