@atomic-ui/theme 0.7.1 → 0.8.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 +15 -13
- package/dist/fonts/OFL-Archivo.txt +93 -0
- package/dist/fonts/OFL-IBM-Plex-Mono.txt +93 -0
- package/dist/fonts/archivo-latin-wght.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-400.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-500.woff2 +0 -0
- package/dist/fonts-noire.css +12 -0
- package/dist/index.html +250 -181
- package/dist/theme.css +1 -1
- package/package.json +3 -2
- package/scripts/copy-to-product.mjs +8 -7
package/README.md
CHANGED
|
@@ -48,19 +48,19 @@ Every product token starts with `--ik-` and every new class with `.ik-`, so noth
|
|
|
48
48
|
|
|
49
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
50
|
|
|
51
|
-
| Pattern
|
|
52
|
-
|
|
|
53
|
-
| `.ik-main` (`.narrow`, `.wide`)
|
|
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`
|
|
56
|
-
| `.ik-empty`
|
|
57
|
-
| `.ik-drop`, `.ik-files`
|
|
58
|
-
| `.ik-progress`, `.ik-spinner`
|
|
59
|
-
| `.ik-prose`, `.ik-quote`, `.ik-source`
|
|
60
|
-
| `.ik-summary`, `.ik-stat`, `.ik-meter`
|
|
61
|
-
| `.ik-split`, `.ik-side`
|
|
62
|
-
| `.ik-account`, `.ik-avatar`
|
|
63
|
-
| `.ik-toolbar`, `.ik-sep`
|
|
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 |
|
|
64
64
|
|
|
65
65
|
## Principles
|
|
66
66
|
|
|
@@ -101,4 +101,6 @@ These are taken from the design tokens (`@atomic-ui/design-tokens`) and the comp
|
|
|
101
101
|
|
|
102
102
|
## Fonts
|
|
103
103
|
|
|
104
|
+
The redesign's faces are in `fonts/` too: Archivo, as one variable WOFF2 file that holds every weight, and IBM Plex Mono in regular and medium. Together they are about 65 KB, against 171 KB for the four Urbanist files. `fonts-noire.css` holds their `@font-face` rules and nothing else, so `theme.css` is unchanged until the redesign is live. A site links it beside the `fonts` folder, and may preload the Archivo file so the headings are ready before first paint. Archivo is by the Archivo Project Authors and IBM Plex Mono is by IBM Corp.; both are licensed under the SIL Open Font License 1.1, and the licences are `fonts/OFL-Archivo.txt` and `fonts/OFL-IBM-Plex-Mono.txt`. They hold Latin letters only.
|
|
105
|
+
|
|
104
106
|
Urbanist is by the Urbanist Project Authors and is licensed under the SIL Open Font License 1.1. The licence is in `fonts/OFL.txt`, and it is copied beside the fonts wherever they go. Urbanist has Latin letters only, so Greek and Russian text falls back to the next face in the stack.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo) Archivo-Italic[wdth,wght].ttf: Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo)
|
|
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,93 @@
|
|
|
1
|
+
Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ThinItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLight.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Light.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-LightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Regular.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Italic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Medium.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-MediumItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Bold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-BoldItalic.ttf: Copyright 2017 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.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The typefaces of Impakt's redesign, @atomic-ui/theme version 0.8.0.
|
|
3
|
+
* Archivo and IBM Plex Mono, Latin, WOFF2, licensed under the SIL Open Font License 1.1.
|
|
4
|
+
* The licences are fonts/OFL-Archivo.txt and fonts/OFL-IBM-Plex-Mono.txt.
|
|
5
|
+
*
|
|
6
|
+
* Copy this file and the fonts folder to the same place and link this file. To have the
|
|
7
|
+
* heading face ready before first paint, also preload it:
|
|
8
|
+
* <link rel="preload" href="/fonts/archivo-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
|
|
9
|
+
*/
|
|
10
|
+
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/archivo-latin-wght.woff2") format("woff2"); 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; }
|
|
11
|
+
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); 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; }
|
|
12
|
+
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); 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; }
|
package/dist/index.html
CHANGED
|
@@ -1,193 +1,262 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en-GB">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8"
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"
|
|
6
|
-
<title>Impakt product theme</title>
|
|
7
|
-
<link rel="stylesheet" href="theme.css"
|
|
8
|
-
<style>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</style>
|
|
20
|
-
</head>
|
|
21
|
-
<body>
|
|
22
|
-
<a class="ik-skip" href="#main">Skip to the content</a>
|
|
23
|
-
<header class="ik-header">
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Impakt product theme</title>
|
|
7
|
+
<link rel="stylesheet" href="theme.css" />
|
|
8
|
+
<style>
|
|
9
|
+
main { max-width: 960px; margin: 0 auto; padding: var(--ik-space-6) var(--ik-gutter) var(--ik-space-12); }
|
|
10
|
+
section { margin-bottom: var(--ik-space-8); }
|
|
11
|
+
.lede { color: var(--ik-ink-muted); max-width: 60ch; margin: 0 0 var(--ik-space-6); }
|
|
12
|
+
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--ik-space-3); }
|
|
13
|
+
.swatch { border: 1px solid var(--ik-line); border-radius: var(--ik-radius-md); overflow: hidden; background: var(--ik-surface-card); font-size: var(--ik-text-xs); }
|
|
14
|
+
.swatch i { display: block; height: 52px; }
|
|
15
|
+
.swatch span { display: block; padding: var(--ik-space-2) var(--ik-space-3); }
|
|
16
|
+
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ik-space-4); }
|
|
17
|
+
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
|
|
18
|
+
.ramp p { margin: 0 0 var(--ik-space-2); }
|
|
19
|
+
</style>
|
|
20
|
+
</head>
|
|
21
|
+
<body>
|
|
22
|
+
<a class="ik-skip" href="#main">Skip to the content</a>
|
|
23
|
+
<header class="ik-header">
|
|
24
|
+
<a class="ik-brand" href="./"
|
|
25
|
+
><span><b>Impakt</b> <span class="ik-product">Specimen</span></span></a
|
|
26
|
+
>
|
|
27
|
+
<div class="row">
|
|
28
|
+
<label for="theme" class="ik-sr-only">Theme</label>
|
|
29
|
+
<select id="theme" style="min-height:36px;padding:4px 10px">
|
|
30
|
+
<option value="">Device theme</option>
|
|
31
|
+
<option value="light">Light</option>
|
|
32
|
+
<option value="dark">Dark</option>
|
|
33
|
+
</select>
|
|
34
|
+
</div>
|
|
35
|
+
</header>
|
|
34
36
|
|
|
35
|
-
<main id="main">
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
<main id="main">
|
|
38
|
+
<h1>Impakt product theme</h1>
|
|
39
|
+
<p class="lede">
|
|
40
|
+
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.
|
|
41
|
+
</p>
|
|
38
42
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
43
|
+
<section aria-labelledby="h-colour">
|
|
44
|
+
<h2 id="h-colour">Colour roles</h2>
|
|
45
|
+
<div class="swatches">
|
|
46
|
+
<div class="swatch"><i style="background:var(--ik-surface-page)"></i><span>Page</span></div>
|
|
47
|
+
<div class="swatch"><i style="background:var(--ik-surface-card)"></i><span>Card</span></div>
|
|
48
|
+
<div class="swatch"><i style="background:var(--ik-surface-inset)"></i><span>Inset</span></div>
|
|
49
|
+
<div class="swatch"><i style="background:var(--ik-surface-board)"></i><span>Board</span></div>
|
|
50
|
+
<div class="swatch"><i style="background:var(--ik-ink)"></i><span>Ink</span></div>
|
|
51
|
+
<div class="swatch"><i style="background:var(--ik-ink-muted)"></i><span>Muted ink</span></div>
|
|
52
|
+
<div class="swatch"><i style="background:var(--ik-brand)"></i><span>Plum, the action colour</span></div>
|
|
53
|
+
<div class="swatch"><i style="background:var(--ik-gold)"></i><span>Gold, a fill only</span></div>
|
|
54
|
+
<div class="swatch"><i style="background:var(--ik-danger)"></i><span>Danger</span></div>
|
|
55
|
+
<div class="swatch"><i style="background:var(--ik-warning)"></i><span>Warning</span></div>
|
|
56
|
+
<div class="swatch"><i style="background:var(--ik-success)"></i><span>Success</span></div>
|
|
57
|
+
<div class="swatch"><i style="background:var(--ik-info)"></i><span>Information</span></div>
|
|
58
|
+
</div>
|
|
59
|
+
</section>
|
|
56
60
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
<section aria-labelledby="h-type" class="ramp">
|
|
62
|
+
<h2 id="h-type">Type</h2>
|
|
63
|
+
<div class="card">
|
|
64
|
+
<p style="font-size:var(--ik-text-3xl);font-weight:600;letter-spacing:-.02em;line-height:1.2">Thirty pixels for a page title</p>
|
|
65
|
+
<p style="font-size:var(--ik-text-2xl);font-weight:600">Twenty-four for a main heading</p>
|
|
66
|
+
<p style="font-size:var(--ik-text-xl);font-weight:600">Twenty for a section</p>
|
|
67
|
+
<p style="font-size:var(--ik-text-lg)">Eighteen for a lead paragraph</p>
|
|
68
|
+
<p>Sixteen for body text and for every field.</p>
|
|
69
|
+
<p style="font-size:var(--ik-text-sm)">Fifteen for buttons, labels and dense rows.</p>
|
|
70
|
+
<p class="small muted">Fourteen, the smallest size, for pills, captions and table headings.</p>
|
|
71
|
+
</div>
|
|
72
|
+
</section>
|
|
69
73
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
<section aria-labelledby="h-actions">
|
|
75
|
+
<h2 id="h-actions">Buttons</h2>
|
|
76
|
+
<div class="card row">
|
|
77
|
+
<button class="primary" type="button">Save the brief</button>
|
|
78
|
+
<button type="button">Add a file</button>
|
|
79
|
+
<button class="ghost" type="button">Cancel</button>
|
|
80
|
+
<button class="danger" type="button">Delete</button>
|
|
81
|
+
<button class="small" type="button">Small</button>
|
|
82
|
+
<button class="primary" type="button" disabled>Disabled</button>
|
|
83
|
+
</div>
|
|
84
|
+
</section>
|
|
81
85
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
86
|
+
<section aria-labelledby="h-fields">
|
|
87
|
+
<h2 id="h-fields">Fields</h2>
|
|
88
|
+
<form class="card" onsubmit="event.preventDefault()">
|
|
89
|
+
<div class="grid2">
|
|
90
|
+
<div class="ik-field"><label for="f1">Client name</label><input id="f1" placeholder="Harbour Dental" /></div>
|
|
91
|
+
<div class="ik-field">
|
|
92
|
+
<label for="f2">Scheme</label
|
|
93
|
+
><select id="f2">
|
|
94
|
+
<option>TDS</option>
|
|
95
|
+
<option>DPS</option>
|
|
96
|
+
<option>mydeposits</option>
|
|
97
|
+
</select>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="ik-field">
|
|
100
|
+
<label for="f3">Email</label><input id="f3" type="email" aria-invalid="true" aria-describedby="f3e" value="not an address" /><span
|
|
101
|
+
id="f3e"
|
|
102
|
+
class="ik-hint"
|
|
103
|
+
style="color:var(--ik-danger-text)"
|
|
104
|
+
>Enter an email address, such as name@example.com.</span
|
|
105
|
+
>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="ik-field"><label for="f4">Upload</label><input id="f4" type="file" /></div>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="ik-field">
|
|
110
|
+
<label for="f5">Notes</label><textarea id="f5">Anything the reviewer should know.</textarea
|
|
111
|
+
><span class="ik-hint">This stays inside your organisation.</span>
|
|
112
|
+
</div>
|
|
113
|
+
<label class="row" style="font-weight:400"><input type="checkbox" checked /> Everyone on the call agreed to the recording.</label>
|
|
114
|
+
</form>
|
|
115
|
+
</section>
|
|
95
116
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
117
|
+
<section aria-labelledby="h-tabs">
|
|
118
|
+
<h2 id="h-tabs">Tabs</h2>
|
|
119
|
+
<div class="tabs" role="tablist" aria-label="Sections">
|
|
120
|
+
<button class="on" role="tab" aria-selected="true">Overview</button>
|
|
121
|
+
<button role="tab" aria-selected="false">Transcript</button>
|
|
122
|
+
<button role="tab" aria-selected="false">Brief</button>
|
|
123
|
+
<button role="tab" aria-selected="false">Estimate</button>
|
|
124
|
+
<button role="tab" aria-selected="false">Follow-up email</button>
|
|
125
|
+
<button role="tab" aria-selected="false">Exports</button>
|
|
126
|
+
</div>
|
|
127
|
+
</section>
|
|
107
128
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
129
|
+
<section aria-labelledby="h-status">
|
|
130
|
+
<h2 id="h-status">Pills and alerts</h2>
|
|
131
|
+
<div class="card">
|
|
132
|
+
<p class="row">
|
|
133
|
+
<span class="pill">Draft</span><span class="pill ok">Brief ready</span><span class="pill warn">Needs attention</span
|
|
134
|
+
><span class="pill bad">Failed</span><span class="pill info">Reading</span><span class="pill brand">New</span>
|
|
135
|
+
</p>
|
|
136
|
+
<div class="alert ok"><b>Saved.</b> The letter is stored and will not change.</div>
|
|
137
|
+
<div class="alert warn"><b>Check this.</b> The insurance policy does not show public liability cover.</div>
|
|
138
|
+
<div class="alert bad"><b>That did not work.</b> The file is larger than 50 MB.</div>
|
|
139
|
+
<div class="alert info">The model reads the tender in the background.</div>
|
|
140
|
+
</div>
|
|
141
|
+
</section>
|
|
118
142
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
143
|
+
<section aria-labelledby="h-table">
|
|
144
|
+
<h2 id="h-table">Table</h2>
|
|
145
|
+
<div class="card">
|
|
146
|
+
<table class="ik-stack">
|
|
147
|
+
<thead>
|
|
148
|
+
<tr>
|
|
149
|
+
<th scope="col">Piece</th>
|
|
150
|
+
<th scope="col">Size</th>
|
|
151
|
+
<th scope="col" class="num">Days</th>
|
|
152
|
+
<th scope="col" class="num">Cost</th>
|
|
153
|
+
</tr>
|
|
154
|
+
</thead>
|
|
155
|
+
<tbody>
|
|
156
|
+
<tr>
|
|
157
|
+
<td data-label="Piece">Online booking with reminders</td>
|
|
158
|
+
<td data-label="Size">Medium</td>
|
|
159
|
+
<td data-label="Days" class="num">8</td>
|
|
160
|
+
<td data-label="Cost" class="num">£4,800</td>
|
|
161
|
+
</tr>
|
|
162
|
+
<tr>
|
|
163
|
+
<td data-label="Piece">Patient records import</td>
|
|
164
|
+
<td data-label="Size">Small</td>
|
|
165
|
+
<td data-label="Days" class="num">3</td>
|
|
166
|
+
<td data-label="Cost" class="num">£1,800</td>
|
|
167
|
+
</tr>
|
|
168
|
+
<tr>
|
|
169
|
+
<td data-label="Piece">Card payments for deposits</td>
|
|
170
|
+
<td data-label="Size">Large</td>
|
|
171
|
+
<td data-label="Days" class="num">13</td>
|
|
172
|
+
<td data-label="Cost" class="num">£7,800</td>
|
|
173
|
+
</tr>
|
|
174
|
+
</tbody>
|
|
175
|
+
</table>
|
|
176
|
+
</div>
|
|
177
|
+
</section>
|
|
132
178
|
|
|
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
|
-
</
|
|
179
|
+
<section aria-labelledby="h-board">
|
|
180
|
+
<h2 id="h-board">Board</h2>
|
|
181
|
+
<div class="ik-board">
|
|
182
|
+
<div class="card" style="margin:0">A lilac board holds a group of cards, as the presentation boards do on weareimpakt.com.</div>
|
|
183
|
+
</div>
|
|
184
|
+
</section>
|
|
185
|
+
<section aria-labelledby="h-patterns">
|
|
186
|
+
<h2 id="h-patterns">Product patterns</h2>
|
|
187
|
+
<div class="ik-page-head">
|
|
188
|
+
<div>
|
|
189
|
+
<a class="ik-back" href="#">Disputes</a>
|
|
190
|
+
<h1>Flat 3, 10 Park Road</h1>
|
|
191
|
+
<ul class="ik-facts">
|
|
192
|
+
<li><strong>Sam Lee</strong></li>
|
|
193
|
+
<li>1 Sept 2024 to 31 Aug 2026</li>
|
|
194
|
+
<li>TDS</li>
|
|
195
|
+
</ul>
|
|
196
|
+
</div>
|
|
197
|
+
<div class="ik-actions"><span class="pill warn">2 claims to review</span><button class="primary">Build the pack</button></div>
|
|
198
|
+
</div>
|
|
199
|
+
<ol class="ik-steps">
|
|
200
|
+
<li class="done">
|
|
201
|
+
<button>Evidence<span class="ik-step-hint">7 files</span></button>
|
|
202
|
+
</li>
|
|
203
|
+
<li class="done">
|
|
204
|
+
<button>Items and photos<span class="ik-step-hint">5 items paired</span></button>
|
|
205
|
+
</li>
|
|
206
|
+
<li>
|
|
207
|
+
<button aria-current="step">Claims<span class="ik-step-hint">2 to review</span></button>
|
|
208
|
+
</li>
|
|
209
|
+
<li>
|
|
210
|
+
<button disabled>Pack<span class="ik-step-hint">After the claims</span></button>
|
|
211
|
+
</li>
|
|
212
|
+
</ol>
|
|
213
|
+
<div class="ik-summary">
|
|
214
|
+
<div class="ik-stat">
|
|
215
|
+
<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>
|
|
216
|
+
</div>
|
|
217
|
+
<div class="ik-stat ok">
|
|
218
|
+
<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>
|
|
219
|
+
</div>
|
|
220
|
+
<div class="ik-stat warn">
|
|
221
|
+
<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>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
<div class="card">
|
|
225
|
+
<label class="ik-drop"
|
|
226
|
+
><input type="file" multiple /><strong>Drop the check-out photos here</strong
|
|
227
|
+
><span class="ik-hint">or choose files. JPG, PNG or HEIC, up to 15 MB each.</span></label
|
|
228
|
+
>
|
|
229
|
+
<ul class="ik-files">
|
|
230
|
+
<li><span class="ik-file-name">lounge-carpet-checkout.jpg</span><span class="pill ok">Read</span><button class="small ghost">Remove</button></li>
|
|
231
|
+
<li>
|
|
232
|
+
<span class="ik-file-name">kitchen-oven.jpg</span><span class="pill info"><span class="ik-spinner" aria-hidden="true"></span>Reading</span>
|
|
233
|
+
</li>
|
|
234
|
+
</ul>
|
|
235
|
+
</div>
|
|
236
|
+
<div class="ik-progress" role="status">
|
|
237
|
+
<div class="ik-progress-label"><span>Comparing photos from both visits</span><span>3 of 8</span></div>
|
|
238
|
+
<progress max="8" value="3">3 of 8</progress>
|
|
239
|
+
</div>
|
|
240
|
+
<div class="card ik-prose" style="margin-top:16px">
|
|
241
|
+
<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>
|
|
242
|
+
<blockquote>"Lounge carpet: cream, clean throughout, no marks." <a class="ik-source" href="#">Check-in report, p. 2</a></blockquote>
|
|
243
|
+
<p>Fair share: 25% of £800 for a six-year-old carpet with an eight-year life.</p>
|
|
244
|
+
</div>
|
|
245
|
+
<div class="ik-empty">
|
|
246
|
+
<h3>No requests yet</h3>
|
|
247
|
+
<p>Start a request when someone asks for their data. The one-month deadline is worked out for you.</p>
|
|
248
|
+
<div class="ik-toolbar"><button class="primary">Start a request</button><button>Try it with sample data</button></div>
|
|
249
|
+
</div>
|
|
250
|
+
<p class="small muted" style="margin-top:16px">Usage this month</p>
|
|
251
|
+
<span class="ik-meter warn" style="--ik-meter:82%" role="img" aria-label="82% of the plan used"><span></span></span>
|
|
252
|
+
</section>
|
|
253
|
+
</main>
|
|
254
|
+
<script>
|
|
255
|
+
const sel = document.getElementById('theme');
|
|
256
|
+
sel.addEventListener('change', () => {
|
|
257
|
+
if (sel.value) document.documentElement.dataset.theme = sel.value;
|
|
258
|
+
else delete document.documentElement.dataset.theme;
|
|
259
|
+
});
|
|
260
|
+
</script>
|
|
261
|
+
</body>
|
|
193
262
|
</html>
|
package/dist/theme.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Impakt product theme, @atomic-ui/theme version 0.
|
|
2
|
+
* Impakt product theme, @atomic-ui/theme version 0.8.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:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomic-ui/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
"./theme.css": "./dist/theme.css",
|
|
13
|
+
"./fonts-noire.css": "./dist/fonts-noire.css",
|
|
13
14
|
"./fonts/*": "./dist/fonts/*",
|
|
14
15
|
"./package.json": "./package.json"
|
|
15
16
|
},
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
"tsx": "^4.16.0",
|
|
22
23
|
"typescript": "^5.5.0",
|
|
23
24
|
"vitest": "^2.0.0",
|
|
24
|
-
"@atomic-ui/design-tokens": "^0.
|
|
25
|
+
"@atomic-ui/design-tokens": "^0.8.0"
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
27
28
|
"dist",
|
|
@@ -32,13 +32,14 @@ const { version } = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8'))
|
|
|
32
32
|
// The commit is the design system's own, so it is read only in a checkout of it, not in an installed package.
|
|
33
33
|
const inRepository = basename(dirname(root)) === 'packages' && existsSync(join(root, '..', '..', 'pnpm-workspace.yaml'));
|
|
34
34
|
let commit = inRepository ? 'uncommitted' : 'as published';
|
|
35
|
-
if (inRepository)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
if (inRepository)
|
|
36
|
+
try {
|
|
37
|
+
commit = execFileSync('git', ['rev-parse', '--short', 'HEAD'], { cwd: root, encoding: 'utf8' }).trim();
|
|
38
|
+
const dirty = execFileSync('git', ['status', '--porcelain', '--', '.'], { cwd: root, encoding: 'utf8' }).trim();
|
|
39
|
+
if (dirty) commit += ' with uncommitted changes';
|
|
40
|
+
} catch {
|
|
41
|
+
// git is not installed: the version is enough.
|
|
42
|
+
}
|
|
42
43
|
|
|
43
44
|
// pnpm runs a root script from the repository root, so a relative path is read from where it was typed.
|
|
44
45
|
const target = resolve(process.env.INIT_CWD ?? process.cwd(), product, folder);
|