@i-dot-ai-npm/component-library-frontend 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/src/_settings.scss +34 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i-dot-ai-npm/component-library-frontend",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "i.AI GOV.UK design-system override layer (SCSS + JS). Layered on top of govuk-frontend.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,6 +9,7 @@
9
9
  "default": "./src/index.js"
10
10
  },
11
11
  "./scss": "./src/index.scss",
12
+ "./settings": "./src/_settings.scss",
12
13
  "./css": "./dist/i-ai-design-system.min.css",
13
14
  "./min.js": "./dist/i-ai-design-system.min.js"
14
15
  },
@@ -39,4 +40,4 @@
39
40
  "registry": "https://registry.npmjs.org"
40
41
  },
41
42
  "license": "MIT"
42
- }
43
+ }
@@ -0,0 +1,34 @@
1
+ // i.AI brand settings.
2
+ //
3
+ // The single source for the values a product passes to govuk-frontend's
4
+ // `with ()` when it applies the i.AI brand: font stack, brand colour and the
5
+ // surface colours. Products `@use` this module and hand its variables to
6
+ // govuk-frontend, so a brand change here reaches every product on its next
7
+ // bump rather than drifting across copied idotai.scss files.
8
+ //
9
+ // Every value is `!default`, so a department-branded product can override
10
+ // one of them when it loads the module:
11
+ //
12
+ // @use "@i-dot-ai-npm/component-library-frontend/settings" as iai with (
13
+ // $iai-brand-colour: #00703c
14
+ // );
15
+ //
16
+ // Check any override passes contrast on the surface background before you
17
+ // set it; the brand colour is used for service navigation link text.
18
+ //
19
+ // The bare package path above resolves under Vite and Astro. If you compile
20
+ // with the Sass CLI, prefix it with `pkg:` and pass `--pkg-importer=node`.
21
+
22
+ $iai-font-family: ("Inter", Helvetica, Arial, sans-serif) !default;
23
+
24
+ $iai-brand-colour: #2b2b2b !default;
25
+ $iai-surface-background: #f3f3f3 !default;
26
+ $iai-template-background: #f3f3f3 !default;
27
+
28
+ // The map govuk-frontend expects for `$govuk-functional-colours`.
29
+ $iai-functional-colours: (
30
+ brand: $iai-brand-colour,
31
+ surface-background: $iai-surface-background,
32
+ surface-border: $iai-brand-colour,
33
+ template-background: $iai-template-background,
34
+ ) !default;