JS Theme
A modern theme built with npm/Webpack (replaces Freemarker themes).
- Use Sass/React in themes.
- Hot-reload CSS/JS during development.
Implementation
Section titled “Implementation”Create the Theme
Section titled “Create the Theme”blade create -t js-theme my-js-themeCustomize Styles
Section titled “Customize Styles”$primary: #0066cc; // Blue brand color
body { font-family: "Arial", sans-serif;}Extend Base Theme
Section titled “Extend Base Theme”Override templates (e.g., portal_normal.ftl) in src/templates/.
Use Cases
Section titled “Use Cases”- Branding: Apply company colors/fonts globally.
- Responsive Layouts: Optimize for mobile/desktop.