bereg-ds 1.0.0 → 1.2.0

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.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,30 @@
3
3
  All notable changes to this project are documented here. The project follows [Semantic Versioning](https://semver.org/):
4
4
  a breaking change to a token name, a class name or a component prop is a major version.
5
5
 
6
- ## 1.0.0 (unreleased)
6
+ ## 1.2.0 (unreleased)
7
+
8
+ - Fonts: own woff2 files in `bereg-ds/fonts/` instead of the Fontsource packages (now dev dependencies only, used by
9
+ `scripts/build-fonts.py`). Hinting removed, Sans weight axis limited to 300 to 700. Subsets latin, latin-ext and cyrillic
10
+ (same `unicode-range` as before); Greek, Vietnamese and Cyrillic Extended dropped, they fall back to the system font.
11
+ Same family names and fallbacks. Latin files: Sans 45.7 → 38.5 KB, Mono 14.7 → 10.1 KB. OFL license in `bereg-ds/fonts/OFL.txt`.
12
+ New export `bereg-ds/fonts/*`; README shows how to preload the Latin Sans file.
13
+ - `.text-h1-subtitle` is fluid: `clamp(--font-size-lg, 0.75rem + 1.6vw, --font-size-2xl)`, 20px on phones, 30px on desktop.
14
+ - `.subhead` right after `.section-head` has no top margin (was an extra 32px).
15
+ - Card focus: the card-wide ring (and hiding the title link ring) only inside `@supports selector(:has(*))`.
16
+ Browsers without `:has()` keep the link's own focus ring; before, they showed no focus at all.
17
+
18
+ ## 1.1.0 (2026-11-18)
19
+
20
+ - Optional light theme: `bereg-ds/theme-light.css` (not part of `bereg-ds.css`). Follows `prefers-color-scheme`
21
+ unless `<html data-theme="light|dark">` is set. Text contrast 7:1 or more, interactive borders 3:1 or more.
22
+ - Light tokens in `tokens/themes/light/*.json` (DTCG) and `bereg-ds/tokens-light.json`.
23
+ - Dark theme: `--muted` (`--prim-slate-400`) #8ea3bf → #91a6c2, so muted text on `--surface` is 7.2:1 (was 6.9:1).
24
+ - Storybook: docs pages (MDX) follow the theme switch too (before, they followed the system setting); docs links use `--accent`;
25
+ code colors in docs raised to 7:1; contrast table shows border colors as lines, not as text.
26
+ - Tests: contrast for both themes, including hover, selection, header and focus colors.
27
+ - Storybook: theme switch in the toolbar (Dark, Light, System), Foundations / Themes page, contrast computed from tokens.
28
+
29
+ ## 1.0.0 (2026-11-17)
7
30
 
8
31
  First release.
9
32
 
package/README.md CHANGED
@@ -5,7 +5,9 @@ Design tokens, CSS components and React components from one source.
5
5
 
6
6
  - **Docs and live components:** [ds.bereg.dev](https://ds.bereg.dev) (Storybook)
7
7
  - **Figma:** [Bereg DS](https://www.figma.com/design/nWkFlhkomx90UBXw6nFAQj)
8
+ - **npm:** [bereg-ds](https://www.npmjs.com/package/bereg-ds)
8
9
  - **Live example:** [bereg.dev](https://bereg.dev)
10
+ - **Case study:** [bereg.dev/projects/bereg-ds](https://bereg.dev/projects/bereg-ds/)
9
11
 
10
12
  ## Install
11
13
 
@@ -13,7 +15,7 @@ Design tokens, CSS components and React components from one source.
13
15
  npm i bereg-ds
14
16
  ```
15
17
 
16
- IBM Plex Sans and Mono come with it (self-hosted through Fontsource, no Google Fonts).
18
+ IBM Plex Sans and Mono come with it: self-hosted woff2 files in `bereg-ds/fonts/`, no Google Fonts, no extra dependencies.
17
19
 
18
20
  ## Use with CSS (any project: Astro, plain HTML, Vue...)
19
21
 
@@ -37,11 +39,53 @@ Import only what you need:
37
39
 
38
40
  | File | What |
39
41
  |---|---|
40
- | `bereg-ds/fonts.css` | IBM Plex Sans (variable) and Mono 400, metric-matched fallbacks |
42
+ | `bereg-ds/fonts.css` | IBM Plex Sans (variable, 300 to 700) and Mono 400, metric-matched fallbacks |
41
43
  | `bereg-ds/tokens.css` | CSS variables: colors, spacing, radii, type scale, motion |
42
44
  | `bereg-ds/base.css` | Page defaults, headings, text-style classes (`.text-h1`, `.text-meta`...), `.blueprint` grid |
43
- | `bereg-ds/components.css` | Components: `.btn`, `.card`, `.quote`, `.tag`, `.filter-tab`, `.section-head`, `.facts`, `.timeline`, `.posts`, `.site-header`, `.site-footer`, `.prose` |
45
+ | `bereg-ds/components.css` | Components: `.btn`, `.card`, `.quote`, `.tag`, `.filter-tab`, `.section-head`, `.subhead`, `.facts`, `.timeline`, `.posts`, `.book-promo`, `.site-header`, `.site-footer`, `.prose`, `.wrap` |
44
46
  | `bereg-ds/hdr.css` | Optional HDR accents (`.hdr-logo`, `.hdr-card`) |
47
+ | `bereg-ds/theme-light.css` | Optional light theme (see below) |
48
+
49
+ ## Fonts
50
+
51
+ `fonts.css` links the font files with relative URLs (`../fonts/*.woff2`), so bundlers (Vite, Astro, webpack) copy them as assets.
52
+ Subsets: latin, latin-ext, cyrillic. Each is a separate file with its own `unicode-range`: a page in English loads only the Latin files.
53
+ Other scripts (Greek, Vietnamese...) fall back to the system font.
54
+
55
+ | Font | Weights | Latin file |
56
+ |---|---|---|
57
+ | IBM Plex Sans (variable) | 300 to 700, normal | `plex-sans-latin-wght.woff2` (~39 KB) |
58
+ | IBM Plex Mono | 400, normal | `plex-mono-latin-400.woff2` (~10 KB) |
59
+
60
+ Hinting is removed (smaller files; modern browsers smooth the glyphs themselves). There is no italic and no other Mono weight:
61
+ `<em>` gets a slanted Sans, bold inside `<code>` gets a synthesized bold.
62
+
63
+ **Preload the main font** so text renders in Plex sooner. With Vite, `?url` gives the same hashed URL that the CSS uses,
64
+ so the file is downloaded once:
65
+
66
+ ```js
67
+ import plexSans from 'bereg-ds/fonts/plex-sans-latin-wght.woff2?url';
68
+ ```
69
+
70
+ ```html
71
+ <link rel="preload" href="{plexSans}" as="font" type="font/woff2" crossorigin>
72
+ ```
73
+
74
+ `crossorigin` is required even on the same origin: without it the browser downloads the font twice.
75
+ Preload only the Latin Sans file; other files load when a page needs them.
76
+
77
+ ## Light theme (optional)
78
+
79
+ Dark is the default. Projects that need a light theme add one file; projects that stay dark do not load it.
80
+
81
+ ```js
82
+ import 'bereg-ds/bereg-ds.css';
83
+ import 'bereg-ds/theme-light.css';
84
+ ```
85
+
86
+ It follows the system setting (`prefers-color-scheme`). `<html data-theme="light">` or `data-theme="dark"` overrides it.
87
+ The switch, `localStorage` and a small inline script against the flash on load are up to the project:
88
+ see [Foundations / Themes](https://ds.bereg.dev/?path=/docs/foundations-themes--docs).
45
89
 
46
90
  ## Use with React
47
91
 
@@ -70,9 +114,10 @@ Components: `Button`, `Link`, `NavLink`, `Tag`, `Tags`, `Card`, `Quote`, `BookPr
70
114
  ```js
71
115
  import { colorAccent, space4 } from 'bereg-ds/tokens'; // px values
72
116
  import tokens from 'bereg-ds/tokens.json';
117
+ import light from 'bereg-ds/tokens-light.json'; // light theme colors
73
118
  ```
74
119
 
75
- The source tokens (W3C DTCG format) are in `tokens/*.json`.
120
+ The source tokens (W3C DTCG format) are in `tokens/*.json`, the light theme in `tokens/themes/light/*.json`.
76
121
 
77
122
  ## Rules of the system
78
123
 
@@ -80,16 +125,19 @@ The source tokens (W3C DTCG format) are in `tokens/*.json`.
80
125
  Strokes (1/2/3px), corner ticks (11/22px) and breakpoints (640/760px) are separate sizes.
81
126
  2. **Tokens only.** No raw colors or pixel spacing in components (a test checks it).
82
127
  3. **Units.** Font sizes and spacing in rem, line height without units, letter spacing in em, strokes in px,
83
- breakpoints in em (`40em`, `47.5em`).
128
+ breakpoints in em in media queries (`40em`, `47.5em`). The `--bp-sm`/`--bp-md` tokens (640/760px) are for reference:
129
+ CSS variables do not work in media queries.
84
130
  4. **Accessibility.** Text contrast 7:1 or more. Interactive borders use `--line-strong` (3:1 or more),
85
131
  `--line` is decorative only. Visible focus on every interactive element. Links are underlined.
86
132
  Respects `prefers-reduced-motion` and `forced-colors`.
87
- 5. **Dark theme only** for now.
133
+ 5. **Dark by default.** The light theme is an optional file with the same token names.
88
134
  6. **HDR is an optional accent**, not a default.
89
135
  7. **Exceptions belong to the project.** A special case lives in that project's CSS, not in the system.
90
136
 
91
137
  ## Develop
92
138
 
139
+ Node version is pinned in `.nvmrc` (`nvm use`).
140
+
93
141
  ```sh
94
142
  npm install
95
143
  npm run build # tokens -> dist/css/tokens.css + dist/tokens, CSS, React
@@ -99,6 +147,16 @@ npm run storybook # docs and live components on http://localhost:6006
99
147
 
100
148
  Change tokens in Figma first, then in `tokens/*.json`, then run `npm run build`.
101
149
 
150
+ ## Release
151
+
152
+ ```sh
153
+ npm login
154
+ npm publish # prepublishOnly runs build and tests
155
+ ```
156
+
157
+ Update `CHANGELOG.md` and the version in `package.json` first.
158
+ Storybook (ds.bereg.dev) deploys automatically on push to `main`.
159
+
102
160
  ## License
103
161
 
104
- MIT. IBM Plex is licensed under the SIL Open Font License (comes with the Fontsource packages).
162
+ MIT. IBM Plex is licensed under the SIL Open Font License: `bereg-ds/fonts/OFL.txt`.
package/SKILL.md CHANGED
@@ -28,6 +28,7 @@ npm i bereg-ds
28
28
  import 'bereg-ds/bereg-ds.css'; // fonts + tokens + base + components
29
29
  import { Button, Card } from 'bereg-ds/react'; // only in React projects
30
30
  // import 'bereg-ds/hdr.css'; // only if an HDR accent is asked for
31
+ // import 'bereg-ds/theme-light.css'; // only if the project needs a light theme
31
32
  ```
32
33
 
33
34
  Without React, use the same CSS classes in HTML (see README.md).
@@ -35,18 +36,19 @@ Without React, use the same CSS classes in HTML (see README.md).
35
36
  ## Rules
36
37
 
37
38
  1. **Use components first.** Button, Link, NavLink, Tag/Tags, Card, Quote, BookPromo, FilterTabs, Sections/Section,
38
- Facts, Timeline, PostList, Subhead, SiteHeader, SiteFooter. Do not restyle them per page.
39
+ Facts, Timeline, PostList, Subhead, SiteHeader, SiteFooter, Wrap. Do not restyle them per page.
39
40
  2. **Tokens only.** Colors: `var(--bg)`, `--surface`, `--text`, `--muted`, `--line`, `--line-strong`, `--accent`,
40
41
  `--accent-ink`, `--highlight`, `--focus`. Never hard-code hex colors or primitives (`--prim-*`).
41
42
  3. **Scale of 4.** Spacing, gaps and radii only from `--space-1` (4px) … `--space-16` (64px) and `--radius-sm|md|lg`.
42
43
  No 6px, 10px, 14px. Strokes `--border-thin|medium|thick` in px.
43
44
  4. **Type.** Use the text-style classes (`.text-h1`, `.text-h2`, `.text-h3`, `.text-lede`, `.text-body`, `.text-small`,
44
- `.text-meta`, `.text-label`, `.text-caps`, `.text-tag`, `.text-code`) or `--font-size-*` tokens. Fonts: `var(--font)`,
45
+ `.text-meta`, `.text-label`, `.text-caps`, `.text-tag`, `.text-code`, `.text-footnote`, `.text-caption`, `.text-strong`) or `--font-size-*` tokens. Fonts: `var(--font)`,
45
46
  `var(--mono)`. Sizes in rem, line height unitless.
46
47
  5. **Accessibility.** Borders that identify an interactive element use `--line-strong`; `--line` is decorative.
47
48
  Keep the focus ring (`:focus-visible`, 3px `--focus`, offset 3px). Underline links. Every section has a heading
48
49
  (`Section` does it). Respect `prefers-reduced-motion` and `forced-colors`.
49
- 6. **Dark theme only.** Do not invent light colors.
50
+ 6. **Dark by default.** Add `theme-light.css` only if the project asks for a light theme. Never invent colors for
51
+ either theme; use the semantic tokens so both themes work. The theme switch and its storage live in the project.
50
52
  7. **HDR only when asked**, for one accent at a time, always with an SDR fallback (`hdr.css`).
51
53
  8. **Exceptions stay in the project.** If a design needs a value the system does not have, put it in the project's
52
54
  own CSS with a comment, and tell Konstantin. Do not edit the package for one project.
@@ -55,4 +57,5 @@ Without React, use the same CSS classes in HTML (see README.md).
55
57
 
56
58
  - Docs and live components: https://ds.bereg.dev
57
59
  - Figma: https://www.figma.com/design/nWkFlhkomx90UBXw6nFAQj
60
+ - npm: https://www.npmjs.com/package/bereg-ds
58
61
  - Source: https://github.com/KonstantinBeregovoy/bereg-ds
package/dist/css/base.css CHANGED
@@ -44,7 +44,7 @@ h3, .text-h3 { font-size: var(--font-size-lg); font-weight: var(--weight-semibol
44
44
  p { margin: 0 0 var(--space-4); }
45
45
 
46
46
  /* Text styles (classes). Sizes in rem follow the user's browser font size. */
47
- .text-h1-subtitle { font-size: var(--font-size-2xl); font-weight: var(--weight-light); line-height: var(--leading-tight); letter-spacing: var(--tracking-snug); }
47
+ .text-h1-subtitle { font-size: clamp(var(--font-size-lg), 0.75rem + 1.6vw, var(--font-size-2xl)); font-weight: var(--weight-light); line-height: var(--leading-tight); letter-spacing: var(--tracking-snug); }
48
48
  .text-facts { font-size: var(--font-size-4xl); font-weight: var(--weight-semibold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tighter); }
49
49
  .text-h2-article { font-size: var(--font-size-2xl); font-weight: var(--weight-semibold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
50
50
  .text-post-title { font-size: var(--font-size-xl); font-weight: var(--weight-semibold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
@@ -79,9 +79,12 @@
79
79
  }
80
80
  .card:hover, .card:focus-within { border-color: var(--line-hover); }
81
81
  .card:hover::before, .card:focus-within::before { --tick: var(--tick-hover); --tc: var(--highlight); opacity: 1; }
82
- /* Focus: the ring goes around the whole card, not only around the title link. */
83
- .card:has(.stretch:focus-visible) { outline: var(--border-thick) solid var(--focus); outline-offset: var(--focus-offset); }
84
- .card .stretch:focus-visible { outline: none; }
82
+ /* Focus: the ring goes around the whole card, not only around the title link.
83
+ Only where :has() works; elsewhere the title link keeps its own focus ring (base.css :focus-visible). */
84
+ @supports selector(:has(*)) {
85
+ .card:has(.stretch:focus-visible) { outline: var(--border-thick) solid var(--focus); outline-offset: var(--focus-offset); }
86
+ .card .stretch:focus-visible { outline: none; }
87
+ }
85
88
 
86
89
  /* ---------- Quote ---------- */
87
90
  .quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); gap: var(--space-6); }
@@ -149,6 +152,7 @@
149
152
  /* ---------- Post Item ---------- */
150
153
  .subhead { font-family: var(--mono); font-size: var(--font-size-xs); font-weight: var(--weight-regular); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--muted); margin: var(--space-8) 0 var(--space-4); }
151
154
  .subhead:first-child { margin-top: 0; }
155
+ .section-head + .subhead { margin-top: 0; }
152
156
  .posts { list-style: none; margin: 0; padding: 0; }
153
157
  .posts > li { border-top: var(--border-thin) solid var(--line); padding: var(--space-4) 0; display: grid; grid-template-columns: 8.125rem 1fr; gap: var(--space-6); }
154
158
  .posts h2, .posts h3 { font-size: var(--font-size-xl); }
@@ -1,9 +1,27 @@
1
- /* Bereg DS fonts: IBM Plex Sans (variable, 100-700) and IBM Plex Mono 400, self-hosted through Fontsource.
2
- The font files and their OFL license come with the @fontsource packages (dependencies of bereg-ds).
3
- Each subset has its own unicode-range, so the browser loads only the scripts a page uses (latin, cyrillic...).
1
+ /* Bereg DS fonts: IBM Plex Sans (variable, weights 300-700) and IBM Plex Mono 400. Generated by scripts/build-fonts.py, do not edit by hand.
2
+ Self-hosted woff2 files in ../fonts (built from Fontsource, hinting removed, Sans weight axis limited to 300-700). License: ../fonts/OFL.txt.
3
+ Subsets: latin, latin-ext, cyrillic, each with its own unicode-range, so the browser loads only the scripts a page uses.
4
+ Other scripts (Greek, Vietnamese...) fall back to the system font.
4
5
  For Hebrew use IBM Plex Sans Hebrew (@fontsource/ibm-plex-sans-hebrew) and add it to --font in your project. */
5
- @import '@fontsource-variable/ibm-plex-sans/wght.css';
6
- @import '@fontsource/ibm-plex-mono/400.css';
6
+
7
+ @font-face { font-family: 'IBM Plex Sans Variable'; font-style: normal; font-weight: 300 700; font-display: swap;
8
+ src: url('../fonts/plex-sans-cyrillic-wght.woff2') format('woff2');
9
+ unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
10
+ @font-face { font-family: 'IBM Plex Sans Variable'; font-style: normal; font-weight: 300 700; font-display: swap;
11
+ src: url('../fonts/plex-sans-latin-ext-wght.woff2') format('woff2');
12
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
13
+ @font-face { font-family: 'IBM Plex Sans Variable'; font-style: normal; font-weight: 300 700; font-display: swap;
14
+ src: url('../fonts/plex-sans-latin-wght.woff2') format('woff2');
15
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
16
+ @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
17
+ src: url('../fonts/plex-mono-cyrillic-400.woff2') format('woff2');
18
+ unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
19
+ @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
20
+ src: url('../fonts/plex-mono-latin-ext-400.woff2') format('woff2');
21
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
22
+ @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
23
+ src: url('../fonts/plex-mono-latin-400.woff2') format('woff2');
24
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
7
25
 
8
26
  /* Metric-matched fallbacks: system fonts scaled to Plex's size and line box, so the font swap does not shift layout.
9
27
  Variable names in tokens.css (--font, --mono) list these right after Plex. */
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Bereg DS light theme (optional). Generated from tokens/themes/light/*.json. Do not edit by hand.
3
+ * Import after bereg-ds.css. Follows the system setting unless <html data-theme="light|dark"> is set.
4
+ */
5
+ @media (prefers-color-scheme: light) {
6
+ :root:not([data-theme="dark"]) {
7
+ color-scheme: light;
8
+ --prim-light-paper: #f5f8fc;
9
+ --prim-light-slate-700: #3d5170;
10
+ --prim-light-blue-700: #08467f;
11
+ --prim-light-amber-800: #7a4300;
12
+ --prim-light-line: #d5deea;
13
+ --prim-light-line-strong: #72859f;
14
+ --prim-light-mix-amber-line: #c19a6b;
15
+ --prim-light-alpha-blue-700-3: rgba(8, 70, 127, 0.03);
16
+ --prim-light-alpha-blue-700-6: rgba(8, 70, 127, 0.06);
17
+ --prim-light-alpha-blue-700-8: rgba(8, 70, 127, 0.08);
18
+ --prim-light-alpha-blue-700-10: rgba(8, 70, 127, 0.1);
19
+ --prim-light-alpha-blue-700-12: rgba(8, 70, 127, 0.12);
20
+ --prim-light-alpha-blue-700-18: rgba(8, 70, 127, 0.18);
21
+ --prim-light-alpha-blue-700-40: rgba(8, 70, 127, 0.4);
22
+ --prim-light-alpha-navy-850-15: rgba(13, 24, 41, 0.15);
23
+ --prim-light-alpha-paper-88: rgba(245, 248, 252, 0.88);
24
+ --bg: var(--prim-light-paper);
25
+ --surface: var(--prim-white);
26
+ --text: var(--prim-navy-850);
27
+ --muted: var(--prim-light-slate-700);
28
+ --line: var(--prim-light-line); /** Decorative lines only. */
29
+ --line-strong: var(--prim-light-line-strong); /** Borders of interactive elements, >=3:1 on bg and surface (WCAG 1.4.11). */
30
+ --line-hover: var(--prim-light-mix-amber-line);
31
+ --accent: var(--prim-light-blue-700); /** Links, primary actions, focus. */
32
+ --accent-ink: var(--prim-white);
33
+ --accent-subtle: var(--prim-light-alpha-blue-700-8);
34
+ --highlight: var(--prim-light-amber-800); /** Hover of primary actions, section numbers, current filter. */
35
+ --focus: var(--prim-light-blue-700);
36
+ --selection: var(--prim-light-alpha-blue-700-18);
37
+ --selection-text: var(--prim-navy-850);
38
+ --header-bg: var(--prim-light-alpha-paper-88);
39
+ --grid: var(--prim-light-alpha-blue-700-6);
40
+ --grid-major: var(--prim-light-alpha-blue-700-10);
41
+ --grid-dot: var(--prim-light-alpha-blue-700-40);
42
+ --lamp-grid: var(--prim-light-alpha-blue-700-12);
43
+ --lamp-grid-major: var(--prim-light-alpha-blue-700-18);
44
+ --lamp-glow: var(--prim-light-alpha-blue-700-3);
45
+ --shadow-color: var(--prim-light-alpha-navy-850-15);
46
+ --glow-color: var(--prim-light-alpha-blue-700-8);
47
+ }
48
+ }
49
+
50
+ :root[data-theme="light"] {
51
+ color-scheme: light;
52
+ --prim-light-paper: #f5f8fc;
53
+ --prim-light-slate-700: #3d5170;
54
+ --prim-light-blue-700: #08467f;
55
+ --prim-light-amber-800: #7a4300;
56
+ --prim-light-line: #d5deea;
57
+ --prim-light-line-strong: #72859f;
58
+ --prim-light-mix-amber-line: #c19a6b;
59
+ --prim-light-alpha-blue-700-3: rgba(8, 70, 127, 0.03);
60
+ --prim-light-alpha-blue-700-6: rgba(8, 70, 127, 0.06);
61
+ --prim-light-alpha-blue-700-8: rgba(8, 70, 127, 0.08);
62
+ --prim-light-alpha-blue-700-10: rgba(8, 70, 127, 0.1);
63
+ --prim-light-alpha-blue-700-12: rgba(8, 70, 127, 0.12);
64
+ --prim-light-alpha-blue-700-18: rgba(8, 70, 127, 0.18);
65
+ --prim-light-alpha-blue-700-40: rgba(8, 70, 127, 0.4);
66
+ --prim-light-alpha-navy-850-15: rgba(13, 24, 41, 0.15);
67
+ --prim-light-alpha-paper-88: rgba(245, 248, 252, 0.88);
68
+ --bg: var(--prim-light-paper);
69
+ --surface: var(--prim-white);
70
+ --text: var(--prim-navy-850);
71
+ --muted: var(--prim-light-slate-700);
72
+ --line: var(--prim-light-line); /** Decorative lines only. */
73
+ --line-strong: var(--prim-light-line-strong); /** Borders of interactive elements, >=3:1 on bg and surface (WCAG 1.4.11). */
74
+ --line-hover: var(--prim-light-mix-amber-line);
75
+ --accent: var(--prim-light-blue-700); /** Links, primary actions, focus. */
76
+ --accent-ink: var(--prim-white);
77
+ --accent-subtle: var(--prim-light-alpha-blue-700-8);
78
+ --highlight: var(--prim-light-amber-800); /** Hover of primary actions, section numbers, current filter. */
79
+ --focus: var(--prim-light-blue-700);
80
+ --selection: var(--prim-light-alpha-blue-700-18);
81
+ --selection-text: var(--prim-navy-850);
82
+ --header-bg: var(--prim-light-alpha-paper-88);
83
+ --grid: var(--prim-light-alpha-blue-700-6);
84
+ --grid-major: var(--prim-light-alpha-blue-700-10);
85
+ --grid-dot: var(--prim-light-alpha-blue-700-40);
86
+ --lamp-grid: var(--prim-light-alpha-blue-700-12);
87
+ --lamp-grid-major: var(--prim-light-alpha-blue-700-18);
88
+ --lamp-glow: var(--prim-light-alpha-blue-700-3);
89
+ --shadow-color: var(--prim-light-alpha-navy-850-15);
90
+ --glow-color: var(--prim-light-alpha-blue-700-8);
91
+ }
@@ -31,7 +31,7 @@
31
31
  --duration-base: 250ms;
32
32
  --duration-slow: 700ms;
33
33
  --duration-draw: 900ms;
34
- --font: 'IBM Plex Sans Variable', 'IBM Plex Sans', 'IBM Plex Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif; /** 'IBM Plex Sans Variable' is the Fontsource name of the variable font (fonts.css); 'IBM Plex Sans' covers projects that load Plex another way. */
34
+ --font: 'IBM Plex Sans Variable', 'IBM Plex Sans', 'IBM Plex Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif; /** 'IBM Plex Sans Variable' is the family name of the variable font in fonts.css (same as Fontsource); 'IBM Plex Sans' covers projects that load Plex another way. */
35
35
  --mono: 'IBM Plex Mono', 'IBM Plex Mono Fallback', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
36
36
  --weight-light: 300;
37
37
  --weight-regular: 400;
@@ -65,7 +65,7 @@
65
65
  --prim-navy-900: #0a1220;
66
66
  --prim-navy-950: #06101d;
67
67
  --prim-slate-100: #dbe6f5;
68
- --prim-slate-400: #8ea3bf;
68
+ --prim-slate-400: #91a6c2;
69
69
  --prim-blue-300: #78c2ff;
70
70
  --prim-amber-300: #f2b45e;
71
71
  --prim-white: #ffffff;
@@ -0,0 +1,93 @@
1
+ Copyright 2019 IBM Corp. All rights reserved. IBMPlexSans-Italic[wdth,wght].ttf: Copyright 2019 IBM Corp. All rights reserved.
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,27 @@
1
+ {
2
+ "color": {
3
+ "bg": "#f5f8fc",
4
+ "surface": "#ffffff",
5
+ "text": "#0d1829",
6
+ "muted": "#3d5170",
7
+ "line": "#d5deea",
8
+ "line-strong": "#72859f",
9
+ "line-hover": "#c19a6b",
10
+ "accent": "#08467f",
11
+ "accent-ink": "#ffffff",
12
+ "accent-subtle": "rgba(8, 70, 127, 0.08)",
13
+ "highlight": "#7a4300",
14
+ "focus": "#08467f",
15
+ "selection": "rgba(8, 70, 127, 0.18)",
16
+ "selection-text": "#0d1829",
17
+ "header-bg": "rgba(245, 248, 252, 0.88)",
18
+ "grid": "rgba(8, 70, 127, 0.06)",
19
+ "grid-major": "rgba(8, 70, 127, 0.1)",
20
+ "grid-dot": "rgba(8, 70, 127, 0.4)",
21
+ "lamp-grid": "rgba(8, 70, 127, 0.12)",
22
+ "lamp-grid-major": "rgba(8, 70, 127, 0.18)",
23
+ "lamp-glow": "rgba(8, 70, 127, 0.03)",
24
+ "shadow": "rgba(13, 24, 41, 0.15)",
25
+ "glow": "rgba(8, 70, 127, 0.08)"
26
+ }
27
+ }
@@ -64,7 +64,7 @@ export const motionDurationFast: string;
64
64
  export const motionDurationBase: string;
65
65
  export const motionDurationSlow: string;
66
66
  export const motionDurationDraw: string;
67
- /** 'IBM Plex Sans Variable' is the Fontsource name of the variable font (fonts.css); 'IBM Plex Sans' covers projects that load Plex another way. */
67
+ /** 'IBM Plex Sans Variable' is the family name of the variable font in fonts.css (same as Fontsource); 'IBM Plex Sans' covers projects that load Plex another way. */
68
68
  export const fontFamilySans: string;
69
69
  export const fontFamilyMono: string;
70
70
  export const fontWeightLight: number;
@@ -6,7 +6,7 @@
6
6
  export const colorBg = "#0a1220";
7
7
  export const colorSurface = "#0d1829";
8
8
  export const colorText = "#dbe6f5";
9
- export const colorMuted = "#8ea3bf";
9
+ export const colorMuted = "#91a6c2";
10
10
  export const colorLine = "#1f3350"; // Decorative lines only (1.47:1 on bg).
11
11
  export const colorLineStrong = "#4d6a8f"; // Borders of interactive elements, >=3:1 on bg and surface (WCAG 1.4.11).
12
12
  export const colorLineHover = "#7e6d56";
@@ -56,7 +56,7 @@ export const motionDurationBase = "250ms";
56
56
  export const motionDurationSlow = "700ms";
57
57
  export const motionDurationDraw = "900ms";
58
58
  export const fontFamilySans =
59
- "'IBM Plex Sans Variable', 'IBM Plex Sans', 'IBM Plex Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif"; // 'IBM Plex Sans Variable' is the Fontsource name of the variable font (fonts.css); 'IBM Plex Sans' covers projects that load Plex another way.
59
+ "'IBM Plex Sans Variable', 'IBM Plex Sans', 'IBM Plex Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif"; // 'IBM Plex Sans Variable' is the family name of the variable font in fonts.css (same as Fontsource); 'IBM Plex Sans' covers projects that load Plex another way.
60
60
  export const fontFamilyMono =
61
61
  "'IBM Plex Mono', 'IBM Plex Mono Fallback', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
62
62
  export const fontWeightLight = 300;
@@ -91,7 +91,7 @@ export const primitiveColorNavy850 = "#0d1829";
91
91
  export const primitiveColorNavy900 = "#0a1220";
92
92
  export const primitiveColorNavy950 = "#06101d";
93
93
  export const primitiveColorSlate100 = "#dbe6f5";
94
- export const primitiveColorSlate400 = "#8ea3bf";
94
+ export const primitiveColorSlate400 = "#91a6c2";
95
95
  export const primitiveColorBlue300 = "#78c2ff";
96
96
  export const primitiveColorAmber300 = "#f2b45e";
97
97
  export const primitiveColorWhite = "#ffffff";
@@ -3,7 +3,7 @@
3
3
  "bg": "#0a1220",
4
4
  "surface": "#0d1829",
5
5
  "text": "#dbe6f5",
6
- "muted": "#8ea3bf",
6
+ "muted": "#91a6c2",
7
7
  "line": "#1f3350",
8
8
  "line-strong": "#4d6a8f",
9
9
  "line-hover": "#7e6d56",
@@ -120,7 +120,7 @@
120
120
  },
121
121
  "slate": {
122
122
  "100": "#dbe6f5",
123
- "400": "#8ea3bf"
123
+ "400": "#91a6c2"
124
124
  },
125
125
  "blue": {
126
126
  "300": "#78c2ff"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bereg-ds",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Bereg DS: the Engineering Blueprint design system by Konstantin Beregovoy. Design tokens, CSS components and React components.",
5
5
  "license": "MIT",
6
6
  "author": "Konstantin Beregovoy (https://bereg.dev)",
@@ -34,16 +34,19 @@
34
34
  "exports": {
35
35
  ".": "./dist/css/bereg-ds.css",
36
36
  "./fonts.css": "./dist/css/fonts.css",
37
+ "./fonts/*": "./dist/fonts/*",
37
38
  "./tokens.css": "./dist/css/tokens.css",
38
39
  "./base.css": "./dist/css/base.css",
39
40
  "./components.css": "./dist/css/components.css",
40
41
  "./hdr.css": "./dist/css/hdr.css",
42
+ "./theme-light.css": "./dist/css/theme-light.css",
41
43
  "./bereg-ds.css": "./dist/css/bereg-ds.css",
42
44
  "./tokens": {
43
45
  "types": "./dist/tokens/tokens.d.ts",
44
46
  "default": "./dist/tokens/tokens.js"
45
47
  },
46
48
  "./tokens.json": "./dist/tokens/tokens.json",
49
+ "./tokens-light.json": "./dist/tokens/tokens-light.json",
47
50
  "./react": {
48
51
  "types": "./dist/react/index.d.ts",
49
52
  "default": "./dist/react/index.js"
@@ -51,6 +54,7 @@
51
54
  "./package.json": "./package.json"
52
55
  },
53
56
  "scripts": {
57
+ "build:fonts": "python3 scripts/build-fonts.py",
54
58
  "build:tokens": "node scripts/build-tokens.mjs",
55
59
  "build:css": "node scripts/build-css.mjs",
56
60
  "build:react": "tsup",
@@ -58,13 +62,9 @@
58
62
  "test": "vitest run",
59
63
  "typecheck": "tsc --noEmit",
60
64
  "storybook": "storybook dev -p 6006",
61
- "build-storybook": "npm run build && storybook build -o storybook-static",
65
+ "build-storybook": "npm run build && storybook build -o storybook-static && node scripts/seo-head.mjs",
62
66
  "prepublishOnly": "npm run build && npm test"
63
67
  },
64
- "dependencies": {
65
- "@fontsource-variable/ibm-plex-sans": "^5.3.0",
66
- "@fontsource/ibm-plex-mono": "^5.3.0"
67
- },
68
68
  "peerDependencies": {
69
69
  "react": ">=18"
70
70
  },
@@ -77,24 +77,26 @@
77
77
  "node": ">=20"
78
78
  },
79
79
  "devDependencies": {
80
- "@storybook/addon-a11y": "10.6.7",
81
- "@storybook/addon-docs": "10.6.7",
82
- "@storybook/react-vite": "10.6.7",
83
- "@testing-library/jest-dom": "7.0.1",
84
- "@testing-library/react": "16.3.3",
85
- "@types/node": "26.6.6",
86
- "@types/react": "19.3.0",
87
- "@types/react-dom": "19.3.0",
88
- "@vitejs/plugin-react": "6.3.0",
89
- "jsdom": "31.0.1",
90
- "lightningcss": "1.33.0",
91
- "react": "19.3.1",
92
- "react-dom": "19.3.1",
93
- "storybook": "10.6.7",
94
- "style-dictionary": "5.8.0",
95
- "tsup": "9.0.0",
96
- "typescript": "6.0.3",
97
- "vite": "8.3.8",
98
- "vitest": "5.1.0"
80
+ "@fontsource-variable/ibm-plex-sans": "^5.3.0",
81
+ "@fontsource/ibm-plex-mono": "^5.3.0",
82
+ "@storybook/addon-a11y": "^10.6.7",
83
+ "@storybook/addon-docs": "^10.6.7",
84
+ "@storybook/react-vite": "^10.6.7",
85
+ "@testing-library/jest-dom": "^7.0.1",
86
+ "@testing-library/react": "^16.3.3",
87
+ "@types/node": "^26.6.6",
88
+ "@types/react": "^19.3.0",
89
+ "@types/react-dom": "^19.3.0",
90
+ "@vitejs/plugin-react": "^6.3.0",
91
+ "jsdom": "^31.0.1",
92
+ "lightningcss": "^1.33.0",
93
+ "react": "^19.3.1",
94
+ "react-dom": "^19.3.1",
95
+ "storybook": "^10.6.7",
96
+ "style-dictionary": "^5.8.0",
97
+ "tsup": "^9.0.0",
98
+ "typescript": "^6.0.3",
99
+ "vite": "^8.3.8",
100
+ "vitest": "^5.1.0"
99
101
  }
100
102
  }
package/tokens/font.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "css": "font"
18
18
  }
19
19
  },
20
- "$description": "'IBM Plex Sans Variable' is the Fontsource name of the variable font (fonts.css); 'IBM Plex Sans' covers projects that load Plex another way."
20
+ "$description": "'IBM Plex Sans Variable' is the family name of the variable font in fonts.css (same as Fontsource); 'IBM Plex Sans' covers projects that load Plex another way."
21
21
  },
22
22
  "mono": {
23
23
  "$value": [
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "slate": {
49
49
  "400": {
50
- "$value": "#8ea3bf",
50
+ "$value": "#91a6c2",
51
51
  "$extensions": {
52
52
  "bds": {
53
53
  "css": "prim-slate-400"
@@ -0,0 +1,193 @@
1
+ {
2
+ "color": {
3
+ "$type": "color",
4
+ "bg": {
5
+ "$value": "{primitive.light.paper}",
6
+ "$extensions": {
7
+ "bds": {
8
+ "css": "bg"
9
+ }
10
+ }
11
+ },
12
+ "surface": {
13
+ "$value": "{primitive.color.white}",
14
+ "$extensions": {
15
+ "bds": {
16
+ "css": "surface"
17
+ }
18
+ }
19
+ },
20
+ "text": {
21
+ "$value": "{primitive.color.navy.850}",
22
+ "$extensions": {
23
+ "bds": {
24
+ "css": "text"
25
+ }
26
+ }
27
+ },
28
+ "muted": {
29
+ "$value": "{primitive.light.slate-700}",
30
+ "$extensions": {
31
+ "bds": {
32
+ "css": "muted"
33
+ }
34
+ }
35
+ },
36
+ "line": {
37
+ "$value": "{primitive.light.line}",
38
+ "$extensions": {
39
+ "bds": {
40
+ "css": "line"
41
+ }
42
+ },
43
+ "$description": "Decorative lines only."
44
+ },
45
+ "line-strong": {
46
+ "$value": "{primitive.light.line-strong}",
47
+ "$extensions": {
48
+ "bds": {
49
+ "css": "line-strong"
50
+ }
51
+ },
52
+ "$description": "Borders of interactive elements, >=3:1 on bg and surface (WCAG 1.4.11)."
53
+ },
54
+ "line-hover": {
55
+ "$value": "{primitive.light.mix-amber-line}",
56
+ "$extensions": {
57
+ "bds": {
58
+ "css": "line-hover"
59
+ }
60
+ }
61
+ },
62
+ "accent": {
63
+ "$value": "{primitive.light.blue-700}",
64
+ "$extensions": {
65
+ "bds": {
66
+ "css": "accent"
67
+ }
68
+ },
69
+ "$description": "Links, primary actions, focus."
70
+ },
71
+ "accent-ink": {
72
+ "$value": "{primitive.color.white}",
73
+ "$extensions": {
74
+ "bds": {
75
+ "css": "accent-ink"
76
+ }
77
+ }
78
+ },
79
+ "accent-subtle": {
80
+ "$value": "{primitive.light.alpha.blue-700-8}",
81
+ "$extensions": {
82
+ "bds": {
83
+ "css": "accent-subtle"
84
+ }
85
+ }
86
+ },
87
+ "highlight": {
88
+ "$value": "{primitive.light.amber-800}",
89
+ "$extensions": {
90
+ "bds": {
91
+ "css": "highlight"
92
+ }
93
+ },
94
+ "$description": "Hover of primary actions, section numbers, current filter."
95
+ },
96
+ "focus": {
97
+ "$value": "{primitive.light.blue-700}",
98
+ "$extensions": {
99
+ "bds": {
100
+ "css": "focus"
101
+ }
102
+ }
103
+ },
104
+ "selection": {
105
+ "$value": "{primitive.light.alpha.blue-700-18}",
106
+ "$extensions": {
107
+ "bds": {
108
+ "css": "selection"
109
+ }
110
+ }
111
+ },
112
+ "selection-text": {
113
+ "$value": "{primitive.color.navy.850}",
114
+ "$extensions": {
115
+ "bds": {
116
+ "css": "selection-text"
117
+ }
118
+ }
119
+ },
120
+ "header-bg": {
121
+ "$value": "{primitive.light.alpha.paper-88}",
122
+ "$extensions": {
123
+ "bds": {
124
+ "css": "header-bg"
125
+ }
126
+ }
127
+ },
128
+ "grid": {
129
+ "$value": "{primitive.light.alpha.blue-700-6}",
130
+ "$extensions": {
131
+ "bds": {
132
+ "css": "grid"
133
+ }
134
+ }
135
+ },
136
+ "grid-major": {
137
+ "$value": "{primitive.light.alpha.blue-700-10}",
138
+ "$extensions": {
139
+ "bds": {
140
+ "css": "grid-major"
141
+ }
142
+ }
143
+ },
144
+ "grid-dot": {
145
+ "$value": "{primitive.light.alpha.blue-700-40}",
146
+ "$extensions": {
147
+ "bds": {
148
+ "css": "grid-dot"
149
+ }
150
+ }
151
+ },
152
+ "lamp-grid": {
153
+ "$value": "{primitive.light.alpha.blue-700-12}",
154
+ "$extensions": {
155
+ "bds": {
156
+ "css": "lamp-grid"
157
+ }
158
+ }
159
+ },
160
+ "lamp-grid-major": {
161
+ "$value": "{primitive.light.alpha.blue-700-18}",
162
+ "$extensions": {
163
+ "bds": {
164
+ "css": "lamp-grid-major"
165
+ }
166
+ }
167
+ },
168
+ "lamp-glow": {
169
+ "$value": "{primitive.light.alpha.blue-700-3}",
170
+ "$extensions": {
171
+ "bds": {
172
+ "css": "lamp-glow"
173
+ }
174
+ }
175
+ },
176
+ "shadow": {
177
+ "$value": "{primitive.light.alpha.navy-850-15}",
178
+ "$extensions": {
179
+ "bds": {
180
+ "css": "shadow-color"
181
+ }
182
+ }
183
+ },
184
+ "glow": {
185
+ "$value": "{primitive.light.alpha.blue-700-8}",
186
+ "$extensions": {
187
+ "bds": {
188
+ "css": "glow-color"
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
@@ -0,0 +1,138 @@
1
+ {
2
+ "primitive": {
3
+ "light": {
4
+ "$type": "color",
5
+ "$description": "Light theme palette. Ships only in theme-light.css.",
6
+ "paper": {
7
+ "$value": "#f5f8fc",
8
+ "$extensions": {
9
+ "bds": {
10
+ "css": "prim-light-paper"
11
+ }
12
+ }
13
+ },
14
+ "slate-700": {
15
+ "$value": "#3d5170",
16
+ "$extensions": {
17
+ "bds": {
18
+ "css": "prim-light-slate-700"
19
+ }
20
+ }
21
+ },
22
+ "blue-700": {
23
+ "$value": "#08467f",
24
+ "$extensions": {
25
+ "bds": {
26
+ "css": "prim-light-blue-700"
27
+ }
28
+ }
29
+ },
30
+ "amber-800": {
31
+ "$value": "#7a4300",
32
+ "$extensions": {
33
+ "bds": {
34
+ "css": "prim-light-amber-800"
35
+ }
36
+ }
37
+ },
38
+ "line": {
39
+ "$value": "#d5deea",
40
+ "$extensions": {
41
+ "bds": {
42
+ "css": "prim-light-line"
43
+ }
44
+ }
45
+ },
46
+ "line-strong": {
47
+ "$value": "#72859f",
48
+ "$extensions": {
49
+ "bds": {
50
+ "css": "prim-light-line-strong"
51
+ }
52
+ }
53
+ },
54
+ "mix-amber-line": {
55
+ "$value": "#c19a6b",
56
+ "$extensions": {
57
+ "bds": {
58
+ "css": "prim-light-mix-amber-line"
59
+ }
60
+ }
61
+ },
62
+ "alpha": {
63
+ "blue-700-3": {
64
+ "$value": "#08467f08",
65
+ "$extensions": {
66
+ "bds": {
67
+ "css": "prim-light-alpha-blue-700-3"
68
+ }
69
+ }
70
+ },
71
+ "blue-700-6": {
72
+ "$value": "#08467f0f",
73
+ "$extensions": {
74
+ "bds": {
75
+ "css": "prim-light-alpha-blue-700-6"
76
+ }
77
+ }
78
+ },
79
+ "blue-700-8": {
80
+ "$value": "#08467f14",
81
+ "$extensions": {
82
+ "bds": {
83
+ "css": "prim-light-alpha-blue-700-8"
84
+ }
85
+ }
86
+ },
87
+ "blue-700-10": {
88
+ "$value": "#08467f1a",
89
+ "$extensions": {
90
+ "bds": {
91
+ "css": "prim-light-alpha-blue-700-10"
92
+ }
93
+ }
94
+ },
95
+ "blue-700-12": {
96
+ "$value": "#08467f1f",
97
+ "$extensions": {
98
+ "bds": {
99
+ "css": "prim-light-alpha-blue-700-12"
100
+ }
101
+ }
102
+ },
103
+ "blue-700-18": {
104
+ "$value": "#08467f2e",
105
+ "$extensions": {
106
+ "bds": {
107
+ "css": "prim-light-alpha-blue-700-18"
108
+ }
109
+ }
110
+ },
111
+ "blue-700-40": {
112
+ "$value": "#08467f66",
113
+ "$extensions": {
114
+ "bds": {
115
+ "css": "prim-light-alpha-blue-700-40"
116
+ }
117
+ }
118
+ },
119
+ "navy-850-15": {
120
+ "$value": "#0d182926",
121
+ "$extensions": {
122
+ "bds": {
123
+ "css": "prim-light-alpha-navy-850-15"
124
+ }
125
+ }
126
+ },
127
+ "paper-88": {
128
+ "$value": "#f5f8fce0",
129
+ "$extensions": {
130
+ "bds": {
131
+ "css": "prim-light-alpha-paper-88"
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }