@sanity/themer 0.4.0 → 0.5.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/README.md CHANGED
@@ -53,7 +53,7 @@ const theme = buildTheme(verdant.options)
53
53
 
54
54
  ## Studio tool
55
55
 
56
- `@sanity/themer/tool` adds a themer sidebar to the Studio for these themes. It lists the configured theme, the presets and your own themes, each previewed as a tiny Studio in both color schemes, and picking one applies it live to the whole Studio while you browse around. Your own themes are edited scheme by scheme — a light mode and a dark mode card with accent/text/background pickers and a contrast slider each, the one the Studio is showing marked as active — add one from scratch, duplicate a preset to start from it, or take the colors from an image: its palette is read on device (the image is drawn onto a canvas and its vibrant and muted colors extracted right there, nothing is uploaded), the vibrant color becomes the accent (adjusted until a button label reads on it), the muted one the text color and the light and dark muted colors tint the backgrounds, and a row of variants previews the theme built around each swatch instead — with an "I'm feeling lucky" button that picks an interesting one. Themes can be removed and restored, and a dialog shows the `buildTheme` snippet that makes the applied theme permanent:
56
+ `@sanity/themer/tool` adds a themer sidebar to the Studio for these themes. It lists the configured theme, the presets and your own themes, each previewed as a tiny Studio in both color schemes, and picking one applies it live to the whole Studio while you browse around — in the appearance the Studio is set to or, with the split-screen toggle in the sidebar header, twice side by side: light on the left, dark on the right. Your own themes are edited scheme by scheme — a light mode and a dark mode card with accent/text/background pickers and a contrast slider each, the one the Studio is showing marked as active — add one from scratch, duplicate a preset to start from it, or take the colors from an image: its palette is read on device (the image is drawn onto a canvas and its vibrant and muted colors extracted right there, nothing is uploaded), the vibrant color becomes the accent (adjusted until a button label reads on it), the muted one the text color and the light and dark muted colors tint the backgrounds, and a row of variants previews the theme built around each swatch instead — with an "I'm feeling lucky" button that picks an interesting one. Themes can be removed and restored, and a dialog shows the `buildTheme` snippet that makes the applied theme permanent:
57
57
 
58
58
  ```ts
59
59
  import {themerTool} from '@sanity/themer/tool'
package/dist/tool.d.ts CHANGED
@@ -26,15 +26,16 @@ interface ThemerToolOptions {
26
26
  }
27
27
  /**
28
28
  * A Studio plugin that adds a themer sidebar for `buildTheme` themes: a
29
- * navbar toggle opens the sidebar next to the active tool, with a list of
30
- * themes — the configured theme, the presets and your own — each previewed
31
- * as a tiny Studio in both color schemes. Picking one applies it live to the
32
- * whole Studio while you browse around; your own themes can be edited with
29
+ * navbar toggle opens the sidebar next to the Studio, with a list of themes —
30
+ * the configured theme, the presets and your own — each previewed as a tiny
31
+ * Studio in both color schemes. Picking one applies it live to the whole
32
+ * Studio while you browse around; your own themes can be edited with
33
33
  * accent/text/background pickers and a contrast slider per scheme, added,
34
34
  * duplicated, given the colors of an image (its palette is read on device),
35
35
  * removed and restored, and a dialog shows the `buildTheme` snippet that
36
36
  * makes the applied theme permanent. Toggle between light and dark mode with
37
- * the regular appearance menu — the preview follows it.
37
+ * the regular appearance menu — the preview follows it — or split the
38
+ * preview to see the whole Studio in light and dark side by side.
38
39
  *
39
40
  * ```ts
40
41
  * import {themerTool} from '@sanity/themer/tool'
@@ -1 +1 @@
1
- {"version":3,"file":"tool.d.ts","names":[],"sources":["../src/tool/plugin.tsx"],"mappings":";;;;;;;;;UAeiB;;;;;;;;;;;;;;;EAef,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA8BE,6BAAU,cAAA"}
1
+ {"version":3,"file":"tool.d.ts","names":[],"sources":["../src/tool/plugin.tsx"],"mappings":";;;;;;;;;UAciB;;;;;;;;;;;;;;;EAef,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+BE,6BAAU,cAAA"}