@oxyhq/bloom 0.7.0 → 0.7.1

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.
Files changed (64) hide show
  1. package/lib/commonjs/react-native-css.d.js +2 -0
  2. package/lib/commonjs/react-native-css.d.js.map +1 -0
  3. package/lib/commonjs/theme/BloomThemeProvider.js +39 -7
  4. package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
  5. package/lib/commonjs/theme/color-presets.js +118 -118
  6. package/lib/commonjs/theme/color-presets.js.map +1 -1
  7. package/lib/commonjs/theme/color-scope/index.js +28 -6
  8. package/lib/commonjs/theme/color-scope/index.js.map +1 -1
  9. package/lib/commonjs/theme/color-scope/style-builder.js +35 -0
  10. package/lib/commonjs/theme/color-scope/style-builder.js.map +1 -1
  11. package/lib/commonjs/theme/native-root-vars.js +105 -0
  12. package/lib/commonjs/theme/native-root-vars.js.map +1 -0
  13. package/lib/commonjs/theme/native-root-vars.web.js +27 -0
  14. package/lib/commonjs/theme/native-root-vars.web.js.map +1 -0
  15. package/lib/commonjs/theme/preset-vars.js +4 -1
  16. package/lib/commonjs/theme/preset-vars.js.map +1 -1
  17. package/lib/module/react-native-css.d.js +2 -0
  18. package/lib/module/react-native-css.d.js.map +1 -0
  19. package/lib/module/theme/BloomThemeProvider.js +40 -8
  20. package/lib/module/theme/BloomThemeProvider.js.map +1 -1
  21. package/lib/module/theme/color-presets.js +118 -118
  22. package/lib/module/theme/color-presets.js.map +1 -1
  23. package/lib/module/theme/color-scope/index.js +29 -7
  24. package/lib/module/theme/color-scope/index.js.map +1 -1
  25. package/lib/module/theme/color-scope/style-builder.js +35 -0
  26. package/lib/module/theme/color-scope/style-builder.js.map +1 -1
  27. package/lib/module/theme/native-root-vars.js +101 -0
  28. package/lib/module/theme/native-root-vars.js.map +1 -0
  29. package/lib/module/theme/native-root-vars.web.js +23 -0
  30. package/lib/module/theme/native-root-vars.web.js.map +1 -0
  31. package/lib/module/theme/preset-vars.js +4 -1
  32. package/lib/module/theme/preset-vars.js.map +1 -1
  33. package/lib/typescript/commonjs/icons/common.d.ts +8 -8
  34. package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
  35. package/lib/typescript/commonjs/theme/color-scope/index.d.ts +9 -2
  36. package/lib/typescript/commonjs/theme/color-scope/index.d.ts.map +1 -1
  37. package/lib/typescript/commonjs/theme/color-scope/style-builder.d.ts +32 -0
  38. package/lib/typescript/commonjs/theme/color-scope/style-builder.d.ts.map +1 -1
  39. package/lib/typescript/commonjs/theme/native-root-vars.d.ts +89 -0
  40. package/lib/typescript/commonjs/theme/native-root-vars.d.ts.map +1 -0
  41. package/lib/typescript/commonjs/theme/native-root-vars.web.d.ts +20 -0
  42. package/lib/typescript/commonjs/theme/native-root-vars.web.d.ts.map +1 -0
  43. package/lib/typescript/commonjs/theme/preset-vars.d.ts.map +1 -1
  44. package/lib/typescript/module/icons/common.d.ts +8 -8
  45. package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
  46. package/lib/typescript/module/theme/color-scope/index.d.ts +9 -2
  47. package/lib/typescript/module/theme/color-scope/index.d.ts.map +1 -1
  48. package/lib/typescript/module/theme/color-scope/style-builder.d.ts +32 -0
  49. package/lib/typescript/module/theme/color-scope/style-builder.d.ts.map +1 -1
  50. package/lib/typescript/module/theme/native-root-vars.d.ts +89 -0
  51. package/lib/typescript/module/theme/native-root-vars.d.ts.map +1 -0
  52. package/lib/typescript/module/theme/native-root-vars.web.d.ts +20 -0
  53. package/lib/typescript/module/theme/native-root-vars.web.d.ts.map +1 -0
  54. package/lib/typescript/module/theme/preset-vars.d.ts.map +1 -1
  55. package/package.json +1 -1
  56. package/src/__tests__/native-root-vars.test.ts +125 -0
  57. package/src/react-native-css.d.ts +69 -0
  58. package/src/theme/BloomThemeProvider.tsx +32 -6
  59. package/src/theme/color-presets.ts +118 -118
  60. package/src/theme/color-scope/index.tsx +30 -8
  61. package/src/theme/color-scope/style-builder.ts +40 -0
  62. package/src/theme/native-root-vars.ts +102 -0
  63. package/src/theme/native-root-vars.web.ts +22 -0
  64. package/src/theme/preset-vars.ts +4 -1
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=react-native-css.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["react-native-css.d.ts"],"mappings":"","ignoreList":[]}
@@ -13,6 +13,7 @@ var _FontLoader = require("../fonts/FontLoader");
13
13
  var _applyDarkClass = require("./apply-dark-class.js");
14
14
  var _buildTheme = require("./build-theme.js");
15
15
  var _styleBuilder = require("./color-scope/style-builder.js");
16
+ var _nativeRootVars = require("./native-root-vars");
16
17
  var _persistence = require("./persistence.js");
17
18
  var _setColorSchemeSafe = require("./set-color-scheme-safe.js");
18
19
  var _useIsomorphicLayoutEffect = require("./use-isomorphic-layout-effect.js");
@@ -175,6 +176,17 @@ function BloomThemeProvider({
175
176
  (0, _applyDarkClass.applyDarkClass)(resolved);
176
177
  (0, _applyDarkClass.applyColorPresetVars)(colorPreset, resolved);
177
178
  }, [effectiveMode, resolved, colorPreset]);
179
+
180
+ // Native only: publish the preset vars into react-native-css's GLOBAL root
181
+ // variable family so they reach the ENTIRE app tree — navigator screens and
182
+ // every portal/modal/bottom-sheet that paints outside the provider's React
183
+ // subtree (and therefore never sees the `VariableContextProvider` vars below).
184
+ // Web writes the same vars to `document.documentElement` above, so this no-ops
185
+ // there. Runs before paint via `useIsomorphicLayoutEffect`, matching the
186
+ // sibling `applyColorPresetVars` side effect.
187
+ (0, _useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)(() => {
188
+ (0, _nativeRootVars.applyNativeRootVars)(colorPreset, resolved);
189
+ }, [colorPreset, resolved]);
178
190
  const contextValue = (0, _react.useMemo)(() => ({
179
191
  theme: (0, _buildTheme.buildTheme)(colorPreset, resolved, isAdaptive),
180
192
  mode,
@@ -185,20 +197,40 @@ function BloomThemeProvider({
185
197
  }), [colorPreset, resolved, isAdaptive, mode, setMode, setColorPreset, resetTheme]);
186
198
  const shouldAwait = awaitHydration ?? Boolean(persistKey && storage);
187
199
  const isGated = shouldAwait && !hydrated;
188
- const nativeVarsStyle = (0, _react.useMemo)(() => _reactNative.Platform.OS === 'web' ? undefined : (0, _styleBuilder.buildNativePresetStyle)(colorPreset, resolved), [colorPreset, resolved]);
200
+
201
+ // The full `--name -> value` record for the active preset. On native this is
202
+ // handed to `VariableContextProvider` so descendants resolve `var(--primary)`
203
+ // etc. through react-native-css's real VariableContext. Web writes these to
204
+ // `document.documentElement` via `applyColorPresetVars`, so it's unused there.
205
+ const nativeVars = (0, _react.useMemo)(() => _reactNative.Platform.OS === 'web' ? null : (0, _styleBuilder.buildScopeVars)(colorPreset, resolved), [colorPreset, resolved]);
206
+ const VariableProvider = (0, _styleBuilder.getVariableContextProvider)();
189
207
  const content = /*#__PURE__*/(0, _jsxRuntime.jsx)(_FontLoader.FontLoader, {
190
208
  enabled: fonts,
191
209
  fallback: onFontsLoading,
192
210
  children: isGated ? onHydrating ?? null : children
193
211
  });
212
+ if (_reactNative.Platform.OS === 'web') {
213
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(BloomThemeContext.Provider, {
214
+ value: contextValue,
215
+ children: content
216
+ });
217
+ }
218
+
219
+ // The flex wrapper is still needed for layout; the preset vars now flow
220
+ // through `VariableContextProvider` rather than an (inert) inline-vars style.
221
+ // If NativeWind isn't installed the wrapper still renders so we never crash.
222
+ const nativeTree = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
223
+ style: [{
224
+ flex: 1
225
+ }, nativeWrapperStyle],
226
+ children: content
227
+ });
194
228
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(BloomThemeContext.Provider, {
195
229
  value: contextValue,
196
- children: _reactNative.Platform.OS === 'web' ? content : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
197
- style: [{
198
- flex: 1
199
- }, nativeVarsStyle, nativeWrapperStyle],
200
- children: content
201
- })
230
+ children: VariableProvider && nativeVars ? /*#__PURE__*/(0, _jsxRuntime.jsx)(VariableProvider, {
231
+ value: nativeVars,
232
+ children: nativeTree
233
+ }) : nativeTree
202
234
  });
203
235
  }
204
236
  //# sourceMappingURL=BloomThemeProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["require","_react","_interopRequireWildcard","_reactNative","_useControllableState","_FontLoader","_applyDarkClass","_buildTheme","_styleBuilder","_persistence","_setColorSchemeSafe","_useIsomorphicLayoutEffect","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEFAULT_PRESET","DEFAULT_MODE","BloomThemeContext","exports","createContext","useThemeState","controlledMode","controlledPreset","defaultMode","defaultPreset","persistKey","storage","onModeChange","onColorPresetChange","syncResult","useState","readPersistedThemeSync","syncState","kind","state","initialMode","mode","initialPreset","colorPreset","hydrated","setHydrated","setModeInternal","useControllableState","value","defaultValue","setPresetInternal","modeRef","useRef","current","presetRef","useEffect","cancelled","readPersistedTheme","then","undefined","setMode","useCallback","next","writePersistedTheme","setColorPreset","resetTheme","removePersistedTheme","BloomThemeProvider","defaultColorPreset","awaitHydration","onHydrating","fonts","onFontsLoading","nativeWrapperStyle","children","rnScheme","useRNColorScheme","isAdaptive","effectiveMode","resolved","useIsomorphicLayoutEffect","setColorSchemeSafe","applyDarkClass","applyColorPresetVars","contextValue","useMemo","theme","buildTheme","shouldAwait","Boolean","isGated","nativeVarsStyle","Platform","OS","buildNativePresetStyle","content","jsx","FontLoader","enabled","fallback","Provider","View","style","flex"],"sourceRoot":"../../../src","sources":["theme/BloomThemeProvider.tsx"],"mappings":";;;;;;;AAIAA,OAAA;AAEA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AASA,IAAAG,YAAA,GAAAH,OAAA;AAQA,IAAAI,qBAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAEA,IAAAM,eA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C,eAAe,GAAG,IAAAN,cAAO,EAC7B,MAAOO,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAGlC,SAAS,GAAG,IAAAmC,oCAAsB,EAACnD,WAAW,EAAEoC,QAAQ,CAAE,EACzF,CAACpC,WAAW,EAAEoC,QAAQ,CACxB,CAAC;EAED,MAAMgB,OAAO,gBACX,IAAA/F,WAAA,CAAAgG,GAAA,EAACvG,WAAA,CAAAwG,UAAU;IAACC,OAAO,EAAE3B,KAAM;IAAC4B,QAAQ,EAAE3B,cAAe;IAAAE,QAAA,EAClDgB,OAAO,GAAGpB,WAAW,IAAI,IAAI,GAAGI;EAAQ,CAC/B,CACb;EAED,oBACE,IAAA1E,WAAA,CAAAgG,GAAA,EAAC1E,iBAAiB,CAAC8E,QAAQ;IAACpD,KAAK,EAAEoC,YAAa;IAAAV,QAAA,EAC7CkB,qBAAQ,CAACC,EAAE,KAAK,KAAK,GACpBE,OAAO,gBAEP,IAAA/F,WAAA,CAAAgG,GAAA,EAACzG,YAAA,CAAA8G,IAAI;MAACC,KAAK,EAAE,CAAC;QAAEC,IAAI,EAAE;MAAE,CAAC,EAAEZ,eAAe,EAAElB,kBAAkB,CAAE;MAAAC,QAAA,EAAEqB;IAAO,CAAO;EACjF,CACyB,CAAC;AAEjC","ignoreList":[]}
1
+ {"version":3,"names":["require","_react","_interopRequireWildcard","_reactNative","_useControllableState","_FontLoader","_applyDarkClass","_buildTheme","_styleBuilder","_nativeRootVars","_persistence","_setColorSchemeSafe","_useIsomorphicLayoutEffect","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEFAULT_PRESET","DEFAULT_MODE","BloomThemeContext","exports","createContext","useThemeState","controlledMode","controlledPreset","defaultMode","defaultPreset","persistKey","storage","onModeChange","onColorPresetChange","syncResult","useState","readPersistedThemeSync","syncState","kind","state","initialMode","mode","initialPreset","colorPreset","hydrated","setHydrated","setModeInternal","useControllableState","value","defaultValue","setPresetInternal","modeRef","useRef","current","presetRef","useEffect","cancelled","readPersistedTheme","then","undefined","setMode","useCallback","next","writePersistedTheme","setColorPreset","resetTheme","removePersistedTheme","BloomThemeProvider","defaultColorPreset","awaitHydration","onHydrating","fonts","onFontsLoading","nativeWrapperStyle","children","rnScheme","useRNColorScheme","isAdaptive","effectiveMode","resolved","useIsomorphicLayoutEffect","setColorSchemeSafe","applyDarkClass","applyColorPresetVars","applyNativeRootVars","contextValue","useMemo","theme","buildTheme","shouldAwait","Boolean","isGated","nativeVars","Platform","OS","buildScopeVars","VariableProvider","getVariableContextProvider","content","jsx","FontLoader","enabled","fallback","Provider","nativeTree","View","style","flex"],"sourceRoot":"../../../src","sources":["theme/BloomThemeProvider.tsx"],"mappings":";;;;;;;AAIAA,OAAA;AAEA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AASA,IAAAG,YAAA,GAAAH,OAAA;AAQA,IAAAI,qBAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAEA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAEA,IAAAQ,aAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA;AAQA,IAAAW,mBAAA,GAAAX,OAAA;AACA,IAAAY,0BAAA,GAAAZ,OAAA;AAA2E,IAAAa,WAAA,GAAAb,OAAA;AAAA,SAAAE,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAY,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,u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AU;IAACC,OAAO,EAAE9B,KAAM;IAAC+B,QAAQ,EAAE9B,cAAe;IAAAE,QAAA,EAClDiB,OAAO,GAAGrB,WAAW,IAAI,IAAI,GAAGI;EAAQ,CAC/B,CACb;EAED,IAAImB,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IACzB,oBAAO,IAAA9F,WAAA,CAAAmG,GAAA,EAAC7E,iBAAiB,CAACiF,QAAQ;MAACvD,KAAK,EAAEqC,YAAa;MAAAX,QAAA,EAAEwB;IAAO,CAA6B,CAAC;EAChG;;EAEA;EACA;EACA;EACA,MAAMM,UAAU,gBAAG,IAAAxG,WAAA,CAAAmG,GAAA,EAAC7G,YAAA,CAAAmH,IAAI;IAACC,KAAK,EAAE,CAAC;MAAEC,IAAI,EAAE;IAAE,CAAC,EAAElC,kBAAkB,CAAE;IAAAC,QAAA,EAAEwB;EAAO,CAAO,CAAC;EAEnF,oBACE,IAAAlG,WAAA,CAAAmG,GAAA,EAAC7E,iBAAiB,CAACiF,QAAQ;IAACvD,KAAK,EAAEqC,YAAa;IAAAX,QAAA,EAC7CsB,gBAAgB,IAAIJ,UAAU,gBAC7B,IAAA5F,WAAA,CAAAmG,GAAA,EAACH,gBAAgB;MAAChD,KAAK,EAAE4C,UAAW;MAAAlB,QAAA,EAAE8B;IAAU,CAAmB,CAAC,GAEpEA;EACD,CACyB,CAAC;AAEjC","ignoreList":[]}
@@ -47,25 +47,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
47
47
  name: 'teal',
48
48
  hex: '#005c67',
49
49
  light: {
50
- '--background': '0 0% 99%',
50
+ '--background': '185 8% 99%',
51
51
  '--foreground': '0 0% 12%',
52
- '--surface': '185 10% 97%',
52
+ '--surface': '185 14% 97%',
53
53
  '--surface-foreground': '0 0% 12%',
54
- '--popover': '0 0% 100%',
54
+ '--popover': '185 12% 99%',
55
55
  '--popover-foreground': '0 0% 12%',
56
56
  '--primary': '185 100% 20%',
57
57
  '--primary-foreground': '0 0% 100%',
58
- '--secondary': '185 8% 95%',
58
+ '--secondary': '185 12% 95%',
59
59
  '--secondary-foreground': '0 0% 12%',
60
- '--muted': '185 8% 95%',
60
+ '--muted': '185 12% 95%',
61
61
  '--muted-foreground': '185 5% 42%',
62
- '--accent': '185 8% 95%',
62
+ '--accent': '185 12% 95%',
63
63
  '--accent-foreground': '0 0% 12%',
64
64
  '--destructive': '0 84% 60%',
65
- '--border': '185 8% 88%',
66
- '--input': '185 8% 88%',
65
+ '--border': '185 14% 88%',
66
+ '--input': '185 14% 88%',
67
67
  '--ring': '185 100% 20%',
68
- '--sidebar': '185 10% 97%'
68
+ '--sidebar': '185 14% 97%'
69
69
  },
70
70
  dark: {
71
71
  '--background': '185 50% 5%',
@@ -93,25 +93,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
93
93
  name: 'blue',
94
94
  hex: '#1D9BF0',
95
95
  light: {
96
- '--background': '0 0% 99%',
96
+ '--background': '205 8% 99%',
97
97
  '--foreground': '0 0% 12%',
98
- '--surface': '205 10% 97%',
98
+ '--surface': '205 14% 97%',
99
99
  '--surface-foreground': '0 0% 12%',
100
- '--popover': '0 0% 100%',
100
+ '--popover': '205 12% 99%',
101
101
  '--popover-foreground': '0 0% 12%',
102
102
  '--primary': '205 87% 53%',
103
103
  '--primary-foreground': '0 0% 100%',
104
- '--secondary': '205 8% 95%',
104
+ '--secondary': '205 12% 95%',
105
105
  '--secondary-foreground': '0 0% 12%',
106
- '--muted': '205 8% 95%',
106
+ '--muted': '205 12% 95%',
107
107
  '--muted-foreground': '205 5% 42%',
108
- '--accent': '205 8% 95%',
108
+ '--accent': '205 12% 95%',
109
109
  '--accent-foreground': '0 0% 12%',
110
110
  '--destructive': '0 84% 60%',
111
- '--border': '205 8% 88%',
112
- '--input': '205 8% 88%',
111
+ '--border': '205 14% 88%',
112
+ '--input': '205 14% 88%',
113
113
  '--ring': '205 87% 53%',
114
- '--sidebar': '205 10% 97%'
114
+ '--sidebar': '205 14% 97%'
115
115
  },
116
116
  dark: {
117
117
  '--background': '205 50% 5%',
@@ -139,25 +139,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
139
139
  name: 'green',
140
140
  hex: '#10B981',
141
141
  light: {
142
- '--background': '0 0% 99%',
142
+ '--background': '160 8% 99%',
143
143
  '--foreground': '0 0% 12%',
144
- '--surface': '160 10% 97%',
144
+ '--surface': '160 14% 97%',
145
145
  '--surface-foreground': '0 0% 12%',
146
- '--popover': '0 0% 100%',
146
+ '--popover': '160 12% 99%',
147
147
  '--popover-foreground': '0 0% 12%',
148
148
  '--primary': '160 84% 39%',
149
149
  '--primary-foreground': '0 0% 100%',
150
- '--secondary': '160 8% 95%',
150
+ '--secondary': '160 12% 95%',
151
151
  '--secondary-foreground': '0 0% 12%',
152
- '--muted': '160 8% 95%',
152
+ '--muted': '160 12% 95%',
153
153
  '--muted-foreground': '160 5% 42%',
154
- '--accent': '160 8% 95%',
154
+ '--accent': '160 12% 95%',
155
155
  '--accent-foreground': '0 0% 12%',
156
156
  '--destructive': '0 84% 60%',
157
- '--border': '160 8% 88%',
158
- '--input': '160 8% 88%',
157
+ '--border': '160 14% 88%',
158
+ '--input': '160 14% 88%',
159
159
  '--ring': '160 84% 39%',
160
- '--sidebar': '160 10% 97%'
160
+ '--sidebar': '160 14% 97%'
161
161
  },
162
162
  dark: {
163
163
  '--background': '160 50% 5%',
@@ -185,25 +185,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
185
185
  name: 'amber',
186
186
  hex: '#F59E0B',
187
187
  light: {
188
- '--background': '0 0% 99%',
188
+ '--background': '38 8% 99%',
189
189
  '--foreground': '0 0% 12%',
190
- '--surface': '38 10% 97%',
190
+ '--surface': '38 14% 97%',
191
191
  '--surface-foreground': '0 0% 12%',
192
- '--popover': '0 0% 100%',
192
+ '--popover': '38 12% 99%',
193
193
  '--popover-foreground': '0 0% 12%',
194
194
  '--primary': '38 92% 50%',
195
195
  '--primary-foreground': '0 0% 0%',
196
- '--secondary': '38 8% 95%',
196
+ '--secondary': '38 12% 95%',
197
197
  '--secondary-foreground': '0 0% 12%',
198
- '--muted': '38 8% 95%',
198
+ '--muted': '38 12% 95%',
199
199
  '--muted-foreground': '38 5% 42%',
200
- '--accent': '38 8% 95%',
200
+ '--accent': '38 12% 95%',
201
201
  '--accent-foreground': '0 0% 12%',
202
202
  '--destructive': '0 84% 60%',
203
- '--border': '38 8% 88%',
204
- '--input': '38 8% 88%',
203
+ '--border': '38 14% 88%',
204
+ '--input': '38 14% 88%',
205
205
  '--ring': '38 92% 50%',
206
- '--sidebar': '38 10% 97%'
206
+ '--sidebar': '38 14% 97%'
207
207
  },
208
208
  dark: {
209
209
  '--background': '38 50% 5%',
@@ -231,25 +231,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
231
231
  name: 'yellow',
232
232
  hex: '#ffc300',
233
233
  light: {
234
- '--background': '0 0% 99%',
234
+ '--background': '46 8% 99%',
235
235
  '--foreground': '0 0% 12%',
236
- '--surface': '46 10% 97%',
236
+ '--surface': '46 14% 97%',
237
237
  '--surface-foreground': '0 0% 12%',
238
- '--popover': '0 0% 100%',
238
+ '--popover': '46 12% 99%',
239
239
  '--popover-foreground': '0 0% 12%',
240
240
  '--primary': '46 100% 50%',
241
241
  '--primary-foreground': '0 0% 0%',
242
- '--secondary': '46 8% 95%',
242
+ '--secondary': '46 12% 95%',
243
243
  '--secondary-foreground': '0 0% 12%',
244
- '--muted': '46 8% 95%',
244
+ '--muted': '46 12% 95%',
245
245
  '--muted-foreground': '46 5% 42%',
246
- '--accent': '46 8% 95%',
246
+ '--accent': '46 12% 95%',
247
247
  '--accent-foreground': '0 0% 12%',
248
248
  '--destructive': '0 84% 60%',
249
- '--border': '46 8% 88%',
250
- '--input': '46 8% 88%',
249
+ '--border': '46 14% 88%',
250
+ '--input': '46 14% 88%',
251
251
  '--ring': '46 100% 50%',
252
- '--sidebar': '46 10% 97%'
252
+ '--sidebar': '46 14% 97%'
253
253
  },
254
254
  dark: {
255
255
  '--background': '46 50% 5%',
@@ -277,25 +277,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
277
277
  name: 'red',
278
278
  hex: '#EF4444',
279
279
  light: {
280
- '--background': '0 0% 99%',
280
+ '--background': '0 8% 99%',
281
281
  '--foreground': '0 0% 12%',
282
- '--surface': '0 10% 97%',
282
+ '--surface': '0 14% 97%',
283
283
  '--surface-foreground': '0 0% 12%',
284
- '--popover': '0 0% 100%',
284
+ '--popover': '0 12% 99%',
285
285
  '--popover-foreground': '0 0% 12%',
286
286
  '--primary': '0 84% 60%',
287
287
  '--primary-foreground': '0 0% 100%',
288
- '--secondary': '0 8% 95%',
288
+ '--secondary': '0 12% 95%',
289
289
  '--secondary-foreground': '0 0% 12%',
290
- '--muted': '0 8% 95%',
290
+ '--muted': '0 12% 95%',
291
291
  '--muted-foreground': '0 5% 42%',
292
- '--accent': '0 8% 95%',
292
+ '--accent': '0 12% 95%',
293
293
  '--accent-foreground': '0 0% 12%',
294
294
  '--destructive': '0 84% 60%',
295
- '--border': '0 8% 88%',
296
- '--input': '0 8% 88%',
295
+ '--border': '0 14% 88%',
296
+ '--input': '0 14% 88%',
297
297
  '--ring': '0 84% 60%',
298
- '--sidebar': '0 10% 97%'
298
+ '--sidebar': '0 14% 97%'
299
299
  },
300
300
  dark: {
301
301
  '--background': '0 50% 5%',
@@ -323,25 +323,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
323
323
  name: 'purple',
324
324
  hex: '#8B5CF6',
325
325
  light: {
326
- '--background': '0 0% 99%',
326
+ '--background': '258 8% 99%',
327
327
  '--foreground': '0 0% 12%',
328
- '--surface': '258 10% 97%',
328
+ '--surface': '258 14% 97%',
329
329
  '--surface-foreground': '0 0% 12%',
330
- '--popover': '0 0% 100%',
330
+ '--popover': '258 12% 99%',
331
331
  '--popover-foreground': '0 0% 12%',
332
332
  '--primary': '258 90% 66%',
333
333
  '--primary-foreground': '0 0% 100%',
334
- '--secondary': '258 8% 95%',
334
+ '--secondary': '258 12% 95%',
335
335
  '--secondary-foreground': '0 0% 12%',
336
- '--muted': '258 8% 95%',
336
+ '--muted': '258 12% 95%',
337
337
  '--muted-foreground': '258 5% 42%',
338
- '--accent': '258 8% 95%',
338
+ '--accent': '258 12% 95%',
339
339
  '--accent-foreground': '0 0% 12%',
340
340
  '--destructive': '0 84% 60%',
341
- '--border': '258 8% 88%',
342
- '--input': '258 8% 88%',
341
+ '--border': '258 14% 88%',
342
+ '--input': '258 14% 88%',
343
343
  '--ring': '258 90% 66%',
344
- '--sidebar': '258 10% 97%'
344
+ '--sidebar': '258 14% 97%'
345
345
  },
346
346
  dark: {
347
347
  '--background': '258 50% 5%',
@@ -369,25 +369,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
369
369
  name: 'pink',
370
370
  hex: '#EC4899',
371
371
  light: {
372
- '--background': '0 0% 99%',
372
+ '--background': '330 8% 99%',
373
373
  '--foreground': '0 0% 12%',
374
- '--surface': '330 10% 97%',
374
+ '--surface': '330 14% 97%',
375
375
  '--surface-foreground': '0 0% 12%',
376
- '--popover': '0 0% 100%',
376
+ '--popover': '330 12% 99%',
377
377
  '--popover-foreground': '0 0% 12%',
378
378
  '--primary': '330 81% 60%',
379
379
  '--primary-foreground': '0 0% 100%',
380
- '--secondary': '330 8% 95%',
380
+ '--secondary': '330 12% 95%',
381
381
  '--secondary-foreground': '0 0% 12%',
382
- '--muted': '330 8% 95%',
382
+ '--muted': '330 12% 95%',
383
383
  '--muted-foreground': '330 5% 42%',
384
- '--accent': '330 8% 95%',
384
+ '--accent': '330 12% 95%',
385
385
  '--accent-foreground': '0 0% 12%',
386
386
  '--destructive': '0 84% 60%',
387
- '--border': '330 8% 88%',
388
- '--input': '330 8% 88%',
387
+ '--border': '330 14% 88%',
388
+ '--input': '330 14% 88%',
389
389
  '--ring': '330 81% 60%',
390
- '--sidebar': '330 10% 97%'
390
+ '--sidebar': '330 14% 97%'
391
391
  },
392
392
  dark: {
393
393
  '--background': '330 50% 5%',
@@ -415,25 +415,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
415
415
  name: 'sky',
416
416
  hex: '#0EA5E9',
417
417
  light: {
418
- '--background': '0 0% 99%',
418
+ '--background': '199 8% 99%',
419
419
  '--foreground': '0 0% 12%',
420
- '--surface': '199 10% 97%',
420
+ '--surface': '199 14% 97%',
421
421
  '--surface-foreground': '0 0% 12%',
422
- '--popover': '0 0% 100%',
422
+ '--popover': '199 12% 99%',
423
423
  '--popover-foreground': '0 0% 12%',
424
424
  '--primary': '199 89% 48%',
425
425
  '--primary-foreground': '0 0% 100%',
426
- '--secondary': '199 8% 95%',
426
+ '--secondary': '199 12% 95%',
427
427
  '--secondary-foreground': '0 0% 12%',
428
- '--muted': '199 8% 95%',
428
+ '--muted': '199 12% 95%',
429
429
  '--muted-foreground': '199 5% 42%',
430
- '--accent': '199 8% 95%',
430
+ '--accent': '199 12% 95%',
431
431
  '--accent-foreground': '0 0% 12%',
432
432
  '--destructive': '0 84% 60%',
433
- '--border': '199 8% 88%',
434
- '--input': '199 8% 88%',
433
+ '--border': '199 14% 88%',
434
+ '--input': '199 14% 88%',
435
435
  '--ring': '199 89% 48%',
436
- '--sidebar': '199 10% 97%'
436
+ '--sidebar': '199 14% 97%'
437
437
  },
438
438
  dark: {
439
439
  '--background': '199 50% 5%',
@@ -461,25 +461,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
461
461
  name: 'orange',
462
462
  hex: '#F97316',
463
463
  light: {
464
- '--background': '0 0% 99%',
464
+ '--background': '25 8% 99%',
465
465
  '--foreground': '0 0% 12%',
466
- '--surface': '25 10% 97%',
466
+ '--surface': '25 14% 97%',
467
467
  '--surface-foreground': '0 0% 12%',
468
- '--popover': '0 0% 100%',
468
+ '--popover': '25 12% 99%',
469
469
  '--popover-foreground': '0 0% 12%',
470
470
  '--primary': '25 95% 53%',
471
471
  '--primary-foreground': '0 0% 100%',
472
- '--secondary': '25 8% 95%',
472
+ '--secondary': '25 12% 95%',
473
473
  '--secondary-foreground': '0 0% 12%',
474
- '--muted': '25 8% 95%',
474
+ '--muted': '25 12% 95%',
475
475
  '--muted-foreground': '25 5% 42%',
476
- '--accent': '25 8% 95%',
476
+ '--accent': '25 12% 95%',
477
477
  '--accent-foreground': '0 0% 12%',
478
478
  '--destructive': '0 84% 60%',
479
- '--border': '25 8% 88%',
480
- '--input': '25 8% 88%',
479
+ '--border': '25 14% 88%',
480
+ '--input': '25 14% 88%',
481
481
  '--ring': '25 95% 53%',
482
- '--sidebar': '25 10% 97%'
482
+ '--sidebar': '25 14% 97%'
483
483
  },
484
484
  dark: {
485
485
  '--background': '25 50% 5%',
@@ -507,25 +507,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
507
507
  name: 'mint',
508
508
  hex: '#14B8A6',
509
509
  light: {
510
- '--background': '0 0% 99%',
510
+ '--background': '173 8% 99%',
511
511
  '--foreground': '0 0% 12%',
512
- '--surface': '173 10% 97%',
512
+ '--surface': '173 14% 97%',
513
513
  '--surface-foreground': '0 0% 12%',
514
- '--popover': '0 0% 100%',
514
+ '--popover': '173 12% 99%',
515
515
  '--popover-foreground': '0 0% 12%',
516
516
  '--primary': '173 80% 40%',
517
517
  '--primary-foreground': '0 0% 100%',
518
- '--secondary': '173 8% 95%',
518
+ '--secondary': '173 12% 95%',
519
519
  '--secondary-foreground': '0 0% 12%',
520
- '--muted': '173 8% 95%',
520
+ '--muted': '173 12% 95%',
521
521
  '--muted-foreground': '173 5% 42%',
522
- '--accent': '173 8% 95%',
522
+ '--accent': '173 12% 95%',
523
523
  '--accent-foreground': '0 0% 12%',
524
524
  '--destructive': '0 84% 60%',
525
- '--border': '173 8% 88%',
526
- '--input': '173 8% 88%',
525
+ '--border': '173 14% 88%',
526
+ '--input': '173 14% 88%',
527
527
  '--ring': '173 80% 40%',
528
- '--sidebar': '173 10% 97%'
528
+ '--sidebar': '173 14% 97%'
529
529
  },
530
530
  dark: {
531
531
  '--background': '173 50% 5%',
@@ -553,25 +553,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
553
553
  name: 'oxy',
554
554
  hex: '#c46ede',
555
555
  light: {
556
- '--background': '0 0% 99%',
556
+ '--background': '277 8% 99%',
557
557
  '--foreground': '0 0% 12%',
558
- '--surface': '277 10% 97%',
558
+ '--surface': '277 14% 97%',
559
559
  '--surface-foreground': '0 0% 12%',
560
- '--popover': '0 0% 100%',
560
+ '--popover': '277 12% 99%',
561
561
  '--popover-foreground': '0 0% 12%',
562
562
  '--primary': '277 66% 56%',
563
563
  '--primary-foreground': '0 0% 100%',
564
- '--secondary': '277 8% 95%',
564
+ '--secondary': '277 12% 95%',
565
565
  '--secondary-foreground': '0 0% 12%',
566
- '--muted': '277 8% 95%',
566
+ '--muted': '277 12% 95%',
567
567
  '--muted-foreground': '277 5% 42%',
568
- '--accent': '277 8% 95%',
568
+ '--accent': '277 12% 95%',
569
569
  '--accent-foreground': '0 0% 12%',
570
570
  '--destructive': '0 84% 60%',
571
- '--border': '277 8% 88%',
572
- '--input': '277 8% 88%',
571
+ '--border': '277 14% 88%',
572
+ '--input': '277 14% 88%',
573
573
  '--ring': '277 66% 56%',
574
- '--sidebar': '277 10% 97%'
574
+ '--sidebar': '277 14% 97%'
575
575
  },
576
576
  dark: {
577
577
  '--background': '277 50% 5%',
@@ -599,25 +599,25 @@ const APP_COLOR_PRESETS = exports.APP_COLOR_PRESETS = {
599
599
  name: 'faircoin',
600
600
  hex: '#9ffb50',
601
601
  light: {
602
- '--background': '0 0% 99%',
602
+ '--background': '92 8% 99%',
603
603
  '--foreground': '0 0% 12%',
604
- '--surface': '92 12% 95%',
604
+ '--surface': '92 16% 95%',
605
605
  '--surface-foreground': '0 0% 12%',
606
- '--popover': '0 0% 100%',
606
+ '--popover': '92 12% 99%',
607
607
  '--popover-foreground': '0 0% 12%',
608
608
  '--primary': '92 90% 25%',
609
609
  '--primary-foreground': '0 0% 100%',
610
- '--secondary': '92 10% 92%',
610
+ '--secondary': '92 14% 92%',
611
611
  '--secondary-foreground': '0 0% 12%',
612
- '--muted': '92 8% 93%',
613
- '--muted-foreground': '0 0% 40%',
614
- '--accent': '92 10% 92%',
612
+ '--muted': '92 12% 93%',
613
+ '--muted-foreground': '92 5% 40%',
614
+ '--accent': '92 14% 92%',
615
615
  '--accent-foreground': '0 0% 12%',
616
616
  '--destructive': '0 84% 60%',
617
- '--border': '92 8% 85%',
618
- '--input': '92 8% 85%',
617
+ '--border': '92 12% 85%',
618
+ '--input': '92 12% 85%',
619
619
  '--ring': '92 90% 25%',
620
- '--sidebar': '92 12% 95%'
620
+ '--sidebar': '92 16% 95%'
621
621
  },
622
622
  dark: {
623
623
  '--background': '69 54% 8%',