{"_id":"@dfedigital/dfe-frontend","name":"@dfedigital/dfe-frontend","dist-tags":{"latest":"3.0.0"},"versions":{"3.0.0":{"name":"@dfedigital/dfe-frontend","version":"3.0.0","description":"DfE Frontend extends GOV.UK Frontend with departmental components and brand mode.","license":"MIT","type":"module","main":"./src/index.mjs","exports":{".":{"types":"./src/index.mjs","import":"./src/index.mjs","default":"./src/index.mjs"},"./dfe.scss":"./src/dfe.scss","./settings.scss":"./src/settings.scss","./tools.scss":"./src/tools.scss","./components/*.scss":"./src/components/*/index.scss","./components/*/component.mjs":"./src/components/*/*.mjs","./dist/dfe.css":"./dist/dfe.css","./dist/dfe.min.css":"./dist/dfe.min.css","./dist/dfe-frontend.esm.min.js":"./dist/dfe-frontend.esm.min.js","./dist/dfe-frontend.iife.min.js":"./dist/dfe-frontend.iife.min.js","./dist/manifest.json":"./dist/manifest.json"},"scripts":{"build":"node ./scripts/build.mjs","prepublishOnly":"npm run build","test":"vitest run"},"dependencies":{"govuk-frontend":"^6.1.0"},"devDependencies":{"axe-core":"^4.10.2","esbuild":"^0.24.2","jsdom":"^25.0.1","sass":"^1.81.0","vitest":"^2.1.9"},"publishConfig":{"access":"public"},"engines":{"node":">=20"},"_id":"@dfedigital/dfe-frontend@3.0.0","_nodeVersion":"21.6.1","_npmVersion":"11.3.0","dist":{"integrity":"sha512-YyCYLeqsOQkqNEX8K+1zGRC2/luwbHtSug0GUYp/dWs6GZDpdLj2QHRxvpkAWlrB9gxLoYETBeea+fo+/iMptg==","shasum":"9af85857d4dbe77fac8d71e77884ddc68badee6d","tarball":"https://registry.npmjs.org/@dfedigital/dfe-frontend/-/dfe-frontend-3.0.0.tgz","fileCount":37,"unpackedSize":107802,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDky4PGAudbiP4qHF5gNuzFNgWQewVKxCNyMRwvI/rmLAIgc59tVahFi8dxmaCEor2N3tJupdBXLXk//dL2CqlREyU="}]},"_npmUser":{"name":"dept-for-education","email":"andy.jones@education.gov.uk"},"directories":{},"maintainers":[{"name":"dept-for-education","email":"andy.jones@education.gov.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dfe-frontend_3.0.0_1777701822926_0.19635143897227314"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-02T06:03:42.832Z","3.0.0":"2026-05-02T06:03:43.098Z","modified":"2026-05-02T06:03:43.343Z"},"maintainers":[{"name":"dept-for-education","email":"andy.jones@education.gov.uk"}],"description":"DfE Frontend extends GOV.UK Frontend with departmental components and brand mode.","license":"MIT","readme":"# @dfe/dfe-frontend\n\nExtends [GOV.UK Frontend](https://frontend.design-system.service.gov.uk/) with DfE components and optional `use-dfe-brand` typography and header treatment.\n\n## Install\n\n```bash\nnpm install govuk-frontend @dfe/dfe-frontend\n```\n\n## Sass\n\nCompile with a load path that includes `node_modules` (Dart Sass):\n\n```bash\nsass --load-path=node_modules path/to/your.scss output.css\n```\n\nFull bundle:\n\n```scss\n@use '@dfe/dfe-frontend/dfe.scss';\n```\n\nSelective component stylesheet:\n\n```scss\n@use '@dfe/dfe-frontend/components/card.scss';\n```\n\n## JavaScript\n\n```js\nimport { initAll } from '@dfe/dfe-frontend'\n\ninitAll()\n```\n\n### Production bundles (npm package `dist/`)\n\nAfter `npm run build` in this package, **`dist/`** contains CDN- and tag-friendly builds:\n\n| File | Use |\n| --- | --- |\n| `dfe.min.css` | Production stylesheet |\n| `dfe-frontend.esm.min.js` | `import { initAll } from '@dfe/dfe-frontend/dist/dfe-frontend.esm.min.js'` or `<script type=\"module\">` |\n| `dfe-frontend.iife.min.js` | `window.DfeFrontend.initAll()` (no bundler) |\n| `manifest.json` | `integrity` (sha384) for each file |\n\nPin a **semver** when loading from a public npm CDN (jsDelivr, unpkg). See **`docs/distribution.md`** in the repo root.\n\n## Brand mode\n\nAdd `use-dfe-brand` to `<body>` (with `govuk-template__body`) and load Inter. DfE shell components and tokens apply as described in the platform specification.\n","readmeFilename":"README.md","_rev":"1-5f9fb19deceb19ffd9243f5d1a4212e6"}