origam 2.46.0 → 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.
- package/CHANGELOG.md +25 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark-pinned.css +13 -13
- package/dist/src/assets/css/tokens/dark-system.css +13 -13
- package/dist/src/assets/css/tokens/dark.css +26 -26
- package/dist/src/assets/css/tokens/light.css +20 -26
- package/dist/src/assets/css/tokens/primitive.css +37 -17
- package/dist/src/assets/scss/tokens/_dark.scss +26 -26
- package/dist/src/assets/scss/tokens/_light.scss +20 -26
- package/dist/src/assets/scss/tokens/_primitive.scss +37 -17
- package/dist/src/components/Bracket/OrigamBracketMatch.vue +0 -4
- package/dist/src/components/DataTable/OrigamDataTableRows.vue +27 -0
- package/dist/src/composables/Commons/velocity.composable.d.ts +1 -1
- package/dist/src/themes/origam.theme.cjs +56 -43
- package/dist/src/themes/origam.theme.d.ts +38 -0
- package/dist/src/themes/origam.theme.js +56 -43
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -64,29 +64,23 @@
|
|
|
64
64
|
:root,
|
|
65
65
|
[data-theme="light"],
|
|
66
66
|
[data-mode="light"] {
|
|
67
|
-
--origam-color__surface---default:
|
|
68
|
-
--origam-color__surface---raised:
|
|
69
|
-
--origam-color__surface---overlay:
|
|
70
|
-
--origam-color__surface---sunken:
|
|
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 —
|
|
74
|
-
|
|
75
|
-
`
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
/* #
|
|
88
|
-
|
|
89
|
-
--origam-color__text---tertiary: var(--origam-color__neutral---
|
|
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---
|
|
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---
|
|
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---
|
|
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---
|
|
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---
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
--origam-color__primary---
|
|
35
|
-
--origam-color__primary---
|
|
36
|
-
--origam-color__primary---
|
|
37
|
-
--origam-color__primary---
|
|
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,
|
|
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:
|
|
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(
|
|
133
|
-
--origam-shadow---sm: 0px
|
|
134
|
-
--origam-shadow---md: 0px
|
|
135
|
-
--origam-shadow---lg: 0px
|
|
136
|
-
--origam-shadow---xl: 0px
|
|
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
|
|
@@ -465,9 +465,13 @@ defineExpose({ filterProps });
|
|
|
465
465
|
// height a real one-line row has, and its `::after` is narrowed to the
|
|
466
466
|
// bar the column would hold. Several rules compete for the `::after`
|
|
467
467
|
// box, so they all live under the same selector and the same `inset`.
|
|
468
|
+
// The wave highlight (`::before`) shares that exact box (#1090): a
|
|
469
|
+
// `translateX` would carry it out of the bar into the cell, so inside
|
|
470
|
+
// the bar it sweeps by `background-position` instead.
|
|
468
471
|
.origam-data-table-rows__skeleton-cell {
|
|
469
472
|
block-size: calc(2 * var(--origam-table__cell---padding-block, 12px) + 1.5em);
|
|
470
473
|
|
|
474
|
+
&::before,
|
|
471
475
|
&::after {
|
|
472
476
|
inset-block: auto;
|
|
473
477
|
inset-block-start: 50%;
|
|
@@ -479,12 +483,14 @@ defineExpose({ filterProps });
|
|
|
479
483
|
border-radius: var(--origam-skeleton---border-radius-pill);
|
|
480
484
|
}
|
|
481
485
|
|
|
486
|
+
&--end::before,
|
|
482
487
|
&--end::after {
|
|
483
488
|
inset-inline-start: auto;
|
|
484
489
|
inset-inline-end: var(--origam-table__cell---padding-inline, 16px);
|
|
485
490
|
inline-size: 40%;
|
|
486
491
|
}
|
|
487
492
|
|
|
493
|
+
&--control::before,
|
|
488
494
|
&--control::after {
|
|
489
495
|
block-size: var(--origam-skeleton---circular-size);
|
|
490
496
|
inline-size: var(--origam-skeleton---circular-size);
|
|
@@ -492,11 +498,32 @@ defineExpose({ filterProps });
|
|
|
492
498
|
}
|
|
493
499
|
}
|
|
494
500
|
|
|
501
|
+
tr:nth-child(2n) > .origam-data-table-rows__skeleton-cell--text::before,
|
|
495
502
|
tr:nth-child(2n) > .origam-data-table-rows__skeleton-cell--text::after {
|
|
496
503
|
inline-size: 52%;
|
|
497
504
|
}
|
|
498
505
|
|
|
506
|
+
tr:nth-child(3n) > .origam-data-table-rows__skeleton-cell--text::before,
|
|
499
507
|
tr:nth-child(3n) > .origam-data-table-rows__skeleton-cell--text::after {
|
|
500
508
|
inline-size: 84%;
|
|
501
509
|
}
|
|
510
|
+
|
|
511
|
+
@keyframes origam-data-table-skeleton-cell-wave {
|
|
512
|
+
from { background-position-x: 100%; }
|
|
513
|
+
to { background-position-x: -100%; }
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// Gated: under reduced motion the shared `animation: none` stays in force
|
|
517
|
+
// and the highlight is not painted at all.
|
|
518
|
+
.origam-data-table-rows__skeleton-cell.origam--skeleton-wave::before {
|
|
519
|
+
transform: none;
|
|
520
|
+
background: none;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
524
|
+
.origam-data-table-rows__skeleton-cell.origam--skeleton-wave::before {
|
|
525
|
+
background: linear-gradient(105deg, transparent 35%, var(--origam-skeleton---highlight-color) 50%, transparent 65%) 100% 0 / 200% 100% no-repeat;
|
|
526
|
+
animation-name: origam-data-table-skeleton-cell-wave;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
502
529
|
</style>
|
|
@@ -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: "
|
|
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: "#
|
|
14
|
-
raised: "#
|
|
15
|
-
sunken: "#
|
|
16
|
-
overlay: "#
|
|
13
|
+
default: "#f7f5ef",
|
|
14
|
+
raised: "#fffaf7",
|
|
15
|
+
sunken: "#e9e0ff",
|
|
16
|
+
overlay: "#f5edff",
|
|
17
17
|
disabled: "#e6e6e6"
|
|
18
18
|
},
|
|
19
19
|
text: {
|
|
20
|
-
primary: "#
|
|
20
|
+
primary: "#1b1127",
|
|
21
21
|
secondary: "#525252",
|
|
22
|
-
tertiary: "#
|
|
22
|
+
tertiary: "#525252",
|
|
23
23
|
disabled: "#a3a3a3",
|
|
24
24
|
inverse: "#ffffff",
|
|
25
25
|
onColor: "#ffffff",
|
|
26
|
-
ink: "#
|
|
26
|
+
ink: "#1b1127"
|
|
27
27
|
},
|
|
28
28
|
action: {
|
|
29
29
|
primary: {
|
|
30
|
-
bg: "#
|
|
31
|
-
bgHover: "#
|
|
30
|
+
bg: "#6a56f6",
|
|
31
|
+
bgHover: "#614edd",
|
|
32
32
|
bgDisabled: "#e6e6e6",
|
|
33
|
-
bgSubtle: "rgba(
|
|
33
|
+
bgSubtle: "rgba(106, 86, 246, 0.10)",
|
|
34
34
|
fg: "#ffffff",
|
|
35
35
|
fgDisabled: "#a3a3a3",
|
|
36
|
-
fgSubtle: "#
|
|
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: "#
|
|
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: "#
|
|
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: "#
|
|
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: "#
|
|
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: "
|
|
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,
|
|
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(
|
|
157
|
-
sm: "0px
|
|
158
|
-
md: "0px
|
|
159
|
-
lg: "0px
|
|
160
|
-
xl: "0px
|
|
161
|
-
"btn-primary": "rgba(255, 255, 255, 0.20) 0px 1px 0px 0px inset, rgba(
|
|
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(
|
|
164
|
-
"glow-primary": "inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px -8px rgba(
|
|
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: "
|
|
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: "#
|
|
518
|
-
raised: "#
|
|
519
|
-
sunken: "#
|
|
520
|
-
overlay: "#
|
|
521
|
-
disabled: "#
|
|
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: "#
|
|
544
|
-
bgHover: "#
|
|
556
|
+
bg: "#6a56f6",
|
|
557
|
+
bgHover: "#614edd",
|
|
545
558
|
bgDisabled: "#262626",
|
|
546
|
-
bgSubtle: "rgba(
|
|
559
|
+
bgSubtle: "rgba(106, 86, 246, 0.14)",
|
|
547
560
|
fg: "#ffffff",
|
|
548
561
|
fgDisabled: "#525252",
|
|
549
|
-
fgSubtle: "#
|
|
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: "#
|
|
575
|
+
fg: "#9284f8",
|
|
563
576
|
fgDisabled: "#525252"
|
|
564
577
|
}
|
|
565
578
|
},
|
|
566
579
|
border: {
|
|
567
|
-
default: "
|
|
568
|
-
subtle: "
|
|
580
|
+
default: "#494152",
|
|
581
|
+
subtle: "#362e41",
|
|
569
582
|
"subtle-alpha": "rgba(255, 255, 255, 0.08)",
|
|
570
|
-
strong: "
|
|
583
|
+
strong: "#9b96a0",
|
|
571
584
|
ghost: "rgba(255, 255, 255, 0.08)",
|
|
572
|
-
focus: "#
|
|
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(
|
|
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(
|
|
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[];
|