Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

fe-css-layout

/fe-css-layout

Buduje układy stron i komponentów w CSS na siatce, flexboxie i zapytaniach kontenerowych, bez floatów i stałych wysokości tekstu.

Licencja
MIT
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Buduje układy stron i komponentów w CSS na siatce, flexboxie i zapytaniach kontenerowych, bez floatów i stałych wysokości tekstu.

Wyzwalacze z opisu

fix this layoutthis overflowscenter thismake these line up
Oryginalny opis (EN)

Builds and reviews page and component layout in CSS with grid, flexbox, gap, container queries and logical properties, with no float columns, no fixed heights on text and no magic offsets. Use when laying out a page, a grid of cards, a sidebar, a toolbar or a form, or when asked "fix this layout", "this overflows", "center this", "make these line up".

Jak działa

  1. Rules
  2. Do this
  3. Check
  4. References
Sekcje z nagłówków SKILL.md, w oryginale · 35 linii, 412 słów
Podgląd SKILL.md
---
name: fe-css-layout
description: Builds and reviews page and component layout in CSS with grid, flexbox, gap, container queries and logical properties, with no float columns, no fixed heights on text and no magic offsets. Use when laying out a page, a grid of cards, a sidebar, a toolbar or a form, or when asked "fix this layout", "this overflows", "center this", "make these line up".
license: MIT
compatibility: Any agent that reads Agent Skills. The audit command needs Node.js 20 or newer.
metadata:
  title: CSS layout
  area: styling
  lane: A
  requires: web
  globs: "**/*.css **/*.scss **/*.less **/*.vue **/*.svelte **/*.astro"
  rules: "css/no-float-layout css/no-fixed-height-text css/container-type-size css/gap-over-margins css/logical-properties css/no-magic-numbers"
  version: 0.1.0
---

# CSS layout

Read `.frontend-skills/profile.json` and `.frontend-skills/lessons.md` first when they exist; a confirmed lesson wins over this skill.

## Rules

- Lay out with grid (two dimensions, card grids, page regions) or flexbox (one row or column); never float columns or clearfixes (css/no-float-layout).
- Space items with `gap` on the container, not margins on children with `:last-child` resets (css/gap-over-margins).
- Let content set heights: `min-height`, never a fixed `height` with `overflow: hidden` on text (css/no-fixed-height-text).
- Prefer intrinsic grids, `repeat(auto-fit, minmax(min(18rem, 100%), 1fr))`, over breakpoint steps.
- Components that live in slots of different widths respond with `@container`; use `container-type: inline-size` (css/container-type-size).
- Align with `align-items`, `justify-content` and `place-items`, not with nudged offsets or negative margins (css/no-magic-numbers).
- Line up nested parts across siblings (card titles, footers) with `subgrid`, not fixed heights.
- Use logical properties (`margin-inline`, `padding-block`, `inset-inline-start`) in new code, always in sites with right-to-left text (css/logical-properties).
- Never let a box be wider than its parent: `max-width: 100%`, `min-width: 0` on flex and grid children that hold long content.
- Keep source order equal to visual order; do not reorder with `order` or grid placement in a way that breaks reading and Tab order.

## Do this

1. Find the layout primitives the project already has (a `Stack`, `Cluster`, `Grid` component, layout utilities, a `.container` class) and use them before writing new CSS.
2. Decide the axis: content in one direction is flex, a grid with rows and columns is grid; nested parts that must align across cards are subgrid.
3. Write the narrow layout first, then widen it with `@container` for components or `@media (width >= 48em)` for page regions.
4. Spacing comes from tokens through `gap` and padding; outer spacing of a component is set by its parent, not by the component.
5. Test with long words, three times the text, an empty state and 320 CSS px of width.

## Check

- `npx github:dawidolko/frontend-skills audit --changed` reports float columns and clearfixes, fixed heights on text, size containers without a height and offsets off the spacing scale.
- By hand: resize from 320 px to a wide screen and zoom to 400%: nothing overlaps, nothing scrolls sideways except data tables and code; check the reading order with Tab.

## References

- [references/layout.md](references/layout.md): recipes for the common layouts (stack, cluster, sidebar, card grid, holy grail, centring, sticky footer, full-bleed), container query patterns, subgrid, logical property map and Baseline dates. Read it when you build a layout from scratch.
Pliki w paczce (2)
  • SKILL.md 4 KB
  • references/layout.md 5 KB

Wersje

W bazie nie ma innych skilli o nazwie fe-css-layout.

Migawka bazy z 13.11.2026 · wersja paczki beda63c35f13 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100responsive-layout-builder
    Buduje responsywne układy w CSS Grid, Flexboxie i container queries, naprawia problemy z layoutem i wspiera podejście mobile-first.
  • 100grid-layout-systems
    Dostarcza kod i zalecenia CSS z użyciem Grid i Flexbox, tworzy responsywne układy kolumn i dobiera podejście do układu stron i komponentów.
  • 100modern-css-layout-grid-flexbox
    Buduje responsywne układy i wyrównania w nowoczesnym CSS przez Flexbox i Grid, bez zewnętrznych bibliotek układu.
  • 98layout-system
    Naprawia i buduje responsywne układy: szkielety stron, siatki, karty, paski boczne, strategia breakpointów i container queries, z inspekcją CSS pod kątem stałych szerokości i absolutnego pozycjonowania.
  • 100html-css
    Wspiera pracę z nowoczesnym HTML5 i CSS3: semantyczny markup, Flexbox, CSS Grid, container queries, zmienne CSS i responsywne systemy projektowe, dla dostępnych interfejsów i wydajnego renderowania.
  • 100responsive-web-design
    Buduje adaptacyjne interfejsy webowe we Flexboxie, CSS Grid i media queries w podejściu mobile-first, z dbałością o zgodność między przeglądarkami.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.