Skip to content

Commit be74375

Browse files
committed
refactor(make-it-yours): place neumorphic behind feat flag in prod
1 parent 9bb4471 commit be74375

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export interface AppState {
22
featureFlags?: {
33
showStyled?: boolean;
4+
showNeumorphic?: boolean;
45
};
56
}

apps/website/src/components/make-it-yours/make-it-yours.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { LuSlidersHorizontal, LuX } from '@qwikest/icons/lucide';
66
import { useTheme } from 'qwik-themes';
77
import { baseOptions, borderRadiusOptions, primaryOptions } from '~/_state/make-it-yours';
88
import CopyCssConfig from '../copy-css-config/copy-css-config';
9+
import { useAppState } from '~/_state/use-app-state';
910

1011
export default component$(() => {
1112
useStyles$(`
@@ -71,6 +72,7 @@ export default component$(() => {
7172
`);
7273

7374
const showSig = useSignal(false);
75+
const rootStore = useAppState();
7476

7577
const { theme, setTheme } = useTheme();
7678

@@ -135,7 +137,9 @@ export default component$(() => {
135137
>
136138
<option value={'simple'}>Simple</option>
137139
<option value={'brutalist'}>Brutalist</option>
138-
<option value={'neumorphic'}>Neumorphic</option>
140+
{rootStore.featureFlags?.showNeumorphic && (
141+
<option value={'neumorphic'}>Neumorphic</option>
142+
)}
139143
</select>
140144

141145
<label class="mb-1 mt-8 block font-medium">Base</label>

apps/website/src/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export default component$(() => {
3737

3838
const appState = useStore<AppState>({
3939
featureFlags: {
40-
// showStyled: import.meta.env.DEV,
4140
showStyled: true,
41+
showNeumorphic: import.meta.env.DEV,
4242
},
4343
});
4444

0 commit comments

Comments
 (0)