···5151export { default as ModalModelPicker } from '$lib/components/3d/model-picker/modal/ModalModelPicker.svelte';
5252export { default as PopoverModelPicker } from '$lib/components/3d/model-picker/popover/PopoverModelPicker.svelte';
5353export { default as Depth3D } from '$lib/components/3d/depth3d/Depth3D.svelte';
5454-export { default as VoxelArt } from '$lib/components/3d/voxel-art/VoxelArt.svelte';5454+export { default as VoxelArt } from '$lib/components/3d/voxel-art/VoxelArt.svelte';
+5-1
src/docs/preview/ColorPickerPreview.svelte
···66 import Button from '$lib/components/base/button/Button.svelte';
77 import PopoverColorPicker from '$lib/components/extra/color-picker/popover/PopoverColorPicker.svelte';
88 import { ThemeWatcher } from '$lib/helper/ThemeWatcher.svelte';
99- import { hex_to_rgb, oklch_string_to_oklch, oklch_to_rgb } from '$lib/components/extra/color-picker/base/color';
99+ import {
1010+ hex_to_rgb,
1111+ oklch_string_to_oklch,
1212+ oklch_to_rgb
1313+ } from '$lib/components/extra/color-picker/base/color';
10141115 let rgb = $state({
1216 r: 0,
···26262727 function applyClasses(loadedSvg: CheerioAPI, el: any) {
2828 let fill = loadedSvg(el).attr('fill');
2929- if(!fill) return;
2929+ if (!fill) return;
30303131 if (fill === '#6c63ff') {
3232 loadedSvg(el).removeAttr('fill');
3333 loadedSvg(el).addClass('fill-accent-600 dark:fill-accent-500');
3434- } else if (
3535- fill.startsWith('#') &&
3636- !fill.includes('url') &&
3737- autoInvert
3838- ) {
3434+ } else if (fill.startsWith('#') && !fill.includes('url') && autoInvert) {
3935 loadedSvg(el).addClass('dark:invert dark:hue-rotate-180');
4036 } else if (colorMap[fill]) {
4137 loadedSvg(el).removeAttr('fill');
+8-8
src/routes/(main)/docs/philosophy/Philosophy.md
···26262727## Copying components vs installing packages
28282929-I'm a big fan of the philosophy of copying components (shadcn-style) for better customization,
2929+I'm a big fan of the philosophy of copying components (shadcn-style) for better customization,
3030but also I think the quickest way to build something is to just install the package and use it.
31313232-So the plan is to have both options (currently only installing as a package is available,
3333-but you can copy what you need from the [source code](https://github.com/flo-bit/ui-kit/tree/main/src/lib/components/base)
3232+So the plan is to have both options (currently only installing as a package is available,
3333+but you can copy what you need from the [source code](https://github.com/flo-bit/ui-kit/tree/main/src/lib/components/base)
3434though some imports might need to be adjusted).
35353636## Lots of components
37373838While currently only the base and some other components are visible, there are lots of components in the pipeline.
3939-The aim is to have a component library that has lots of components that are useful for building
3939+The aim is to have a component library that has lots of components that are useful for building
4040webapps/websites/games, all in a consistent style/theme.
41414242See here for a few examples of work in progress components (some may be partially broken):
···63636464## Works without javascript when possible & is accessible
65656666-Whenever possible components should work without javascript.
6767-Also all components should be accessible (to the best of my knowledge).
6666+Whenever possible components should work without javascript.
6767+Also all components should be accessible (to the best of my knowledge).
6868Please let me know [if you find any issues there](https://github.com/flo-bit/ui-kit/issues).
69697070## Dark mode
71717272-This ui kit is designed to be used in both light and dark mode
7272+This ui kit is designed to be used in both light and dark mode
7373(and switch automatically depending on system settings).
7474If you want to disable dark mode, add the following to your app.css:
7575···92929393## Credits
94949595-This ui kit is largely based on [bits-ui](https://bits-ui.com/).9595+This ui kit is largely based on [bits-ui](https://bits-ui.com/).
···11<script lang="ts">
22- import { Accordion, AccordionItem } from '$lib/components/base/accordion';
22+ import AccordionExample from './Example.svelte';
33+44+ import Api from '$docs/site-components/API.svelte';
35</script>
4657# Accordion
6879## Example
81099-<Accordion type="single">
1010- <AccordionItem value="item-1" title="Is it accessible?">
1111- Yes. It adheres to the WAI-ARIA design pattern.
1212- </AccordionItem>
1313- <AccordionItem value="item-2" title="Are you sure?">
1414- I mean, I hope so?
1515- </AccordionItem>
1616-</Accordion>
1111+<AccordionExample />
17121813## Usage
1914···2621 <AccordionItem value="item-1" title="Is it accessible?">
2722 Yes. It adheres to the WAI-ARIA design pattern.
2823 </AccordionItem>
2929- <AccordionItem value="item-2" title="Are you sure?">I mean, I hope so?</AccordionItem>
2424+ <AccordionItem value="item-2" title="Are you sure?">
2525+ I mean, I hope so? It's based on the bits-ui accordion component, so if not it's not my fault 😅
2626+ </AccordionItem>
3027</Accordion>
3128```
···11+<script lang="ts">
22+ import { Accordion, AccordionItem } from '$lib';
33+</script>
44+55+<Accordion type="single">
66+ <AccordionItem value="item-1" title="Is it accessible?">
77+ Yes. It adheres to the WAI-ARIA design pattern.
88+ </AccordionItem>
99+ <AccordionItem value="item-2" title="Are you sure?">
1010+ I mean, I hope so? It's based on the <a
1111+ href="https://bits-ui.com/docs/components/accordion"
1212+ target="_blank">bits-ui accordion component</a
1313+ >, so if not it's not my fault 😅
1414+ </AccordionItem>
1515+</Accordion>
···23232424## Credits
25252626-- Adapted from an example of [number-flow](https://number-flow.barvian.me/)2626+- Adapted from an example of [number-flow](https://number-flow.barvian.me/)
···30303131### Credits
32323333-- Adapted from [svelte-color-select](https://github.com/CaptainCodeman/svelte-color-select).3333+- Adapted from [svelte-color-select](https://github.com/CaptainCodeman/svelte-color-select).
···2525## Credits
26262727- Stopwatch state based on [svelte-reactive-timer](https://github.com/joshnuss/svelte-reactive-timer)
2828-- Moving numbers component from [number-flow](https://number-flow.barvian.me/)2828+- Moving numbers component from [number-flow](https://number-flow.barvian.me/)
···2525## Credits
26262727- Timer state based on [svelte-reactive-timer](https://github.com/joshnuss/svelte-reactive-timer)
2828-- Moving numbers component from [number-flow](https://number-flow.barvian.me/)2828+- Moving numbers component from [number-flow](https://number-flow.barvian.me/)
···1717 </span>
1818</Alert>
19192020-21201. Download a svg illustration from [undraw](https://undraw.co/illustrations) leaving the theme color as it is (#6c63ff).
22212. Import that svg with the `?raw` extension and use it with the undraw component. The theme color will automatically change to your theme color, all other colors will have to be manually changed using the `colorMap` prop (or if not using dark mode, leave as is).
23222423```svelte
2524<script lang="ts">
2626- import { Undraw } from 'fuchs';
2525+ import { Undraw } from 'fuchs';
27262827 import svg from './your-illustration.svg?raw';
2928</script>
···3938 '#f2f2f2': 'fill-base-200 dark:fill-base-800'
4039 }}
4140/>
4242-```4141+```