@atomic-ui/theme 0.5.0 → 0.6.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/README.md CHANGED
@@ -10,7 +10,7 @@ The design follows Strata, Impakt's most carefully designed product, and the Imp
10
10
 
11
11
  The stylesheet is generated, so do not edit `dist/theme.css`. `pnpm build` runs `scripts/build.ts`, which does five things.
12
12
 
13
- 1. It takes the Impakt brand inputs in `src/brand.ts`. They are the same values as the `BRAND` block in impkt-web's `content.py`, which gives the Impakt site its look in Strata.
13
+ 1. It takes the Impakt brand inputs in `src/brand.ts`. They are the same values as the `BRAND` block in impkt-web's `content.py`, which gives the Impakt site its look.
14
14
  2. It derives the house tokens from them with `deriveTokens` from `@atomic-ui/design-tokens`, and writes them as `--impakt-*` custom properties with that package's own emitter, `toStylesheet`.
15
15
  3. It defines each `--ik-*` name in `src/theme.ts`. Where a house token has the same role and the same value, the name is defined as that token, for example `--ik-brand: var(--impakt-color-brand-default)`. The site and the products then follow one source. Where there is no house token for the role, or the derived value differs from the value the products were tuned to, the name keeps its 1.0.0 value, and `src/theme.ts` says why beside it. The dark theme keeps its 1.0.0 values, because the brand inputs describe a light brand only.
16
16
  4. It gives the house tokens the components read the products' values, in light and in dark, from `COMPONENT_TOKENS` in `src/theme.ts`, so an `@atomic-ui/ui` component on a product page looks like the product around it. Only literal values are written there, never a reference to a `--ik-*` name, because several of those names are defined by the same tokens and a reference back would empty both.
@@ -33,7 +33,7 @@ The component styles in `src/components.css` are the 1.0.0 rules, unchanged. The
33
33
 
34
34
  ```html
35
35
  <header class="ik-header">
36
- <a class="ik-brand" href="/"><span class="ik-mark" aria-hidden="true"></span><span><b>Impakt</b> <span class="ik-product">Tender</span></span></a>
36
+ <a class="ik-brand" href="/"><span><b>Impakt</b> <span class="ik-product">Tender</span></span></a>
37
37
  <!-- the product's own navigation and session controls -->
38
38
  </header>
39
39
  ```
@@ -90,7 +90,7 @@ These are taken from the design tokens (`@atomic-ui/design-tokens`) and the comp
90
90
 
91
91
  ## Components
92
92
 
93
- - **Header.** `.ik-header` holds `.ik-brand`, the orb mark and the words "Impakt" and the product name, on one row at every width. Add `.ik-sticky` to keep it at the top while scrolling.
93
+ - **Header.** `.ik-header` holds `.ik-brand`, the words "Impakt" and the product name, on one row at every width. Add `.ik-sticky` to keep it at the top while scrolling.
94
94
  - **Buttons.** Solid plum for the one main action (`primary`), an outline on the card for the rest, words only for a quiet action (`ghost`), and red words for a destructive one (`danger`). Disabled and busy change the cursor and the opacity, never the size or position.
95
95
  - **Fields.** A card-coloured box with a 3:1 border, 44px tall. Focus draws the ring and a soft plum halo. An error thickens the border and turns it red, and the message below says it in words. `.ik-field` stacks a label, a field and an `.ik-hint`.
96
96
  - **Tabs.** A white pill bar with the chosen tab in lilac. It stays one row at every width and scrolls sideways when the labels do not fit.
package/dist/index.html CHANGED
@@ -21,7 +21,7 @@
21
21
  <body>
22
22
  <a class="ik-skip" href="#main">Skip to the content</a>
23
23
  <header class="ik-header">
24
- <a class="ik-brand" href="./"><span class="ik-mark" aria-hidden="true"></span><span><b>Impakt</b> <span class="ik-product">Specimen</span></span></a>
24
+ <a class="ik-brand" href="./"><span><b>Impakt</b> <span class="ik-product">Specimen</span></span></a>
25
25
  <div class="row">
26
26
  <label for="theme" class="ik-sr-only">Theme</label>
27
27
  <select id="theme" style="min-height:36px;padding:4px 10px">
package/dist/theme.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Impakt product theme, @atomic-ui/theme version 0.5.0.
2
+ * Impakt product theme, @atomic-ui/theme version 0.6.0.
3
3
  * https://github.com/matthill8286/impkt-design-system/tree/main/packages/theme
4
4
  *
5
5
  * Generated from the Impakt brand inputs by @atomic-ui/design-tokens. Do not edit this file:
@@ -594,16 +594,11 @@ body {
594
594
  .ik-brand:hover { color: var(--ik-ink); }
595
595
  .ik-brand b, .ik-brand strong { font-weight: 700; }
596
596
  .ik-brand .ik-product { font-weight: 500; }
597
- /* The orb: a plum ring round a glowing gold core, as on weareimpakt.com. */
598
- .ik-mark { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ik-brand); }
599
- .ik-mark::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ik-gold-deep); box-shadow: 0 0 10px 2px rgb(242 217 106 / 0.8); }
600
597
  /* A product whose own controls do not stick to the top can keep the header in view. */
601
598
  .ik-header.ik-sticky { position: sticky; top: 0; }
602
599
  @media (max-width: 640px) {
603
600
  .ik-header { min-height: 56px; gap: var(--ik-space-2); }
604
601
  .ik-brand { font-size: var(--ik-text-md); gap: 8px; }
605
- .ik-mark { width: 22px; height: 22px; }
606
- .ik-mark::after { width: 10px; height: 10px; }
607
602
  }
608
603
 
609
604
  /* -------------------------------------------------------------- buttons */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-ui/theme",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "The Impakt product theme: one stylesheet and the Urbanist fonts for the plain HTML products, generated from the Impakt brand by @atomic-ui/design-tokens.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "tsx": "^4.16.0",
22
22
  "typescript": "^5.5.0",
23
23
  "vitest": "^2.0.0",
24
- "@atomic-ui/design-tokens": "^0.5.0"
24
+ "@atomic-ui/design-tokens": "^0.6.0"
25
25
  },
26
26
  "files": [
27
27
  "dist",