achery-ui 0.10.5 → 0.10.7

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.
@@ -2818,11 +2818,20 @@ function NativeThemeProvider({
2818
2818
  const setAccent = react.useCallback((a) => setAccentState(a), []);
2819
2819
  const setDial = react.useCallback((d) => setDialState(d), []);
2820
2820
  const setMaterial = react.useCallback((m) => setMaterialState(m), []);
2821
+ const tokens$1 = react.useMemo(() => {
2822
+ const base = dark ? tokens.darkTokens : tokens.lightTokens;
2823
+ const a = tokens.accentColors[accent];
2824
+ return {
2825
+ ...base,
2826
+ accent: dark ? a.light : a.main,
2827
+ accentFg: dark ? a.fgDark : a.fg
2828
+ };
2829
+ }, [dark, accent]);
2821
2830
  return /* @__PURE__ */ jsxRuntime.jsx(
2822
2831
  ThemeContext.Provider,
2823
2832
  {
2824
2833
  value: {
2825
- tokens: dark ? tokens.darkTokens : tokens.lightTokens,
2834
+ tokens: tokens$1,
2826
2835
  dark,
2827
2836
  toggle,
2828
2837
  accent,