Installations
npm install altinn-designsystem
Developer
Altinn
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
No
Node Version
14.17.3
NPM Version
6.14.13
Statistics
40 Stars
3,967 Commits
17 Forks
20 Watching
68 Branches
131 Contributors
Updated on 08 Aug 2024
Languages
CSS (45.86%)
JavaScript (41.31%)
Mustache (6.59%)
SCSS (6.17%)
Handlebars (0.04%)
HTML (0.02%)
Total Downloads
Cumulative downloads
Total Downloads
328,219
Last day
-77.3%
209
Compared to previous day
Last week
-62.5%
1,385
Compared to previous week
Last month
-57.5%
21,374
Compared to previous month
Last year
1,177%
133,622
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
5
Altinn Design System
⚠️⚠️⚠️ DEPRECATED ⚠️⚠️⚠️
The design system v2 (npm) supersedes this project. Consider moving your project to rely on the newer design system instead of this one.
This design system is based on Pattern Lab code and atomic design principles. The repo contains the source code and configuration for building and running the design system locally and for creating distribution files.
You can always test the live version of the latest build, or download the altinn-designsystem npm package.
Dependencies
Make sure that Node.js (version 14 or newer) is installed. The package manager npm will be included.
Setup
1git clone https://github.com/Altinn/DesignSystem.git
Navigate to the root of the code and run:
1npm install
Run
The design system is divided into three projects: Altinn.no (Infoportal and Portal), Altinn Digital and common.
To run the design system for altinn.no
1npm run start:altinn
To run the design system for Altinn Digital
1npm run start:altinndigital
To run the design system for components that are common to all projects
1npm run start:common
The command will build and run the design system locally on http://127.0.0.1:3000 and automatically rebuild if the source code is changed.
Distribution
The /dist folder contains css, javascript, fonts and images for distribution via the npm package.
To update the /dist folder
1npm run dist
GitHub pages
To update the live version of the design system
1npm run update:gh-pages
then commit and push the changes to git.
Source code
The source code is structured as follows:
###/_patternlab PatternLab specific files: patterns, meta, data and config.
Each project has its own folder. Common components should only be changed in the /common folder, where they will automatically be copied to all other projects. Changes to common components anywhere else will be automatically overwritten.
###/css Changes to css should be made in the scss files under /css/scss. The css files will be automatically updated.
###/fonts
###/images
###/js JavaScript files are divided into /production and /prototype and bundled automatically. To add new files to a bundle update the config under /scripts/build-config.json
No vulnerabilities found.
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no binaries found in the repo
Reason
Found 12/16 approved changesets -- score normalized to 7
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 30 are checked with a SAST tool
Reason
20 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-vc8w-jr9v-vj7f
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-r8f7-9pfq-mjmv
- Warn: Project is vulnerable to: GHSA-566m-qj78-rww5
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
Score
3
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More