0.7.19 • Published 6 days ago

mayu-ui v0.7.19

Weekly downloads
-
License
Unlicense
Repository
github
Last release
6 days ago

Mayu UI

An extensively themable component library for Svelte.

!WARNING This project is very early stages and not production ready. Breaking changes may appear with any release.

We want to deliver a great component library that can be simply styled by an extensive theming system. Creating your own theme will be very simple with the provided Themebuilder.

It will be built on top of Melt-UI, the great headless-ui library for Svelte.

How to use it

1. Modify your uno.config.ts

export default defineConfig({
  presets: [presetWind(), presetIcons()],
  transformers: [transformerDirectives(), transformerVariantGroup()],
  content: {
    pipeline: {
      include: [
        // ...
        // add this line
        'node_modules/mayu-ui/dist/**/*.{svelte,js}',
      ],
    },
    // if you use unocss classes in your app.html
    filesystem: ['src/app.html'],
  },
});

2. Create a theme.css file

├── src
│   ├── app.d.ts
│   ├── app.html
│   └── theme.css <--- this

Fill it with your theme from the Themebuilder.

3. Import the needed css files

<!-- src/routes/+layout.svelte -->
<script>
  import '@unocss/reset/tailwind.css';
  import '../theme.css';
  import 'virtual:uno.css';
</script>

4. Use the components

<script>
  import { buttonVariants, Input } from 'mayu-ui';
</script>

<Input type="text" />
<button class={buttonVariants()}>Click me</button>

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

Please see the LICENSE-File for the full license text.

For more information, please refer to http://unlicense.org/

0.7.19

6 days ago

0.7.18

15 days ago

0.7.13

20 days ago

0.7.15

19 days ago

0.7.14

20 days ago

0.7.17

18 days ago

0.7.16

19 days ago

0.7.12

21 days ago

0.7.11

1 month ago

0.7.10

1 month ago

0.7.9

1 month ago

0.7.8

1 month ago

0.7.7

1 month ago

0.7.6

1 month ago

0.7.5

1 month ago

0.7.4

2 months ago

0.7.3

2 months ago

0.7.2

3 months ago

0.7.1

3 months ago

0.6.5

3 months ago

0.7.0

3 months ago

0.6.3

3 months ago

0.6.2

3 months ago

0.6.4

3 months ago

0.6.1

3 months ago

0.6.0

3 months ago

0.5.8

4 months ago

0.5.7

4 months ago

0.5.6

4 months ago

0.5.4

4 months ago

0.5.3

4 months ago

0.5.5

4 months ago

0.5.2

4 months ago

0.5.1

4 months ago

0.4.4

4 months ago

0.5.0

4 months ago

0.4.1

4 months ago

0.4.0

4 months ago

0.4.3

4 months ago

0.4.2

4 months ago

0.3.2

4 months ago

0.3.1

4 months ago

0.3.0

5 months ago

0.2.1

5 months ago

0.1.2

5 months ago

0.2.0

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago