@oxyhq/bloom 0.7.0 → 0.7.2
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/lib/commonjs/react-native-css.d.js +2 -0
- package/lib/commonjs/react-native-css.d.js.map +1 -0
- package/lib/commonjs/theme/BloomThemeProvider.js +39 -7
- package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
- package/lib/commonjs/theme/apply-dark-class.js +6 -3
- package/lib/commonjs/theme/apply-dark-class.js.map +1 -1
- package/lib/commonjs/theme/color-presets.js +118 -118
- package/lib/commonjs/theme/color-presets.js.map +1 -1
- package/lib/commonjs/theme/color-scope/index.js +28 -6
- package/lib/commonjs/theme/color-scope/index.js.map +1 -1
- package/lib/commonjs/theme/color-scope/style-builder.js +35 -0
- package/lib/commonjs/theme/color-scope/style-builder.js.map +1 -1
- package/lib/commonjs/theme/native-root-vars.js +110 -0
- package/lib/commonjs/theme/native-root-vars.js.map +1 -0
- package/lib/commonjs/theme/native-root-vars.web.js +27 -0
- package/lib/commonjs/theme/native-root-vars.web.js.map +1 -0
- package/lib/commonjs/theme/preset-vars.js +71 -2
- package/lib/commonjs/theme/preset-vars.js.map +1 -1
- package/lib/module/react-native-css.d.js +2 -0
- package/lib/module/react-native-css.d.js.map +1 -0
- package/lib/module/theme/BloomThemeProvider.js +40 -8
- package/lib/module/theme/BloomThemeProvider.js.map +1 -1
- package/lib/module/theme/apply-dark-class.js +6 -3
- package/lib/module/theme/apply-dark-class.js.map +1 -1
- package/lib/module/theme/color-presets.js +118 -118
- package/lib/module/theme/color-presets.js.map +1 -1
- package/lib/module/theme/color-scope/index.js +29 -7
- package/lib/module/theme/color-scope/index.js.map +1 -1
- package/lib/module/theme/color-scope/style-builder.js +35 -0
- package/lib/module/theme/color-scope/style-builder.js.map +1 -1
- package/lib/module/theme/native-root-vars.js +106 -0
- package/lib/module/theme/native-root-vars.js.map +1 -0
- package/lib/module/theme/native-root-vars.web.js +23 -0
- package/lib/module/theme/native-root-vars.web.js.map +1 -0
- package/lib/module/theme/preset-vars.js +70 -2
- package/lib/module/theme/preset-vars.js.map +1 -1
- package/lib/typescript/commonjs/icons/common.d.ts +8 -8
- package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/apply-dark-class.d.ts +6 -3
- package/lib/typescript/commonjs/theme/apply-dark-class.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/index.d.ts +9 -2
- package/lib/typescript/commonjs/theme/color-scope/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/style-builder.d.ts +32 -0
- package/lib/typescript/commonjs/theme/color-scope/style-builder.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/native-root-vars.d.ts +94 -0
- package/lib/typescript/commonjs/theme/native-root-vars.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/native-root-vars.web.d.ts +20 -0
- package/lib/typescript/commonjs/theme/native-root-vars.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/preset-vars.d.ts +35 -2
- package/lib/typescript/commonjs/theme/preset-vars.d.ts.map +1 -1
- package/lib/typescript/module/icons/common.d.ts +8 -8
- package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/module/theme/apply-dark-class.d.ts +6 -3
- package/lib/typescript/module/theme/apply-dark-class.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/index.d.ts +9 -2
- package/lib/typescript/module/theme/color-scope/index.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/style-builder.d.ts +32 -0
- package/lib/typescript/module/theme/color-scope/style-builder.d.ts.map +1 -1
- package/lib/typescript/module/theme/native-root-vars.d.ts +94 -0
- package/lib/typescript/module/theme/native-root-vars.d.ts.map +1 -0
- package/lib/typescript/module/theme/native-root-vars.web.d.ts +20 -0
- package/lib/typescript/module/theme/native-root-vars.web.d.ts.map +1 -0
- package/lib/typescript/module/theme/preset-vars.d.ts +35 -2
- package/lib/typescript/module/theme/preset-vars.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/native-root-vars.test.ts +127 -0
- package/src/__tests__/preset-vars.test.ts +45 -4
- package/src/react-native-css.d.ts +70 -0
- package/src/theme/BloomThemeProvider.tsx +32 -6
- package/src/theme/apply-dark-class.ts +6 -3
- package/src/theme/color-presets.ts +118 -118
- package/src/theme/color-scope/index.tsx +30 -8
- package/src/theme/color-scope/style-builder.ts +40 -0
- package/src/theme/native-root-vars.ts +107 -0
- package/src/theme/native-root-vars.web.ts +22 -0
- package/src/theme/preset-vars.ts +88 -4
|
@@ -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
|
-
|
|
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:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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","
|
|
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,YA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AAAlG,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":[]}
|
|
@@ -19,10 +19,13 @@ function applyDarkClass(resolved) {
|
|
|
19
19
|
* No-op on native — only affects web.
|
|
20
20
|
*
|
|
21
21
|
* Writes both the raw HSL triples (e.g. `--primary: 185 100% 20%`) and the
|
|
22
|
-
* resolved `--color-*` vars (`--color-primary:
|
|
22
|
+
* resolved `--color-*` vars (`--color-primary: rgb(0 94 102)`) so both
|
|
23
23
|
* shadcn-style `hsl(var(--primary))` plumbing and Tailwind v4 `@theme`
|
|
24
|
-
* utilities resolve consistently.
|
|
25
|
-
*
|
|
24
|
+
* utilities resolve consistently. The resolved vars are emitted as `rgb(...)`
|
|
25
|
+
* (not `hsl(...)`) so the alpha utilities (`bg-primary/10`) resolve on native —
|
|
26
|
+
* see `getPresetVars` / `hslTripletToRgb`. Includes extended tokens (card,
|
|
27
|
+
* chart-*, content-area, sidebar-*) so consumer apps don't need to synthesize
|
|
28
|
+
* them.
|
|
26
29
|
*/
|
|
27
30
|
function applyColorPresetVars(preset, resolved) {
|
|
28
31
|
if (_reactNative.Platform.OS !== 'web' || typeof document === 'undefined') return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_colorPresets","_presetVars","applyDarkClass","resolved","Platform","OS","document","documentElement","classList","toggle","applyColorPresetVars","preset","APP_COLOR_PRESETS","vars","getPresetVars","includeResolvedColorVars","root","style","key","value","Object","entries","setProperty"],"sourceRoot":"../../../src","sources":["theme/apply-dark-class.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEO,SAASG,cAAcA,CAACC,QAA0B,EAAE;EACzD,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI,OAAOC,QAAQ,KAAK,WAAW,EAAE;IAC5DA,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACC,MAAM,CAAC,MAAM,EAAEN,QAAQ,KAAK,MAAM,CAAC;EACxE;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASO,oBAAoBA,CAACC,MAAoB,EAAER,QAA0B,EAAE;EACrF,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI,OAAOC,QAAQ,KAAK,WAAW,EAAE;EAC9D,IAAI,CAACM,+BAAiB,CAACD,MAAM,CAAC,EAAE;EAEhC,MAAME,IAAI,GAAG,IAAAC,yBAAa,EAACH,MAAM,EAAER,QAAQ,EAAE;IAAEY,wBAAwB,EAAE;EAAK,CAAC,CAAC;EAChF,MAAMC,IAAI,GAAGV,QAAQ,CAACC,eAAe,CAACU,KAAK;EAE3C,KAAK,MAAM,CAACC,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACR,IAAI,CAAC,EAAE;IAC/CG,IAAI,CAACM,WAAW,CAACJ,GAAG,EAAEC,KAAK,CAAC;EAC9B;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_colorPresets","_presetVars","applyDarkClass","resolved","Platform","OS","document","documentElement","classList","toggle","applyColorPresetVars","preset","APP_COLOR_PRESETS","vars","getPresetVars","includeResolvedColorVars","root","style","key","value","Object","entries","setProperty"],"sourceRoot":"../../../src","sources":["theme/apply-dark-class.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEO,SAASG,cAAcA,CAACC,QAA0B,EAAE;EACzD,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI,OAAOC,QAAQ,KAAK,WAAW,EAAE;IAC5DA,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACC,MAAM,CAAC,MAAM,EAAEN,QAAQ,KAAK,MAAM,CAAC;EACxE;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASO,oBAAoBA,CAACC,MAAoB,EAAER,QAA0B,EAAE;EACrF,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI,OAAOC,QAAQ,KAAK,WAAW,EAAE;EAC9D,IAAI,CAACM,+BAAiB,CAACD,MAAM,CAAC,EAAE;EAEhC,MAAME,IAAI,GAAG,IAAAC,yBAAa,EAACH,MAAM,EAAER,QAAQ,EAAE;IAAEY,wBAAwB,EAAE;EAAK,CAAC,CAAC;EAChF,MAAMC,IAAI,GAAGV,QAAQ,CAACC,eAAe,CAACU,KAAK;EAE3C,KAAK,MAAM,CAACC,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACR,IAAI,CAAC,EAAE;IAC/CG,IAAI,CAACM,WAAW,CAACJ,GAAG,EAAEC,KAAK,CAAC;EAC9B;AACF","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': '
|
|
50
|
+
'--background': '185 8% 99%',
|
|
51
51
|
'--foreground': '0 0% 12%',
|
|
52
|
-
'--surface': '185
|
|
52
|
+
'--surface': '185 14% 97%',
|
|
53
53
|
'--surface-foreground': '0 0% 12%',
|
|
54
|
-
'--popover': '
|
|
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
|
|
58
|
+
'--secondary': '185 12% 95%',
|
|
59
59
|
'--secondary-foreground': '0 0% 12%',
|
|
60
|
-
'--muted': '185
|
|
60
|
+
'--muted': '185 12% 95%',
|
|
61
61
|
'--muted-foreground': '185 5% 42%',
|
|
62
|
-
'--accent': '185
|
|
62
|
+
'--accent': '185 12% 95%',
|
|
63
63
|
'--accent-foreground': '0 0% 12%',
|
|
64
64
|
'--destructive': '0 84% 60%',
|
|
65
|
-
'--border': '185
|
|
66
|
-
'--input': '185
|
|
65
|
+
'--border': '185 14% 88%',
|
|
66
|
+
'--input': '185 14% 88%',
|
|
67
67
|
'--ring': '185 100% 20%',
|
|
68
|
-
'--sidebar': '185
|
|
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': '
|
|
96
|
+
'--background': '205 8% 99%',
|
|
97
97
|
'--foreground': '0 0% 12%',
|
|
98
|
-
'--surface': '205
|
|
98
|
+
'--surface': '205 14% 97%',
|
|
99
99
|
'--surface-foreground': '0 0% 12%',
|
|
100
|
-
'--popover': '
|
|
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
|
|
104
|
+
'--secondary': '205 12% 95%',
|
|
105
105
|
'--secondary-foreground': '0 0% 12%',
|
|
106
|
-
'--muted': '205
|
|
106
|
+
'--muted': '205 12% 95%',
|
|
107
107
|
'--muted-foreground': '205 5% 42%',
|
|
108
|
-
'--accent': '205
|
|
108
|
+
'--accent': '205 12% 95%',
|
|
109
109
|
'--accent-foreground': '0 0% 12%',
|
|
110
110
|
'--destructive': '0 84% 60%',
|
|
111
|
-
'--border': '205
|
|
112
|
-
'--input': '205
|
|
111
|
+
'--border': '205 14% 88%',
|
|
112
|
+
'--input': '205 14% 88%',
|
|
113
113
|
'--ring': '205 87% 53%',
|
|
114
|
-
'--sidebar': '205
|
|
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': '
|
|
142
|
+
'--background': '160 8% 99%',
|
|
143
143
|
'--foreground': '0 0% 12%',
|
|
144
|
-
'--surface': '160
|
|
144
|
+
'--surface': '160 14% 97%',
|
|
145
145
|
'--surface-foreground': '0 0% 12%',
|
|
146
|
-
'--popover': '
|
|
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
|
|
150
|
+
'--secondary': '160 12% 95%',
|
|
151
151
|
'--secondary-foreground': '0 0% 12%',
|
|
152
|
-
'--muted': '160
|
|
152
|
+
'--muted': '160 12% 95%',
|
|
153
153
|
'--muted-foreground': '160 5% 42%',
|
|
154
|
-
'--accent': '160
|
|
154
|
+
'--accent': '160 12% 95%',
|
|
155
155
|
'--accent-foreground': '0 0% 12%',
|
|
156
156
|
'--destructive': '0 84% 60%',
|
|
157
|
-
'--border': '160
|
|
158
|
-
'--input': '160
|
|
157
|
+
'--border': '160 14% 88%',
|
|
158
|
+
'--input': '160 14% 88%',
|
|
159
159
|
'--ring': '160 84% 39%',
|
|
160
|
-
'--sidebar': '160
|
|
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': '
|
|
188
|
+
'--background': '38 8% 99%',
|
|
189
189
|
'--foreground': '0 0% 12%',
|
|
190
|
-
'--surface': '38
|
|
190
|
+
'--surface': '38 14% 97%',
|
|
191
191
|
'--surface-foreground': '0 0% 12%',
|
|
192
|
-
'--popover': '
|
|
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
|
|
196
|
+
'--secondary': '38 12% 95%',
|
|
197
197
|
'--secondary-foreground': '0 0% 12%',
|
|
198
|
-
'--muted': '38
|
|
198
|
+
'--muted': '38 12% 95%',
|
|
199
199
|
'--muted-foreground': '38 5% 42%',
|
|
200
|
-
'--accent': '38
|
|
200
|
+
'--accent': '38 12% 95%',
|
|
201
201
|
'--accent-foreground': '0 0% 12%',
|
|
202
202
|
'--destructive': '0 84% 60%',
|
|
203
|
-
'--border': '38
|
|
204
|
-
'--input': '38
|
|
203
|
+
'--border': '38 14% 88%',
|
|
204
|
+
'--input': '38 14% 88%',
|
|
205
205
|
'--ring': '38 92% 50%',
|
|
206
|
-
'--sidebar': '38
|
|
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': '
|
|
234
|
+
'--background': '46 8% 99%',
|
|
235
235
|
'--foreground': '0 0% 12%',
|
|
236
|
-
'--surface': '46
|
|
236
|
+
'--surface': '46 14% 97%',
|
|
237
237
|
'--surface-foreground': '0 0% 12%',
|
|
238
|
-
'--popover': '
|
|
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
|
|
242
|
+
'--secondary': '46 12% 95%',
|
|
243
243
|
'--secondary-foreground': '0 0% 12%',
|
|
244
|
-
'--muted': '46
|
|
244
|
+
'--muted': '46 12% 95%',
|
|
245
245
|
'--muted-foreground': '46 5% 42%',
|
|
246
|
-
'--accent': '46
|
|
246
|
+
'--accent': '46 12% 95%',
|
|
247
247
|
'--accent-foreground': '0 0% 12%',
|
|
248
248
|
'--destructive': '0 84% 60%',
|
|
249
|
-
'--border': '46
|
|
250
|
-
'--input': '46
|
|
249
|
+
'--border': '46 14% 88%',
|
|
250
|
+
'--input': '46 14% 88%',
|
|
251
251
|
'--ring': '46 100% 50%',
|
|
252
|
-
'--sidebar': '46
|
|
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
|
|
280
|
+
'--background': '0 8% 99%',
|
|
281
281
|
'--foreground': '0 0% 12%',
|
|
282
|
-
'--surface': '0
|
|
282
|
+
'--surface': '0 14% 97%',
|
|
283
283
|
'--surface-foreground': '0 0% 12%',
|
|
284
|
-
'--popover': '0
|
|
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
|
|
288
|
+
'--secondary': '0 12% 95%',
|
|
289
289
|
'--secondary-foreground': '0 0% 12%',
|
|
290
|
-
'--muted': '0
|
|
290
|
+
'--muted': '0 12% 95%',
|
|
291
291
|
'--muted-foreground': '0 5% 42%',
|
|
292
|
-
'--accent': '0
|
|
292
|
+
'--accent': '0 12% 95%',
|
|
293
293
|
'--accent-foreground': '0 0% 12%',
|
|
294
294
|
'--destructive': '0 84% 60%',
|
|
295
|
-
'--border': '0
|
|
296
|
-
'--input': '0
|
|
295
|
+
'--border': '0 14% 88%',
|
|
296
|
+
'--input': '0 14% 88%',
|
|
297
297
|
'--ring': '0 84% 60%',
|
|
298
|
-
'--sidebar': '0
|
|
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': '
|
|
326
|
+
'--background': '258 8% 99%',
|
|
327
327
|
'--foreground': '0 0% 12%',
|
|
328
|
-
'--surface': '258
|
|
328
|
+
'--surface': '258 14% 97%',
|
|
329
329
|
'--surface-foreground': '0 0% 12%',
|
|
330
|
-
'--popover': '
|
|
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
|
|
334
|
+
'--secondary': '258 12% 95%',
|
|
335
335
|
'--secondary-foreground': '0 0% 12%',
|
|
336
|
-
'--muted': '258
|
|
336
|
+
'--muted': '258 12% 95%',
|
|
337
337
|
'--muted-foreground': '258 5% 42%',
|
|
338
|
-
'--accent': '258
|
|
338
|
+
'--accent': '258 12% 95%',
|
|
339
339
|
'--accent-foreground': '0 0% 12%',
|
|
340
340
|
'--destructive': '0 84% 60%',
|
|
341
|
-
'--border': '258
|
|
342
|
-
'--input': '258
|
|
341
|
+
'--border': '258 14% 88%',
|
|
342
|
+
'--input': '258 14% 88%',
|
|
343
343
|
'--ring': '258 90% 66%',
|
|
344
|
-
'--sidebar': '258
|
|
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': '
|
|
372
|
+
'--background': '330 8% 99%',
|
|
373
373
|
'--foreground': '0 0% 12%',
|
|
374
|
-
'--surface': '330
|
|
374
|
+
'--surface': '330 14% 97%',
|
|
375
375
|
'--surface-foreground': '0 0% 12%',
|
|
376
|
-
'--popover': '
|
|
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
|
|
380
|
+
'--secondary': '330 12% 95%',
|
|
381
381
|
'--secondary-foreground': '0 0% 12%',
|
|
382
|
-
'--muted': '330
|
|
382
|
+
'--muted': '330 12% 95%',
|
|
383
383
|
'--muted-foreground': '330 5% 42%',
|
|
384
|
-
'--accent': '330
|
|
384
|
+
'--accent': '330 12% 95%',
|
|
385
385
|
'--accent-foreground': '0 0% 12%',
|
|
386
386
|
'--destructive': '0 84% 60%',
|
|
387
|
-
'--border': '330
|
|
388
|
-
'--input': '330
|
|
387
|
+
'--border': '330 14% 88%',
|
|
388
|
+
'--input': '330 14% 88%',
|
|
389
389
|
'--ring': '330 81% 60%',
|
|
390
|
-
'--sidebar': '330
|
|
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': '
|
|
418
|
+
'--background': '199 8% 99%',
|
|
419
419
|
'--foreground': '0 0% 12%',
|
|
420
|
-
'--surface': '199
|
|
420
|
+
'--surface': '199 14% 97%',
|
|
421
421
|
'--surface-foreground': '0 0% 12%',
|
|
422
|
-
'--popover': '
|
|
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
|
|
426
|
+
'--secondary': '199 12% 95%',
|
|
427
427
|
'--secondary-foreground': '0 0% 12%',
|
|
428
|
-
'--muted': '199
|
|
428
|
+
'--muted': '199 12% 95%',
|
|
429
429
|
'--muted-foreground': '199 5% 42%',
|
|
430
|
-
'--accent': '199
|
|
430
|
+
'--accent': '199 12% 95%',
|
|
431
431
|
'--accent-foreground': '0 0% 12%',
|
|
432
432
|
'--destructive': '0 84% 60%',
|
|
433
|
-
'--border': '199
|
|
434
|
-
'--input': '199
|
|
433
|
+
'--border': '199 14% 88%',
|
|
434
|
+
'--input': '199 14% 88%',
|
|
435
435
|
'--ring': '199 89% 48%',
|
|
436
|
-
'--sidebar': '199
|
|
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': '
|
|
464
|
+
'--background': '25 8% 99%',
|
|
465
465
|
'--foreground': '0 0% 12%',
|
|
466
|
-
'--surface': '25
|
|
466
|
+
'--surface': '25 14% 97%',
|
|
467
467
|
'--surface-foreground': '0 0% 12%',
|
|
468
|
-
'--popover': '
|
|
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
|
|
472
|
+
'--secondary': '25 12% 95%',
|
|
473
473
|
'--secondary-foreground': '0 0% 12%',
|
|
474
|
-
'--muted': '25
|
|
474
|
+
'--muted': '25 12% 95%',
|
|
475
475
|
'--muted-foreground': '25 5% 42%',
|
|
476
|
-
'--accent': '25
|
|
476
|
+
'--accent': '25 12% 95%',
|
|
477
477
|
'--accent-foreground': '0 0% 12%',
|
|
478
478
|
'--destructive': '0 84% 60%',
|
|
479
|
-
'--border': '25
|
|
480
|
-
'--input': '25
|
|
479
|
+
'--border': '25 14% 88%',
|
|
480
|
+
'--input': '25 14% 88%',
|
|
481
481
|
'--ring': '25 95% 53%',
|
|
482
|
-
'--sidebar': '25
|
|
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': '
|
|
510
|
+
'--background': '173 8% 99%',
|
|
511
511
|
'--foreground': '0 0% 12%',
|
|
512
|
-
'--surface': '173
|
|
512
|
+
'--surface': '173 14% 97%',
|
|
513
513
|
'--surface-foreground': '0 0% 12%',
|
|
514
|
-
'--popover': '
|
|
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
|
|
518
|
+
'--secondary': '173 12% 95%',
|
|
519
519
|
'--secondary-foreground': '0 0% 12%',
|
|
520
|
-
'--muted': '173
|
|
520
|
+
'--muted': '173 12% 95%',
|
|
521
521
|
'--muted-foreground': '173 5% 42%',
|
|
522
|
-
'--accent': '173
|
|
522
|
+
'--accent': '173 12% 95%',
|
|
523
523
|
'--accent-foreground': '0 0% 12%',
|
|
524
524
|
'--destructive': '0 84% 60%',
|
|
525
|
-
'--border': '173
|
|
526
|
-
'--input': '173
|
|
525
|
+
'--border': '173 14% 88%',
|
|
526
|
+
'--input': '173 14% 88%',
|
|
527
527
|
'--ring': '173 80% 40%',
|
|
528
|
-
'--sidebar': '173
|
|
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': '
|
|
556
|
+
'--background': '277 8% 99%',
|
|
557
557
|
'--foreground': '0 0% 12%',
|
|
558
|
-
'--surface': '277
|
|
558
|
+
'--surface': '277 14% 97%',
|
|
559
559
|
'--surface-foreground': '0 0% 12%',
|
|
560
|
-
'--popover': '
|
|
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
|
|
564
|
+
'--secondary': '277 12% 95%',
|
|
565
565
|
'--secondary-foreground': '0 0% 12%',
|
|
566
|
-
'--muted': '277
|
|
566
|
+
'--muted': '277 12% 95%',
|
|
567
567
|
'--muted-foreground': '277 5% 42%',
|
|
568
|
-
'--accent': '277
|
|
568
|
+
'--accent': '277 12% 95%',
|
|
569
569
|
'--accent-foreground': '0 0% 12%',
|
|
570
570
|
'--destructive': '0 84% 60%',
|
|
571
|
-
'--border': '277
|
|
572
|
-
'--input': '277
|
|
571
|
+
'--border': '277 14% 88%',
|
|
572
|
+
'--input': '277 14% 88%',
|
|
573
573
|
'--ring': '277 66% 56%',
|
|
574
|
-
'--sidebar': '277
|
|
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': '
|
|
602
|
+
'--background': '92 8% 99%',
|
|
603
603
|
'--foreground': '0 0% 12%',
|
|
604
|
-
'--surface': '92
|
|
604
|
+
'--surface': '92 16% 95%',
|
|
605
605
|
'--surface-foreground': '0 0% 12%',
|
|
606
|
-
'--popover': '
|
|
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
|
|
610
|
+
'--secondary': '92 14% 92%',
|
|
611
611
|
'--secondary-foreground': '0 0% 12%',
|
|
612
|
-
'--muted': '92
|
|
613
|
-
'--muted-foreground': '
|
|
614
|
-
'--accent': '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
|
|
618
|
-
'--input': '92
|
|
617
|
+
'--border': '92 12% 85%',
|
|
618
|
+
'--input': '92 12% 85%',
|
|
619
619
|
'--ring': '92 90% 25%',
|
|
620
|
-
'--sidebar': '92
|
|
620
|
+
'--sidebar': '92 16% 95%'
|
|
621
621
|
},
|
|
622
622
|
dark: {
|
|
623
623
|
'--background': '69 54% 8%',
|