Soon OdinCMS and OdinSTORE are on the way β€” be the first to know. Join the list
OdinZero
Get Pro Live preview
  1. Home page
  2. Help center
  3. Getting started

Folder structure explained

Pages at the top level; styles, scripts and images each in their own folder.

Pages sit at the top level. Styles, scripts and images each have their own folder:

odinadmin/
β”œβ”€β”€ index.html        CMS dashboard
β”œβ”€β”€ …                 the other pages
β”œβ”€β”€ css/
β”‚   β”œβ”€β”€ style.css     imports all parts below
β”‚   β”œβ”€β”€ base/         variables, colour palette, base styles
β”‚   β”œβ”€β”€ layout/       app shell, sidebar, top bar, footer
β”‚   β”œβ”€β”€ components/   buttons, forms, cards, tables, …
β”‚   β”œβ”€β”€ pages/        styles used by one page only
β”‚   └── vendor/       themes for third-party plugins
β”œβ”€β”€ js/               app.js + one script per feature
β”œβ”€β”€ images/           logos and favicons
β”œβ”€β”€ json/             demo data
└── docs/             the documentation

Edit the part files, never style.css itself β€” it only imports them, in the order variables β†’ base β†’ layout β†’ components β†’ pages β†’ vendor.

Back to the help center