@pimolu/themes 0.1.0-beta.1 → 0.1.0-beta.3
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 +24 -14
- package/README.md +24 -14
- package/package.json +46 -46
- package/LICENSE +0 -21
package/README.fr.md
CHANGED
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
# @pimolu/themes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Les thèmes de couleurs clairs et sombres de Pimolu, ses presets visuels et ses données de style indépendantes de la plateforme. Utilisez ce package pour créer des interfaces sur la même base visuelle que les composants Pimolu.
|
|
4
4
|
|
|
5
|
-
> **0.1.0-beta.
|
|
5
|
+
> **0.1.0-beta.3** est une version de prévisualisation. Les noms des presets et des tokens peuvent évoluer avant la version 1.0.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
pnpm add @pimolu/themes
|
|
10
|
+
pnpm add @pimolu/themes@beta
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
## Utilisation sur le Web
|
|
14
|
+
|
|
15
|
+
Importez les couleurs sémantiques et les styles des presets dans votre CSS global :
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
@import "@pimolu/themes/styles.css";
|
|
19
|
+
@import "@pimolu/themes/presets.css";
|
|
16
20
|
```
|
|
17
21
|
|
|
18
|
-
|
|
22
|
+
Choisissez ensuite un mode et un preset sur un élément parent :
|
|
19
23
|
|
|
20
24
|
```html
|
|
21
|
-
<div data-pimolu-theme="dark" data-pimolu-style="glass"
|
|
25
|
+
<div data-pimolu-theme="dark" data-pimolu-style="glass">
|
|
26
|
+
<!-- Votre contenu -->
|
|
27
|
+
</div>
|
|
22
28
|
```
|
|
23
29
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
Presets disponibles : `default`, `adaptive`, `cartoon`, `glass`, `luxury`, `monochrome` et `neo-brutalism`. `adaptive` est une option ; il ne remplace pas `default`. Dans une application React avec les composants Pimolu, importez plutôt `@pimolu/web-styles/styles.css` et définissez ces préférences avec `PimoluProvider`.
|
|
31
|
+
|
|
32
|
+
## Utilisation comme données
|
|
33
|
+
|
|
34
|
+
`@pimolu/themes/presets` exporte `pimoluPresets` (palettes générées, hors `default`). `@pimolu/themes/visuals` exporte `pimoluPresetVisuals` pour les bordures, ombres, rayons, typographies et effets d'appui. Ces deux entrées fournissent des déclarations TypeScript. `@pimolu/themes/themes.json` contient les thèmes sémantiques clairs et sombres résolus.
|
|
35
|
+
|
|
36
|
+
## Liens
|
|
27
37
|
|
|
28
|
-
|
|
38
|
+
[Guide des thèmes](https://pimolu.com/docs/theming) · [Tous les packages npm](https://www.npmjs.com/org/pimolu) · [Code source](https://github.com/pimoludev/ui/tree/main/packages/themes)
|
|
29
39
|
|
|
30
40
|
MIT © Pimolu
|
package/README.md
CHANGED
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
# @pimolu/themes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Pimolu's light and dark colour themes, visual presets and platform-neutral style data. Use this package to build custom interfaces with the same visual language as Pimolu components.
|
|
4
4
|
|
|
5
|
-
> **0.1.0-beta.
|
|
5
|
+
> **0.1.0-beta.3** is a preview release. Preset and token names may change before 1.0.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
pnpm add @pimolu/themes
|
|
10
|
+
pnpm add @pimolu/themes@beta
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
## Use in a web app
|
|
14
|
+
|
|
15
|
+
Import both the semantic colours and the preset styles in your global CSS:
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
@import "@pimolu/themes/styles.css";
|
|
19
|
+
@import "@pimolu/themes/presets.css";
|
|
16
20
|
```
|
|
17
21
|
|
|
18
|
-
|
|
22
|
+
Then choose a colour mode and style preset on a containing element:
|
|
19
23
|
|
|
20
24
|
```html
|
|
21
|
-
<div data-pimolu-theme="dark" data-pimolu-style="glass"
|
|
25
|
+
<div data-pimolu-theme="dark" data-pimolu-style="glass">
|
|
26
|
+
<!-- Your content -->
|
|
27
|
+
</div>
|
|
22
28
|
```
|
|
23
29
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
Available presets: `default`, `adaptive`, `cartoon`, `glass`, `luxury`, `monochrome` and `neo-brutalism`. `adaptive` is available as an option; it does not replace `default`. For a React application using Pimolu components, import `@pimolu/web-styles/styles.css` and set these preferences through `PimoluProvider` instead.
|
|
31
|
+
|
|
32
|
+
## Use as data
|
|
33
|
+
|
|
34
|
+
`@pimolu/themes/presets` exports `pimoluPresets` (generated colour palettes except `default`). `@pimolu/themes/visuals` exports `pimoluPresetVisuals` for borders, shadows, radii, typography and press effects. Both entries include TypeScript declarations. `@pimolu/themes/themes.json` provides the resolved light and dark semantic themes.
|
|
35
|
+
|
|
36
|
+
## Links
|
|
27
37
|
|
|
28
|
-
|
|
38
|
+
[Theming guide](https://pimolu.com/docs/theming) · [All npm packages](https://www.npmjs.com/org/pimolu) · [Source](https://github.com/pimoludev/ui/tree/main/packages/themes)
|
|
29
39
|
|
|
30
40
|
MIT © Pimolu
|
package/package.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pimolu/themes",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"./
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@pimolu/themes",
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
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.3"
|
|
45
|
+
}
|
|
46
|
+
}
|
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.
|