@oxyhq/bloom 0.7.2 → 0.7.4
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/portal/index.js +18 -1
- package/lib/commonjs/portal/index.js.map +1 -1
- package/lib/commonjs/theme/BloomThemeProvider.js +21 -1
- package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
- package/lib/commonjs/theme/color-presets.js +117 -117
- package/lib/commonjs/theme/color-presets.js.map +1 -1
- package/lib/commonjs/theme/preset-vars.js +2 -2
- package/lib/module/portal/index.js +18 -1
- package/lib/module/portal/index.js.map +1 -1
- package/lib/module/theme/BloomThemeProvider.js +21 -1
- package/lib/module/theme/BloomThemeProvider.js.map +1 -1
- package/lib/module/theme/color-presets.js +117 -117
- package/lib/module/theme/color-presets.js.map +1 -1
- package/lib/module/theme/preset-vars.js +2 -2
- package/lib/typescript/commonjs/portal/index.d.ts +10 -0
- package/lib/typescript/commonjs/portal/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts +23 -0
- package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/module/portal/index.d.ts +10 -0
- package/lib/typescript/module/portal/index.d.ts.map +1 -1
- package/lib/typescript/module/theme/BloomThemeProvider.d.ts +23 -0
- package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/portal/index.tsx +26 -1
- package/src/theme/BloomThemeProvider.tsx +30 -1
- package/src/theme/color-presets.ts +117 -117
- package/src/theme/preset-vars.ts +2 -2
|
@@ -72,7 +72,24 @@ function createPortalGroup() {
|
|
|
72
72
|
Portal
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
/**
|
|
76
|
+
* `DefaultPortal` is a `globalThis`-guarded singleton so that every physical copy of
|
|
77
|
+
* this module shares ONE portal group (one `Context`, one `Provider`/`Outlet`/`Portal`
|
|
78
|
+
* triple).
|
|
79
|
+
*
|
|
80
|
+
* Why this is required: like the theme module, `exports["./portal"]` ships a
|
|
81
|
+
* `react-native` → `./src/...` condition alongside the `lib/module` / `lib/commonjs`
|
|
82
|
+
* forks, and the `Portal` component is consumed cross-subpath from `./tooltip`,
|
|
83
|
+
* `./prompt-input`, `./dialog`, `./select`, `./menu`, `./context-menu`, and `./popover`
|
|
84
|
+
* while the `Provider`/`Outlet` are mounted once at the app root via `@oxyhq/bloom/portal`.
|
|
85
|
+
* A bundler can resolve those subpaths through different export conditions, so without a
|
|
86
|
+
* guard each physical copy runs its own `createPortalGroup()` and a `<Portal>` from copy
|
|
87
|
+
* A would register against the `Provider`'s map in copy B — its content would never reach
|
|
88
|
+
* the `Outlet`. Anchoring the group on `globalThis` (keyed by `__oxyhq_bloom_portal_group__`)
|
|
89
|
+
* collapses all copies onto one group. Same src-vs-lib dual-instance class as
|
|
90
|
+
* `BloomThemeContext`.
|
|
91
|
+
*/
|
|
92
|
+
const DefaultPortal = globalThis.__oxyhq_bloom_portal_group__ ??= createPortalGroup();
|
|
76
93
|
const Provider = exports.Provider = DefaultPortal.Provider;
|
|
77
94
|
const Outlet = exports.Outlet = /*#__PURE__*/(0, _react.memo)(DefaultPortal.Outlet);
|
|
78
95
|
const Portal = exports.Portal = DefaultPortal.Portal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createPortalGroup","Context","createContext","outlet","append","remove","displayName","Provider","props","map","useRef","setOutlet","useState","useCallback","id","component","current","jsx","Fragment","children","values","contextValue","useMemo","value","Outlet","ctx","useContext","Platform","OS","View","style","styles","portalOutlet","Portal","useId","useEffect","DefaultPortal","exports","memo","StyleSheet","create","position","top","left","right","bottom","pointerEvents","zIndex"],"sourceRoot":"../../../src","sources":["portal/index.tsx"],"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CAACM,QAAQ;MAACgB,KAAK,EAAEF,YAAa;MAAAF,QAAA,EACnCX,KAAK,CAACW;IAAQ,CACC,CAAC;EAEvB;EAEA,SAASK,MAAMA,CAAA,EAAG;IAChB,MAAMC,GAAG,GAAG,IAAAC,iBAAU,EAACzB,OAAO,CAAC;IAC/B,IAAI0B,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;MACzB,oBAAO,IAAAhD,WAAA,CAAAqC,GAAA,EAACtC,YAAA,CAAAkD,IAAI;QAACC,KAAK,EAAEC,MAAM,CAACC,YAAa;QAAAb,QAAA,EAAEM,GAAG,CAACtB;MAAM,CAAO,CAAC;IAC9D;IACA,OAAOsB,GAAG,CAACtB,MAAM;EACnB;EAEA,SAAS8B,MAAMA,CAAC;IAAEd;EAA0C,CAAC,EAAE;IAC7D,MAAM;MAAEf,MAAM;MAAEC;IAAO,CAAC,GAAG,IAAAqB,iBAAU,EAACzB,OAAO,CAAC;IAC9C,MAAMa,EAAE,GAAG,IAAAoB,YAAK,EAAC,CAAC;IAElB,IAAAC,gBAAS,EAAC,MAAM;MACd/B,MAAM,CAACU,EAAE,EAAEK,QAAqB,CAAC;MACjC,OAAO,MAAMd,MAAM,CAACS,EAAE,CAAC;IACzB,CAAC,EAAE,CAACA,EAAE,EAAEK,QAAQ,EAAEf,MAAM,EAAEC,MAAM,CAAC,CAAC;IAElC,OAAO,IAAI;EACb;EAEA,OAAO;IAAEE,QAAQ;IAAEiB,MAAM;IAAES;EAAO,CAAC;AACrC;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createPortalGroup","Context","createContext","outlet","append","remove","displayName","Provider","props","map","useRef","setOutlet","useState","useCallback","id","component","current","jsx","Fragment","children","values","contextValue","useMemo","value","Outlet","ctx","useContext","Platform","OS","View","style","styles","portalOutlet","Portal","useId","useEffect","DefaultPortal","globalThis","__oxyhq_bloom_portal_group__","exports","memo","StyleSheet","create","position","top","left","right","bottom","pointerEvents","zIndex"],"sourceRoot":"../../../src","sources":["portal/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAYA,IAAAC,YAAA,GAAAD,OAAA;AAA0D,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,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,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAc1D,SAASkB,iBAAiBA,CAAA,E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AQ,GAAAgC,OAAA,CAAAhC,QAAA,GAAG6B,aAAa,CAAC7B,QAAQ;AACvC,MAAMiB,MAAM,GAAAe,OAAA,CAAAf,MAAA,gBAAG,IAAAgB,WAAI,EAACJ,aAAa,CAACZ,MAAM,CAAC;AACzC,MAAMS,MAAM,GAAAM,OAAA,CAAAN,MAAA,GAAGG,aAAa,CAACH,MAAM;AAE1C,MAAMF,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC/BV,YAAY,EAAE;IACZW,QAAQ,EAAE,OAAqB;IAC/BC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,aAAa,EAAE,UAAU;IACzBC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -26,7 +26,27 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
26
26
|
|
|
27
27
|
const DEFAULT_PRESET = 'oxy';
|
|
28
28
|
const DEFAULT_MODE = 'system';
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* `BloomThemeContext` is a `globalThis`-guarded singleton so that every physical
|
|
31
|
+
* copy of this module returns the SAME React context object.
|
|
32
|
+
*
|
|
33
|
+
* Why this is required: `package.json`'s `exports["./theme"]` ships a
|
|
34
|
+
* `react-native` → `./src/...` condition alongside the `import` → `./lib/module/...`
|
|
35
|
+
* and `require` → `./lib/commonjs/...` forks, so up to three physical copies of the
|
|
36
|
+
* theme module can coexist in a single bundle. A bundler can resolve them through
|
|
37
|
+
* DIFFERENT conditions across import paths — e.g. an app importing `@oxyhq/bloom/theme`
|
|
38
|
+
* lands on the `src` copy while `@oxyhq/bloom/toast`'s `Toast.tsx` imports
|
|
39
|
+
* `../theme/use-theme` relatively and lands on a different physical copy. With a plain
|
|
40
|
+
* module-level `createContext(...)`, each copy creates its OWN context object: the
|
|
41
|
+
* mounted `<BloomThemeProvider>` writes into context A while `useTheme`/`useBloomTheme`/
|
|
42
|
+
* `Toast`/`Dialog` read context B, so `useContext` returns `null` and they throw
|
|
43
|
+
* "must be used within a <BloomThemeProvider>" even when correctly wrapped. This is the
|
|
44
|
+
* same src-vs-lib dual-instance class react-native-css guards its `StyleCollection`/
|
|
45
|
+
* root-variable families against. Anchoring the context on `globalThis` (keyed by the
|
|
46
|
+
* `__oxyhq_bloom_theme_context__` property) collapses all copies onto one object. The
|
|
47
|
+
* `??=` runs `createContext` at most once per process.
|
|
48
|
+
*/
|
|
49
|
+
const BloomThemeContext = exports.BloomThemeContext = globalThis.__oxyhq_bloom_theme_context__ ??= /*#__PURE__*/(0, _react.createContext)(null);
|
|
30
50
|
function useThemeState({
|
|
31
51
|
controlledMode,
|
|
32
52
|
controlledPreset,
|
|
@@ -1 +1 @@
|
|
|
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,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAxC3E;AACA;AACA;AACA;;AAwCA,MAAMkB,cAA4B,GAAG,KAAK;AAC1C,MAAMC,YAAuB,GAAG,QAAQ;
|
|
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","globalThis","__oxyhq_bloom_theme_context__","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,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,I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A,CAAAqG,GAAA,EAAC/E,iBAAiB,CAACmF,QAAQ;MAACvD,KAAK,EAAEqC,YAAa;MAAAX,QAAA,EAAEwB;IAAO,CAA6B,CAAC;EAChG;;EAEA;EACA;EACA;EACA,MAAMM,UAAU,gBAAG,IAAA1G,WAAA,CAAAqG,GAAA,EAAC/G,YAAA,CAAAqH,IAAI;IAACC,KAAK,EAAE,CAAC;MAAEC,IAAI,EAAE;IAAE,CAAC,EAAElC,kBAAkB,CAAE;IAAAC,QAAA,EAAEwB;EAAO,CAAO,CAAC;EAEnF,oBACE,IAAApG,WAAA,CAAAqG,GAAA,EAAC/E,iBAAiB,CAACmF,QAAQ;IAACvD,KAAK,EAAEqC,YAAa;IAAAX,QAAA,EAC7CsB,gBAAgB,IAAIJ,UAAU,gBAC7B,IAAA9F,WAAA,CAAAqG,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': '185
|
|
50
|
+
'--background': '185 55% 96%',
|
|
51
51
|
'--foreground': '0 0% 12%',
|
|
52
|
-
'--surface': '185
|
|
52
|
+
'--surface': '185 58% 94%',
|
|
53
53
|
'--surface-foreground': '0 0% 12%',
|
|
54
|
-
'--popover': '185
|
|
54
|
+
'--popover': '185 55% 97%',
|
|
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 55% 92%',
|
|
59
59
|
'--secondary-foreground': '0 0% 12%',
|
|
60
|
-
'--muted': '185
|
|
60
|
+
'--muted': '185 55% 92%',
|
|
61
61
|
'--muted-foreground': '185 5% 42%',
|
|
62
|
-
'--accent': '185
|
|
62
|
+
'--accent': '185 55% 92%',
|
|
63
63
|
'--accent-foreground': '0 0% 12%',
|
|
64
64
|
'--destructive': '0 84% 60%',
|
|
65
|
-
'--border': '185
|
|
66
|
-
'--input': '185
|
|
65
|
+
'--border': '185 40% 87%',
|
|
66
|
+
'--input': '185 40% 87%',
|
|
67
67
|
'--ring': '185 100% 20%',
|
|
68
|
-
'--sidebar': '185
|
|
68
|
+
'--sidebar': '185 58% 94%'
|
|
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': '205
|
|
96
|
+
'--background': '205 55% 96%',
|
|
97
97
|
'--foreground': '0 0% 12%',
|
|
98
|
-
'--surface': '205
|
|
98
|
+
'--surface': '205 58% 94%',
|
|
99
99
|
'--surface-foreground': '0 0% 12%',
|
|
100
|
-
'--popover': '205
|
|
100
|
+
'--popover': '205 55% 97%',
|
|
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 55% 92%',
|
|
105
105
|
'--secondary-foreground': '0 0% 12%',
|
|
106
|
-
'--muted': '205
|
|
106
|
+
'--muted': '205 55% 92%',
|
|
107
107
|
'--muted-foreground': '205 5% 42%',
|
|
108
|
-
'--accent': '205
|
|
108
|
+
'--accent': '205 55% 92%',
|
|
109
109
|
'--accent-foreground': '0 0% 12%',
|
|
110
110
|
'--destructive': '0 84% 60%',
|
|
111
|
-
'--border': '205
|
|
112
|
-
'--input': '205
|
|
111
|
+
'--border': '205 40% 87%',
|
|
112
|
+
'--input': '205 40% 87%',
|
|
113
113
|
'--ring': '205 87% 53%',
|
|
114
|
-
'--sidebar': '205
|
|
114
|
+
'--sidebar': '205 58% 94%'
|
|
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': '160
|
|
142
|
+
'--background': '160 55% 96%',
|
|
143
143
|
'--foreground': '0 0% 12%',
|
|
144
|
-
'--surface': '160
|
|
144
|
+
'--surface': '160 58% 94%',
|
|
145
145
|
'--surface-foreground': '0 0% 12%',
|
|
146
|
-
'--popover': '160
|
|
146
|
+
'--popover': '160 55% 97%',
|
|
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 55% 92%',
|
|
151
151
|
'--secondary-foreground': '0 0% 12%',
|
|
152
|
-
'--muted': '160
|
|
152
|
+
'--muted': '160 55% 92%',
|
|
153
153
|
'--muted-foreground': '160 5% 42%',
|
|
154
|
-
'--accent': '160
|
|
154
|
+
'--accent': '160 55% 92%',
|
|
155
155
|
'--accent-foreground': '0 0% 12%',
|
|
156
156
|
'--destructive': '0 84% 60%',
|
|
157
|
-
'--border': '160
|
|
158
|
-
'--input': '160
|
|
157
|
+
'--border': '160 40% 87%',
|
|
158
|
+
'--input': '160 40% 87%',
|
|
159
159
|
'--ring': '160 84% 39%',
|
|
160
|
-
'--sidebar': '160
|
|
160
|
+
'--sidebar': '160 58% 94%'
|
|
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': '38
|
|
188
|
+
'--background': '38 55% 96%',
|
|
189
189
|
'--foreground': '0 0% 12%',
|
|
190
|
-
'--surface': '38
|
|
190
|
+
'--surface': '38 58% 94%',
|
|
191
191
|
'--surface-foreground': '0 0% 12%',
|
|
192
|
-
'--popover': '38
|
|
192
|
+
'--popover': '38 55% 97%',
|
|
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 55% 92%',
|
|
197
197
|
'--secondary-foreground': '0 0% 12%',
|
|
198
|
-
'--muted': '38
|
|
198
|
+
'--muted': '38 55% 92%',
|
|
199
199
|
'--muted-foreground': '38 5% 42%',
|
|
200
|
-
'--accent': '38
|
|
200
|
+
'--accent': '38 55% 92%',
|
|
201
201
|
'--accent-foreground': '0 0% 12%',
|
|
202
202
|
'--destructive': '0 84% 60%',
|
|
203
|
-
'--border': '38
|
|
204
|
-
'--input': '38
|
|
203
|
+
'--border': '38 40% 87%',
|
|
204
|
+
'--input': '38 40% 87%',
|
|
205
205
|
'--ring': '38 92% 50%',
|
|
206
|
-
'--sidebar': '38
|
|
206
|
+
'--sidebar': '38 58% 94%'
|
|
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': '46
|
|
234
|
+
'--background': '46 55% 96%',
|
|
235
235
|
'--foreground': '0 0% 12%',
|
|
236
|
-
'--surface': '46
|
|
236
|
+
'--surface': '46 58% 94%',
|
|
237
237
|
'--surface-foreground': '0 0% 12%',
|
|
238
|
-
'--popover': '46
|
|
238
|
+
'--popover': '46 55% 97%',
|
|
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 55% 92%',
|
|
243
243
|
'--secondary-foreground': '0 0% 12%',
|
|
244
|
-
'--muted': '46
|
|
244
|
+
'--muted': '46 55% 92%',
|
|
245
245
|
'--muted-foreground': '46 5% 42%',
|
|
246
|
-
'--accent': '46
|
|
246
|
+
'--accent': '46 55% 92%',
|
|
247
247
|
'--accent-foreground': '0 0% 12%',
|
|
248
248
|
'--destructive': '0 84% 60%',
|
|
249
|
-
'--border': '46
|
|
250
|
-
'--input': '46
|
|
249
|
+
'--border': '46 40% 87%',
|
|
250
|
+
'--input': '46 40% 87%',
|
|
251
251
|
'--ring': '46 100% 50%',
|
|
252
|
-
'--sidebar': '46
|
|
252
|
+
'--sidebar': '46 58% 94%'
|
|
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 55% 96%',
|
|
281
281
|
'--foreground': '0 0% 12%',
|
|
282
|
-
'--surface': '0
|
|
282
|
+
'--surface': '0 58% 94%',
|
|
283
283
|
'--surface-foreground': '0 0% 12%',
|
|
284
|
-
'--popover': '0
|
|
284
|
+
'--popover': '0 55% 97%',
|
|
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 55% 92%',
|
|
289
289
|
'--secondary-foreground': '0 0% 12%',
|
|
290
|
-
'--muted': '0
|
|
290
|
+
'--muted': '0 55% 92%',
|
|
291
291
|
'--muted-foreground': '0 5% 42%',
|
|
292
|
-
'--accent': '0
|
|
292
|
+
'--accent': '0 55% 92%',
|
|
293
293
|
'--accent-foreground': '0 0% 12%',
|
|
294
294
|
'--destructive': '0 84% 60%',
|
|
295
|
-
'--border': '0
|
|
296
|
-
'--input': '0
|
|
295
|
+
'--border': '0 40% 87%',
|
|
296
|
+
'--input': '0 40% 87%',
|
|
297
297
|
'--ring': '0 84% 60%',
|
|
298
|
-
'--sidebar': '0
|
|
298
|
+
'--sidebar': '0 58% 94%'
|
|
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': '258
|
|
326
|
+
'--background': '258 55% 96%',
|
|
327
327
|
'--foreground': '0 0% 12%',
|
|
328
|
-
'--surface': '258
|
|
328
|
+
'--surface': '258 58% 94%',
|
|
329
329
|
'--surface-foreground': '0 0% 12%',
|
|
330
|
-
'--popover': '258
|
|
330
|
+
'--popover': '258 55% 97%',
|
|
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 55% 92%',
|
|
335
335
|
'--secondary-foreground': '0 0% 12%',
|
|
336
|
-
'--muted': '258
|
|
336
|
+
'--muted': '258 55% 92%',
|
|
337
337
|
'--muted-foreground': '258 5% 42%',
|
|
338
|
-
'--accent': '258
|
|
338
|
+
'--accent': '258 55% 92%',
|
|
339
339
|
'--accent-foreground': '0 0% 12%',
|
|
340
340
|
'--destructive': '0 84% 60%',
|
|
341
|
-
'--border': '258
|
|
342
|
-
'--input': '258
|
|
341
|
+
'--border': '258 40% 87%',
|
|
342
|
+
'--input': '258 40% 87%',
|
|
343
343
|
'--ring': '258 90% 66%',
|
|
344
|
-
'--sidebar': '258
|
|
344
|
+
'--sidebar': '258 58% 94%'
|
|
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': '330
|
|
372
|
+
'--background': '330 55% 96%',
|
|
373
373
|
'--foreground': '0 0% 12%',
|
|
374
|
-
'--surface': '330
|
|
374
|
+
'--surface': '330 58% 94%',
|
|
375
375
|
'--surface-foreground': '0 0% 12%',
|
|
376
|
-
'--popover': '330
|
|
376
|
+
'--popover': '330 55% 97%',
|
|
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 55% 92%',
|
|
381
381
|
'--secondary-foreground': '0 0% 12%',
|
|
382
|
-
'--muted': '330
|
|
382
|
+
'--muted': '330 55% 92%',
|
|
383
383
|
'--muted-foreground': '330 5% 42%',
|
|
384
|
-
'--accent': '330
|
|
384
|
+
'--accent': '330 55% 92%',
|
|
385
385
|
'--accent-foreground': '0 0% 12%',
|
|
386
386
|
'--destructive': '0 84% 60%',
|
|
387
|
-
'--border': '330
|
|
388
|
-
'--input': '330
|
|
387
|
+
'--border': '330 40% 87%',
|
|
388
|
+
'--input': '330 40% 87%',
|
|
389
389
|
'--ring': '330 81% 60%',
|
|
390
|
-
'--sidebar': '330
|
|
390
|
+
'--sidebar': '330 58% 94%'
|
|
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': '199
|
|
418
|
+
'--background': '199 55% 96%',
|
|
419
419
|
'--foreground': '0 0% 12%',
|
|
420
|
-
'--surface': '199
|
|
420
|
+
'--surface': '199 58% 94%',
|
|
421
421
|
'--surface-foreground': '0 0% 12%',
|
|
422
|
-
'--popover': '199
|
|
422
|
+
'--popover': '199 55% 97%',
|
|
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 55% 92%',
|
|
427
427
|
'--secondary-foreground': '0 0% 12%',
|
|
428
|
-
'--muted': '199
|
|
428
|
+
'--muted': '199 55% 92%',
|
|
429
429
|
'--muted-foreground': '199 5% 42%',
|
|
430
|
-
'--accent': '199
|
|
430
|
+
'--accent': '199 55% 92%',
|
|
431
431
|
'--accent-foreground': '0 0% 12%',
|
|
432
432
|
'--destructive': '0 84% 60%',
|
|
433
|
-
'--border': '199
|
|
434
|
-
'--input': '199
|
|
433
|
+
'--border': '199 40% 87%',
|
|
434
|
+
'--input': '199 40% 87%',
|
|
435
435
|
'--ring': '199 89% 48%',
|
|
436
|
-
'--sidebar': '199
|
|
436
|
+
'--sidebar': '199 58% 94%'
|
|
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': '25
|
|
464
|
+
'--background': '25 55% 96%',
|
|
465
465
|
'--foreground': '0 0% 12%',
|
|
466
|
-
'--surface': '25
|
|
466
|
+
'--surface': '25 58% 94%',
|
|
467
467
|
'--surface-foreground': '0 0% 12%',
|
|
468
|
-
'--popover': '25
|
|
468
|
+
'--popover': '25 55% 97%',
|
|
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 55% 92%',
|
|
473
473
|
'--secondary-foreground': '0 0% 12%',
|
|
474
|
-
'--muted': '25
|
|
474
|
+
'--muted': '25 55% 92%',
|
|
475
475
|
'--muted-foreground': '25 5% 42%',
|
|
476
|
-
'--accent': '25
|
|
476
|
+
'--accent': '25 55% 92%',
|
|
477
477
|
'--accent-foreground': '0 0% 12%',
|
|
478
478
|
'--destructive': '0 84% 60%',
|
|
479
|
-
'--border': '25
|
|
480
|
-
'--input': '25
|
|
479
|
+
'--border': '25 40% 87%',
|
|
480
|
+
'--input': '25 40% 87%',
|
|
481
481
|
'--ring': '25 95% 53%',
|
|
482
|
-
'--sidebar': '25
|
|
482
|
+
'--sidebar': '25 58% 94%'
|
|
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': '173
|
|
510
|
+
'--background': '173 55% 96%',
|
|
511
511
|
'--foreground': '0 0% 12%',
|
|
512
|
-
'--surface': '173
|
|
512
|
+
'--surface': '173 58% 94%',
|
|
513
513
|
'--surface-foreground': '0 0% 12%',
|
|
514
|
-
'--popover': '173
|
|
514
|
+
'--popover': '173 55% 97%',
|
|
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 55% 92%',
|
|
519
519
|
'--secondary-foreground': '0 0% 12%',
|
|
520
|
-
'--muted': '173
|
|
520
|
+
'--muted': '173 55% 92%',
|
|
521
521
|
'--muted-foreground': '173 5% 42%',
|
|
522
|
-
'--accent': '173
|
|
522
|
+
'--accent': '173 55% 92%',
|
|
523
523
|
'--accent-foreground': '0 0% 12%',
|
|
524
524
|
'--destructive': '0 84% 60%',
|
|
525
|
-
'--border': '173
|
|
526
|
-
'--input': '173
|
|
525
|
+
'--border': '173 40% 87%',
|
|
526
|
+
'--input': '173 40% 87%',
|
|
527
527
|
'--ring': '173 80% 40%',
|
|
528
|
-
'--sidebar': '173
|
|
528
|
+
'--sidebar': '173 58% 94%'
|
|
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': '277
|
|
556
|
+
'--background': '277 55% 96%',
|
|
557
557
|
'--foreground': '0 0% 12%',
|
|
558
|
-
'--surface': '277
|
|
558
|
+
'--surface': '277 58% 94%',
|
|
559
559
|
'--surface-foreground': '0 0% 12%',
|
|
560
|
-
'--popover': '277
|
|
560
|
+
'--popover': '277 55% 97%',
|
|
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 55% 92%',
|
|
565
565
|
'--secondary-foreground': '0 0% 12%',
|
|
566
|
-
'--muted': '277
|
|
566
|
+
'--muted': '277 55% 92%',
|
|
567
567
|
'--muted-foreground': '277 5% 42%',
|
|
568
|
-
'--accent': '277
|
|
568
|
+
'--accent': '277 55% 92%',
|
|
569
569
|
'--accent-foreground': '0 0% 12%',
|
|
570
570
|
'--destructive': '0 84% 60%',
|
|
571
|
-
'--border': '277
|
|
572
|
-
'--input': '277
|
|
571
|
+
'--border': '277 40% 87%',
|
|
572
|
+
'--input': '277 40% 87%',
|
|
573
573
|
'--ring': '277 66% 56%',
|
|
574
|
-
'--sidebar': '277
|
|
574
|
+
'--sidebar': '277 58% 94%'
|
|
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': '92
|
|
602
|
+
'--background': '92 55% 96%',
|
|
603
603
|
'--foreground': '0 0% 12%',
|
|
604
|
-
'--surface': '92
|
|
604
|
+
'--surface': '92 58% 94%',
|
|
605
605
|
'--surface-foreground': '0 0% 12%',
|
|
606
|
-
'--popover': '92
|
|
606
|
+
'--popover': '92 55% 97%',
|
|
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 55% 92%',
|
|
611
611
|
'--secondary-foreground': '0 0% 12%',
|
|
612
|
-
'--muted': '92
|
|
612
|
+
'--muted': '92 55% 92%',
|
|
613
613
|
'--muted-foreground': '92 5% 40%',
|
|
614
|
-
'--accent': '92
|
|
614
|
+
'--accent': '92 55% 92%',
|
|
615
615
|
'--accent-foreground': '0 0% 12%',
|
|
616
616
|
'--destructive': '0 84% 60%',
|
|
617
|
-
'--border': '92
|
|
618
|
-
'--input': '92
|
|
617
|
+
'--border': '92 40% 87%',
|
|
618
|
+
'--input': '92 40% 87%',
|
|
619
619
|
'--ring': '92 90% 25%',
|
|
620
|
-
'--sidebar': '92
|
|
620
|
+
'--sidebar': '92 58% 94%'
|
|
621
621
|
},
|
|
622
622
|
dark: {
|
|
623
623
|
'--background': '69 54% 8%',
|