origam 2.46.1 → 2.47.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.
@@ -64,29 +64,23 @@
64
64
  :root,
65
65
  [data-theme="light"],
66
66
  [data-mode="light"] {
67
- --origam-color__surface---default: var(--origam-color__neutral---0);
68
- --origam-color__surface---raised: var(--origam-color__neutral---0);
69
- --origam-color__surface---overlay: var(--origam-color__neutral---100);
70
- --origam-color__surface---sunken: var(--origam-color__neutral---50);
67
+ --origam-color__surface---default: #f7f5ef;
68
+ --origam-color__surface---raised: #fffaf7;
69
+ --origam-color__surface---overlay: #f5edff;
70
+ --origam-color__surface---sunken: #e9e0ff;
71
71
  --origam-color__surface---disabled: var(--origam-color__neutral---200);
72
72
  --origam-color__surface---inverse: var(--origam-color__neutral---900);
73
- /* #615 — `950`, PAS `900`. Cette feuille NE gagne PAS la cascade au niveau
74
- document : `createOrigam()` appelle `applyThemes()`, qui serialise
75
- `origamLightTheme` (src/themes/origam.theme.ts) en un bloc `:root { … }`
76
- injecte dans <head> APRES cette feuille. A specificite egale (0,1,0) c'est
77
- l'ordre source qui tranche, donc le bloc runtime gagne — et il pose
78
- `#0a0a0a`, soit neutral-950. Tant que cette ligne disait `900`, le meme
79
- theme « light » peignait DEUX couleurs : `#0a0a0a` a la racine et
80
- `#171717` dans un sous-arbre `<OrigamThemeProvider theme="light">` (ou
81
- `[data-theme="light"]` matche alors que `:root` ne matche plus). Les deux
82
- valeurs mesurees en Chromium ; le contraste sur `surface.default` passe de
83
- 17.93:1 a 19.80:1. Si cette ligne doit revenir a `900`, c'est
84
- `origam.theme.ts` qu'il faut changer AVEC, sinon la divergence revient. */
85
- --origam-color__text---primary: var(--origam-color__neutral---950);
73
+ /* #615 — cette ligne et `origamLightTheme.vars.color.text.primary`
74
+ (src/themes/origam.theme.ts) doivent porter la MEME valeur : le bloc
75
+ runtime injecte par `createOrigam()` gagne a la racine (meme specificite,
76
+ ordre source), et cette feuille gagne dans un sous-arbre
77
+ `[data-theme="light"]`. Deux valeurs = deux couleurs pour un meme theme.
78
+ #1514 — encre du brand kit A1 (#1b1127), 16.66:1 sur papier. */
79
+ --origam-color__text---primary: #1b1127;
86
80
  --origam-color__text---secondary: var(--origam-color__neutral---600);
87
- /* #1044 — un niveau sous `secondary`, mesuré 4.74:1 sur `surface---default`
88
- (#ffffff), AA. Voir dark.css pour la contrainte qui a fixé ce rung. */
89
- --origam-color__text---tertiary: var(--origam-color__neutral---500);
81
+ /* #1514 — aligné sur `secondary` (précédent #1044 en sombre) : l'ancien
82
+ `neutral---500` mesure 4.35:1 sur le papier #f7f5ef, sous AA. */
83
+ --origam-color__text---tertiary: var(--origam-color__neutral---600);
90
84
  --origam-color__text---disabled: var(--origam-color__neutral---400);
91
85
  --origam-color__text---inverse: var(--origam-color__neutral---0);
92
86
  --origam-color__text---onColor: var(--origam-color__neutral---0);
@@ -111,17 +105,17 @@
111
105
  --origam-color__action--ghost---bg: rgba(0, 0, 0, 0);
112
106
  --origam-color__action--ghost---bgHover: var(--origam-color__neutral---100);
113
107
  --origam-color__action--ghost---bgDisabled: rgba(0, 0, 0, 0);
114
- --origam-color__action--ghost---fg: var(--origam-color__primary---600);
108
+ --origam-color__action--ghost---fg: var(--origam-color__primary---700);
115
109
  --origam-color__action--ghost---fgDisabled: var(--origam-color__neutral---400);
116
110
  --origam-color__feedback--success---bg: var(--origam-color__green---700);
117
111
  --origam-color__feedback--success---bgSubtle: var(--origam-color__green---50);
118
112
  --origam-color__feedback--success---fg: var(--origam-color__neutral---0);
119
- --origam-color__feedback--success---fgSubtle: var(--origam-color__green---700);
113
+ --origam-color__feedback--success---fgSubtle: var(--origam-color__green---800);
120
114
  --origam-color__feedback--success---border: var(--origam-color__green---700);
121
115
  --origam-color__feedback--warning---bg: var(--origam-color__amber---700);
122
116
  --origam-color__feedback--warning---bgSubtle: var(--origam-color__amber---50);
123
117
  --origam-color__feedback--warning---fg: var(--origam-color__neutral---0);
124
- --origam-color__feedback--warning---fgSubtle: var(--origam-color__amber---700);
118
+ --origam-color__feedback--warning---fgSubtle: var(--origam-color__amber---800);
125
119
  --origam-color__feedback--warning---border: var(--origam-color__amber---700);
126
120
  --origam-color__feedback--danger---bg: var(--origam-color__red---600);
127
121
  --origam-color__feedback--danger---bgSubtle: var(--origam-color__red---50);
@@ -196,7 +190,7 @@
196
190
  --origam-btn---background-color-hover: var(--origam-color__action--secondary---bgHover);
197
191
  --origam-btn---background-color-disabled: var(--origam-color__action--primary---bgDisabled);
198
192
  --origam-btn---color-disabled: var(--origam-color__action--primary---fgDisabled);
199
- --origam-btn---border-radius: var(--origam-radius---sm);
193
+ --origam-btn---border-radius: var(--origam-radius---full); /* #1514 — pilule (brand kit A1), par token et non par prop : voir origam.theme.ts et #1523 */
200
194
  --origam-btn---border-radius-icon: var(--origam-radius---full);
201
195
  --origam-btn---border-radius-rounded: var(--origam-radius---2xl);
202
196
  --origam-btn---border-width: var(--origam-border__width---0);
@@ -264,7 +258,7 @@
264
258
  --origam-btn-group---border-width: var(--origam-border__width---0);
265
259
  --origam-btn-group---border-style: solid;
266
260
  --origam-btn-group---border-color: var(--origam-color__border---subtle);
267
- --origam-btn-group---border-radius: var(--origam-radius---sm);
261
+ --origam-btn-group---border-radius: var(--origam-radius---full); /* #1514 — pilule, comme --origam-btn---border-radius */
268
262
  --origam-card---display: block;
269
263
  --origam-card---overflow: hidden;
270
264
  --origam-card---overflow-wrap: break-word;
@@ -724,7 +718,7 @@
724
718
  --origam-snackbar-item__title---font-weight: var(--origam-font__weight---semibold);
725
719
  --origam-snackbar-item__message---font-weight: var(--origam-font__weight---regular);
726
720
  --origam-snackbar-item__message---color: currentColor;
727
- --origam-snackbar-item__message---opacity: 0.85;
721
+ --origam-snackbar-item__message---opacity: 1; /* #1514 — 0.85 faisait tomber le texte feedback sous AA sur le papier */
728
722
  --origam-snackbar-item__action---color: var(--origam-color__action--primary---fg);
729
723
  --origam-snackbar-item__action--hover---background-color: rgba(0, 0, 0, 0.04);
730
724
  --origam-snackbar-item__dismiss--hover---background-color: rgba(0, 0, 0, 0.04);
@@ -25,16 +25,36 @@
25
25
  --origam-color__neutral---800: #262626;
26
26
  --origam-color__neutral---900: #171717;
27
27
  --origam-color__neutral---950: #0a0a0a;
28
- --origam-color__primary---50: #f5f3ff;
29
- --origam-color__primary---100: #ede9fe;
30
- --origam-color__primary---200: #ddd6fe;
31
- --origam-color__primary---300: #c4b5fd;
32
- --origam-color__primary---400: #a78bfa;
33
- --origam-color__primary---500: #8b5cf6;
34
- --origam-color__primary---600: #7c3aed;
35
- --origam-color__primary---700: #6d28d9;
36
- --origam-color__primary---800: #5b21b6;
37
- --origam-color__primary---900: #4c1d95;
28
+ /* #1514 — violet du brand kit A1 : 600 = #6a56f6 (fond d'action, blanc
29
+ dessus 4.91:1). 50..500 = mélange vers le blanc, 700..900 vers l'encre
30
+ #1b1127. 700 (#614edd) = la teinte la plus proche de 600 qui tient AA
31
+ en TEXTE sur toutes les surfaces claires (min 4.55:1, lavande #e9e0ff) ;
32
+ 400 (#9284f8) = son pendant en sombre (min 4.58:1 sur les surfaces
33
+ dérivées de l'encre). */
34
+ --origam-color__primary---50: #f3f1fe;
35
+ --origam-color__primary---100: #e7e4fe;
36
+ --origam-color__primary---200: #cfc9fc;
37
+ --origam-color__primary---300: #b5abfb;
38
+ --origam-color__primary---400: #9284f8;
39
+ --origam-color__primary---500: #7d6cf7;
40
+ --origam-color__primary---600: #6a56f6;
41
+ --origam-color__primary---700: #614edd;
42
+ --origam-color__primary---800: #4e3eae;
43
+ --origam-color__primary---900: #2f225b;
44
+ /* #1514 — rampe « soleil » du brand kit A1 (500 = #ffc529). Branchée sur
45
+ AUCUN composant : l'intention `accent` est le ticket #1522. Paliers =
46
+ mélange vers le blanc (50..400) ou vers l'encre #1b1127 (600..900).
47
+ Le texte posé sur ce jaune doit être l'encre (blanc = 1.58:1). */
48
+ --origam-color__sun---50: #fffaee;
49
+ --origam-color__sun---100: #fff6dd;
50
+ --origam-color__sun---200: #ffecbb;
51
+ --origam-color__sun---300: #ffe190;
52
+ --origam-color__sun---400: #ffd35c;
53
+ --origam-color__sun---500: #ffc529;
54
+ --origam-color__sun---600: #ddaa29;
55
+ --origam-color__sun---700: #bb8f28;
56
+ --origam-color__sun---800: #987428;
57
+ --origam-color__sun---900: #765928;
38
58
  --origam-color__green---50: #f0fdf4;
39
59
  --origam-color__green---100: #dcfce7;
40
60
  --origam-color__green---200: #bbf7d0;
@@ -90,7 +110,7 @@
90
110
  --origam-space---14: 56px;
91
111
  --origam-space---16: 64px;
92
112
  --origam-space---20: 80px;
93
- --origam-font__family---sans: Inter, 'Helvetica Neue', Arial, sans-serif;
113
+ --origam-font__family---sans: 'Sora', Inter, ui-sans-serif, system-ui, sans-serif;
94
114
  --origam-font__family---mono: 'JetBrains Mono', 'Fira Code', monospace;
95
115
  --origam-font__family---serif: Georgia, 'Times New Roman', serif;
96
116
  --origam-font__family---display: var(--origam-font__family---sans);
@@ -123,17 +143,17 @@
123
143
  --origam-radius---none: 0px;
124
144
  --origam-radius---xs: 2px;
125
145
  --origam-radius---sm: 4px;
126
- --origam-radius---md: 8px;
146
+ --origam-radius---md: 10px;
127
147
  --origam-radius---lg: 12px;
128
148
  --origam-radius---xl: 16px;
129
149
  --origam-radius---2xl: 24px;
130
150
  --origam-radius---full: 9999px;
131
151
  --origam-shadow---none: 0px 0px 0px 0px rgba(0,0,0,0);
132
- --origam-shadow---xs: 0px 1px 2px 0px rgba(0,0,0,0.05);
133
- --origam-shadow---sm: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px -1px rgba(0,0,0,0.1);
134
- --origam-shadow---md: 0px 6px 24px 0px rgba(0,0,0,0.05), 0px 0px 0px 1px rgba(0,0,0,0.08);
135
- --origam-shadow---lg: 0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12);
136
- --origam-shadow---xl: 0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12);
152
+ --origam-shadow---xs: 0px 1px 2px 0px rgba(27,17,39,0.06);
153
+ --origam-shadow---sm: 0px 4px 12px 0px rgba(27,17,39,0.08);
154
+ --origam-shadow---md: 0px 8px 24px 0px rgba(27,17,39,0.10);
155
+ --origam-shadow---lg: 0px 16px 40px 0px rgba(27,17,39,0.16);
156
+ --origam-shadow---xl: 0px 24px 56px 0px rgba(27,17,39,0.22);
137
157
  --origam-motion__duration---instant: 0ms;
138
158
  --origam-motion__duration---fast: 100ms;
139
159
  --origam-motion__duration---normal: 150ms;
@@ -975,10 +975,6 @@ defineExpose({ filterProps });
975
975
  }
976
976
  }
977
977
 
978
- &--status-completed {
979
- opacity: 0.95;
980
- }
981
-
982
978
  // #511 — `origam-bracket-match--final` was posed on `is-final` matches
983
979
  // (OrigamBracketRound.vue wires it for the last match of the last
984
980
  // round) with NO matching rule: a final rendered pixel-identical to
@@ -6,34 +6,34 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.origamTheme = exports.origamLightTheme = exports.origamDarkTheme = void 0;
7
7
  const origamLightTheme = exports.origamLightTheme = {
8
8
  label: "Origam",
9
- description: "Calm, neutral surfaces with a single violet accent \u2014 the default origam identity.",
9
+ description: "Paper and ink surfaces with a violet action colour \u2014 the default origam identity (A1 brand kit).",
10
10
  vars: {
11
11
  color: {
12
12
  surface: {
13
- default: "#ffffff",
14
- raised: "#fafafa",
15
- sunken: "#f5f5f5",
16
- overlay: "#f5f5f5",
13
+ default: "#f7f5ef",
14
+ raised: "#fffaf7",
15
+ sunken: "#e9e0ff",
16
+ overlay: "#f5edff",
17
17
  disabled: "#e6e6e6"
18
18
  },
19
19
  text: {
20
- primary: "#0a0a0a",
20
+ primary: "#1b1127",
21
21
  secondary: "#525252",
22
- tertiary: "#737373",
22
+ tertiary: "#525252",
23
23
  disabled: "#a3a3a3",
24
24
  inverse: "#ffffff",
25
25
  onColor: "#ffffff",
26
- ink: "#0a0a0a"
26
+ ink: "#1b1127"
27
27
  },
28
28
  action: {
29
29
  primary: {
30
- bg: "#7c3aed",
31
- bgHover: "#6d28d9",
30
+ bg: "#6a56f6",
31
+ bgHover: "#614edd",
32
32
  bgDisabled: "#e6e6e6",
33
- bgSubtle: "rgba(124, 58, 237, 0.10)",
33
+ bgSubtle: "rgba(106, 86, 246, 0.10)",
34
34
  fg: "#ffffff",
35
35
  fgDisabled: "#a3a3a3",
36
- fgSubtle: "#6d28d9"
36
+ fgSubtle: "#614edd"
37
37
  },
38
38
  secondary: {
39
39
  bg: "#f5f5f5",
@@ -46,7 +46,7 @@ const origamLightTheme = exports.origamLightTheme = {
46
46
  bg: "rgba(0, 0, 0, 0)",
47
47
  bgHover: "rgba(0, 0, 0, 0.06)",
48
48
  bgDisabled: "rgba(0, 0, 0, 0)",
49
- fg: "#7c3aed",
49
+ fg: "#614edd",
50
50
  fgDisabled: "#a3a3a3"
51
51
  }
52
52
  },
@@ -56,7 +56,7 @@ const origamLightTheme = exports.origamLightTheme = {
56
56
  "subtle-alpha": "rgba(0, 0, 0, 0.08)",
57
57
  strong: "rgba(0, 0, 0, 0.16)",
58
58
  ghost: "rgba(0, 0, 0, 0.08)",
59
- focus: "#7c3aed"
59
+ focus: "#6a56f6"
60
60
  },
61
61
  feedback: {
62
62
  danger: {
@@ -77,14 +77,14 @@ const origamLightTheme = exports.origamLightTheme = {
77
77
  bg: "#15803d",
78
78
  bgSubtle: "rgba(22, 163, 74, 0.08)",
79
79
  fg: "#ffffff",
80
- fgSubtle: "#15803d",
80
+ fgSubtle: "#166534",
81
81
  border: "#15803d"
82
82
  },
83
83
  warning: {
84
84
  bg: "#b45309",
85
85
  bgSubtle: "rgba(217, 119, 6, 0.08)",
86
86
  fg: "#ffffff",
87
- fgSubtle: "#b45309",
87
+ fgSubtle: "#92400e",
88
88
  border: "#b45309"
89
89
  }
90
90
  }
@@ -93,7 +93,7 @@ const origamLightTheme = exports.origamLightTheme = {
93
93
  none: "0px",
94
94
  xs: "2px",
95
95
  sm: "4px",
96
- md: "8px",
96
+ md: "10px",
97
97
  lg: "12px",
98
98
  xl: "16px",
99
99
  "2xl": "24px",
@@ -114,7 +114,7 @@ const origamLightTheme = exports.origamLightTheme = {
114
114
  },
115
115
  typo: {
116
116
  family: {
117
- sans: "Inter, 'Helvetica Neue', Arial, sans-serif",
117
+ sans: "'Sora', Inter, ui-sans-serif, system-ui, sans-serif",
118
118
  serif: "Georgia, 'Times New Roman', serif",
119
119
  mono: "'JetBrains Mono', 'Fira Code', monospace"
120
120
  },
@@ -153,15 +153,15 @@ const origamLightTheme = exports.origamLightTheme = {
153
153
  },
154
154
  shadow: {
155
155
  none: "0px 0px 0px 0px rgba(0,0,0,0)",
156
- xs: "0px 1px 2px 0px rgba(0,0,0,0.05)",
157
- sm: "0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px -1px rgba(0,0,0,0.1)",
158
- md: "0px 6px 24px 0px rgba(0,0,0,0.05), 0px 0px 0px 1px rgba(0,0,0,0.08)",
159
- lg: "0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",
160
- xl: "0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12)",
161
- "btn-primary": "rgba(255, 255, 255, 0.20) 0px 1px 0px 0px inset, rgba(124, 58, 237, 0.50) 0px 8px 24px -8px",
156
+ xs: "0px 1px 2px 0px rgba(27,17,39,0.06)",
157
+ sm: "0px 4px 12px 0px rgba(27,17,39,0.08)",
158
+ md: "0px 8px 24px 0px rgba(27,17,39,0.10)",
159
+ lg: "0px 16px 40px 0px rgba(27,17,39,0.16)",
160
+ xl: "0px 24px 56px 0px rgba(27,17,39,0.22)",
161
+ "btn-primary": "rgba(255, 255, 255, 0.20) 0px 1px 0px 0px inset, rgba(106, 86, 246, 0.50) 0px 8px 24px -8px",
162
162
  "btn-secondary": "none",
163
- "card-elevated": "0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px -16px rgba(0, 0, 0, 0.18)",
164
- "glow-primary": "inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px -8px rgba(124, 58, 237, 0.5)"
163
+ "card-elevated": "0 1px 3px rgba(27, 17, 39, 0.04), 0 8px 24px -16px rgba(27, 17, 39, 0.18)",
164
+ "glow-primary": "inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px -8px rgba(106, 86, 246, 0.5)"
165
165
  },
166
166
  spacing: {
167
167
  "0": "0px",
@@ -510,15 +510,28 @@ const origamLightTheme = exports.origamLightTheme = {
510
510
  const origamDarkTheme = exports.origamDarkTheme = {
511
511
  mode: "dark",
512
512
  label: "Origam",
513
- description: "Calm, neutral surfaces with a single violet accent \u2014 the default origam identity.",
513
+ description: "Paper and ink surfaces with a violet action colour \u2014 the default origam identity (A1 brand kit).",
514
514
  vars: {
515
515
  color: {
516
+ /*********************************************************
517
+ * #1514 — surfaces derived from the ink #1b1127
518
+ *
519
+ * @description
520
+ * The kit gives only the ink. Fixed-step sRGB mixes, per channel
521
+ * `round(ink * (1 - t) + target * t)`:
522
+ * raised = ink → white 4 % #241b30
523
+ * overlay = ink → white 8 % #2d2438
524
+ * disabled = ink → white 16 % #3f374a
525
+ * sunken = ink → black 25 % #140d1d
526
+ * and the borders: subtle 12 % #362e41, default 20 % #494152,
527
+ * strong 56 % #9b96a0 (all ink → white).
528
+ ********************************************************/
516
529
  surface: {
517
- default: "#0a0a0a",
518
- raised: "#0e0e0e",
519
- sunken: "#171717",
520
- overlay: "#0e0e0e",
521
- disabled: "#262626"
530
+ default: "#1b1127",
531
+ raised: "#241b30",
532
+ sunken: "#140d1d",
533
+ overlay: "#2d2438",
534
+ disabled: "#3f374a"
522
535
  },
523
536
  text: {
524
537
  primary: "#fafafa",
@@ -540,13 +553,13 @@ const origamDarkTheme = exports.origamDarkTheme = {
540
553
  },
541
554
  action: {
542
555
  primary: {
543
- bg: "#7c3aed",
544
- bgHover: "#6d28d9",
556
+ bg: "#6a56f6",
557
+ bgHover: "#614edd",
545
558
  bgDisabled: "#262626",
546
- bgSubtle: "rgba(124, 58, 237, 0.14)",
559
+ bgSubtle: "rgba(106, 86, 246, 0.14)",
547
560
  fg: "#ffffff",
548
561
  fgDisabled: "#525252",
549
- fgSubtle: "#c4b5fd"
562
+ fgSubtle: "#9284f8"
550
563
  },
551
564
  secondary: {
552
565
  bg: "#262626",
@@ -559,17 +572,17 @@ const origamDarkTheme = exports.origamDarkTheme = {
559
572
  bg: "rgba(0, 0, 0, 0)",
560
573
  bgHover: "rgba(255, 255, 255, 0.06)",
561
574
  bgDisabled: "rgba(0, 0, 0, 0)",
562
- fg: "#c4b5fd",
575
+ fg: "#9284f8",
563
576
  fgDisabled: "#525252"
564
577
  }
565
578
  },
566
579
  border: {
567
- default: "rgba(255, 255, 255, 0.08)",
568
- subtle: "rgba(255, 255, 255, 0.04)",
580
+ default: "#494152",
581
+ subtle: "#362e41",
569
582
  "subtle-alpha": "rgba(255, 255, 255, 0.08)",
570
- strong: "rgba(255, 255, 255, 0.16)",
583
+ strong: "#9b96a0",
571
584
  ghost: "rgba(255, 255, 255, 0.08)",
572
- focus: "#a78bfa"
585
+ focus: "#9284f8"
573
586
  },
574
587
  feedback: {
575
588
  danger: {
@@ -603,10 +616,10 @@ const origamDarkTheme = exports.origamDarkTheme = {
603
616
  }
604
617
  },
605
618
  shadow: {
606
- "btn-primary": "rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset, rgba(139, 92, 246, 0.50) 0px 8px 24px -8px",
619
+ "btn-primary": "rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset, rgba(106, 86, 246, 0.50) 0px 8px 24px -8px",
607
620
  "btn-secondary": "none",
608
621
  "card-elevated": "inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 24px -16px rgba(0, 0, 0, 0.6)",
609
- "glow-primary": "inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px -8px rgba(139, 92, 246, 0.5)"
622
+ "glow-primary": "inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px -8px rgba(106, 86, 246, 0.5)"
610
623
  }
611
624
  },
612
625
  cssVars: {},
@@ -1,4 +1,42 @@
1
1
  import type { IOrigamTheme } from '../interfaces/Commons/theme.interface';
2
+ /*********************************************************
3
+ * #1514 — identity of the A1 brand kit
4
+ *
5
+ * @description
6
+ * Violet #6a56f6 (actions), papier #f7f5ef (light page), encre #1b1127
7
+ * (light text / dark page), lavender surfaces #f5edff / #e9e0ff, Sora.
8
+ * Every value here is mirrored in light.css / dark.css (#615 parity spec).
9
+ * @description
10
+ * The kit's sun #ffc529 lives ONLY as the primitive ramp
11
+ * `--origam-color__sun---*` (primitive.css), wired to no component: the
12
+ * `accent` intent is #1522.
13
+ * @description
14
+ * Violet used as TEXT is never #6a56f6 itself (4.51:1 on papier, 3.88:1 on
15
+ * lavender, 3.70:1 on encre). Light uses #614edd (min 4.55:1 over papier,
16
+ * #fffaf7, both lavenders and bgSubtle); dark uses #9284f8 (min 4.58:1 over
17
+ * encre and its derived surfaces).
18
+ * @description
19
+ * `feedback.success` / `feedback.warning` `fgSubtle` move one rung darker
20
+ * (green-800 #166534, amber-800 #92400e): the 700 rung measured 3.96:1 on
21
+ * the lavender #e9e0ff (5.63 / 5.59 now).
22
+ * @description
23
+ * `text.tertiary` aligns on `secondary` (#1044 precedent): #737373 is
24
+ * 4.35:1 on papier. `typo.family.sans` names Sora, but the DS ships no
25
+ * @font-face: Sora renders only if the app loads it.
26
+ * @description
27
+ * Shadows: kit "card" = `md`, kit "floating" = `lg`; xs / sm / xl are a ramp
28
+ * on the ink. Radii by value: md = 10, xl = 16, 2xl = 24, lg stays 12.
29
+ * @description
30
+ * Buttons are pills (kit `.button { border-radius: 999px }`) through the
31
+ * TOKENS `--origam-btn---border-radius` and `--origam-btn-group---border-radius`
32
+ * (BtnGroup / BtnToggle follow), declared in light.css / dark.css
33
+ * only (this theme carries no component-tier var, and the root block never
34
+ * overrides it), NOT through `components['origam-btn'].rounded`.
35
+ * Deliberate PROPS-FIRST exception, decided by the owner: a theme prop is
36
+ * emitted as an INLINE style, which beats the scoped `var()` of every
37
+ * component that nests an OrigamBtn (measured: OrigamInlineEdit's action
38
+ * button went from 4px to 9999px). The mechanism defect is #1523.
39
+ ********************************************************/
2
40
  export declare const origamLightTheme: IOrigamTheme;
3
41
  export declare const origamDarkTheme: IOrigamTheme;
4
42
  export declare const origamTheme: IOrigamTheme[];
@@ -1,33 +1,33 @@
1
1
  export const origamLightTheme = {
2
2
  label: "Origam",
3
- description: "Calm, neutral surfaces with a single violet accent \u2014 the default origam identity.",
3
+ description: "Paper and ink surfaces with a violet action colour \u2014 the default origam identity (A1 brand kit).",
4
4
  vars: {
5
5
  color: {
6
6
  surface: {
7
- default: "#ffffff",
8
- raised: "#fafafa",
9
- sunken: "#f5f5f5",
10
- overlay: "#f5f5f5",
7
+ default: "#f7f5ef",
8
+ raised: "#fffaf7",
9
+ sunken: "#e9e0ff",
10
+ overlay: "#f5edff",
11
11
  disabled: "#e6e6e6"
12
12
  },
13
13
  text: {
14
- primary: "#0a0a0a",
14
+ primary: "#1b1127",
15
15
  secondary: "#525252",
16
- tertiary: "#737373",
16
+ tertiary: "#525252",
17
17
  disabled: "#a3a3a3",
18
18
  inverse: "#ffffff",
19
19
  onColor: "#ffffff",
20
- ink: "#0a0a0a"
20
+ ink: "#1b1127"
21
21
  },
22
22
  action: {
23
23
  primary: {
24
- bg: "#7c3aed",
25
- bgHover: "#6d28d9",
24
+ bg: "#6a56f6",
25
+ bgHover: "#614edd",
26
26
  bgDisabled: "#e6e6e6",
27
- bgSubtle: "rgba(124, 58, 237, 0.10)",
27
+ bgSubtle: "rgba(106, 86, 246, 0.10)",
28
28
  fg: "#ffffff",
29
29
  fgDisabled: "#a3a3a3",
30
- fgSubtle: "#6d28d9"
30
+ fgSubtle: "#614edd"
31
31
  },
32
32
  secondary: {
33
33
  bg: "#f5f5f5",
@@ -40,7 +40,7 @@ export const origamLightTheme = {
40
40
  bg: "rgba(0, 0, 0, 0)",
41
41
  bgHover: "rgba(0, 0, 0, 0.06)",
42
42
  bgDisabled: "rgba(0, 0, 0, 0)",
43
- fg: "#7c3aed",
43
+ fg: "#614edd",
44
44
  fgDisabled: "#a3a3a3"
45
45
  }
46
46
  },
@@ -50,20 +50,20 @@ export const origamLightTheme = {
50
50
  "subtle-alpha": "rgba(0, 0, 0, 0.08)",
51
51
  strong: "rgba(0, 0, 0, 0.16)",
52
52
  ghost: "rgba(0, 0, 0, 0.08)",
53
- focus: "#7c3aed"
53
+ focus: "#6a56f6"
54
54
  },
55
55
  feedback: {
56
56
  danger: { bg: "#dc2626", bgSubtle: "rgba(220, 38, 38, 0.08)", fg: "#ffffff", fgSubtle: "#b91c1c", border: "#dc2626" },
57
57
  info: { bg: "#2563eb", bgSubtle: "rgba(37, 99, 235, 0.08)", fg: "#ffffff", fgSubtle: "#1d4ed8", border: "#2563eb" },
58
- success: { bg: "#15803d", bgSubtle: "rgba(22, 163, 74, 0.08)", fg: "#ffffff", fgSubtle: "#15803d", border: "#15803d" },
59
- warning: { bg: "#b45309", bgSubtle: "rgba(217, 119, 6, 0.08)", fg: "#ffffff", fgSubtle: "#b45309", border: "#b45309" }
58
+ success: { bg: "#15803d", bgSubtle: "rgba(22, 163, 74, 0.08)", fg: "#ffffff", fgSubtle: "#166534", border: "#15803d" },
59
+ warning: { bg: "#b45309", bgSubtle: "rgba(217, 119, 6, 0.08)", fg: "#ffffff", fgSubtle: "#92400e", border: "#b45309" }
60
60
  }
61
61
  },
62
62
  rounded: {
63
63
  none: "0px",
64
64
  xs: "2px",
65
65
  sm: "4px",
66
- md: "8px",
66
+ md: "10px",
67
67
  lg: "12px",
68
68
  xl: "16px",
69
69
  "2xl": "24px",
@@ -75,7 +75,7 @@ export const origamLightTheme = {
75
75
  },
76
76
  typo: {
77
77
  family: {
78
- sans: "Inter, 'Helvetica Neue', Arial, sans-serif",
78
+ sans: "'Sora', Inter, ui-sans-serif, system-ui, sans-serif",
79
79
  serif: "Georgia, 'Times New Roman', serif",
80
80
  mono: "'JetBrains Mono', 'Fira Code', monospace"
81
81
  },
@@ -102,15 +102,15 @@ export const origamLightTheme = {
102
102
  },
103
103
  shadow: {
104
104
  none: "0px 0px 0px 0px rgba(0,0,0,0)",
105
- xs: "0px 1px 2px 0px rgba(0,0,0,0.05)",
106
- sm: "0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px -1px rgba(0,0,0,0.1)",
107
- md: "0px 6px 24px 0px rgba(0,0,0,0.05), 0px 0px 0px 1px rgba(0,0,0,0.08)",
108
- lg: "0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",
109
- xl: "0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12)",
110
- "btn-primary": "rgba(255, 255, 255, 0.20) 0px 1px 0px 0px inset, rgba(124, 58, 237, 0.50) 0px 8px 24px -8px",
105
+ xs: "0px 1px 2px 0px rgba(27,17,39,0.06)",
106
+ sm: "0px 4px 12px 0px rgba(27,17,39,0.08)",
107
+ md: "0px 8px 24px 0px rgba(27,17,39,0.10)",
108
+ lg: "0px 16px 40px 0px rgba(27,17,39,0.16)",
109
+ xl: "0px 24px 56px 0px rgba(27,17,39,0.22)",
110
+ "btn-primary": "rgba(255, 255, 255, 0.20) 0px 1px 0px 0px inset, rgba(106, 86, 246, 0.50) 0px 8px 24px -8px",
111
111
  "btn-secondary": "none",
112
- "card-elevated": "0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px -16px rgba(0, 0, 0, 0.18)",
113
- "glow-primary": "inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px -8px rgba(124, 58, 237, 0.5)"
112
+ "card-elevated": "0 1px 3px rgba(27, 17, 39, 0.04), 0 8px 24px -16px rgba(27, 17, 39, 0.18)",
113
+ "glow-primary": "inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px -8px rgba(106, 86, 246, 0.5)"
114
114
  },
115
115
  spacing: {
116
116
  "0": "0px",
@@ -240,15 +240,28 @@ export const origamLightTheme = {
240
240
  export const origamDarkTheme = {
241
241
  mode: "dark",
242
242
  label: "Origam",
243
- description: "Calm, neutral surfaces with a single violet accent \u2014 the default origam identity.",
243
+ description: "Paper and ink surfaces with a violet action colour \u2014 the default origam identity (A1 brand kit).",
244
244
  vars: {
245
245
  color: {
246
+ /*********************************************************
247
+ * #1514 — surfaces derived from the ink #1b1127
248
+ *
249
+ * @description
250
+ * The kit gives only the ink. Fixed-step sRGB mixes, per channel
251
+ * `round(ink * (1 - t) + target * t)`:
252
+ * raised = ink → white 4 % #241b30
253
+ * overlay = ink → white 8 % #2d2438
254
+ * disabled = ink → white 16 % #3f374a
255
+ * sunken = ink → black 25 % #140d1d
256
+ * and the borders: subtle 12 % #362e41, default 20 % #494152,
257
+ * strong 56 % #9b96a0 (all ink → white).
258
+ ********************************************************/
246
259
  surface: {
247
- default: "#0a0a0a",
248
- raised: "#0e0e0e",
249
- sunken: "#171717",
250
- overlay: "#0e0e0e",
251
- disabled: "#262626"
260
+ default: "#1b1127",
261
+ raised: "#241b30",
262
+ sunken: "#140d1d",
263
+ overlay: "#2d2438",
264
+ disabled: "#3f374a"
252
265
  },
253
266
  text: {
254
267
  primary: "#fafafa",
@@ -270,13 +283,13 @@ export const origamDarkTheme = {
270
283
  },
271
284
  action: {
272
285
  primary: {
273
- bg: "#7c3aed",
274
- bgHover: "#6d28d9",
286
+ bg: "#6a56f6",
287
+ bgHover: "#614edd",
275
288
  bgDisabled: "#262626",
276
- bgSubtle: "rgba(124, 58, 237, 0.14)",
289
+ bgSubtle: "rgba(106, 86, 246, 0.14)",
277
290
  fg: "#ffffff",
278
291
  fgDisabled: "#525252",
279
- fgSubtle: "#c4b5fd"
292
+ fgSubtle: "#9284f8"
280
293
  },
281
294
  secondary: {
282
295
  bg: "#262626",
@@ -289,17 +302,17 @@ export const origamDarkTheme = {
289
302
  bg: "rgba(0, 0, 0, 0)",
290
303
  bgHover: "rgba(255, 255, 255, 0.06)",
291
304
  bgDisabled: "rgba(0, 0, 0, 0)",
292
- fg: "#c4b5fd",
305
+ fg: "#9284f8",
293
306
  fgDisabled: "#525252"
294
307
  }
295
308
  },
296
309
  border: {
297
- default: "rgba(255, 255, 255, 0.08)",
298
- subtle: "rgba(255, 255, 255, 0.04)",
310
+ default: "#494152",
311
+ subtle: "#362e41",
299
312
  "subtle-alpha": "rgba(255, 255, 255, 0.08)",
300
- strong: "rgba(255, 255, 255, 0.16)",
313
+ strong: "#9b96a0",
301
314
  ghost: "rgba(255, 255, 255, 0.08)",
302
- focus: "#a78bfa"
315
+ focus: "#9284f8"
303
316
  },
304
317
  feedback: {
305
318
  danger: { bg: "#dc2626", bgSubtle: "rgba(220, 38, 38, 0.12)", fg: "#ffffff", fgSubtle: "#f87171", border: "#f87171" },
@@ -309,10 +322,10 @@ export const origamDarkTheme = {
309
322
  }
310
323
  },
311
324
  shadow: {
312
- "btn-primary": "rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset, rgba(139, 92, 246, 0.50) 0px 8px 24px -8px",
325
+ "btn-primary": "rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset, rgba(106, 86, 246, 0.50) 0px 8px 24px -8px",
313
326
  "btn-secondary": "none",
314
327
  "card-elevated": "inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 24px -16px rgba(0, 0, 0, 0.6)",
315
- "glow-primary": "inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px -8px rgba(139, 92, 246, 0.5)"
328
+ "glow-primary": "inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px -8px rgba(106, 86, 246, 0.5)"
316
329
  }
317
330
  },
318
331
  cssVars: {},