Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ sgds Public
forked from GovTechSG/sgds

SGDS is a frontend framework that aims to provide a beautiful common visual language and user experience for visitors of Singapore Government websites.

License

Notifications You must be signed in to change notification settings

clukhei/sgds

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Singapore Government Design System

npm

The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.

Visit our SGDS React storybook


Installation

CSS

<head>
    ...
    <link
        rel="stylesheet"
        href="https://cdn.jsdelivr.net/npm/@govtechsg/sgds/css/sgds.css"
    />
    ...
</head>

Vanilla JavaScript

SGDS components makes use of bootstrap v5.1.3 js library as an external dependency. If you only need the visual parts of SGDS, or if you are using frontend frameworks like React, you do not need to import this.

@govtechsg/sgds uses bootstrap-icons for certain components like Form but it is not ship with it. Install bootstrap-icons or use CDN if you need it. Please refer to bootstrap-icons for usage instructions.

<head>
  ...
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@govtechsg/sgds/css/sgds.css" />
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
  ...
</head>

<body>
  ...
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
    crossorigin="anonymous"></script>
</body>

For more information, please refer to the components documentation.

Via NPM

$ npm i @govtechsg/sgds bootstrap-icons

For Webpack

//importing css
import "@govtechsg/sgds/css/sgds.css";

import '@popperjs/core';
import * as bootstrap from 'bootstrap';

Frontend frameworks

Usage with frameworks such as React, Vue or Angular is discouraged since they manipulate the DOM in their own environments. Framework-specific implementations are in early development and can be found at sgds-react


Patch Notes

See Changelog

About

SGDS is a frontend framework that aims to provide a beautiful common visual language and user experience for visitors of Singapore Government websites.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 77.4%
  • SCSS 21.9%
  • Other 0.7%