Skip to content

Commit aed00b1

Browse files
committed
Remove custom theming page (for now)
1 parent a9a5e6d commit aed00b1

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

packages/svelte-ux/src/routes/_NavMenu.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
<NavItem text="Getting Started" icon={mdiHome} currentUrl={$page.url} path="/" />
7878
<NavItem text="Customization" icon={mdiCog} currentUrl={$page.url} path="/customization" />
79-
<NavItem text="Theme" icon={mdiPalette} currentUrl={$page.url} path="/theme" />
79+
<!-- <NavItem text="Theme" icon={mdiPalette} currentUrl={$page.url} path="/theme" /> -->
8080
<NavItem text="Changelog" icon={mdiFormatListBulleted} currentUrl={$page.url} path="/changelog" />
8181

8282
<h1>Components</h1>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { themes as daisyThemes } from '@layerstack/tailwind/daisy';
2-
import { themes as skeletonThemes } from '@layerstack/tailwind/skeleton';
1+
// import { themes as daisyThemes } from '@layerstack/tailwind/daisy';
2+
// import { themes as skeletonThemes } from '@layerstack/tailwind/skeleton';
33

4-
export async function load() {
5-
return {
6-
themes: {
7-
daisy: daisyThemes,
8-
skeleton: skeletonThemes,
9-
},
10-
};
11-
}
4+
// export async function load() {
5+
// return {
6+
// themes: {
7+
// daisy: daisyThemes,
8+
// skeleton: skeletonThemes,
9+
// },
10+
// };
11+
// }

packages/svelte-ux/src/routes/theme/+page.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="ts">
1+
<!-- <script lang="ts">
22
import { mdiChevronDown, mdiWeatherNight, mdiWhiteBalanceSunny } from '@mdi/js';
33
44
import {
@@ -539,4 +539,4 @@
539539
.shade span {
540540
@apply bg-black/10 rounded px-2 text-white;
541541
}
542-
</style>
542+
</style> -->

packages/svelte-ux/src/routes/theme/colors.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { colorVariableValue, type SupportedColorSpace } from '@layerstack/tailwind';
1+
import { convertColor, type SupportedColorSpace } from '@layerstack/tailwind';
22
import { formatHex } from 'culori';
33

44
export function formatColor(value: string, colorSpace: SupportedColorSpace | 'hex') {
@@ -7,9 +7,9 @@ export function formatColor(value: string, colorSpace: SupportedColorSpace | 'he
77
// Only format if not already formatted. Fixes `#123` becoming `#112233`
88
return value.startsWith('#') ? value : formatHex(value);
99
} else {
10-
const colorValue = colorVariableValue(value, colorSpace);
11-
if (colorValue) {
12-
return `${colorSpace}(${colorValue})`;
10+
const color = convertColor(value, colorSpace);
11+
if (color) {
12+
return color;
1313
} else {
1414
// Return original if unable to convert (i.e invalid such as `rgb( 20 30)`)
1515
return value;

0 commit comments

Comments
 (0)