### Install Dependencies and Start Development Server Source: https://github.com/borawong/aimami/blob/main/README-en.md Clone the repository, install project dependencies using pnpm, and start the Tauri development server. ```bash git clone https://github.com/borawong/AiMaMi.git cd AiMaMi pnpm install pnpm tauri dev ``` -------------------------------- ### Build the Project Source: https://github.com/borawong/aimami/blob/main/README-en.md Build the project for native deployment using the Tauri CLI. ```bash pnpm tauri build ``` -------------------------------- ### Theme Toggling Logic Source: https://github.com/borawong/aimami/blob/main/index.html This JavaScript code retrieves the theme preference from local storage, determines the appropriate theme based on user selection and system preference, and applies the 'dark' class to the document element accordingly. It includes error handling for local storage access. ```javascript AiMaMi (() => { try { const stored = localStorage.getItem("theme"); const theme = stored === "light" || stored === "dark" || stored === "system" ? stored : "system"; const isDark = theme === "dark" || (theme === "system" && window.matchMedia("(prefers-color-scheme: dark)").matches); if (isDark) { document.documentElement.classList.add("dark"); } else { document.documentElement.classList.remove("dark"); } } catch { /\* ignore \*\/ } })(); ``` -------------------------------- ### MIT License Text Source: https://github.com/borawong/aimami/blob/main/LICENSES/THIRD_PARTY.md The full MIT license text as provided by the Type4Me project. This license governs the use of the water-drop sound assets. ```plaintext MIT License Copyright (c) 2026 Type4Me Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` -------------------------------- ### CSS Theme Styling Source: https://github.com/borawong/aimami/blob/main/index.html These CSS rules define the color scheme and background for both light and dark themes, as well as basic styling for html, body, and the root element to ensure consistent display. ```css :root { color-scheme: light; background: #f8f8fa; } :root.dark { color-scheme: dark; background: #0e0e11; } html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: inherit; } #root { width: 100%; height: 100%; background: inherit; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.