Loading...
Loading...
Complete ready-to-use page templates built with SGDS components and utilities. Use this skill whenever a user asks to build a page, dashboard, login page, form page, settings page, list page, or any full-page UI — even if they don't say 'template'. Apply when starting a new app, building internal tools, dashboards, admin portals, authentication flows, or data table views.
npx skill4agent add govtechsg/sgds-web-component sgds-templatesEvery page must include the Application Shell. Read sgds-blocks → reference/application-shell.md before generating any page. The shell provides mandatory,<sgds-masthead>, and<sgds-mainnav>on every page, plus container class selection (<sgds-footer>vs.sgds-container) and sticky-header conventions. Never generate a page template without all three shell components..sgds-container-sidebar
import "@govtechsg/sgds-web-component/themes/day.css";
import "@govtechsg/sgds-web-component/css/sgds.css";
import "@govtechsg/sgds-web-component/css/utility.css";| What you're building | Template to use |
|---|---|
| Admin dashboard with filters & data table | Application Management |
| Public catalogue with search & filtering | Catalogue / Search & Filter |
| Internal tool, admin portal, analytics dashboard | Dashboard |
| Login / sign-in page | Login |
| Multi-field settings or data-entry form | Form Page |
| Company/agency profile, team intro, achievements | About Us |
| Product or service landing page | Landing Page |
| Blog post, news article, or case study | Blog / Content Page |
Note: The dashboard template uses(RC component). Load the CDN script before other SGDS imports — see sgds-components sidebar reference for the CDN tag and framework setup.sgds-sidebar
stories/templates/stories/templates/curl https://raw.githubusercontent.com/GovTechSG/sgds-web-component/master/stories/templates/{FOLDER}/{FILE}.jscurl https://raw.githubusercontent.com/GovTechSG/sgds-web-component/master/stories/templates/AboutUs/basic.stories.jsTemplatehtmlconst Template = () => html`
<!-- YOUR HTML STARTS HERE -->
<sgds-masthead></sgds-masthead>
...
<sgds-footer></sgds-footer>
<!-- YOUR HTML ENDS HERE -->
`;html\`` wrapper** — delete the leading ${variable}<style>sgds-*sgds:# [Template Name] Page Template
[1-2 sentence description of what this template is for]
## When to use
- Use case 1
- Use case 2
- Use case 3
## Block anatomy
\`\`\`
[ASCII diagram of the layout structure]
\`\`\`
---
## Complete template
\`\`\`html
[CLEANED HTML FROM STEP 3]
\`\`\`
## Customisation notes
- Update [element] to [purpose]
- Modify [component] by [how]
- [More notes...]
---
## Raw Content Link
| File | GitHub Raw URL |
|------|---|
| [Template Name] | [raw GitHub URL] |https://raw.githubusercontent.com/GovTechSG/sgds-web-component/master/stories/templates/AboutUs/basic.stories.jsconst Template = () => html`
<style>...</style>
<sgds-masthead></sgds-masthead>
...
`;html\`` and backtick → clean up sgds:bg-surface-defaultsgds:bg-surface-raisedsgds:bg-surface-overlaysgds:p-layout-mdsgds:gap-layout-mdsgds:p-component-mdsgds:p-4sgds:p-component-lgsgds:gap-layout-mdsgds:rounded-lgsgds:shadow-card<sgds-button variant="primary"><sgds-button variant="outline"><sgds-button variant="ghost" tone="danger">sgds:text-body-subtle sgds:text-smsgds:text-default sgds:text-2xl sgds:font-semibold