@mfs-atomic/ui 0.0.0-stage → 1.0.0

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/LICENSE ADDED
@@ -0,0 +1,31 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MFS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ Trademark & Brand Assets Notice
26
+
27
+ The "MFS Atomic Technology" and "MFS Theme" names, logos (including
28
+ `public/logo.svg`), and associated brand assets are proprietary trademarks and
29
+ assets of MFS Atomic Technology. They are NOT open-source, are excluded from the
30
+ MIT License above, and all rights are reserved. They may not be used to imply
31
+ endorsement or as your own brand without prior written permission.
package/README.md CHANGED
@@ -1,3 +1,103 @@
1
- # Temporary Holding Version
1
+ # MFS Theme
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Adaptive multi-theme Vue 3 UI component library with runtime theme switching, 20 built-in visual themes, 91+ components, and zero runtime dependencies.
4
+
5
+ ## Features
6
+
7
+ - **20 Built-in Themes**: Switch between 20 distinct design systems at runtime (`clay`, `glass`, `neo`, `cyberpunk`, `liquid-glass`, and more).
8
+ - **91+ Vue 3 Components**: Comprehensive component suite covering forms, data display, overlays, navigation, menus, feedback, and charts—plus directives (`v-ripple`, `v-tooltip`, `v-focustrap`, `v-animateonscroll`, `v-styleclass`) and composables (`useTheme`, `useToast`, `useConfirm`).
9
+ - **206 `.mfs-*` Utility Classes**: Theme-aware CSS utility classes for layout, surfaces, elevation, typography, and spacing.
10
+ - **TypeScript Ready**: Full TypeScript declarations (`dist/index.d.ts`) bundled out of the box.
11
+ - **Zero Runtime Dependencies**: Lightweight package requiring only `vue` (`^3.4.0`) as a peer dependency.
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ npm install @mfs-atomic/ui
17
+ ```
18
+
19
+ Or with Bun:
20
+
21
+ ```bash
22
+ bun add @mfs-atomic/ui
23
+ ```
24
+
25
+ ## Quick Start
26
+
27
+ ### 1. Register the Plugin & Import Styles
28
+
29
+ ```ts
30
+ // main.ts
31
+ import { createApp } from 'vue'
32
+ import App from './App.vue'
33
+ import ThemePlugin from '@mfs-atomic/ui'
34
+ import '@mfs-atomic/ui/style.css'
35
+
36
+ const app = createApp(App)
37
+ app.use(ThemePlugin, { defaultTheme: 'clay' })
38
+ app.mount('#app')
39
+ ```
40
+
41
+ ### 2. Use Components & Switch Themes with `useTheme()`
42
+
43
+ ```vue
44
+ <script setup lang="ts">
45
+ import { ref } from 'vue'
46
+ import { useTheme } from '@mfs-atomic/ui'
47
+
48
+ const { currentTheme, themeOptions, setTheme } = useTheme()
49
+ const name = ref('')
50
+ </script>
51
+
52
+ <template>
53
+ <Card title="Welcome" :subtitle="`Active theme: ${currentTheme}`">
54
+ <Input v-model="name" label="Name" placeholder="Enter your name..." />
55
+
56
+ <div class="mfs-flex mfs-gap-2 mfs-mt-4">
57
+ <Button
58
+ v-for="theme in themeOptions.slice(0, 3)"
59
+ :key="theme.id"
60
+ :variant="currentTheme === theme.id ? 'primary' : 'secondary'"
61
+ @click="setTheme(theme.id)"
62
+ >
63
+ {{ theme.name }}
64
+ </Button>
65
+ </div>
66
+ </Card>
67
+ </template>
68
+ ```
69
+
70
+ > Components can also be imported individually (e.g., `import { Button, Card, Input } from '@mfs-atomic/ui'`).
71
+
72
+ ## Built-in Themes
73
+
74
+ All 20 theme IDs supported by `ThemePlugin` (`defaultTheme`) and `setTheme(id)`:
75
+
76
+ | Theme ID | Description |
77
+ | --- | --- |
78
+ | `clay` | Claymorphism — 3D inflated soft surfaces and tactile curves |
79
+ | `glass` | Glassmorphism — Frosted translucent glass and backdrop blurs |
80
+ | `neo` | Neumorphism — Minimalist soft UI with extruded elevations |
81
+ | `minimalism` | Minimalism — Ultra-clean monochrome surfaces and hairline borders |
82
+ | `brutalism` | Neubrutalism — High-contrast bold borders and hard offset shadows |
83
+ | `bento` | Bento Grid — Modular rounded tiles with crisp spacing |
84
+ | `cyberpunk` | Cyberpunk — Neon-lit dark HUD surfaces and electric glows |
85
+ | `retro` | Retro — Nostalgic warm palettes and classic UI proportions |
86
+ | `swiss` | Swiss — Grid-driven modernist typography and sharp geometry |
87
+ | `skeuomorphism` | Skeuomorphism — Realistic textures, bevels, and tactile depth |
88
+ | `liquid-glass` | Liquid Glass — Fluid specular highlights and refractive depth |
89
+ | `material-you` | Material You — Adaptive tonal surfaces and expressive pills |
90
+ | `terminal` | Terminal — Monospace CLI aesthetics with phosphor accents |
91
+ | `hand-drawn` | Hand-Drawn — Sketchy organic borders and paper-like surfaces |
92
+ | `y2k-chrome` | Y2K Chrome — Metallic gradients, glossy pills, and early-2000s flair |
93
+ | `bauhaus` | Bauhaus — Primary geometric forms and bold color blocks |
94
+ | `pixel-art` | Pixel Art — Crisp stepped borders and 8-bit arcade styling |
95
+ | `aurora-gradient` | Aurora Gradient — Luminous ambient meshes and soft glows |
96
+ | `vaporwave` | Vaporwave — Pastel synth gradients and retro-futuristic contrast |
97
+ | `manga` | Manga — High-contrast ink panels with halftone depth |
98
+
99
+ ## License & Trademarks
100
+
101
+ Source code is licensed under the [MIT License](./LICENSE).
102
+
103
+ The **MFS Atomic Technology** and **MFS Theme** names, logos (including `public/logo.svg`), and brand assets are proprietary to **MFS Atomic Technology** (not open-source) and are **excluded from the MIT License** (all rights reserved). They may not be used to imply endorsement or as your own brand without prior written permission.