@atomic-ui/theme 0.2.0 → 0.5.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 +35 -14
- package/dist/index.html +48 -3
- package/dist/theme.css +504 -226
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Impakt product theme
|
|
2
2
|
|
|
3
|
-
This is the shared look for
|
|
3
|
+
This is the shared look for Impakt's AI tools: Accessibility, Subject Access, Tender, Deposit, Short-let, Brief and Teardown. It is one stylesheet, `theme.css`, with the Urbanist font beside it in `fonts/`. Each product copies both into its own `public` folder, so there is nothing to build in the product and nothing loads from another site. `specimen/index.html` is a specimen page that shows every part of the theme in one place, and the build puts a copy of it beside the stylesheet as `dist/index.html`.
|
|
4
4
|
|
|
5
5
|
This package replaces the hand-written `impkt-product-theme` repository. Version 0.2.0 is a drop-in replacement for its version 1.0.0: it defines the same `--ik-*` names and styles the same class names.
|
|
6
6
|
|
|
7
|
-
The design follows Strata,
|
|
7
|
+
The design follows Strata, Impakt's most carefully designed product, and the Impakt brand as used on weareimpakt.com: warm paper, plum, gold, lilac boards and Urbanist type.
|
|
8
8
|
|
|
9
9
|
## How it is built
|
|
10
10
|
|
|
11
|
-
The stylesheet is generated, so do not edit `dist/theme.css`. `pnpm build` runs `scripts/build.ts`, which does
|
|
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
|
|
14
|
-
2. It derives the house tokens from them with `deriveTokens` from `@atomic-ui/design-tokens`, and writes them as `--
|
|
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(--
|
|
16
|
-
4. It
|
|
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.
|
|
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
|
+
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
|
+
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.
|
|
17
|
+
5. It measures every contrast pair in `src/contrast.ts` in both themes, and stops if any falls below WCAG 2.2 AA. Then it writes `dist/theme.css`, copies the fonts and their licence into `dist/fonts`, and copies the specimen page.
|
|
17
18
|
|
|
18
19
|
The component styles in `src/components.css` are the 1.0.0 rules, unchanged. The tests check that every `--ik-*` name and every class name from 1.0.0 is still there, that the component styles and dark values are unchanged, and that every name defined by a token comes to its 1.0.0 value.
|
|
19
20
|
|
|
20
21
|
## How to use it
|
|
21
22
|
|
|
22
23
|
1. Build the design system with `pnpm build` at the root of the repository.
|
|
23
|
-
2. Copy the theme into the product with `pnpm theme:copy ../impkt-tender`, naming the product's folder. This copies `theme.css` and the `fonts` folder into the product's `public` folder, and writes the theme's version and the design system's commit on the first line of the copy, so it can be updated later. A second argument names a different folder from `public`. A product that installs `@atomic-ui/theme` from the registry can run the same script as `npx
|
|
24
|
+
2. Copy the theme into the product with `pnpm theme:copy ../impkt-tender`, naming the product's folder. This copies `theme.css` and the `fonts` folder into the product's `public` folder, and writes the theme's version and the design system's commit on the first line of the copy, so it can be updated later. A second argument names a different folder from `public`. A product that installs `@atomic-ui/theme` from the registry can run the same script as `npx impakt-theme-copy . public`.
|
|
24
25
|
3. Serve `/theme.css` and `/fonts/urbanist-400.ttf`, `-500`, `-600` and `-700` from the product's server, from the same origin as the page.
|
|
25
26
|
4. Link the stylesheet in the page head, before the product's own inline styles:
|
|
26
27
|
|
|
@@ -28,24 +29,44 @@ The component styles in `src/components.css` are the 1.0.0 rules, unchanged. The
|
|
|
28
29
|
<link rel="stylesheet" href="/theme.css">
|
|
29
30
|
```
|
|
30
31
|
|
|
31
|
-
5. Give the header the
|
|
32
|
+
5. Give the header the Impakt mark and the product name:
|
|
32
33
|
|
|
33
34
|
```html
|
|
34
35
|
<header class="ik-header">
|
|
35
|
-
<a class="ik-brand" href="/"><span class="ik-mark" aria-hidden="true"></span><span><b>
|
|
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
37
|
<!-- the product's own navigation and session controls -->
|
|
37
38
|
</header>
|
|
38
39
|
```
|
|
39
40
|
|
|
40
41
|
6. Keep only the product's own CSS inline. Point the product's colour names at the theme's tokens, for example `--accent: var(--ik-brand)`, so existing rules pick up the theme in both light and dark.
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
7. To use the components as well, copy them with `pnpm ui:copy ../impkt-tender` and load them after the stylesheet with `<script type="module" src="/atomic-ui.js"></script>`. The theme already holds their tokens, so they take the Impakt look and follow the theme into dark. The `@atomic-ui/ui` README describes the standalone file, and its `specimen/index.html` shows the app components on a product page.
|
|
44
|
+
|
|
45
|
+
Every product token starts with `--ik-` and every new class with `.ik-`, so nothing collides with a product's own names. The house tokens they are built from start with `--impakt-`, and a product can read those too. The theme also styles the class names the products already share: `card`, `panel`, `pill` with `ok`, `warn`, `bad` and `info`, `alert` with the same tones, `tabs` with `on`, `muted`, `small` and `row`, and the `primary`, `ghost`, `danger` and `small` buttons. Element rules sit inside `:where()`, so they have no specificity and a product's own rule always wins.
|
|
46
|
+
|
|
47
|
+
## Product patterns
|
|
48
|
+
|
|
49
|
+
Version 0.4.0 adds the patterns a paying customer needs to find their way through a tool on their own. Each is a class on plain markup, and the specimen page shows them all.
|
|
50
|
+
|
|
51
|
+
| Pattern | Use it for |
|
|
52
|
+
| --- | --- |
|
|
53
|
+
| `.ik-main` (`.narrow`, `.wide`) | The main column of every screen |
|
|
54
|
+
| `.ik-page-head`, `.ik-back`, `.ik-facts` | The top of a detail page: where to go back to, what this is, its status and the main action |
|
|
55
|
+
| `.ik-steps`, `.ik-step-hint` | A job with stages, such as evidence, claims and pack. Use it in place of `.tabs` when the order matters |
|
|
56
|
+
| `.ik-empty` | Any list or screen before it has content. Always offer the next action, and sample data where there is some |
|
|
57
|
+
| `.ik-drop`, `.ik-files` | Every file upload |
|
|
58
|
+
| `.ik-progress`, `.ik-spinner` | Any step that waits for a model |
|
|
59
|
+
| `.ik-prose`, `.ik-quote`, `.ik-source` | Anything the model wrote, and the source it quotes |
|
|
60
|
+
| `.ik-summary`, `.ik-stat`, `.ik-meter` | The numbers a screen is about, and usage against a limit |
|
|
61
|
+
| `.ik-split`, `.ik-side` | A review queue beside the item being reviewed |
|
|
62
|
+
| `.ik-account`, `.ik-avatar` | The account menu with the plan, usage and billing |
|
|
63
|
+
| `.ik-toolbar`, `.ik-sep` | A row of actions with one primary action |
|
|
43
64
|
|
|
44
65
|
## Principles
|
|
45
66
|
|
|
46
67
|
These are taken from the design tokens (`@atomic-ui/design-tokens`) and the component library (`@atomic-ui/ui`) in this repository, and from Strata's CMS, which uses both.
|
|
47
68
|
|
|
48
|
-
**A few inputs, many derived values.** A brand sets about twenty values and `@atomic-ui/design-tokens` derives the rest. The theme is built the same way: it starts from the
|
|
69
|
+
**A few inputs, many derived values.** A brand sets about twenty values and `@atomic-ui/design-tokens` derives the rest. The theme is built the same way: it starts from the Impakt brand inputs, and every state is a tone of one of a small set of roles. Hover and pressed are darker tones of the action colour, because a lighter hover on a light surface reads as disabled.
|
|
49
70
|
|
|
50
71
|
**Colours are roles, not hex values.** Surfaces are page, card, inset, subtle and board. Text is ink and muted ink. Lines are a hairline for decoration and a border for controls. Plum is the one action colour. Gold is a fill and a glow and is never used for text, because it cannot carry text on a light surface. Danger, warning, success and information each have three values: one for lines and icons at 3:1, one for text at 4.5:1, and a tint to sit behind them. Strata keeps these apart because the yellow that is fine as an icon is not fine as text.
|
|
51
72
|
|
|
@@ -69,7 +90,7 @@ These are taken from the design tokens (`@atomic-ui/design-tokens`) and the comp
|
|
|
69
90
|
|
|
70
91
|
## Components
|
|
71
92
|
|
|
72
|
-
- **Header.** `.ik-header` holds `.ik-brand`, the orb mark and the words "
|
|
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.
|
|
73
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.
|
|
74
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`.
|
|
75
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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title>
|
|
6
|
+
<title>Impakt product theme</title>
|
|
7
7
|
<link rel="stylesheet" href="theme.css">
|
|
8
8
|
<style>
|
|
9
9
|
main { max-width: 960px; margin: 0 auto; padding: var(--ik-space-6) var(--ik-gutter) var(--ik-space-12); }
|
|
@@ -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>
|
|
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>
|
|
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">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</header>
|
|
34
34
|
|
|
35
35
|
<main id="main">
|
|
36
|
-
<h1>
|
|
36
|
+
<h1>Impakt product theme</h1>
|
|
37
37
|
<p class="lede">Every part of the shared look on one page. Change the theme at the top to see the dark version, and narrow the window to see the phone layout.</p>
|
|
38
38
|
|
|
39
39
|
<section aria-labelledby="h-colour">
|
|
@@ -136,6 +136,51 @@
|
|
|
136
136
|
<div class="card" style="margin:0">A lilac board holds a group of cards, as the presentation boards do on weareimpakt.com.</div>
|
|
137
137
|
</div>
|
|
138
138
|
</section>
|
|
139
|
+
<section aria-labelledby="h-patterns">
|
|
140
|
+
<h2 id="h-patterns">Product patterns</h2>
|
|
141
|
+
<div class="ik-page-head">
|
|
142
|
+
<div>
|
|
143
|
+
<a class="ik-back" href="#">Disputes</a>
|
|
144
|
+
<h1>Flat 3, 10 Park Road</h1>
|
|
145
|
+
<ul class="ik-facts"><li><strong>Sam Lee</strong></li><li>1 Sept 2024 to 31 Aug 2026</li><li>TDS</li></ul>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="ik-actions"><span class="pill warn">2 claims to review</span><button class="primary">Build the pack</button></div>
|
|
148
|
+
</div>
|
|
149
|
+
<ol class="ik-steps">
|
|
150
|
+
<li class="done"><button>Evidence<span class="ik-step-hint">7 files</span></button></li>
|
|
151
|
+
<li class="done"><button>Items and photos<span class="ik-step-hint">5 items paired</span></button></li>
|
|
152
|
+
<li><button aria-current="step">Claims<span class="ik-step-hint">2 to review</span></button></li>
|
|
153
|
+
<li><button disabled>Pack<span class="ik-step-hint">After the claims</span></button></li>
|
|
154
|
+
</ol>
|
|
155
|
+
<div class="ik-summary">
|
|
156
|
+
<div class="ik-stat"><span class="ik-stat-label">Claimed</span><span class="ik-stat-value">£290.00</span><span class="ik-stat-note">of a £1,800 deposit</span></div>
|
|
157
|
+
<div class="ik-stat ok"><span class="ik-stat-label">Strong claims</span><span class="ik-stat-value">1</span><span class="ik-stat-note">Evidence on both visits</span></div>
|
|
158
|
+
<div class="ik-stat warn"><span class="ik-stat-label">Weak claims</span><span class="ik-stat-value">1</span><span class="ik-stat-note">No invoice or quote</span></div>
|
|
159
|
+
</div>
|
|
160
|
+
<div class="card">
|
|
161
|
+
<label class="ik-drop"><input type="file" multiple><strong>Drop the check-out photos here</strong><span class="ik-hint">or choose files. JPG, PNG or HEIC, up to 15 MB each.</span></label>
|
|
162
|
+
<ul class="ik-files">
|
|
163
|
+
<li><span class="ik-file-name">lounge-carpet-checkout.jpg</span><span class="pill ok">Read</span><button class="small ghost">Remove</button></li>
|
|
164
|
+
<li><span class="ik-file-name">kitchen-oven.jpg</span><span class="pill info"><span class="ik-spinner" aria-hidden="true"></span>Reading</span></li>
|
|
165
|
+
</ul>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="ik-progress" role="status">
|
|
168
|
+
<div class="ik-progress-label"><span>Comparing photos from both visits</span><span>3 of 8</span></div>
|
|
169
|
+
<progress max="8" value="3">3 of 8</progress>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="card ik-prose" style="margin-top:16px">
|
|
172
|
+
<p>A large red wine stain about 40cm across is a spill, not reasonable use. The check-in report and photo show the carpet clean and unmarked.</p>
|
|
173
|
+
<blockquote>"Lounge carpet: cream, clean throughout, no marks." <a class="ik-source" href="#">Check-in report, p. 2</a></blockquote>
|
|
174
|
+
<p>Fair share: 25% of £800 for a six-year-old carpet with an eight-year life.</p>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="ik-empty">
|
|
177
|
+
<h3>No requests yet</h3>
|
|
178
|
+
<p>Start a request when someone asks for their data. The one-month deadline is worked out for you.</p>
|
|
179
|
+
<div class="ik-toolbar"><button class="primary">Start a request</button><button>Try it with sample data</button></div>
|
|
180
|
+
</div>
|
|
181
|
+
<p class="small muted" style="margin-top:16px">Usage this month</p>
|
|
182
|
+
<span class="ik-meter warn" style="--ik-meter:82%" role="img" aria-label="82% of the plan used"><span></span></span>
|
|
183
|
+
</section>
|
|
139
184
|
</main>
|
|
140
185
|
<script>
|
|
141
186
|
const sel = document.getElementById('theme');
|
package/dist/theme.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Impakt product theme, @atomic-ui/theme version 0.5.0.
|
|
3
3
|
* https://github.com/matthill8286/impkt-design-system/tree/main/packages/theme
|
|
4
4
|
*
|
|
5
|
-
* Generated from the
|
|
5
|
+
* Generated from the Impakt brand inputs by @atomic-ui/design-tokens. Do not edit this file:
|
|
6
6
|
* change packages/theme in the design system and build it again.
|
|
7
7
|
*
|
|
8
8
|
* Copy this file and the fonts folder into a product's public folder, serve them from the same
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* specificity on purpose, so a product's own rules win without !important.
|
|
11
11
|
*
|
|
12
12
|
* Every product name starts with --ik- or .ik- so it never collides with a product's own names.
|
|
13
|
-
* The house tokens they are built from start with --
|
|
13
|
+
* The house tokens they are built from start with --impakt-. The shared class names that products
|
|
14
14
|
* already use (card, panel, pill, alert, tabs, muted, small, row) are styled here too, so a
|
|
15
15
|
* product gets the look by keeping its markup.
|
|
16
16
|
*/
|
|
@@ -24,220 +24,220 @@
|
|
|
24
24
|
|
|
25
25
|
/* ---------------------------------------------------------- house tokens */
|
|
26
26
|
|
|
27
|
-
/* The
|
|
27
|
+
/* The Impakt brand, derived by @atomic-ui/design-tokens and written by its own emitter. */
|
|
28
28
|
|
|
29
29
|
:root {
|
|
30
|
-
--
|
|
31
|
-
--
|
|
32
|
-
--
|
|
33
|
-
--
|
|
34
|
-
--
|
|
35
|
-
--
|
|
36
|
-
--
|
|
37
|
-
--
|
|
38
|
-
--
|
|
39
|
-
--
|
|
40
|
-
--
|
|
41
|
-
--
|
|
42
|
-
--
|
|
43
|
-
--
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
--
|
|
47
|
-
--
|
|
48
|
-
--
|
|
49
|
-
--
|
|
50
|
-
--
|
|
51
|
-
--
|
|
52
|
-
--
|
|
53
|
-
--
|
|
54
|
-
--
|
|
55
|
-
--
|
|
56
|
-
--
|
|
57
|
-
--
|
|
58
|
-
--
|
|
59
|
-
--
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
--
|
|
65
|
-
--
|
|
66
|
-
--
|
|
67
|
-
--
|
|
68
|
-
--
|
|
69
|
-
--
|
|
70
|
-
--
|
|
71
|
-
--
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--
|
|
75
|
-
--
|
|
76
|
-
--
|
|
77
|
-
--
|
|
78
|
-
--
|
|
79
|
-
--
|
|
80
|
-
--
|
|
81
|
-
--
|
|
82
|
-
--
|
|
83
|
-
--
|
|
84
|
-
--
|
|
85
|
-
--
|
|
86
|
-
--
|
|
87
|
-
--
|
|
88
|
-
--
|
|
89
|
-
--
|
|
90
|
-
--
|
|
91
|
-
--
|
|
92
|
-
--
|
|
93
|
-
--
|
|
94
|
-
--
|
|
95
|
-
--
|
|
96
|
-
--
|
|
97
|
-
--
|
|
98
|
-
--
|
|
99
|
-
--
|
|
100
|
-
--
|
|
101
|
-
--
|
|
102
|
-
--
|
|
103
|
-
--
|
|
104
|
-
--
|
|
105
|
-
--
|
|
106
|
-
--
|
|
107
|
-
--
|
|
108
|
-
--
|
|
109
|
-
--
|
|
110
|
-
--
|
|
111
|
-
--
|
|
112
|
-
--
|
|
113
|
-
--
|
|
114
|
-
--
|
|
115
|
-
--
|
|
116
|
-
--
|
|
117
|
-
--
|
|
118
|
-
--
|
|
119
|
-
--
|
|
120
|
-
--
|
|
121
|
-
--
|
|
122
|
-
--
|
|
123
|
-
--
|
|
124
|
-
--
|
|
125
|
-
--
|
|
126
|
-
--
|
|
127
|
-
--
|
|
128
|
-
--
|
|
129
|
-
--
|
|
130
|
-
--
|
|
131
|
-
--
|
|
132
|
-
--
|
|
133
|
-
--
|
|
134
|
-
--
|
|
135
|
-
--
|
|
136
|
-
--
|
|
137
|
-
--
|
|
138
|
-
--
|
|
139
|
-
--
|
|
140
|
-
--
|
|
141
|
-
--
|
|
142
|
-
--
|
|
143
|
-
--
|
|
144
|
-
--
|
|
145
|
-
--
|
|
146
|
-
--
|
|
147
|
-
--
|
|
148
|
-
--
|
|
149
|
-
--
|
|
150
|
-
--
|
|
151
|
-
--
|
|
152
|
-
--
|
|
153
|
-
--
|
|
154
|
-
--
|
|
155
|
-
--
|
|
156
|
-
--
|
|
157
|
-
--
|
|
158
|
-
--
|
|
159
|
-
--
|
|
160
|
-
--
|
|
161
|
-
--
|
|
162
|
-
--
|
|
163
|
-
--
|
|
164
|
-
--
|
|
165
|
-
--
|
|
166
|
-
--
|
|
167
|
-
--
|
|
168
|
-
--
|
|
169
|
-
--
|
|
170
|
-
--
|
|
171
|
-
--
|
|
172
|
-
--
|
|
173
|
-
--
|
|
174
|
-
--
|
|
175
|
-
--
|
|
176
|
-
--
|
|
177
|
-
--
|
|
178
|
-
--
|
|
179
|
-
--
|
|
180
|
-
--
|
|
181
|
-
--
|
|
182
|
-
--
|
|
183
|
-
--
|
|
184
|
-
--
|
|
185
|
-
--
|
|
186
|
-
--
|
|
187
|
-
--
|
|
188
|
-
--
|
|
189
|
-
--
|
|
190
|
-
--
|
|
191
|
-
--
|
|
192
|
-
--
|
|
193
|
-
--
|
|
194
|
-
--
|
|
195
|
-
--
|
|
196
|
-
--
|
|
197
|
-
--
|
|
198
|
-
--
|
|
199
|
-
--
|
|
200
|
-
--
|
|
201
|
-
--
|
|
202
|
-
--
|
|
30
|
+
--impakt-focus-ring-inner: #ffffff;
|
|
31
|
+
--impakt-focus-ring-outer: #1a1a1a;
|
|
32
|
+
--impakt-focus-ring-width: 2px;
|
|
33
|
+
--impakt-focus-ring-offset: 2px;
|
|
34
|
+
--impakt-focus-ring-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a;
|
|
35
|
+
--impakt-target-min: 24px;
|
|
36
|
+
--impakt-target-spacing: 8px;
|
|
37
|
+
--impakt-color-surface-page: #F7F4F2;
|
|
38
|
+
--impakt-color-surface-card: #FFFFFF;
|
|
39
|
+
--impakt-color-surface-header: #F7F4F2;
|
|
40
|
+
--impakt-color-surface-footer: #F0EBE5;
|
|
41
|
+
--impakt-color-surface-subtle: #edeaef;
|
|
42
|
+
--impakt-color-surface-inset: #f4f4f4;
|
|
43
|
+
--impakt-color-brand-default: #6B5279;
|
|
44
|
+
--impakt-color-brand-hover: #5e486a;
|
|
45
|
+
--impakt-color-brand-active: #513e5c;
|
|
46
|
+
--impakt-color-brand-subtle: #edeaef;
|
|
47
|
+
--impakt-color-brand-on: #ffffff;
|
|
48
|
+
--impakt-color-accent-default: #E2CC40;
|
|
49
|
+
--impakt-color-accent-hover: #c7b438;
|
|
50
|
+
--impakt-color-accent-on: #1a1a1a;
|
|
51
|
+
--impakt-color-text-default: #241a2e;
|
|
52
|
+
--impakt-color-text-muted: #77717d;
|
|
53
|
+
--impakt-color-text-placeholder: #747078;
|
|
54
|
+
--impakt-color-text-on-brand: #ffffff;
|
|
55
|
+
--impakt-color-text-on-header: #746a2b;
|
|
56
|
+
--impakt-color-text-on-footer: #746a2b;
|
|
57
|
+
--impakt-color-text-heading: #7e732d;
|
|
58
|
+
--impakt-color-chart-1: #9c8e33;
|
|
59
|
+
--impakt-color-chart-2: #3f7fae;
|
|
60
|
+
--impakt-color-chart-3: #3e7d58;
|
|
61
|
+
--impakt-color-chart-4: #ab941e;
|
|
62
|
+
--impakt-color-chart-5: #b4505a;
|
|
63
|
+
--impakt-color-text-link: #6b5279;
|
|
64
|
+
--impakt-color-text-link-hover: #564261;
|
|
65
|
+
--impakt-color-border-default: #949297;
|
|
66
|
+
--impakt-color-border-strong: #87818c;
|
|
67
|
+
--impakt-color-status-danger-default: #b4505a;
|
|
68
|
+
--impakt-color-status-danger-text: #b4505a;
|
|
69
|
+
--impakt-color-status-danger-subtle: #f6eaeb;
|
|
70
|
+
--impakt-color-status-danger-on: #ffffff;
|
|
71
|
+
--impakt-color-status-warning-default: #ab941e;
|
|
72
|
+
--impakt-color-status-warning-text: #85741d;
|
|
73
|
+
--impakt-color-status-warning-subtle: #f6f3e4;
|
|
74
|
+
--impakt-color-status-warning-on: #1a1a1a;
|
|
75
|
+
--impakt-color-status-success-default: #3e7d58;
|
|
76
|
+
--impakt-color-status-success-text: #3e7d58;
|
|
77
|
+
--impakt-color-status-success-subtle: #e8efeb;
|
|
78
|
+
--impakt-color-status-success-on: #ffffff;
|
|
79
|
+
--impakt-color-status-info-default: #3f7fae;
|
|
80
|
+
--impakt-color-status-info-text: #3d7aa7;
|
|
81
|
+
--impakt-color-status-info-subtle: #e8f0f5;
|
|
82
|
+
--impakt-color-status-info-on: #ffffff;
|
|
83
|
+
--impakt-font-family-body: Urbanist, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
|
|
84
|
+
--impakt-font-family-heading: Urbanist, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
|
|
85
|
+
--impakt-font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
86
|
+
--impakt-font-family-eyebrow: Urbanist, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
|
|
87
|
+
--impakt-font-size-root: 17px;
|
|
88
|
+
--impakt-font-size-2xs: 0.75rem;
|
|
89
|
+
--impakt-font-leading-2xs: 1.333;
|
|
90
|
+
--impakt-font-size-xs: 0.75rem;
|
|
91
|
+
--impakt-font-leading-xs: 1.333;
|
|
92
|
+
--impakt-font-size-sm: 0.875rem;
|
|
93
|
+
--impakt-font-leading-sm: 1.429;
|
|
94
|
+
--impakt-font-size-md: 1rem;
|
|
95
|
+
--impakt-font-leading-md: 1.5;
|
|
96
|
+
--impakt-font-size-lg: 1.125rem;
|
|
97
|
+
--impakt-font-leading-lg: 1.556;
|
|
98
|
+
--impakt-font-size-xl: 1.25rem;
|
|
99
|
+
--impakt-font-leading-xl: 1.4;
|
|
100
|
+
--impakt-font-size-2xl: 1.5rem;
|
|
101
|
+
--impakt-font-leading-2xl: 1.333;
|
|
102
|
+
--impakt-font-size-3xl: 1.875rem;
|
|
103
|
+
--impakt-font-leading-3xl: 1.2;
|
|
104
|
+
--impakt-font-size-4xl: 2.25rem;
|
|
105
|
+
--impakt-font-leading-4xl: 1.111;
|
|
106
|
+
--impakt-font-size-5xl: 3rem;
|
|
107
|
+
--impakt-font-leading-5xl: 1.083;
|
|
108
|
+
--impakt-font-size-6xl: 3.75rem;
|
|
109
|
+
--impakt-font-leading-6xl: 1.067;
|
|
110
|
+
--impakt-font-tracking-tight: -0.02em;
|
|
111
|
+
--impakt-font-tracking-normal: 0em;
|
|
112
|
+
--impakt-font-tracking-wide: 0.06em;
|
|
113
|
+
--impakt-font-weight-regular: 400;
|
|
114
|
+
--impakt-font-weight-medium: 500;
|
|
115
|
+
--impakt-font-weight-semibold: 600;
|
|
116
|
+
--impakt-font-weight-bold: 700;
|
|
117
|
+
--impakt-font-line-height-tight: 1.25;
|
|
118
|
+
--impakt-font-line-height-normal: 1.5;
|
|
119
|
+
--impakt-font-line-height-relaxed: 1.75;
|
|
120
|
+
--impakt-space-0: 0px;
|
|
121
|
+
--impakt-space-0-5: 2px;
|
|
122
|
+
--impakt-space-1: 4px;
|
|
123
|
+
--impakt-space-1-5: 6px;
|
|
124
|
+
--impakt-space-2: 8px;
|
|
125
|
+
--impakt-space-2-5: 10px;
|
|
126
|
+
--impakt-space-3: 12px;
|
|
127
|
+
--impakt-space-3-5: 14px;
|
|
128
|
+
--impakt-space-4: 16px;
|
|
129
|
+
--impakt-space-5: 20px;
|
|
130
|
+
--impakt-space-6: 24px;
|
|
131
|
+
--impakt-space-7: 28px;
|
|
132
|
+
--impakt-space-8: 32px;
|
|
133
|
+
--impakt-space-9: 36px;
|
|
134
|
+
--impakt-space-10: 40px;
|
|
135
|
+
--impakt-space-11: 44px;
|
|
136
|
+
--impakt-space-12: 48px;
|
|
137
|
+
--impakt-space-14: 56px;
|
|
138
|
+
--impakt-space-16: 64px;
|
|
139
|
+
--impakt-space-20: 80px;
|
|
140
|
+
--impakt-space-24: 96px;
|
|
141
|
+
--impakt-space-28: 112px;
|
|
142
|
+
--impakt-space-32: 128px;
|
|
143
|
+
--impakt-space-36: 144px;
|
|
144
|
+
--impakt-space-40: 160px;
|
|
145
|
+
--impakt-space-48: 192px;
|
|
146
|
+
--impakt-space-56: 224px;
|
|
147
|
+
--impakt-space-64: 256px;
|
|
148
|
+
--impakt-space-72: 288px;
|
|
149
|
+
--impakt-space-80: 320px;
|
|
150
|
+
--impakt-space-96: 384px;
|
|
151
|
+
--impakt-radius-none: 0;
|
|
152
|
+
--impakt-radius-xs: 8px;
|
|
153
|
+
--impakt-radius-sm: 16px;
|
|
154
|
+
--impakt-radius-md: 24px;
|
|
155
|
+
--impakt-radius-lg: 32px;
|
|
156
|
+
--impakt-radius-xl: 48px;
|
|
157
|
+
--impakt-radius-2xl: 64px;
|
|
158
|
+
--impakt-radius-3xl: 96px;
|
|
159
|
+
--impakt-radius-full: 9999px;
|
|
160
|
+
--impakt-shadow-xs: 0 1px 2px 0 color-mix(in srgb, #241A2E 5%, transparent);
|
|
161
|
+
--impakt-shadow-sm: 0 1px 3px 0 color-mix(in srgb, #241A2E 10%, transparent), 0 1px 2px -1px color-mix(in srgb, #241A2E 10%, transparent);
|
|
162
|
+
--impakt-shadow-md: 0 4px 6px -1px color-mix(in srgb, #241A2E 10%, transparent), 0 2px 4px -2px color-mix(in srgb, #241A2E 10%, transparent);
|
|
163
|
+
--impakt-shadow-lg: 0 10px 15px -3px color-mix(in srgb, #241A2E 10%, transparent), 0 4px 6px -4px color-mix(in srgb, #241A2E 10%, transparent);
|
|
164
|
+
--impakt-shadow-xl: 0 20px 25px -5px color-mix(in srgb, #241A2E 10%, transparent), 0 8px 10px -6px color-mix(in srgb, #241A2E 10%, transparent);
|
|
165
|
+
--impakt-border-width-thin: 1px;
|
|
166
|
+
--impakt-border-width-thick: 2px;
|
|
167
|
+
--impakt-layout-page-width: 1200px;
|
|
168
|
+
--impakt-layout-margin-phone: 16px;
|
|
169
|
+
--impakt-layout-margin-tablet: 32px;
|
|
170
|
+
--impakt-layout-margin-desktop: 64px;
|
|
171
|
+
--impakt-layout-gutter-sm: 8px;
|
|
172
|
+
--impakt-layout-gutter-md: 16px;
|
|
173
|
+
--impakt-layout-gutter-lg: 32px;
|
|
174
|
+
--impakt-motion-duration-instant: 0ms;
|
|
175
|
+
--impakt-motion-duration-fast: 140ms;
|
|
176
|
+
--impakt-motion-duration-base: 220ms;
|
|
177
|
+
--impakt-motion-duration-slow: 360ms;
|
|
178
|
+
--impakt-motion-duration-scene: 700ms;
|
|
179
|
+
--impakt-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
180
|
+
--impakt-motion-easing-enter: cubic-bezier(0, 0, 0.2, 1);
|
|
181
|
+
--impakt-motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
|
|
182
|
+
--impakt-motion-easing-emphasis: cubic-bezier(0.65, 0, 0.35, 1);
|
|
183
|
+
--impakt-motion-spring-snappy-stiffness: 400;
|
|
184
|
+
--impakt-motion-spring-snappy-damping-ratio: 1;
|
|
185
|
+
--impakt-motion-spring-snappy-mass: 1;
|
|
186
|
+
--impakt-motion-spring-snappy-easing: linear(0, 0.023, 0.0792, 0.1539, 0.237, 0.322, 0.4044, 0.4817, 0.5525, 0.6161, 0.6726, 0.7221, 0.7651, 0.8023, 0.8341, 0.8612, 0.8842, 0.9036, 0.9199, 0.9336, 0.9451, 0.9546, 0.9626, 0.9692, 0.9747, 0.9792, 0.9829, 0.986, 0.9885, 0.9906, 0.9923, 0.9938, 0.9949, 0.9958, 0.9966, 0.9972, 0.9978, 0.9982, 0.9985, 0.9988, 1);
|
|
187
|
+
--impakt-motion-spring-snappy-duration: 463ms;
|
|
188
|
+
--impakt-motion-spring-gentle-stiffness: 170;
|
|
189
|
+
--impakt-motion-spring-gentle-damping-ratio: 1;
|
|
190
|
+
--impakt-motion-spring-gentle-mass: 1;
|
|
191
|
+
--impakt-motion-spring-gentle-easing: linear(0, 0.0229, 0.079, 0.1535, 0.2365, 0.3212, 0.4035, 0.4808, 0.5515, 0.6152, 0.6717, 0.7212, 0.7643, 0.8015, 0.8334, 0.8605, 0.8836, 0.9031, 0.9195, 0.9332, 0.9447, 0.9543, 0.9623, 0.969, 0.9745, 0.979, 0.9828, 0.9859, 0.9884, 0.9905, 0.9923, 0.9937, 0.9948, 0.9958, 0.9966, 0.9972, 0.9977, 0.9982, 0.9985, 0.9988, 1);
|
|
192
|
+
--impakt-motion-spring-gentle-duration: 709ms;
|
|
193
|
+
--impakt-motion-spring-bouncy-stiffness: 260;
|
|
194
|
+
--impakt-motion-spring-bouncy-damping-ratio: 0.82;
|
|
195
|
+
--impakt-motion-spring-bouncy-mass: 1;
|
|
196
|
+
--impakt-motion-spring-bouncy-easing: linear(0, 0.0209, 0.0741, 0.1479, 0.2332, 0.3232, 0.413, 0.499, 0.579, 0.6517, 0.7164, 0.7729, 0.8214, 0.8624, 0.8966, 0.9247, 0.9473, 0.9652, 0.9791, 0.9897, 0.9975, 1.0031, 1.0069, 1.0093, 1.0106, 1.0111, 1.011, 1.0105, 1.0097, 1.0088, 1.0078, 1.0068, 1.0058, 1.0049, 1.0041, 1.0034, 1.0027, 1.0021, 1.0017, 1.0013, 1);
|
|
197
|
+
--impakt-motion-spring-bouncy-duration: 538ms;
|
|
198
|
+
--impakt-motion-stagger-tight: 30ms;
|
|
199
|
+
--impakt-motion-stagger-base: 60ms;
|
|
200
|
+
--impakt-motion-stagger-loose: 100ms;
|
|
201
|
+
--impakt-motion-distance-near: 16px;
|
|
202
|
+
--impakt-motion-distance-far: 48px;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
.
|
|
205
|
+
.impakt-page {
|
|
206
206
|
box-sizing: border-box;
|
|
207
207
|
inline-size: 100%;
|
|
208
|
-
max-inline-size: calc(var(--
|
|
208
|
+
max-inline-size: calc(var(--impakt-layout-page-width, 1200px) + 2 * var(--impakt-layout-margin-desktop, 64px));
|
|
209
209
|
margin-inline: auto;
|
|
210
|
-
padding-inline: var(--
|
|
210
|
+
padding-inline: var(--impakt-layout-margin-phone, 16px);
|
|
211
211
|
}
|
|
212
212
|
@media (min-width: 40rem) {
|
|
213
|
-
.
|
|
213
|
+
.impakt-page { padding-inline: var(--impakt-layout-margin-tablet, 32px); }
|
|
214
214
|
}
|
|
215
215
|
@media (min-width: 64rem) {
|
|
216
|
-
.
|
|
216
|
+
.impakt-page { padding-inline: var(--impakt-layout-margin-desktop, 64px); }
|
|
217
217
|
}
|
|
218
218
|
@media (max-width: 40rem) {
|
|
219
|
-
[data-
|
|
219
|
+
[data-impakt-hide-on="phone"] { display: none !important; }
|
|
220
220
|
}
|
|
221
221
|
@media (min-width: 40.0625rem) {
|
|
222
|
-
[data-
|
|
222
|
+
[data-impakt-hide-on="wide"] { display: none !important; }
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
/* --------------------------------------------------------------- tokens */
|
|
226
226
|
|
|
227
227
|
:root {
|
|
228
228
|
/* Surfaces. The page carries no text directly; text sits on a card. */
|
|
229
|
-
--ik-surface-page: var(--
|
|
230
|
-
--ik-surface-card: var(--
|
|
229
|
+
--ik-surface-page: var(--impakt-color-surface-page);
|
|
230
|
+
--ik-surface-card: var(--impakt-color-surface-card);
|
|
231
231
|
--ik-surface-inset: #F0EBE5;
|
|
232
232
|
--ik-surface-subtle: #F5F1F7;
|
|
233
233
|
--ik-surface-board: #EFEAF2;
|
|
234
|
-
--ik-surface-header: color-mix(in srgb, var(--
|
|
235
|
-
--ik-surface-inverse: var(--
|
|
234
|
+
--ik-surface-header: color-mix(in srgb, var(--impakt-color-surface-header) 88%, transparent);
|
|
235
|
+
--ik-surface-inverse: var(--impakt-color-text-default);
|
|
236
236
|
|
|
237
237
|
/* Ink. Muted text is measured at 4.5:1 on the card, the page and the inset surface. */
|
|
238
|
-
--ik-ink: var(--
|
|
238
|
+
--ik-ink: var(--impakt-color-text-default);
|
|
239
239
|
--ik-ink-muted: #645C57;
|
|
240
|
-
--ik-ink-inverse: var(--
|
|
240
|
+
--ik-ink-inverse: var(--impakt-color-surface-page);
|
|
241
241
|
|
|
242
242
|
/* Lines. A hairline is decoration. A border marks a control and is measured at 3:1. */
|
|
243
243
|
--ik-line: #E8E0D5;
|
|
@@ -245,29 +245,29 @@
|
|
|
245
245
|
--ik-border-strong: #645C57;
|
|
246
246
|
|
|
247
247
|
/* Brand. Plum is the action colour. Gold is a fill and a glow, never text. */
|
|
248
|
-
--ik-brand: var(--
|
|
248
|
+
--ik-brand: var(--impakt-color-brand-default);
|
|
249
249
|
--ik-brand-hover: #5C4569;
|
|
250
250
|
--ik-brand-active: #4E3A5E;
|
|
251
251
|
--ik-brand-subtle: #EFEAF2;
|
|
252
|
-
--ik-brand-halo: color-mix(in srgb, var(--
|
|
253
|
-
--ik-on-brand: var(--
|
|
252
|
+
--ik-brand-halo: color-mix(in srgb, var(--impakt-color-brand-default) 18%, transparent);
|
|
253
|
+
--ik-on-brand: var(--impakt-color-brand-on);
|
|
254
254
|
--ik-gold: #F2D96A;
|
|
255
|
-
--ik-gold-deep: var(--
|
|
255
|
+
--ik-gold-deep: var(--impakt-color-accent-default);
|
|
256
256
|
--ik-on-gold: #241A2E;
|
|
257
|
-
--ik-link: var(--
|
|
257
|
+
--ik-link: var(--impakt-color-text-link);
|
|
258
258
|
--ik-link-hover: #4E3A5E;
|
|
259
259
|
|
|
260
260
|
/* Status. Each has a colour for lines and icons (3:1), one for text (4.5:1) and a tint. */
|
|
261
|
-
--ik-danger: var(--
|
|
261
|
+
--ik-danger: var(--impakt-color-status-danger-default);
|
|
262
262
|
--ik-danger-text: #A2404B;
|
|
263
263
|
--ik-danger-subtle: #FBEDEE;
|
|
264
264
|
--ik-warning: #9A8318;
|
|
265
265
|
--ik-warning-text: #7A6410;
|
|
266
266
|
--ik-warning-subtle: #FBF4D8;
|
|
267
|
-
--ik-success: var(--
|
|
267
|
+
--ik-success: var(--impakt-color-status-success-default);
|
|
268
268
|
--ik-success-text: #356E4D;
|
|
269
269
|
--ik-success-subtle: #EAF3EC;
|
|
270
|
-
--ik-info: var(--
|
|
270
|
+
--ik-info: var(--impakt-color-status-info-default);
|
|
271
271
|
--ik-info-text: #336C96;
|
|
272
272
|
--ik-info-subtle: #EAF2F8;
|
|
273
273
|
|
|
@@ -276,30 +276,30 @@
|
|
|
276
276
|
--ik-focus-ring-inset: inset 0 0 0 2px #241A2E, inset 0 0 0 4px #FFFFFF;
|
|
277
277
|
|
|
278
278
|
/* Type. Urbanist, with a ramp whose smallest step is 14px. */
|
|
279
|
-
--ik-font: var(--
|
|
280
|
-
--ik-font-mono: var(--
|
|
281
|
-
--ik-text-xs: var(--
|
|
279
|
+
--ik-font: var(--impakt-font-family-body);
|
|
280
|
+
--ik-font-mono: var(--impakt-font-family-mono);
|
|
281
|
+
--ik-text-xs: var(--impakt-font-size-sm); /* 14px: pills, captions, table headings */
|
|
282
282
|
--ik-text-sm: 0.9375rem; /* 15px: buttons, labels, dense rows */
|
|
283
|
-
--ik-text-md: var(--
|
|
284
|
-
--ik-text-lg: var(--
|
|
285
|
-
--ik-text-xl: var(--
|
|
286
|
-
--ik-text-2xl: var(--
|
|
287
|
-
--ik-text-3xl: var(--
|
|
288
|
-
--ik-leading-tight: var(--
|
|
289
|
-
--ik-leading-normal: var(--
|
|
290
|
-
--ik-tracking-tight: var(--
|
|
283
|
+
--ik-text-md: var(--impakt-font-size-md); /* 16px: body and fields */
|
|
284
|
+
--ik-text-lg: var(--impakt-font-size-lg); /* 18px */
|
|
285
|
+
--ik-text-xl: var(--impakt-font-size-xl); /* 20px */
|
|
286
|
+
--ik-text-2xl: var(--impakt-font-size-2xl); /* 24px */
|
|
287
|
+
--ik-text-3xl: var(--impakt-font-size-3xl); /* 30px */
|
|
288
|
+
--ik-leading-tight: var(--impakt-font-line-height-tight);
|
|
289
|
+
--ik-leading-normal: var(--impakt-font-line-height-normal);
|
|
290
|
+
--ik-tracking-tight: var(--impakt-font-tracking-tight);
|
|
291
291
|
|
|
292
292
|
/* Space. A 4px unit. Every gap is a whole step. */
|
|
293
|
-
--ik-space-1: var(--
|
|
294
|
-
--ik-space-2: var(--
|
|
295
|
-
--ik-space-3: var(--
|
|
296
|
-
--ik-space-4: var(--
|
|
297
|
-
--ik-space-5: var(--
|
|
298
|
-
--ik-space-6: var(--
|
|
299
|
-
--ik-space-8: var(--
|
|
300
|
-
--ik-space-10: var(--
|
|
301
|
-
--ik-space-12: var(--
|
|
302
|
-
--ik-gutter: var(--
|
|
293
|
+
--ik-space-1: var(--impakt-space-1);
|
|
294
|
+
--ik-space-2: var(--impakt-space-2);
|
|
295
|
+
--ik-space-3: var(--impakt-space-3);
|
|
296
|
+
--ik-space-4: var(--impakt-space-4);
|
|
297
|
+
--ik-space-5: var(--impakt-space-5);
|
|
298
|
+
--ik-space-6: var(--impakt-space-6);
|
|
299
|
+
--ik-space-8: var(--impakt-space-8);
|
|
300
|
+
--ik-space-10: var(--impakt-space-10);
|
|
301
|
+
--ik-space-12: var(--impakt-space-12);
|
|
302
|
+
--ik-gutter: var(--impakt-layout-margin-phone);
|
|
303
303
|
|
|
304
304
|
/* Shape. Rounded together from one base of 12px. */
|
|
305
305
|
--ik-radius-sm: 8px;
|
|
@@ -314,16 +314,16 @@
|
|
|
314
314
|
--ik-shadow-md: 0 2px 4px rgb(36 26 46 / 0.05), 0 16px 32px -16px rgb(78 58 94 / 0.28);
|
|
315
315
|
|
|
316
316
|
/* Motion. Calm: short, no overshoot. */
|
|
317
|
-
--ik-duration-fast: var(--
|
|
318
|
-
--ik-duration-base: var(--
|
|
319
|
-
--ik-duration-slow: var(--
|
|
320
|
-
--ik-ease-standard: var(--
|
|
321
|
-
--ik-ease-enter: var(--
|
|
322
|
-
--ik-ease-exit: var(--
|
|
317
|
+
--ik-duration-fast: var(--impakt-motion-duration-fast);
|
|
318
|
+
--ik-duration-base: var(--impakt-motion-duration-base);
|
|
319
|
+
--ik-duration-slow: var(--impakt-motion-duration-slow);
|
|
320
|
+
--ik-ease-standard: var(--impakt-motion-easing-standard);
|
|
321
|
+
--ik-ease-enter: var(--impakt-motion-easing-enter);
|
|
322
|
+
--ik-ease-exit: var(--impakt-motion-easing-exit);
|
|
323
323
|
|
|
324
324
|
/* Density. Controls are 40px with a mouse and 44px on a touch screen. */
|
|
325
325
|
--ik-control-height: 40px;
|
|
326
|
-
--ik-target-min: var(--
|
|
326
|
+
--ik-target-min: var(--impakt-target-min);
|
|
327
327
|
|
|
328
328
|
color-scheme: light;
|
|
329
329
|
}
|
|
@@ -412,6 +412,122 @@
|
|
|
412
412
|
color-scheme: dark;
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
+
/* ----------------------------------------------------- component tokens */
|
|
416
|
+
|
|
417
|
+
/* The house tokens the @atomic-ui/ui components read, given the products' values, so a component looks like the product around it in light and in dark. */
|
|
418
|
+
|
|
419
|
+
:root {
|
|
420
|
+
--impakt-color-surface-inset: #F0EBE5;
|
|
421
|
+
--impakt-color-surface-subtle: #F5F1F7;
|
|
422
|
+
--impakt-color-text-heading: #241a2e;
|
|
423
|
+
--impakt-color-text-muted: #645C57;
|
|
424
|
+
--impakt-color-text-placeholder: #645C57;
|
|
425
|
+
--impakt-color-text-link-hover: #4E3A5E;
|
|
426
|
+
--impakt-color-border-default: #8A8079;
|
|
427
|
+
--impakt-color-border-strong: #645C57;
|
|
428
|
+
--impakt-color-brand-hover: #5C4569;
|
|
429
|
+
--impakt-color-brand-active: #4E3A5E;
|
|
430
|
+
--impakt-color-brand-subtle: #EFEAF2;
|
|
431
|
+
--impakt-color-status-danger-text: #A2404B;
|
|
432
|
+
--impakt-color-status-danger-subtle: #FBEDEE;
|
|
433
|
+
--impakt-color-status-warning-default: #9A8318;
|
|
434
|
+
--impakt-color-status-warning-text: #7A6410;
|
|
435
|
+
--impakt-color-status-warning-subtle: #FBF4D8;
|
|
436
|
+
--impakt-color-status-success-text: #356E4D;
|
|
437
|
+
--impakt-color-status-success-subtle: #EAF3EC;
|
|
438
|
+
--impakt-color-status-info-text: #336C96;
|
|
439
|
+
--impakt-color-status-info-subtle: #EAF2F8;
|
|
440
|
+
--impakt-focus-ring-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #241A2E;
|
|
441
|
+
--impakt-color-text-on-header: #403b19;
|
|
442
|
+
--impakt-color-text-on-footer: #3b3617;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
@media (prefers-color-scheme: dark) {
|
|
446
|
+
:root:not([data-theme="light"]) {
|
|
447
|
+
--impakt-color-surface-page: #15111A;
|
|
448
|
+
--impakt-color-surface-card: #211A28;
|
|
449
|
+
--impakt-color-surface-inset: #1C1622;
|
|
450
|
+
--impakt-color-surface-subtle: #261E2E;
|
|
451
|
+
--impakt-color-text-default: #F4EFF6;
|
|
452
|
+
--impakt-color-text-heading: #F4EFF6;
|
|
453
|
+
--impakt-color-text-muted: #B3AAB8;
|
|
454
|
+
--impakt-color-text-placeholder: #B3AAB8;
|
|
455
|
+
--impakt-color-text-link: #CDB8DC;
|
|
456
|
+
--impakt-color-text-link-hover: #E4D7EC;
|
|
457
|
+
--impakt-color-text-on-brand: #1A1420;
|
|
458
|
+
--impakt-color-border-default: #7D7086;
|
|
459
|
+
--impakt-color-border-strong: #B3AAB8;
|
|
460
|
+
--impakt-color-brand-default: #B9A0CB;
|
|
461
|
+
--impakt-color-brand-hover: #CDB8DC;
|
|
462
|
+
--impakt-color-brand-active: #D6C3E2;
|
|
463
|
+
--impakt-color-brand-subtle: #2E2438;
|
|
464
|
+
--impakt-color-brand-on: #1A1420;
|
|
465
|
+
--impakt-color-status-danger-default: #F0979E;
|
|
466
|
+
--impakt-color-status-danger-text: #F0979E;
|
|
467
|
+
--impakt-color-status-danger-subtle: #3A1D24;
|
|
468
|
+
--impakt-color-status-warning-default: #E6C95A;
|
|
469
|
+
--impakt-color-status-warning-text: #E6C95A;
|
|
470
|
+
--impakt-color-status-warning-subtle: #38301A;
|
|
471
|
+
--impakt-color-status-success-default: #8FD0A0;
|
|
472
|
+
--impakt-color-status-success-text: #8FD0A0;
|
|
473
|
+
--impakt-color-status-success-subtle: #1B3123;
|
|
474
|
+
--impakt-color-status-info-default: #8DC0E6;
|
|
475
|
+
--impakt-color-status-info-text: #8DC0E6;
|
|
476
|
+
--impakt-color-status-info-subtle: #1A2B3A;
|
|
477
|
+
--impakt-focus-ring-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #241A2E;
|
|
478
|
+
--impakt-color-status-danger-on: #1A1420;
|
|
479
|
+
--impakt-color-status-warning-on: #1A1420;
|
|
480
|
+
--impakt-color-status-success-on: #1A1420;
|
|
481
|
+
--impakt-color-status-info-on: #1A1420;
|
|
482
|
+
--impakt-color-surface-header: #15111A;
|
|
483
|
+
--impakt-color-text-on-header: #F4EFF6;
|
|
484
|
+
--impakt-color-surface-footer: #1C1622;
|
|
485
|
+
--impakt-color-text-on-footer: #F4EFF6;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
:root[data-theme="dark"] {
|
|
490
|
+
--impakt-color-surface-page: #15111A;
|
|
491
|
+
--impakt-color-surface-card: #211A28;
|
|
492
|
+
--impakt-color-surface-inset: #1C1622;
|
|
493
|
+
--impakt-color-surface-subtle: #261E2E;
|
|
494
|
+
--impakt-color-text-default: #F4EFF6;
|
|
495
|
+
--impakt-color-text-heading: #F4EFF6;
|
|
496
|
+
--impakt-color-text-muted: #B3AAB8;
|
|
497
|
+
--impakt-color-text-placeholder: #B3AAB8;
|
|
498
|
+
--impakt-color-text-link: #CDB8DC;
|
|
499
|
+
--impakt-color-text-link-hover: #E4D7EC;
|
|
500
|
+
--impakt-color-text-on-brand: #1A1420;
|
|
501
|
+
--impakt-color-border-default: #7D7086;
|
|
502
|
+
--impakt-color-border-strong: #B3AAB8;
|
|
503
|
+
--impakt-color-brand-default: #B9A0CB;
|
|
504
|
+
--impakt-color-brand-hover: #CDB8DC;
|
|
505
|
+
--impakt-color-brand-active: #D6C3E2;
|
|
506
|
+
--impakt-color-brand-subtle: #2E2438;
|
|
507
|
+
--impakt-color-brand-on: #1A1420;
|
|
508
|
+
--impakt-color-status-danger-default: #F0979E;
|
|
509
|
+
--impakt-color-status-danger-text: #F0979E;
|
|
510
|
+
--impakt-color-status-danger-subtle: #3A1D24;
|
|
511
|
+
--impakt-color-status-warning-default: #E6C95A;
|
|
512
|
+
--impakt-color-status-warning-text: #E6C95A;
|
|
513
|
+
--impakt-color-status-warning-subtle: #38301A;
|
|
514
|
+
--impakt-color-status-success-default: #8FD0A0;
|
|
515
|
+
--impakt-color-status-success-text: #8FD0A0;
|
|
516
|
+
--impakt-color-status-success-subtle: #1B3123;
|
|
517
|
+
--impakt-color-status-info-default: #8DC0E6;
|
|
518
|
+
--impakt-color-status-info-text: #8DC0E6;
|
|
519
|
+
--impakt-color-status-info-subtle: #1A2B3A;
|
|
520
|
+
--impakt-focus-ring-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #241A2E;
|
|
521
|
+
--impakt-color-status-danger-on: #1A1420;
|
|
522
|
+
--impakt-color-status-warning-on: #1A1420;
|
|
523
|
+
--impakt-color-status-success-on: #1A1420;
|
|
524
|
+
--impakt-color-status-info-on: #1A1420;
|
|
525
|
+
--impakt-color-surface-header: #15111A;
|
|
526
|
+
--impakt-color-text-on-header: #F4EFF6;
|
|
527
|
+
--impakt-color-surface-footer: #1C1622;
|
|
528
|
+
--impakt-color-text-on-footer: #F4EFF6;
|
|
529
|
+
}
|
|
530
|
+
|
|
415
531
|
@media (pointer: coarse) { :root { --ik-control-height: 44px; } }
|
|
416
532
|
|
|
417
533
|
@media (min-width: 641px) { :root { --ik-gutter: 24px; } }
|
|
@@ -642,3 +758,165 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
|
|
|
642
758
|
transition-duration: 0.01ms !important; scroll-behavior: auto !important;
|
|
643
759
|
}
|
|
644
760
|
}
|
|
761
|
+
|
|
762
|
+
/* --------------------------------------------------------------- header overflow (0.3.0) */
|
|
763
|
+
/* When the controls on the right are wide, the product name shortens with an ellipsis
|
|
764
|
+
instead of running under them, and the controls stay on one row. */
|
|
765
|
+
.ik-brand { flex: 0 1 auto; overflow: hidden; }
|
|
766
|
+
.ik-brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
767
|
+
.ik-header > .ik-brand ~ * { flex: none; flex-wrap: nowrap; }
|
|
768
|
+
|
|
769
|
+
/* ============================================================ product patterns (0.4.0) */
|
|
770
|
+
/* The parts every AI tool needs so a customer who has never met Impakt knows what to do first,
|
|
771
|
+
where they are in the job and what is left. Each is a class a product adds to plain markup. */
|
|
772
|
+
|
|
773
|
+
/* ---------------------------------------------------------------- page */
|
|
774
|
+
/* A main column at one of three widths. Forms read best narrow, review screens need room. */
|
|
775
|
+
.ik-main { max-width: 1040px; margin: 0 auto; padding: var(--ik-space-6) var(--ik-gutter) var(--ik-space-12); }
|
|
776
|
+
.ik-main.narrow { max-width: 760px; }
|
|
777
|
+
.ik-main.wide { max-width: 1320px; }
|
|
778
|
+
@media (max-width: 640px) { .ik-main { padding-top: var(--ik-space-4); } }
|
|
779
|
+
|
|
780
|
+
/* The page header: a back link, the title, one line of facts, then the status and the main
|
|
781
|
+
action on the right. On a phone the actions go under the title. */
|
|
782
|
+
.ik-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ik-space-3) var(--ik-space-6); margin-bottom: var(--ik-space-5); }
|
|
783
|
+
.ik-page-head > :first-child { flex: 1 1 320px; min-width: 0; }
|
|
784
|
+
.ik-page-head h1 { margin: 0; font-size: var(--ik-text-3xl); overflow-wrap: anywhere; }
|
|
785
|
+
.ik-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--ik-space-2); font-size: var(--ik-text-sm); font-weight: 600; color: var(--ik-ink-muted); text-decoration: none; }
|
|
786
|
+
.ik-back::before { content: "\2190"; }
|
|
787
|
+
.ik-back:hover { color: var(--ik-ink); }
|
|
788
|
+
.ik-facts { display: flex; flex-wrap: wrap; gap: 4px var(--ik-space-4); margin: var(--ik-space-2) 0 0; padding: 0; list-style: none; font-size: var(--ik-text-sm); color: var(--ik-ink-muted); }
|
|
789
|
+
.ik-facts strong { color: var(--ik-ink); font-weight: 600; }
|
|
790
|
+
.ik-page-head .ik-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ik-space-2); }
|
|
791
|
+
@media (max-width: 640px) { .ik-page-head h1 { font-size: var(--ik-text-2xl); } }
|
|
792
|
+
|
|
793
|
+
/* A row of actions. The one main action is .primary; the rest are outlines, and a .ik-sep
|
|
794
|
+
pushes what follows to the far end, which is where a destructive action belongs. */
|
|
795
|
+
.ik-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ik-space-2); }
|
|
796
|
+
.ik-toolbar > .ik-sep { flex: 1 1 auto; }
|
|
797
|
+
|
|
798
|
+
/* ---------------------------------------------------------------- steps */
|
|
799
|
+
/* The stages of a job, in order, each numbered, with done, current and waiting told apart by
|
|
800
|
+
the mark and by words, never by colour alone. Use an <ol> whose items hold a link or button,
|
|
801
|
+
aria-current="step" on the current one, and a .ik-step-hint saying what blocks the next. */
|
|
802
|
+
.ik-steps { display: flex; gap: var(--ik-space-2); margin: 0 0 var(--ik-space-5); padding: 0; list-style: none; counter-reset: ik-step; overflow-x: auto; scrollbar-width: none; }
|
|
803
|
+
.ik-steps::-webkit-scrollbar { display: none; }
|
|
804
|
+
.ik-steps > li { flex: 1 1 0; min-width: 150px; counter-increment: ik-step; }
|
|
805
|
+
.ik-steps > li > :where(a, button) {
|
|
806
|
+
display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px var(--ik-space-3);
|
|
807
|
+
width: 100%; min-height: 60px; padding: var(--ik-space-3) var(--ik-space-4); text-align: left;
|
|
808
|
+
font-size: var(--ik-text-sm); font-weight: 600; color: var(--ik-ink); text-decoration: none;
|
|
809
|
+
background: var(--ik-surface-card); border: 1px solid var(--ik-line); border-radius: var(--ik-radius-lg); box-shadow: var(--ik-shadow-xs);
|
|
810
|
+
}
|
|
811
|
+
.ik-steps > li > :where(a, button)::before {
|
|
812
|
+
content: counter(ik-step); grid-row: span 2; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
|
|
813
|
+
font-size: var(--ik-text-xs); font-weight: 700; color: var(--ik-ink); background: var(--ik-surface-inset); border: 1px solid var(--ik-border);
|
|
814
|
+
}
|
|
815
|
+
.ik-steps .ik-step-hint { grid-column: 2; font-size: var(--ik-text-xs); font-weight: 400; color: var(--ik-ink-muted); }
|
|
816
|
+
.ik-steps > li.done > :where(a, button)::before { content: "\2713"; color: var(--ik-on-brand); background: var(--ik-success-text); border-color: var(--ik-success-text); }
|
|
817
|
+
.ik-steps > li > [aria-current="step"], .ik-steps > li > [aria-selected="true"] { border-color: var(--ik-brand); box-shadow: 0 0 0 1px var(--ik-brand), var(--ik-shadow-sm); }
|
|
818
|
+
.ik-steps > li > [aria-current="step"]::before, .ik-steps > li > [aria-selected="true"]::before { color: var(--ik-on-brand); background: var(--ik-brand); border-color: var(--ik-brand); }
|
|
819
|
+
.ik-steps > li > :where(a, button):hover:not(:disabled) { background: var(--ik-surface-subtle); }
|
|
820
|
+
.ik-steps > li > :where(a, button):disabled, .ik-steps > li > [aria-disabled="true"] { opacity: 1; color: var(--ik-ink-muted); background: var(--ik-surface-inset); box-shadow: none; }
|
|
821
|
+
.ik-steps > li > :focus-visible { box-shadow: var(--ik-focus-ring-inset); }
|
|
822
|
+
@media (max-width: 640px) {
|
|
823
|
+
.ik-steps > li { min-width: 0; }
|
|
824
|
+
.ik-steps > li > :where(a, button) { grid-template-columns: 1fr; justify-items: center; min-height: 56px; padding: var(--ik-space-2); text-align: center; font-size: var(--ik-text-xs); }
|
|
825
|
+
.ik-steps > li > :where(a, button)::before { grid-row: auto; }
|
|
826
|
+
.ik-steps .ik-step-hint { display: none; }
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/* --------------------------------------------------------------- empty */
|
|
830
|
+
/* What a screen says before there is anything on it: what this place is for, and the one
|
|
831
|
+
thing to do next. Never just "Nothing here". Its one column is never wider than the box, so a
|
|
832
|
+
form or drop zone inside it wraps on a phone instead of pushing the page sideways. */
|
|
833
|
+
.ik-empty { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--ik-space-2); padding: var(--ik-space-10) var(--ik-space-6); text-align: center; background: var(--ik-surface-board); border: 1px dashed var(--ik-border); border-radius: var(--ik-radius-xl); }
|
|
834
|
+
.ik-empty::before { content: ""; width: 44px; height: 44px; margin-bottom: var(--ik-space-2); border-radius: 50%; border: 1.5px solid var(--ik-brand); background: radial-gradient(circle, var(--ik-gold-deep) 0 9px, transparent 10px); }
|
|
835
|
+
.ik-empty h2, .ik-empty h3 { margin: 0; font-size: var(--ik-text-lg); }
|
|
836
|
+
.ik-empty p { max-width: 46ch; margin: 0; color: var(--ik-ink-muted); }
|
|
837
|
+
.ik-empty .ik-toolbar { justify-content: center; margin-top: var(--ik-space-3); }
|
|
838
|
+
|
|
839
|
+
/* ----------------------------------------------------------- drop zone */
|
|
840
|
+
/* A file input laid over a large target, so a click, a tap, the keyboard and a dropped file
|
|
841
|
+
all reach the real input. Put the input inside the label with the words beside it. */
|
|
842
|
+
.ik-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: var(--ik-space-6) var(--ik-space-4); text-align: center; font-weight: 400; color: var(--ik-ink); background: var(--ik-surface-card); border: 1.5px dashed var(--ik-border-strong); border-radius: var(--ik-radius-lg); cursor: pointer; transition: background-color var(--ik-duration-fast) var(--ik-ease-standard), border-color var(--ik-duration-fast) var(--ik-ease-standard); }
|
|
843
|
+
.ik-drop strong { font-size: var(--ik-text-md); font-weight: 600; }
|
|
844
|
+
.ik-drop .ik-hint { color: var(--ik-ink-muted); }
|
|
845
|
+
.ik-drop:hover, .ik-drop.over { background: var(--ik-brand-subtle); border-color: var(--ik-brand); }
|
|
846
|
+
.ik-drop:has(input:focus-visible) { box-shadow: var(--ik-focus-ring); }
|
|
847
|
+
.ik-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
|
|
848
|
+
.ik-drop.compact { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: var(--ik-space-3) var(--ik-space-4); }
|
|
849
|
+
|
|
850
|
+
/* The files that were added, each with its name, its state in words and its own actions. */
|
|
851
|
+
.ik-files { margin: var(--ik-space-3) 0 0; padding: 0; list-style: none; }
|
|
852
|
+
.ik-files > li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ik-space-2) var(--ik-space-3); padding: var(--ik-space-2) 0; border-top: 1px solid var(--ik-line); }
|
|
853
|
+
.ik-files > li:first-child { border-top: 0; }
|
|
854
|
+
.ik-files .ik-file-name { flex: 1 1 200px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
|
|
855
|
+
|
|
856
|
+
/* ------------------------------------------------------------ progress */
|
|
857
|
+
/* A long AI step: what it is doing, how far it has got when that is known, and a bar that
|
|
858
|
+
moves. Without a value the bar sweeps; reduced motion keeps it still. */
|
|
859
|
+
.ik-progress { display: grid; gap: 6px; padding: var(--ik-space-3) var(--ik-space-4); background: var(--ik-surface-inset); border-radius: var(--ik-radius-md); }
|
|
860
|
+
.ik-progress-label { display: flex; justify-content: space-between; gap: var(--ik-space-3); font-size: var(--ik-text-sm); font-weight: 600; }
|
|
861
|
+
.ik-progress-label span:last-child { font-weight: 400; color: var(--ik-ink-muted); font-variant-numeric: tabular-nums; }
|
|
862
|
+
.ik-progress progress, progress.ik-bar { appearance: none; width: 100%; height: 8px; border: 0; border-radius: var(--ik-radius-full); background: var(--ik-surface-card); overflow: hidden; color: var(--ik-brand); }
|
|
863
|
+
.ik-progress progress::-webkit-progress-bar, progress.ik-bar::-webkit-progress-bar { background: var(--ik-surface-card); border-radius: var(--ik-radius-full); }
|
|
864
|
+
.ik-progress progress::-webkit-progress-value, progress.ik-bar::-webkit-progress-value { background: var(--ik-brand); border-radius: var(--ik-radius-full); }
|
|
865
|
+
.ik-progress progress::-moz-progress-bar, progress.ik-bar::-moz-progress-bar { background: var(--ik-brand); border-radius: var(--ik-radius-full); }
|
|
866
|
+
.ik-progress progress:indeterminate, progress.ik-bar:indeterminate { background: linear-gradient(90deg, var(--ik-surface-card) 0 30%, var(--ik-brand) 30% 55%, var(--ik-surface-card) 55%) 0 0 / 200% 100%; animation: ik-sweep 1.4s linear infinite; }
|
|
867
|
+
.ik-progress progress:indeterminate::-webkit-progress-bar { background: transparent; }
|
|
868
|
+
@keyframes ik-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
|
|
869
|
+
/* A small turning ring for a button or a status word that is busy. */
|
|
870
|
+
.ik-spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ik-spin 0.8s linear infinite; vertical-align: -0.15em; }
|
|
871
|
+
@keyframes ik-spin { to { transform: rotate(360deg); } }
|
|
872
|
+
|
|
873
|
+
/* --------------------------------------------------------------- prose */
|
|
874
|
+
/* What the model wrote, set for reading: full-size ink text, a comfortable line and measure,
|
|
875
|
+
quotes from the source set apart, and sources quiet but findable. */
|
|
876
|
+
.ik-prose { max-width: 68ch; font-size: var(--ik-text-md); line-height: 1.65; color: var(--ik-ink); }
|
|
877
|
+
.ik-prose > * { margin: 0; }
|
|
878
|
+
.ik-prose > * + * { margin-top: 0.85em; }
|
|
879
|
+
.ik-prose :where(h2, h3, h4) { margin-top: 1.4em; }
|
|
880
|
+
.ik-prose :where(ul, ol) { padding-inline-start: 1.25em; }
|
|
881
|
+
.ik-prose li + li { margin-top: 0.35em; }
|
|
882
|
+
.ik-prose blockquote, .ik-quote { margin-inline: 0; padding: var(--ik-space-2) var(--ik-space-4); font-style: italic; color: var(--ik-ink); background: var(--ik-surface-inset); border-inline-start: 3px solid var(--ik-brand); border-radius: 0 var(--ik-radius-sm) var(--ik-radius-sm) 0; }
|
|
883
|
+
.ik-source { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; font-size: var(--ik-text-xs); font-style: normal; font-weight: 600; color: var(--ik-link); background: var(--ik-brand-subtle); border-radius: var(--ik-radius-full); text-decoration: none; white-space: nowrap; }
|
|
884
|
+
a.ik-source:hover, button.ik-source:hover { color: var(--ik-link-hover); text-decoration: underline; }
|
|
885
|
+
button.ik-source { min-height: 0; min-width: 0; border: 0; box-shadow: none; }
|
|
886
|
+
|
|
887
|
+
/* ------------------------------------------------------------- summary */
|
|
888
|
+
/* The few numbers a screen is about, such as a score, a total and a deadline, in a row of
|
|
889
|
+
tiles at the top. A tile can carry a tone in words and on its edge. */
|
|
890
|
+
.ik-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--ik-space-3); margin-bottom: var(--ik-space-5); }
|
|
891
|
+
.ik-stat { display: grid; gap: 2px; padding: var(--ik-space-4); background: var(--ik-surface-card); border: 1px solid var(--ik-line); border-radius: var(--ik-radius-lg); box-shadow: var(--ik-shadow-xs); }
|
|
892
|
+
.ik-stat-label { font-size: var(--ik-text-xs); font-weight: 600; color: var(--ik-ink-muted); }
|
|
893
|
+
.ik-stat-value { font-size: var(--ik-text-2xl); font-weight: 700; line-height: 1.15; letter-spacing: var(--ik-tracking-tight); font-variant-numeric: tabular-nums; }
|
|
894
|
+
.ik-stat-note { font-size: var(--ik-text-xs); color: var(--ik-ink-muted); }
|
|
895
|
+
.ik-stat.ok { border-inline-start: 4px solid var(--ik-success); }
|
|
896
|
+
.ik-stat.warn { border-inline-start: 4px solid var(--ik-warning); }
|
|
897
|
+
.ik-stat.bad { border-inline-start: 4px solid var(--ik-danger); }
|
|
898
|
+
|
|
899
|
+
/* A meter, such as usage against a plan or words against a limit. */
|
|
900
|
+
.ik-meter { display: block; width: 100%; height: 6px; border-radius: var(--ik-radius-full); background: var(--ik-surface-inset); overflow: hidden; }
|
|
901
|
+
.ik-meter > span { display: block; height: 100%; width: var(--ik-meter, 0%); background: var(--ik-brand); border-radius: inherit; }
|
|
902
|
+
.ik-meter.warn > span { background: var(--ik-warning); }
|
|
903
|
+
.ik-meter.bad > span { background: var(--ik-danger); }
|
|
904
|
+
|
|
905
|
+
/* --------------------------------------------------------------- split */
|
|
906
|
+
/* A list beside the item being worked on, as in a review queue. The side stays in view while
|
|
907
|
+
the main column scrolls, and the two stack on a narrow screen. */
|
|
908
|
+
.ik-split { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: var(--ik-space-5); align-items: start; }
|
|
909
|
+
.ik-split > .ik-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
|
|
910
|
+
@media (max-width: 900px) { .ik-split { grid-template-columns: 1fr; } .ik-split > .ik-side { position: static; max-height: none; } }
|
|
911
|
+
|
|
912
|
+
/* ------------------------------------------------------------- account */
|
|
913
|
+
/* The account menu in the header: who is signed in, their plan, this month's usage and the
|
|
914
|
+
links to billing and sign-out. Built on <details> so it opens without a script. */
|
|
915
|
+
.ik-account { position: relative; }
|
|
916
|
+
.ik-account > summary { display: inline-flex; align-items: center; gap: var(--ik-space-2); min-height: 40px; padding: 4px 6px 4px 4px; list-style: none; border: 1px solid var(--ik-border); border-radius: var(--ik-radius-full); background: var(--ik-surface-card); cursor: pointer; font-size: var(--ik-text-sm); font-weight: 600; }
|
|
917
|
+
.ik-account > summary::-webkit-details-marker { display: none; }
|
|
918
|
+
.ik-account > summary::after { content: "\25BE"; padding-inline-end: 6px; color: var(--ik-ink-muted); }
|
|
919
|
+
.ik-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: var(--ik-text-xs); font-weight: 700; color: var(--ik-ink); background: var(--ik-brand-subtle); }
|
|
920
|
+
.ik-account-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; width: min(300px, calc(100vw - 2 * var(--ik-gutter))); display: grid; gap: var(--ik-space-3); padding: var(--ik-space-4); background: var(--ik-surface-card); border: 1px solid var(--ik-line); border-radius: var(--ik-radius-lg); box-shadow: var(--ik-shadow-md); }
|
|
921
|
+
.ik-account-panel a { font-size: var(--ik-text-sm); font-weight: 600; }
|
|
922
|
+
@media (max-width: 640px) { .ik-account > summary .ik-account-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomic-ui/theme",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "The
|
|
3
|
+
"version": "0.5.0",
|
|
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",
|
|
7
7
|
"url": "git+https://github.com/matthill8286/impkt-design-system.git",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"./package.json": "./package.json"
|
|
15
15
|
},
|
|
16
16
|
"bin": {
|
|
17
|
-
"
|
|
17
|
+
"impakt-theme-copy": "./scripts/copy-to-product.mjs"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^20.14.0",
|
|
21
21
|
"tsx": "^4.16.0",
|
|
22
22
|
"typescript": "^5.5.0",
|
|
23
23
|
"vitest": "^2.0.0",
|
|
24
|
-
"@atomic-ui/design-tokens": "^0.
|
|
24
|
+
"@atomic-ui/design-tokens": "^0.5.0"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"dist",
|