@warmio/design 1.10.1 → 2.0.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.
@@ -0,0 +1,93 @@
1
+ Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
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.
package/README.md CHANGED
@@ -1,30 +1,44 @@
1
1
  # @warmio/design
2
2
 
3
- Warm's public design contract: CSS tokens (fonts, colors, spacing, radii, shadows, motion,
4
- reduced-motion, marketing surfaces + dot patterns) and Button/Logo primitives.
3
+ Warm's public design contract: closed CSS token scales (fonts, an 11-step gray ramp, semantic
4
+ hues, black/white alpha steps, spacing, radii, shadows, motion, control sizes, reduced-motion)
5
+ and the Logo primitive.
5
6
 
6
7
  ```css
7
8
  @import '@warmio/design/globals.css';
8
9
  ```
9
10
 
10
- Import primitives directly:
11
+ Import the Logo primitive directly:
11
12
 
12
13
  ```ts
13
- import { Button, ButtonLink } from '@warmio/design/button';
14
14
  import { Logo, WarmLogoIcon } from '@warmio/design/logo';
15
15
  ```
16
16
 
17
- The product UI uses Inter from Google Fonts. JetBrains Mono remains for
18
- numbers, code, and measurements. The interface uses regular (400) and medium (500) weights.
17
+ The product UI uses Inter, self-hosted from `fonts/` as wght variable latin and
18
+ latin-ext subsets (normal and italic, Inter 4.001 from `@fontsource-variable/inter`
19
+ 5.3.0, OFL in `LICENSES/inter-OFL-1.1.txt`). No font loads from Google.
20
+ JetBrains Mono remains for numbers, code, and measurements. The interface uses regular (400) and medium (500) weights.
19
21
 
20
- `--accent-solid` / `--accent-solid-text` are the chromatic accent for links,
21
- badges, and highlights. They derive from `--brand-accent-solid` in `themes.css`.
22
+ `--accent-solid` is the one chromatic accent for links, badges, and highlights.
22
23
 
23
- Package ships `components.css` (token-only styles for the primitives) and `dist/` (ESM + .d.ts). `dependencies` and `devDependencies` are empty.
24
+ Package ships `logo.css` (token-only Logo styles) and `dist/` (ESM + .d.ts). `dependencies` and `devDependencies` are empty.
24
25
  `peerDependencies.react` is `^19.0.0`. No root JS export.
25
26
 
26
27
  ## Releases
27
28
 
29
+ The next release is `2.0.0`, the closed-scale release. It replaces the 4-color brand
30
+ derivation and `themes.css` with fixed primitives (`--gray-*`, `--black-*`, `--white-*`), merges
31
+ duplicate tokens (`--secondary` into `--accent`, `--*-bg-muted` into `--*-bg-subtle`, shadow
32
+ `2xs`/`xs`/`xl`/`2xl` into `sm`/`lg`, font aliases into `--font-sans`), aligns motion with
33
+ `FLUID_SPRING` (80/160/240ms), and adds `--control-height-*`, `--icon-size*`,
34
+ `--focus-ring-width`, and `--radius-sm/md`. Removed: `themes.css`, `--brand-*`, `--logo-gradient-*`,
35
+ `--marketing-*`, `--overlay-*`, `--highlight-*`, `--glass-*`, `--transition-*`, `--button-*` sizing and
36
+ mix tokens, `--input-*`, `--table-*`, `--card-padding`, `--spacing-md/xl/2xl`, and `--breakpoint-*`.
37
+
38
+ The `1.11.0` release added the 18px `--type-size-large` token for
39
+ large body copy, self-hosts Inter instead of importing it from Google Fonts, and
40
+ removes the `./button` and `./components.css` exports (Button now lives in `@warm/ui`).
41
+
28
42
  The `1.10.0` release adds the `tableHeaderLink` Button presentation for
29
43
  borderless, underlined sortable table headers. The `1.9.1` release updated the
30
44
  light default button shadow and white-to-gray gradient. Version `1.9.0`
package/fonts.css CHANGED
@@ -1,8 +1,48 @@
1
- /*
2
- * Inter is the shared Google Fonts UI family.
3
- * JetBrains Mono remains local for financial values, code, and measurements.
4
- */
5
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
1
+ @font-face {
2
+ font-family: 'Inter';
3
+ font-style: normal;
4
+ font-display: swap;
5
+ font-weight: 100 900;
6
+ src: url('./fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
7
+ unicode-range:
8
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
9
+ U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
10
+ U+A720-A7FF;
11
+ }
12
+
13
+ @font-face {
14
+ font-family: 'Inter';
15
+ font-style: normal;
16
+ font-display: swap;
17
+ font-weight: 100 900;
18
+ src: url('./fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
19
+ unicode-range:
20
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
21
+ U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
22
+ }
23
+
24
+ @font-face {
25
+ font-family: 'Inter';
26
+ font-style: italic;
27
+ font-display: swap;
28
+ font-weight: 100 900;
29
+ src: url('./fonts/inter-latin-ext-wght-italic.woff2') format('woff2-variations');
30
+ unicode-range:
31
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
32
+ U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
33
+ U+A720-A7FF;
34
+ }
35
+
36
+ @font-face {
37
+ font-family: 'Inter';
38
+ font-style: italic;
39
+ font-display: swap;
40
+ font-weight: 100 900;
41
+ src: url('./fonts/inter-latin-wght-italic.woff2') format('woff2-variations');
42
+ unicode-range:
43
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
44
+ U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
45
+ }
6
46
 
7
47
  @font-face {
8
48
  font-family: 'JetBrains Mono';
@@ -53,11 +93,4 @@
53
93
  :root {
54
94
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
55
95
  --font-sans: 'Inter', sans-serif;
56
- --font-geist: var(--font-sans);
57
- --font-display: var(--font-sans);
58
- --font-editorial-sans: var(--font-sans);
59
- --font-default: var(--font-sans);
60
- --font-serif: var(--font-sans);
61
- --font-marketing-sans: var(--font-sans);
62
- --font-heading: var(--font-sans);
63
96
  }
package/globals.css CHANGED
@@ -2,4 +2,4 @@
2
2
  @import './theme.css';
3
3
  @import './base.css';
4
4
  @import './interfaces.css';
5
- @import './components.css';
5
+ @import './logo.css';
package/interfaces.css CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  :root {
4
4
  /* Concentric radius: nested surfaces subtract padding from the outer radius. */
5
- --interface-image-outline: oklch(0 0 0 / 0.08);
5
+ --interface-image-outline: var(--black-10);
6
6
  --interface-prose-measure: 65ch;
7
7
  }
8
8
 
9
9
  .dark {
10
- --interface-image-outline: oklch(1 0 0 / 0.08);
10
+ --interface-image-outline: var(--white-10);
11
11
  }
12
12
 
13
13
  /* Disable incidental CSS transitions while the theme class toggles. View transitions stay enabled. */
@@ -69,9 +69,9 @@ html.theme-switching *::after {
69
69
  position: absolute;
70
70
  inset: 0;
71
71
  transition:
72
- opacity 200ms ease-out,
73
- transform 200ms ease-out,
74
- filter 200ms ease-out;
72
+ opacity var(--motion-duration-normal) var(--motion-easing),
73
+ transform var(--motion-duration-normal) var(--motion-easing),
74
+ filter var(--motion-duration-normal) var(--motion-easing);
75
75
  }
76
76
 
77
77
  .interface-icon-crossfade > svg[data-state='inactive'] {
package/logo.css ADDED
@@ -0,0 +1,39 @@
1
+ /* Logo - keep data-warm-logo on wrapper div AND svg; unambiguous element selectors + data to avoid sizing wrapper or constraining width; wrapper inline-flex (not inline-block); preserve gap/text/typography/tone/icon sizes from old */
2
+ [data-warm-logo] {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ gap: var(--logo-gap);
6
+ }
7
+ [data-warm-logo] > span {
8
+ font-size: var(--logo-font-size);
9
+ font-weight: 500;
10
+ letter-spacing: var(--logo-letter-spacing);
11
+ }
12
+ svg[data-warm-logo] {
13
+ display: block;
14
+ fill: currentColor;
15
+ flex-shrink: 0;
16
+ }
17
+ [data-warm-logo][data-size='badge'] svg[data-warm-logo] {
18
+ width: var(--logo-size-badge);
19
+ height: var(--logo-size-badge);
20
+ }
21
+ [data-warm-logo][data-size='default'] svg[data-warm-logo] {
22
+ width: var(--logo-size-default);
23
+ height: var(--logo-size-default);
24
+ }
25
+ [data-warm-logo][data-size='feature'] svg[data-warm-logo] {
26
+ width: var(--logo-size-feature);
27
+ height: var(--logo-size-feature);
28
+ }
29
+ [data-warm-logo][data-size='hero'] svg[data-warm-logo] {
30
+ width: var(--logo-size-hero);
31
+ height: var(--logo-size-hero);
32
+ }
33
+
34
+ [data-warm-logo][data-tone='foreground'] {
35
+ color: var(--foreground);
36
+ }
37
+ [data-warm-logo][data-tone='sidebar'] {
38
+ color: var(--sidebar-foreground);
39
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warmio/design",
3
- "version": "1.10.1",
4
- "description": "Warm's public design contract: CSS tokens and Button/Logo primitives.",
3
+ "version": "2.0.0",
4
+ "description": "Warm's public design contract: CSS tokens and the Logo primitive.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -22,8 +22,7 @@
22
22
  "fonts.css",
23
23
  "interfaces.css",
24
24
  "theme.css",
25
- "themes.css",
26
- "components.css",
25
+ "logo.css",
27
26
  "fonts",
28
27
  "dist",
29
28
  "LICENSES"
@@ -33,13 +32,8 @@
33
32
  "./base.css": "./base.css",
34
33
  "./fonts.css": "./fonts.css",
35
34
  "./theme.css": "./theme.css",
36
- "./themes.css": "./themes.css",
37
35
  "./interfaces.css": "./interfaces.css",
38
- "./components.css": "./components.css",
39
- "./button": {
40
- "types": "./dist/button.d.ts",
41
- "import": "./dist/button.js"
42
- },
36
+ "./logo.css": "./logo.css",
43
37
  "./logo": {
44
38
  "types": "./dist/logo.d.ts",
45
39
  "import": "./dist/logo.js"