@pimolu/themes 0.1.0-beta.1 → 0.1.0-beta.11

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.fr.md CHANGED
@@ -1,30 +1,103 @@
1
- # @pimolu/themes
2
-
3
- Thèmes de couleurs, presets de style et données de tokens visuels pour Pimolu UI.
4
-
5
- > **0.1.0-beta.1** — version de prévisualisation. Les noms des presets et des tokens peuvent encore évoluer.
6
-
7
- ```bash
8
- pnpm add @pimolu/themes
9
- ```
10
-
11
- ```ts
12
- import "@pimolu/themes/presets.css";
13
- import { pimoluPresets } from "@pimolu/themes/presets";
14
- import { pimoluPresetVisuals } from "@pimolu/themes/visuals";
15
- import themes from "@pimolu/themes/themes.json" with { type: "json" };
16
- ```
17
-
18
- Appliquez un thème et un preset avec des attributs de données :
19
-
20
- ```html
21
- <div data-pimolu-theme="dark" data-pimolu-style="glass">...</div>
22
- ```
23
-
24
- Le package fournit le CSS généré, les données JavaScript et les déclarations
25
- TypeScript. C'est la source de vérité multiplateforme pour les bordures, ombres,
26
- rayons, typographies et effets d'appui.
27
-
28
- Documentation : <https://github.com/pimoludev/ui>
29
-
30
- MIT © Pimolu
1
+ # @pimolu/themes
2
+
3
+ **Le langage visuel, séparé des composants.**
4
+
5
+ Les thèmes de couleur, sept presets de style et les données visuelles neutres de Pimolu. Utilisez ce package pour donner à une interface personnalisée le même rythme, la même profondeur et la même personnalité que les composants Pimolu, ou pour consommer les données de thème dans vos propres outils.
6
+
7
+ [Guide des thèmes](https://pimolu.com/docs/theming) · [Personnalisation](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) · [Source](https://github.com/pimoludev/ui/tree/main/packages/themes)
8
+
9
+ > **Bêta :** `0.1.0-beta.11` est une prévisualisation. Les noms des presets et des tokens peuvent évoluer avant `1.0.0`.
10
+
11
+ ## Pourquoi les thèmes Pimolu ?
12
+
13
+ - **Deux modes de couleur, un contrat sémantique.** Clair et sombre exposent les mêmes clés sémantiques : un composant n'a pas besoin de markup spécifique par mode.
14
+ - **Sept presets distincts.** `default`, `adaptive`, `cartoon`, `glass`, `luxury`, `monochrome` et `neo-brutalism` partagent une structure sans se ressembler.
15
+ - **Des données neutres.** Les palettes et tokens visuels sont des données JSON/TypeScript, prêtes pour le CSS web aujourd'hui et d'autres plateformes plus tard.
16
+ - **Données et CSS depuis une source unique.** Les mêmes presets génèrent la feuille web et les objets `pimoluPresets` / `pimoluPresetVisuals`.
17
+ - **Aucun runtime requis.** Les thèmes s'appliquent par attributs et variables CSS. Aucun calcul de thème en JavaScript.
18
+
19
+ ## En bref
20
+
21
+ | | |
22
+ | --- | --- |
23
+ | Thèmes de couleur | `light`, `dark` |
24
+ | Presets | default, adaptive, cartoon, glass, luxury, monochrome, neo-brutalism |
25
+ | Entrées CSS | `styles.css`, `presets.css` |
26
+ | Entrées de données | `presets`, `visuals`, `themes.json` |
27
+ | Tokens visuels | bordures, ombres, radius, typographie, effets de pression |
28
+ | Distribution | ESM + déclarations TypeScript, CSS natif, JSON |
29
+
30
+ ## Installation
31
+
32
+ ```bash
33
+ pnpm add @pimolu/themes@latest
34
+ ```
35
+
36
+ ## Utilisation dans une application web
37
+
38
+ Importez les thèmes sémantiques et les styles de presets une fois :
39
+
40
+ ```css
41
+ @import "@pimolu/themes/styles.css";
42
+ @import "@pimolu/themes/presets.css";
43
+ ```
44
+
45
+ Choisissez un mode de couleur et un preset sur un élément conteneur :
46
+
47
+ ```html
48
+ <div data-pimolu-theme="dark" data-pimolu-style="glass">
49
+ <!-- Votre interface -->
50
+ </div>
51
+ ```
52
+
53
+ Pour une application React avec les composants Pimolu, préférez `@pimolu/web-styles/styles.css` et réglez `defaultTheme` / `defaultStylePreset` sur `PimoluProvider`. Le Provider synchronise les attributs DOM, la préférence système et les choix utilisateur.
54
+
55
+ ## Presets
56
+
57
+ | Preset | Caractère |
58
+ | --- | --- |
59
+ | `default` | La base neutre de Pimolu |
60
+ | `adaptive` | Une palette compatible avec les accents adaptatifs |
61
+ | `cartoon` | Des silhouettes plus franches et une profondeur ludique |
62
+ | `glass` | Des surfaces translucides et une élévation douce |
63
+ | `luxury` | Un contraste retenu et un détail raffiné |
64
+ | `monochrome` | Un système éditorial à faible chroma |
65
+ | `neo-brutalism` | Des angles durs, des ombres décalées et un contraste direct |
66
+
67
+ Les noms des presets sont publics. Décrivez un preset par ses tokens dans votre produit plutôt que par une humeur figée.
68
+
69
+ ## Utilisation comme données
70
+
71
+ ```ts
72
+ import { pimoluPresets } from "@pimolu/themes/presets";
73
+ import { pimoluPresetVisuals } from "@pimolu/themes/visuals";
74
+ import themes from "@pimolu/themes/themes.json";
75
+
76
+ pimoluPresets.glass;
77
+ pimoluPresetVisuals.glass;
78
+ themes.light.primary;
79
+ ```
80
+
81
+ `pimoluPresets` contient les six palettes de presets générées ; `default` est représenté par les thèmes résolus. `pimoluPresetVisuals` contient les sept ensembles de tokens visuels. Les deux entrées JavaScript incluent les déclarations TypeScript. `themes.json` contient les thèmes sémantiques clair et sombre résolus.
82
+
83
+ Chaque preset est défini par une palette dans `src/presets/<name>.json` et un ensemble de tokens visuels dans `src/visual/<name>.json`. Le CSS web est généré depuis ces sources.
84
+
85
+ ## La famille de packages
86
+
87
+ | Package | Rôle |
88
+ | --- | --- |
89
+ | [`@pimolu/react`](https://www.npmjs.com/package/@pimolu/react) | Composants, hooks et layouts React |
90
+ | [`@pimolu/web-styles`](https://www.npmjs.com/package/@pimolu/web-styles) | CSS complet, entrée en couches et CSS par composant |
91
+ | [`@pimolu/themes`](https://www.npmjs.com/package/@pimolu/themes) | Thèmes clair/sombre, sept presets et données visuelles |
92
+ | [`@pimolu/design-tokens`](https://www.npmjs.com/package/@pimolu/design-tokens) | Tokens primitifs en CSS et JSON |
93
+ | [`@pimolu/core`](https://www.npmjs.com/package/@pimolu/core) | Utilitaire de classes de variantes indépendant du framework |
94
+
95
+ ## Documentation et état
96
+
97
+ - [Guide des thèmes](https://pimolu.com/docs/theming)
98
+ - [Contrat de personnalisation](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md)
99
+ - [Source et issues](https://github.com/pimoludev/ui)
100
+
101
+ Pimolu UI est en bêta. Les noms des presets et des tokens peuvent évoluer avant `1.0.0`. Les registres native, Angular et web components sont des directions futures, pas des packages actuels.
102
+
103
+ MIT © Pimolu
package/README.md CHANGED
@@ -1,30 +1,103 @@
1
- # @pimolu/themes
2
-
3
- Colour themes, style presets and visual token data for Pimolu UI.
4
-
5
- > **0.1.0-beta.1** — preview release. Preset and token names may still change.
6
-
7
- ```bash
8
- pnpm add @pimolu/themes
9
- ```
10
-
11
- ```ts
12
- import "@pimolu/themes/presets.css";
13
- import { pimoluPresets } from "@pimolu/themes/presets";
14
- import { pimoluPresetVisuals } from "@pimolu/themes/visuals";
15
- import themes from "@pimolu/themes/themes.json" with { type: "json" };
16
- ```
17
-
18
- Apply a theme and preset with data attributes:
19
-
20
- ```html
21
- <div data-pimolu-theme="dark" data-pimolu-style="glass">...</div>
22
- ```
23
-
24
- The package ships generated CSS, JavaScript data and TypeScript declarations. It is
25
- the cross-platform source of truth for borders, shadows, radii, typography and
26
- press effects.
27
-
28
- Documentation: <https://github.com/pimoludev/ui>
29
-
30
- MIT © Pimolu
1
+ # @pimolu/themes
2
+
3
+ **The visual language, separated from the components.**
4
+
5
+ Pimolu's colour themes, seven style presets and platform-neutral visual data. Use this package to give a custom interface the same rhythm, depth and personality as Pimolu components, or to consume the theme data in your own tooling.
6
+
7
+ [Theming guide](https://pimolu.com/docs/theming) · [Customization](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) · [Source](https://github.com/pimoludev/ui/tree/main/packages/themes)
8
+
9
+ > **Beta:** `0.1.0-beta.11` is a preview. Preset and token names may change before `1.0.0`.
10
+
11
+ ## Why Pimolu themes?
12
+
13
+ - **Two colour modes, one semantic contract.** Light and dark expose the same semantic keys, so a component does not need per-mode markup.
14
+ - **Seven distinct presets.** `default`, `adaptive`, `cartoon`, `glass`, `luxury`, `monochrome` and `neo-brutalism` share structure without looking the same.
15
+ - **Platform-neutral data.** Colour palettes and visual tokens are plain JSON/TypeScript data, ready for web CSS today and other platforms later.
16
+ - **Data and CSS from one source.** The same preset data generates the web stylesheet and the exported `pimoluPresets` / `pimoluPresetVisuals` objects.
17
+ - **No runtime required.** Themes are applied through attributes and CSS variables. There is no theme calculation in JavaScript.
18
+
19
+ ## At a glance
20
+
21
+ | | |
22
+ | --- | --- |
23
+ | Colour themes | `light`, `dark` |
24
+ | Presets | default, adaptive, cartoon, glass, luxury, monochrome, neo-brutalism |
25
+ | CSS entries | `styles.css`, `presets.css` |
26
+ | Data entries | `presets`, `visuals`, `themes.json` |
27
+ | Visual tokens | borders, shadows, radii, typography, press effects |
28
+ | Distribution | ESM + TypeScript declarations, plain CSS, JSON |
29
+
30
+ ## Install
31
+
32
+ ```bash
33
+ pnpm add @pimolu/themes@latest
34
+ ```
35
+
36
+ ## Use in a web application
37
+
38
+ Import the semantic themes and preset styles once:
39
+
40
+ ```css
41
+ @import "@pimolu/themes/styles.css";
42
+ @import "@pimolu/themes/presets.css";
43
+ ```
44
+
45
+ Choose a colour mode and preset on a containing element:
46
+
47
+ ```html
48
+ <div data-pimolu-theme="dark" data-pimolu-style="glass">
49
+ <!-- Your interface -->
50
+ </div>
51
+ ```
52
+
53
+ For a React application using Pimolu components, prefer `@pimolu/web-styles/styles.css` and set `defaultTheme` / `defaultStylePreset` on `PimoluProvider`. The Provider keeps DOM attributes, system preference and user choices in sync.
54
+
55
+ ## Presets
56
+
57
+ | Preset | Character |
58
+ | --- | --- |
59
+ | `default` | The neutral Pimolu baseline |
60
+ | `adaptive` | A default-compatible palette with adaptive accents |
61
+ | `cartoon` | Bolder silhouettes and playful depth |
62
+ | `glass` | Translucent surfaces and soft elevation |
63
+ | `luxury` | Restrained contrast and refined detail |
64
+ | `monochrome` | A low-chroma, editorial system |
65
+ | `neo-brutalism` | Hard edges, offset shadows and direct contrast |
66
+
67
+ Preset names are public. Describe a preset by its tokens in your own product rather than relying on a fixed mood.
68
+
69
+ ## Use as data
70
+
71
+ ```ts
72
+ import { pimoluPresets } from "@pimolu/themes/presets";
73
+ import { pimoluPresetVisuals } from "@pimolu/themes/visuals";
74
+ import themes from "@pimolu/themes/themes.json";
75
+
76
+ pimoluPresets.glass;
77
+ pimoluPresetVisuals.glass;
78
+ themes.light.primary;
79
+ ```
80
+
81
+ `pimoluPresets` contains the six generated preset palettes; `default` is represented by the resolved themes. `pimoluPresetVisuals` contains all seven visual token sets. Both JavaScript entries ship TypeScript declarations. `themes.json` contains the resolved light and dark semantic themes.
82
+
83
+ Each preset is defined by a colour palette in `src/presets/<name>.json` and a visual token set in `src/visual/<name>.json`. The web CSS is generated from those sources.
84
+
85
+ ## The package family
86
+
87
+ | Package | Role |
88
+ | --- | --- |
89
+ | [`@pimolu/react`](https://www.npmjs.com/package/@pimolu/react) | React components, hooks and layouts |
90
+ | [`@pimolu/web-styles`](https://www.npmjs.com/package/@pimolu/web-styles) | Plain CSS bundle, layered entry and per-component CSS |
91
+ | [`@pimolu/themes`](https://www.npmjs.com/package/@pimolu/themes) | Light/dark themes, seven presets and visual data |
92
+ | [`@pimolu/design-tokens`](https://www.npmjs.com/package/@pimolu/design-tokens) | Primitive tokens in CSS and JSON |
93
+ | [`@pimolu/core`](https://www.npmjs.com/package/@pimolu/core) | Framework-independent variant class utility |
94
+
95
+ ## Documentation and status
96
+
97
+ - [Theming guide](https://pimolu.com/docs/theming)
98
+ - [Customization contract](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md)
99
+ - [Source and issues](https://github.com/pimoludev/ui)
100
+
101
+ Pimolu UI is a beta. Preset and token names may change before `1.0.0`. Native, Angular and web-component registries are future directions, not current packages.
102
+
103
+ MIT © Pimolu
package/dist/default.css CHANGED
@@ -6,7 +6,7 @@
6
6
  --pimolu-surface: #F8FAFC;
7
7
  --pimolu-surface-foreground: #0F172A;
8
8
  --pimolu-muted: #F1F5F9;
9
- --pimolu-muted-foreground: #64748B;
9
+ --pimolu-muted-foreground: #607087;
10
10
  --pimolu-border: #E2E8F0;
11
11
  --pimolu-primary: #4F46E5;
12
12
  --pimolu-primary-hover: #4338CA;
@@ -21,6 +21,9 @@
21
21
  --pimolu-danger: #DC2626;
22
22
  --pimolu-danger-hover: #B91C1C;
23
23
  --pimolu-danger-foreground: #FFFFFF;
24
+ --pimolu-control-border: #64748B;
25
+ --pimolu-primary-soft: #F1F5F9;
26
+ --pimolu-primary-soft-foreground: #4F46E5;
24
27
  }
25
28
 
26
29
  [data-pimolu-theme="dark"][data-pimolu-style="default"] {
@@ -44,6 +47,9 @@
44
47
  --pimolu-danger: #F87171;
45
48
  --pimolu-danger-hover: #EF4444;
46
49
  --pimolu-danger-foreground: #020617;
50
+ --pimolu-control-border: #64748B;
51
+ --pimolu-primary-soft: #1E293B;
52
+ --pimolu-primary-soft-foreground: #818CF8;
47
53
  }
48
54
 
49
55
  [data-pimolu-theme="system"][data-pimolu-style="default"] {
@@ -52,7 +58,7 @@
52
58
  --pimolu-surface: #F8FAFC;
53
59
  --pimolu-surface-foreground: #0F172A;
54
60
  --pimolu-muted: #F1F5F9;
55
- --pimolu-muted-foreground: #64748B;
61
+ --pimolu-muted-foreground: #607087;
56
62
  --pimolu-border: #E2E8F0;
57
63
  --pimolu-primary: #4F46E5;
58
64
  --pimolu-primary-hover: #4338CA;
@@ -67,6 +73,9 @@
67
73
  --pimolu-danger: #DC2626;
68
74
  --pimolu-danger-hover: #B91C1C;
69
75
  --pimolu-danger-foreground: #FFFFFF;
76
+ --pimolu-control-border: #64748B;
77
+ --pimolu-primary-soft: #F1F5F9;
78
+ --pimolu-primary-soft-foreground: #4F46E5;
70
79
  }
71
80
 
72
81
  @media (prefers-color-scheme: dark) {
@@ -91,6 +100,9 @@
91
100
  --pimolu-danger: #F87171;
92
101
  --pimolu-danger-hover: #EF4444;
93
102
  --pimolu-danger-foreground: #020617;
103
+ --pimolu-control-border: #64748B;
104
+ --pimolu-primary-soft: #1E293B;
105
+ --pimolu-primary-soft-foreground: #818CF8;
94
106
  }
95
107
 
96
108
  }
package/dist/presets.css CHANGED
@@ -18,6 +18,8 @@
18
18
  --pimolu-surface-foreground: #171B2B;
19
19
  --pimolu-accent: #0C9E8B;
20
20
  --pimolu-accent-foreground: #FFFFFF;
21
+ --pimolu-primary-soft: #F1F3F9;
22
+ --pimolu-primary-soft-foreground: #5B55E7;
21
23
  }
22
24
 
23
25
  [data-pimolu-theme="dark"][data-pimolu-style="adaptive"] {
@@ -38,6 +40,8 @@
38
40
  --pimolu-surface-foreground: #E8EAF2;
39
41
  --pimolu-accent: #2BC4AF;
40
42
  --pimolu-accent-foreground: #062A25;
43
+ --pimolu-primary-soft: #1C2130;
44
+ --pimolu-primary-soft-foreground: #7C77F0;
41
45
  }
42
46
 
43
47
  @media (prefers-color-scheme: dark) {
@@ -59,6 +63,8 @@
59
63
  --pimolu-surface-foreground: #E8EAF2;
60
64
  --pimolu-accent: #2BC4AF;
61
65
  --pimolu-accent-foreground: #062A25;
66
+ --pimolu-primary-soft: #1C2130;
67
+ --pimolu-primary-soft-foreground: #7C77F0;
62
68
  }
63
69
  }
64
70
 
@@ -77,6 +83,9 @@
77
83
  --pimolu-muted-foreground: #525252;
78
84
  --pimolu-border: #171717;
79
85
  --pimolu-focus-ring: #2563eb;
86
+ --pimolu-control-border: #171717;
87
+ --pimolu-primary-soft: #fff0c2;
88
+ --pimolu-primary-soft-foreground: #ffbd2e;
80
89
  }
81
90
 
82
91
  [data-pimolu-theme="dark"][data-pimolu-style="cartoon"] {
@@ -94,6 +103,9 @@
94
103
  --pimolu-muted-foreground: #d4d4d4;
95
104
  --pimolu-border: #ffffff;
96
105
  --pimolu-focus-ring: #ffbd2e;
106
+ --pimolu-control-border: #ffffff;
107
+ --pimolu-primary-soft: #323232;
108
+ --pimolu-primary-soft-foreground: #ffbd2e;
97
109
  }
98
110
 
99
111
  @media (prefers-color-scheme: dark) {
@@ -112,6 +124,9 @@
112
124
  --pimolu-muted-foreground: #d4d4d4;
113
125
  --pimolu-border: #ffffff;
114
126
  --pimolu-focus-ring: #ffbd2e;
127
+ --pimolu-control-border: #ffffff;
128
+ --pimolu-primary-soft: #323232;
129
+ --pimolu-primary-soft-foreground: #ffbd2e;
115
130
  }
116
131
  }
117
132
 
@@ -133,6 +148,9 @@
133
148
  --pimolu-secondary: rgba(255, 255, 255, 0.65);
134
149
  --pimolu-secondary-hover: rgba(255, 255, 255, 0.88);
135
150
  --pimolu-secondary-foreground: #17213b;
151
+ --pimolu-control-border: rgba(255, 255, 255, 0.75);
152
+ --pimolu-primary-soft: rgba(255, 255, 255, 0.65);
153
+ --pimolu-primary-soft-foreground: #6265ef;
136
154
  }
137
155
 
138
156
  [data-pimolu-theme="dark"][data-pimolu-style="glass"] {
@@ -153,6 +171,9 @@
153
171
  --pimolu-secondary: rgba(51, 65, 85, 0.65);
154
172
  --pimolu-secondary-hover: rgba(71, 85, 105, 0.85);
155
173
  --pimolu-secondary-foreground: #f8fafc;
174
+ --pimolu-control-border: rgba(255, 255, 255, 0.18);
175
+ --pimolu-primary-soft: rgba(51, 65, 85, 0.65);
176
+ --pimolu-primary-soft-foreground: #818cf8;
156
177
  }
157
178
 
158
179
  @media (prefers-color-scheme: dark) {
@@ -174,6 +195,9 @@
174
195
  --pimolu-secondary: rgba(51, 65, 85, 0.65);
175
196
  --pimolu-secondary-hover: rgba(71, 85, 105, 0.85);
176
197
  --pimolu-secondary-foreground: #f8fafc;
198
+ --pimolu-control-border: rgba(255, 255, 255, 0.18);
199
+ --pimolu-primary-soft: rgba(51, 65, 85, 0.65);
200
+ --pimolu-primary-soft-foreground: #818cf8;
177
201
  }
178
202
  }
179
203
 
@@ -194,6 +218,9 @@
194
218
  --pimolu-focus-ring: #926a35;
195
219
  --pimolu-luxury-gold: #b38a4a;
196
220
  --pimolu-luxury-divider: #d8c9b3;
221
+ --pimolu-control-border: #d8c9b3;
222
+ --pimolu-primary-soft: #f1eae0;
223
+ --pimolu-primary-soft-foreground: #24211e;
197
224
  }
198
225
 
199
226
  [data-pimolu-theme="dark"][data-pimolu-style="luxury"] {
@@ -213,6 +240,9 @@
213
240
  --pimolu-focus-ring: #e8cf9b;
214
241
  --pimolu-luxury-gold: #e8cf9b;
215
242
  --pimolu-luxury-divider: #675743;
243
+ --pimolu-control-border: #675743;
244
+ --pimolu-primary-soft: #2d2822;
245
+ --pimolu-primary-soft-foreground: #e8cf9b;
216
246
  }
217
247
 
218
248
  @media (prefers-color-scheme: dark) {
@@ -233,6 +263,9 @@
233
263
  --pimolu-focus-ring: #e8cf9b;
234
264
  --pimolu-luxury-gold: #e8cf9b;
235
265
  --pimolu-luxury-divider: #675743;
266
+ --pimolu-control-border: #675743;
267
+ --pimolu-primary-soft: #2d2822;
268
+ --pimolu-primary-soft-foreground: #e8cf9b;
236
269
  }
237
270
  }
238
271
 
@@ -251,6 +284,9 @@
251
284
  --pimolu-focus-ring: #171717;
252
285
  --pimolu-surface: #ffffff;
253
286
  --pimolu-surface-foreground: #171717;
287
+ --pimolu-control-border: #737373;
288
+ --pimolu-primary-soft: #f5f5f5;
289
+ --pimolu-primary-soft-foreground: #171717;
254
290
  }
255
291
 
256
292
  [data-pimolu-theme="dark"][data-pimolu-style="monochrome"] {
@@ -268,6 +304,9 @@
268
304
  --pimolu-focus-ring: #fafafa;
269
305
  --pimolu-surface: #262626;
270
306
  --pimolu-surface-foreground: #fafafa;
307
+ --pimolu-control-border: #737373;
308
+ --pimolu-primary-soft: #262626;
309
+ --pimolu-primary-soft-foreground: #fafafa;
271
310
  }
272
311
 
273
312
  @media (prefers-color-scheme: dark) {
@@ -286,6 +325,9 @@
286
325
  --pimolu-focus-ring: #fafafa;
287
326
  --pimolu-surface: #262626;
288
327
  --pimolu-surface-foreground: #fafafa;
328
+ --pimolu-control-border: #737373;
329
+ --pimolu-primary-soft: #262626;
330
+ --pimolu-primary-soft-foreground: #fafafa;
289
331
  }
290
332
  }
291
333
 
@@ -304,6 +346,9 @@
304
346
  --pimolu-muted-foreground: #525252;
305
347
  --pimolu-border: #171717;
306
348
  --pimolu-focus-ring: #4338ca;
349
+ --pimolu-control-border: #171717;
350
+ --pimolu-primary-soft: #f2eddf;
351
+ --pimolu-primary-soft-foreground: #dfff57;
307
352
  }
308
353
 
309
354
  [data-pimolu-theme="dark"][data-pimolu-style="neo-brutalism"] {
@@ -321,6 +366,9 @@
321
366
  --pimolu-muted-foreground: #d4d4d4;
322
367
  --pimolu-border: #fafafa;
323
368
  --pimolu-focus-ring: #dfff57;
369
+ --pimolu-control-border: #fafafa;
370
+ --pimolu-primary-soft: #333333;
371
+ --pimolu-primary-soft-foreground: #dfff57;
324
372
  }
325
373
 
326
374
  @media (prefers-color-scheme: dark) {
@@ -339,6 +387,9 @@
339
387
  --pimolu-muted-foreground: #d4d4d4;
340
388
  --pimolu-border: #fafafa;
341
389
  --pimolu-focus-ring: #dfff57;
390
+ --pimolu-control-border: #fafafa;
391
+ --pimolu-primary-soft: #333333;
392
+ --pimolu-primary-soft-foreground: #dfff57;
342
393
  }
343
394
  }
344
395
 
package/dist/presets.js CHANGED
@@ -18,7 +18,9 @@ export const pimoluPresets = {
18
18
  "surface": "#FFFFFF",
19
19
  "surfaceForeground": "#171B2B",
20
20
  "accent": "#0C9E8B",
21
- "accentForeground": "#FFFFFF"
21
+ "accentForeground": "#FFFFFF",
22
+ "primarySoft": "#F1F3F9",
23
+ "primarySoftForeground": "#5B55E7"
22
24
  },
23
25
  "dark": {
24
26
  "primary": "#7C77F0",
@@ -37,7 +39,9 @@ export const pimoluPresets = {
37
39
  "surface": "#161A26",
38
40
  "surfaceForeground": "#E8EAF2",
39
41
  "accent": "#2BC4AF",
40
- "accentForeground": "#062A25"
42
+ "accentForeground": "#062A25",
43
+ "primarySoft": "#1C2130",
44
+ "primarySoftForeground": "#7C77F0"
41
45
  }
42
46
  },
43
47
  "cartoon": {
@@ -55,7 +59,10 @@ export const pimoluPresets = {
55
59
  "muted": "#fff0c2",
56
60
  "mutedForeground": "#525252",
57
61
  "border": "#171717",
58
- "focusRing": "#2563eb"
62
+ "focusRing": "#2563eb",
63
+ "controlBorder": "#171717",
64
+ "primarySoft": "#fff0c2",
65
+ "primarySoftForeground": "#ffbd2e"
59
66
  },
60
67
  "dark": {
61
68
  "primary": "#ffbd2e",
@@ -71,7 +78,10 @@ export const pimoluPresets = {
71
78
  "muted": "#323232",
72
79
  "mutedForeground": "#d4d4d4",
73
80
  "border": "#ffffff",
74
- "focusRing": "#ffbd2e"
81
+ "focusRing": "#ffbd2e",
82
+ "controlBorder": "#ffffff",
83
+ "primarySoft": "#323232",
84
+ "primarySoftForeground": "#ffbd2e"
75
85
  }
76
86
  },
77
87
  "glass": {
@@ -92,7 +102,10 @@ export const pimoluPresets = {
92
102
  "glassBorder": "rgba(255, 255, 255, 0.85)",
93
103
  "secondary": "rgba(255, 255, 255, 0.65)",
94
104
  "secondaryHover": "rgba(255, 255, 255, 0.88)",
95
- "secondaryForeground": "#17213b"
105
+ "secondaryForeground": "#17213b",
106
+ "controlBorder": "rgba(255, 255, 255, 0.75)",
107
+ "primarySoft": "rgba(255, 255, 255, 0.65)",
108
+ "primarySoftForeground": "#6265ef"
96
109
  },
97
110
  "dark": {
98
111
  "primary": "#818cf8",
@@ -111,7 +124,10 @@ export const pimoluPresets = {
111
124
  "glassBorder": "rgba(255, 255, 255, 0.2)",
112
125
  "secondary": "rgba(51, 65, 85, 0.65)",
113
126
  "secondaryHover": "rgba(71, 85, 105, 0.85)",
114
- "secondaryForeground": "#f8fafc"
127
+ "secondaryForeground": "#f8fafc",
128
+ "controlBorder": "rgba(255, 255, 255, 0.18)",
129
+ "primarySoft": "rgba(51, 65, 85, 0.65)",
130
+ "primarySoftForeground": "#818cf8"
115
131
  }
116
132
  },
117
133
  "luxury": {
@@ -131,7 +147,10 @@ export const pimoluPresets = {
131
147
  "border": "#d8c9b3",
132
148
  "focusRing": "#926a35",
133
149
  "luxuryGold": "#b38a4a",
134
- "luxuryDivider": "#d8c9b3"
150
+ "luxuryDivider": "#d8c9b3",
151
+ "controlBorder": "#d8c9b3",
152
+ "primarySoft": "#f1eae0",
153
+ "primarySoftForeground": "#24211e"
135
154
  },
136
155
  "dark": {
137
156
  "background": "#151311",
@@ -149,7 +168,10 @@ export const pimoluPresets = {
149
168
  "border": "#675743",
150
169
  "focusRing": "#e8cf9b",
151
170
  "luxuryGold": "#e8cf9b",
152
- "luxuryDivider": "#675743"
171
+ "luxuryDivider": "#675743",
172
+ "controlBorder": "#675743",
173
+ "primarySoft": "#2d2822",
174
+ "primarySoftForeground": "#e8cf9b"
153
175
  }
154
176
  },
155
177
  "monochrome": {
@@ -167,7 +189,10 @@ export const pimoluPresets = {
167
189
  "border": "#737373",
168
190
  "focusRing": "#171717",
169
191
  "surface": "#ffffff",
170
- "surfaceForeground": "#171717"
192
+ "surfaceForeground": "#171717",
193
+ "controlBorder": "#737373",
194
+ "primarySoft": "#f5f5f5",
195
+ "primarySoftForeground": "#171717"
171
196
  },
172
197
  "dark": {
173
198
  "primary": "#fafafa",
@@ -183,7 +208,10 @@ export const pimoluPresets = {
183
208
  "border": "#737373",
184
209
  "focusRing": "#fafafa",
185
210
  "surface": "#262626",
186
- "surfaceForeground": "#fafafa"
211
+ "surfaceForeground": "#fafafa",
212
+ "controlBorder": "#737373",
213
+ "primarySoft": "#262626",
214
+ "primarySoftForeground": "#fafafa"
187
215
  }
188
216
  },
189
217
  "neo-brutalism": {
@@ -201,7 +229,10 @@ export const pimoluPresets = {
201
229
  "muted": "#f2eddf",
202
230
  "mutedForeground": "#525252",
203
231
  "border": "#171717",
204
- "focusRing": "#4338ca"
232
+ "focusRing": "#4338ca",
233
+ "controlBorder": "#171717",
234
+ "primarySoft": "#f2eddf",
235
+ "primarySoftForeground": "#dfff57"
205
236
  },
206
237
  "dark": {
207
238
  "background": "#171717",
@@ -217,7 +248,10 @@ export const pimoluPresets = {
217
248
  "muted": "#333333",
218
249
  "mutedForeground": "#d4d4d4",
219
250
  "border": "#fafafa",
220
- "focusRing": "#dfff57"
251
+ "focusRing": "#dfff57",
252
+ "controlBorder": "#fafafa",
253
+ "primarySoft": "#333333",
254
+ "primarySoftForeground": "#dfff57"
221
255
  }
222
256
  }
223
257
  };
package/dist/styles.css CHANGED
@@ -1,6 +1,25 @@
1
1
  :root {
2
2
  --pimolu-color-white: #FFFFFF;
3
3
  --pimolu-color-black: #000000;
4
+ --pimolu-color-ink-25: #FAF8F5;
5
+ --pimolu-color-ink-50: #F6F2EF;
6
+ --pimolu-color-ink-100: #F4F0EC;
7
+ --pimolu-color-ink-200: #E7E0D9;
8
+ --pimolu-color-ink-400: #B8B0BD;
9
+ --pimolu-color-ink-500: #8E8490;
10
+ --pimolu-color-ink-550: #857D90;
11
+ --pimolu-color-ink-600: #706B73;
12
+ --pimolu-color-ink-700: #39343E;
13
+ --pimolu-color-ink-800: #26232D;
14
+ --pimolu-color-ink-900: #24212A;
15
+ --pimolu-color-ink-950: #18161D;
16
+ --pimolu-color-iris-50: #F0EBF9;
17
+ --pimolu-color-iris-300: #B9A5FA;
18
+ --pimolu-color-iris-400: #A48BEF;
19
+ --pimolu-color-iris-600: #6746C7;
20
+ --pimolu-color-iris-700: #5637B0;
21
+ --pimolu-color-iris-900: #30283E;
22
+ --pimolu-color-iris-950: #21172D;
4
23
  --pimolu-color-indigo-400: #818CF8;
5
24
  --pimolu-color-indigo-500: #6366F1;
6
25
  --pimolu-color-indigo-600: #4F46E5;
@@ -10,6 +29,7 @@
10
29
  --pimolu-color-slate-200: #E2E8F0;
11
30
  --pimolu-color-slate-400: #94A3B8;
12
31
  --pimolu-color-slate-500: #64748B;
32
+ --pimolu-color-slate-550: #607087;
13
33
  --pimolu-color-slate-800: #1E293B;
14
34
  --pimolu-color-slate-900: #0F172A;
15
35
  --pimolu-color-slate-950: #020617;
@@ -56,7 +76,7 @@
56
76
  --pimolu-surface: var(--pimolu-color-slate-50);
57
77
  --pimolu-surface-foreground: var(--pimolu-color-slate-900);
58
78
  --pimolu-muted: var(--pimolu-color-slate-100);
59
- --pimolu-muted-foreground: var(--pimolu-color-slate-500);
79
+ --pimolu-muted-foreground: var(--pimolu-color-slate-550);
60
80
  --pimolu-border: var(--pimolu-color-slate-200);
61
81
  --pimolu-primary: var(--pimolu-color-indigo-600);
62
82
  --pimolu-primary-hover: var(--pimolu-color-indigo-700);
@@ -71,6 +91,9 @@
71
91
  --pimolu-danger: var(--pimolu-color-red-600);
72
92
  --pimolu-danger-hover: var(--pimolu-color-red-700);
73
93
  --pimolu-danger-foreground: var(--pimolu-color-white);
94
+ --pimolu-control-border: var(--pimolu-color-slate-500);
95
+ --pimolu-primary-soft: var(--pimolu-color-slate-100);
96
+ --pimolu-primary-soft-foreground: var(--pimolu-color-indigo-600);
74
97
  }
75
98
 
76
99
  [data-pimolu-theme="dark"] {
@@ -95,4 +118,7 @@
95
118
  --pimolu-danger: var(--pimolu-color-red-400);
96
119
  --pimolu-danger-hover: var(--pimolu-color-red-500);
97
120
  --pimolu-danger-foreground: var(--pimolu-color-slate-950);
121
+ --pimolu-control-border: var(--pimolu-color-slate-500);
122
+ --pimolu-primary-soft: var(--pimolu-color-slate-800);
123
+ --pimolu-primary-soft-foreground: var(--pimolu-color-indigo-400);
98
124
  }
package/dist/themes.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "surface": "#F8FAFC",
6
6
  "surface-foreground": "#0F172A",
7
7
  "muted": "#F1F5F9",
8
- "muted-foreground": "#64748B",
8
+ "muted-foreground": "#607087",
9
9
  "border": "#E2E8F0",
10
10
  "primary": "#4F46E5",
11
11
  "primary-hover": "#4338CA",
@@ -19,7 +19,10 @@
19
19
  "warning-foreground": "#020617",
20
20
  "danger": "#DC2626",
21
21
  "danger-hover": "#B91C1C",
22
- "danger-foreground": "#FFFFFF"
22
+ "danger-foreground": "#FFFFFF",
23
+ "control-border": "#64748B",
24
+ "primary-soft": "#F1F5F9",
25
+ "primary-soft-foreground": "#4F46E5"
23
26
  },
24
27
  "dark": {
25
28
  "background": "#020617",
@@ -41,6 +44,9 @@
41
44
  "warning-foreground": "#020617",
42
45
  "danger": "#F87171",
43
46
  "danger-hover": "#EF4444",
44
- "danger-foreground": "#020617"
47
+ "danger-foreground": "#020617",
48
+ "control-border": "#64748B",
49
+ "primary-soft": "#1E293B",
50
+ "primary-soft-foreground": "#818CF8"
45
51
  }
46
52
  }
package/dist/visual.css CHANGED
@@ -38,17 +38,26 @@
38
38
  --pimolu-control-border-width: 1px;
39
39
  --pimolu-solid-border-color: transparent;
40
40
  --pimolu-shadow-raised: none;
41
- --pimolu-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.12);
42
- --pimolu-button-font-weight: 400;
41
+ --pimolu-shadow-sm: 0 2px 8px rgba(38, 35, 45, 0.08);
42
+ --pimolu-button-font-weight: 500;
43
+ --pimolu-radius-sm: 6px;
44
+ --pimolu-radius-md: 10px;
45
+ --pimolu-radius-lg: 16px;
46
+ --pimolu-font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
47
+ --pimolu-font-heading: inherit;
48
+ --pimolu-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
49
+ --pimolu-font-display: "Newsreader", Georgia, "Times New Roman", serif;
50
+ --pimolu-interaction-duration: 120ms;
51
+ --pimolu-interaction-easing: cubic-bezier(.2, 0, 0, 1);
43
52
  }
44
53
 
45
54
  [data-pimolu-theme="dark"][data-pimolu-style="default"] {
46
- --pimolu-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
55
+ --pimolu-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
47
56
  }
48
57
 
49
58
  @media (prefers-color-scheme: dark) {
50
59
  [data-pimolu-theme="system"][data-pimolu-style="default"] {
51
- --pimolu-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
60
+ --pimolu-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
52
61
  }
53
62
  }
54
63
 
package/dist/visuals.js CHANGED
@@ -33,11 +33,20 @@ export const pimoluPresetVisuals = {
33
33
  "control-border-width": "1px",
34
34
  "solid-border-color": "transparent",
35
35
  "shadow-raised": "none",
36
- "shadow-sm": "0 1px 2px rgba(15, 23, 42, 0.12)",
37
- "button-font-weight": "400"
36
+ "shadow-sm": "0 2px 8px rgba(38, 35, 45, 0.08)",
37
+ "button-font-weight": "500",
38
+ "radius-sm": "6px",
39
+ "radius-md": "10px",
40
+ "radius-lg": "16px",
41
+ "font-body": "\"DM Sans\", system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
42
+ "font-heading": "inherit",
43
+ "font-mono": "\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, monospace",
44
+ "font-display": "\"Newsreader\", Georgia, \"Times New Roman\", serif",
45
+ "interaction-duration": "120ms",
46
+ "interaction-easing": "cubic-bezier(.2, 0, 0, 1)"
38
47
  },
39
48
  "dark": {
40
- "shadow-sm": "0 1px 2px rgba(0, 0, 0, 0.3)"
49
+ "shadow-sm": "0 2px 8px rgba(0, 0, 0, 0.24)"
41
50
  }
42
51
  },
43
52
  "glass": {
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@pimolu/themes",
3
- "version": "0.1.0-beta.1",
4
- "description": "Pimolu colour themes, style presets and visual token data.",
5
- "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/pimoludev/ui.git",
9
- "directory": "packages/themes"
10
- },
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "type": "module",
15
- "sideEffects": [
16
- "**/*.css"
17
- ],
18
- "files": [
19
- "dist",
20
- "style-*.css",
21
- "src/presets",
22
- "src/visual"
23
- ],
24
- "exports": {
25
- "./styles.css": "./dist/styles.css",
26
- "./presets.css": "./style-presets.css",
27
- "./themes.json": "./dist/themes.json",
28
- "./presets": {
29
- "types": "./dist/presets.d.ts",
30
- "default": "./dist/presets.js"
31
- },
32
- "./visuals": {
33
- "types": "./dist/visuals.d.ts",
34
- "default": "./dist/visuals.js"
35
- }
36
- },
37
- "dependencies": {
38
- "@pimolu/design-tokens": "0.1.0-beta.1"
39
- },
40
- "scripts": {
41
- "build:presets": "node scripts/build-presets.mjs",
42
- "build:visuals": "node scripts/build-visuals.mjs",
43
- "build:default": "node scripts/build-default.mjs",
44
- "test": "node --test"
45
- }
46
- }
1
+ {
2
+ "name": "@pimolu/themes",
3
+ "version": "0.1.0-beta.11",
4
+ "description": "Pimolu colour themes, style presets and visual token data.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/pimoludev/ui.git",
9
+ "directory": "packages/themes"
10
+ },
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "type": "module",
15
+ "sideEffects": ["**/*.css"],
16
+ "files": [
17
+ "dist",
18
+ "style-*.css",
19
+ "src/presets",
20
+ "src/visual"
21
+ ],
22
+ "scripts": {
23
+ "build:presets": "node scripts/build-presets.mjs",
24
+ "build:visuals": "node scripts/build-visuals.mjs",
25
+ "build:default": "node scripts/build-default.mjs",
26
+ "prepack": "pnpm build:default && pnpm build:presets && pnpm build:visuals",
27
+ "test": "node --test"
28
+ },
29
+ "exports": {
30
+ "./styles.css": "./dist/styles.css",
31
+ "./presets.css": "./style-presets.css",
32
+ "./themes.json": "./dist/themes.json",
33
+ "./presets": {
34
+ "types": "./dist/presets.d.ts",
35
+ "default": "./dist/presets.js"
36
+ },
37
+ "./visuals": {
38
+ "types": "./dist/visuals.d.ts",
39
+ "default": "./dist/visuals.js"
40
+ }
41
+
42
+ },
43
+ "dependencies": {
44
+ "@pimolu/design-tokens": "0.1.0-beta.11"
45
+ }
46
+ }
@@ -16,7 +16,9 @@
16
16
  "surface": "#FFFFFF",
17
17
  "surfaceForeground": "#171B2B",
18
18
  "accent": "#0C9E8B",
19
- "accentForeground": "#FFFFFF"
19
+ "accentForeground": "#FFFFFF",
20
+ "primarySoft": "#F1F3F9",
21
+ "primarySoftForeground": "#5B55E7"
20
22
  },
21
23
  "dark": {
22
24
  "primary": "#7C77F0",
@@ -35,6 +37,8 @@
35
37
  "surface": "#161A26",
36
38
  "surfaceForeground": "#E8EAF2",
37
39
  "accent": "#2BC4AF",
38
- "accentForeground": "#062A25"
40
+ "accentForeground": "#062A25",
41
+ "primarySoft": "#1C2130",
42
+ "primarySoftForeground": "#7C77F0"
39
43
  }
40
44
  }
@@ -1,4 +1,3 @@
1
-
2
1
  {
3
2
  "light": {
4
3
  "primary": "#ffbd2e",
@@ -14,7 +13,10 @@
14
13
  "muted": "#fff0c2",
15
14
  "mutedForeground": "#525252",
16
15
  "border": "#171717",
17
- "focusRing": "#2563eb"
16
+ "focusRing": "#2563eb",
17
+ "controlBorder": "#171717",
18
+ "primarySoft": "#fff0c2",
19
+ "primarySoftForeground": "#ffbd2e"
18
20
  },
19
21
  "dark": {
20
22
  "primary": "#ffbd2e",
@@ -30,6 +32,9 @@
30
32
  "muted": "#323232",
31
33
  "mutedForeground": "#d4d4d4",
32
34
  "border": "#ffffff",
33
- "focusRing": "#ffbd2e"
35
+ "focusRing": "#ffbd2e",
36
+ "controlBorder": "#ffffff",
37
+ "primarySoft": "#323232",
38
+ "primarySoftForeground": "#ffbd2e"
34
39
  }
35
40
  }
@@ -16,7 +16,10 @@
16
16
  "glassBorder": "rgba(255, 255, 255, 0.85)",
17
17
  "secondary": "rgba(255, 255, 255, 0.65)",
18
18
  "secondaryHover": "rgba(255, 255, 255, 0.88)",
19
- "secondaryForeground": "#17213b"
19
+ "secondaryForeground": "#17213b",
20
+ "controlBorder": "rgba(255, 255, 255, 0.75)",
21
+ "primarySoft": "rgba(255, 255, 255, 0.65)",
22
+ "primarySoftForeground": "#6265ef"
20
23
  },
21
24
  "dark": {
22
25
  "primary": "#818cf8",
@@ -35,6 +38,9 @@
35
38
  "glassBorder": "rgba(255, 255, 255, 0.2)",
36
39
  "secondary": "rgba(51, 65, 85, 0.65)",
37
40
  "secondaryHover": "rgba(71, 85, 105, 0.85)",
38
- "secondaryForeground": "#f8fafc"
41
+ "secondaryForeground": "#f8fafc",
42
+ "controlBorder": "rgba(255, 255, 255, 0.18)",
43
+ "primarySoft": "rgba(51, 65, 85, 0.65)",
44
+ "primarySoftForeground": "#818cf8"
39
45
  }
40
46
  }
@@ -1,52 +1,44 @@
1
-
2
1
  {
3
2
  "light": {
4
3
  "background": "#faf7f2",
5
4
  "foreground": "#24211e",
6
-
7
5
  "surface": "#ffffff",
8
6
  "surfaceForeground": "#24211e",
9
-
10
7
  "primary": "#24211e",
11
8
  "primaryHover": "#403a33",
12
9
  "primaryForeground": "#faf7f2",
13
-
14
10
  "secondary": "#f1eae0",
15
11
  "secondaryHover": "#e5d9c8",
16
12
  "secondaryForeground": "#24211e",
17
-
18
13
  "muted": "#f1eae0",
19
14
  "mutedForeground": "#665e54",
20
-
21
15
  "border": "#d8c9b3",
22
16
  "focusRing": "#926a35",
23
-
24
17
  "luxuryGold": "#b38a4a",
25
- "luxuryDivider": "#d8c9b3"
18
+ "luxuryDivider": "#d8c9b3",
19
+ "controlBorder": "#d8c9b3",
20
+ "primarySoft": "#f1eae0",
21
+ "primarySoftForeground": "#24211e"
26
22
  },
27
-
28
23
  "dark": {
29
24
  "background": "#151311",
30
25
  "foreground": "#f4eee5",
31
-
32
26
  "surface": "#24201c",
33
27
  "surfaceForeground": "#f4eee5",
34
-
35
28
  "primary": "#e8cf9b",
36
29
  "primaryHover": "#f3dfb5",
37
30
  "primaryForeground": "#24211e",
38
-
39
31
  "secondary": "#342f29",
40
32
  "secondaryHover": "#453d34",
41
33
  "secondaryForeground": "#f4eee5",
42
-
43
34
  "muted": "#2d2822",
44
35
  "mutedForeground": "#c4b7a5",
45
-
46
36
  "border": "#675743",
47
37
  "focusRing": "#e8cf9b",
48
-
49
38
  "luxuryGold": "#e8cf9b",
50
- "luxuryDivider": "#675743"
39
+ "luxuryDivider": "#675743",
40
+ "controlBorder": "#675743",
41
+ "primarySoft": "#2d2822",
42
+ "primarySoftForeground": "#e8cf9b"
51
43
  }
52
44
  }
@@ -13,7 +13,10 @@
13
13
  "border": "#737373",
14
14
  "focusRing": "#171717",
15
15
  "surface": "#ffffff",
16
- "surfaceForeground": "#171717"
16
+ "surfaceForeground": "#171717",
17
+ "controlBorder": "#737373",
18
+ "primarySoft": "#f5f5f5",
19
+ "primarySoftForeground": "#171717"
17
20
  },
18
21
  "dark": {
19
22
  "primary": "#fafafa",
@@ -29,6 +32,9 @@
29
32
  "border": "#737373",
30
33
  "focusRing": "#fafafa",
31
34
  "surface": "#262626",
32
- "surfaceForeground": "#fafafa"
35
+ "surfaceForeground": "#fafafa",
36
+ "controlBorder": "#737373",
37
+ "primarySoft": "#262626",
38
+ "primarySoftForeground": "#fafafa"
33
39
  }
34
40
  }
@@ -1,46 +1,40 @@
1
-
2
1
  {
3
2
  "light": {
4
3
  "background": "#fffdf5",
5
4
  "foreground": "#171717",
6
-
7
5
  "surface": "#ffffff",
8
6
  "surfaceForeground": "#171717",
9
-
10
7
  "primary": "#dfff57",
11
8
  "primaryHover": "#c9ef34",
12
9
  "primaryForeground": "#171717",
13
-
14
10
  "secondary": "#c4b5fd",
15
11
  "secondaryHover": "#b29cf9",
16
12
  "secondaryForeground": "#171717",
17
-
18
13
  "muted": "#f2eddf",
19
14
  "mutedForeground": "#525252",
20
-
21
15
  "border": "#171717",
22
- "focusRing": "#4338ca"
16
+ "focusRing": "#4338ca",
17
+ "controlBorder": "#171717",
18
+ "primarySoft": "#f2eddf",
19
+ "primarySoftForeground": "#dfff57"
23
20
  },
24
-
25
21
  "dark": {
26
22
  "background": "#171717",
27
23
  "foreground": "#fafafa",
28
-
29
24
  "surface": "#262626",
30
25
  "surfaceForeground": "#fafafa",
31
-
32
26
  "primary": "#dfff57",
33
27
  "primaryHover": "#edff96",
34
28
  "primaryForeground": "#171717",
35
-
36
29
  "secondary": "#c4b5fd",
37
30
  "secondaryHover": "#ddd6fe",
38
31
  "secondaryForeground": "#171717",
39
-
40
32
  "muted": "#333333",
41
33
  "mutedForeground": "#d4d4d4",
42
-
43
34
  "border": "#fafafa",
44
- "focusRing": "#dfff57"
35
+ "focusRing": "#dfff57",
36
+ "controlBorder": "#fafafa",
37
+ "primarySoft": "#333333",
38
+ "primarySoftForeground": "#dfff57"
45
39
  }
46
40
  }
@@ -3,10 +3,19 @@
3
3
  "control-border-width": "1px",
4
4
  "solid-border-color": "transparent",
5
5
  "shadow-raised": "none",
6
- "shadow-sm": "0 1px 2px rgba(15, 23, 42, 0.12)",
7
- "button-font-weight": "400"
6
+ "shadow-sm": "0 2px 8px rgba(38, 35, 45, 0.08)",
7
+ "button-font-weight": "500",
8
+ "radius-sm": "6px",
9
+ "radius-md": "10px",
10
+ "radius-lg": "16px",
11
+ "font-body": "\"DM Sans\", system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
12
+ "font-heading": "inherit",
13
+ "font-mono": "\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, monospace",
14
+ "font-display": "\"Newsreader\", Georgia, \"Times New Roman\", serif",
15
+ "interaction-duration": "120ms",
16
+ "interaction-easing": "cubic-bezier(.2, 0, 0, 1)"
8
17
  },
9
18
  "dark": {
10
- "shadow-sm": "0 1px 2px rgba(0, 0, 0, 0.3)"
19
+ "shadow-sm": "0 2px 8px rgba(0, 0, 0, 0.24)"
11
20
  }
12
21
  }
package/style-base.css CHANGED
@@ -6,7 +6,7 @@
6
6
  :where([data-pimolu-style]) {
7
7
 
8
8
  /* Semantic defaults */
9
- --pimolu-outline-hover-border: var(--pimolu-border);
9
+ --pimolu-outline-hover-border: var(--pimolu-control-border, var(--pimolu-border));
10
10
 
11
11
  --pimolu-secondary: var(--pimolu-muted);
12
12
  --pimolu-secondary-hover: var(--pimolu-border);
@@ -31,6 +31,7 @@
31
31
 
32
32
  --pimolu-font-body: var(--pimolu-font-family-sans, system-ui, sans-serif);
33
33
  --pimolu-font-heading: inherit;
34
+ --pimolu-font-display: var(--pimolu-font-heading, inherit);
34
35
  --pimolu-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
35
36
 
36
37
  --pimolu-button-font-weight: 400;
@@ -38,6 +39,9 @@
38
39
 
39
40
  /* Interactions */
40
41
 
42
+ --pimolu-interaction-duration: 150ms;
43
+ --pimolu-interaction-easing: ease-out;
44
+
41
45
  --pimolu-button-active-transform: none;
42
46
  --pimolu-button-active-shadow: none;
43
47
 
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 pimoludev
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,32 +0,0 @@
1
-
2
- /* Generated automatically — do not edit */
3
-
4
- [data-pimolu-style="monochrome"] {
5
- --pimolu-primary: #171717;
6
- --pimolu-primary-hover: #404040;
7
- --pimolu-primary-foreground: #ffffff;
8
- --pimolu-secondary: #e5e5e5;
9
- --pimolu-secondary-hover: #d4d4d4;
10
- --pimolu-secondary-foreground: #171717;
11
- --pimolu-background: #ffffff;
12
- --pimolu-foreground: #171717;
13
- --pimolu-muted: #f5f5f5;
14
- --pimolu-muted-foreground: #737373;
15
- --pimolu-border: #737373;
16
- --pimolu-focus-ring: #171717;
17
- }
18
-
19
- [data-pimolu-theme="dark"][data-pimolu-style="monochrome"] {
20
- --pimolu-primary: #fafafa;
21
- --pimolu-primary-hover: #d4d4d4;
22
- --pimolu-primary-foreground: #171717;
23
- --pimolu-secondary: #333333;
24
- --pimolu-secondary-hover: #404040;
25
- --pimolu-secondary-foreground: #fafafa;
26
- --pimolu-background: #111111;
27
- --pimolu-foreground: #fafafa;
28
- --pimolu-muted: #262626;
29
- --pimolu-muted-foreground: #a3a3a3;
30
- --pimolu-border: #737373;
31
- --pimolu-focus-ring: #fafafa;
32
- }