@graphty/compact-mantine 0.9.30 → 0.9.32

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
@@ -171,6 +171,25 @@ Figma's own palette. Dividers stay as Figma draws them. `createCompactTheme()`
171
171
  with no options is `compactThemeOverride`, and the options it was built with are
172
172
  published on `theme.other.compact`.
173
173
 
174
+ ### The graphty accent
175
+
176
+ The accent is Figma's blue by default. `accent: "graphty"` switches it to the
177
+ graphty brand's lime and ink, in both color schemes and both contrast modes:
178
+
179
+ ```tsx
180
+ <MantineProvider theme={createCompactTheme({ highContrast: true, accent: "graphty" })}>{children}</MantineProvider>
181
+ ```
182
+
183
+ In light, filled buttons, the active tool, checked boxes and switches are the
184
+ mark green #97c800 with ink labels (9.1:1); links and accent text are the olive
185
+ #588300 (4.5:1 on white); focus rings, selection edges and accent graphics are
186
+ the olive too (3:1 or more on white, a field and raised gray); text on a selected
187
+ row's lime tint is ink. In dark, all of them are the bright lime #c4f23a, with
188
+ near-black labels on lime fills (14.5:1). Danger, success and inverse buttons
189
+ keep their white labels. The theme's `primaryColor` becomes `"graphty"`
190
+ (`compactGraphtyColors`), so Mantine components that read the primary palette
191
+ follow too.
192
+
174
193
  ### Tooltips: wrap your app once
175
194
 
176
195
  Tooltips follow Figma's timing: the first one opens after 1000ms, and while one