Ten dokument jest przewodnikiem dla frontend developera pracującego z OroCommerce. Pokazuje strukturę SCSS w CustomThemeBundle oraz elementy, które można zmieniać.
scss/
├── components/ ← FrontendBundle (implicit)
├── layout/ ← FrontendBundle
├── settings/ ← FrontendBundle
└── oro/
├── form/ ← OroFormBundle
├── checkout/ ← OroCheckoutBundle
- Kolory (palety, semantic colors)
- Fonty
- Spacing (margins, paddings)
- Border-radius
- Breakpointy
- Light/Dark tokens
$theme-colors
$body-bg
$text-color
$font-family-base
$border-radius-base
$grid-gutter-widthDocs: Theme structure & SCSS override
- Buttony, linki
- Cards, badges
- Modale, dropdowny, tooltips
- Breadcrumbs, pagination, tabs
- Alerts, loaders
components/
├── _buttons.scss
├── _card.scss
├── _modal.scss
├── _dropdown.scss
├── _pagination.scss
├── _tabs.scss
Docs: Frontend components
- Grid system
- Header, footer layout
- Sekcje (hero, content, sidebar)
- Container widths
- Sticky header/footer
.header { height: 88px; }
.page-content { max-width: 1440px; }Docs: Layouts overview
- Inputy, textarea, select
- Checkboxy, radio
- Label, error states, disabled/readonly
- Help text
.input
.input--error
.form-label
.form-errorstorefront/scss/oro/form/_form.scss
Docs: Forms customization
- Układ stepów
- Summary box
- Shipping/payment cards
- CTA buttons
- Order review
- Mobile checkout UX
.checkout-steps
.checkout-summary
.checkout-payment-methodDocs: Checkout customization
- PDP
- PLP
- gallery
- price block
- variants
Docs: Product customization
- login
- register
- account pages
Docs: Customer pages
- landing pages
- CMS blocks
Docs: CMS customization
Dodajesz tylko jeśli faktycznie robisz override.
- Zawsze pytaj: „Z którego bundle’a pochodzi element HTML?”
- components/ → FrontendBundle (UI)
- layout/ → FrontendBundle (strukturę strony)
- settings/ → FrontendBundle (design system)
- oro/form/ → OroFormBundle (formularze)
- oro/checkout/ → OroCheckoutBundle (checkout)
- Wrzucone wszystko do components/
- Formularze stylowane globalnie
- Checkout stylowany jak zwykły layout
- Brak podziału → chaos po 3 miesiącach
- 70% zmian → settings/
- 20% zmian → components/
- 10% zmian → oro/*
Po zmianach w SCSS zawsze uruchamiaj:
bin/console oro:assets:build- Theme → SCSS = gdzie decydujesz o wyglądzie
- Assets → Build = narzędzie do generowania CSS/JS, nie do zmian wyglądu