-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93b15c2
commit d3cb013
Showing
17 changed files
with
210 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,52 @@ | ||
# Hybrid UI Theme Builder | ||
|
||
Welcome to the Hybrid UI Theme Builder! This powerful tool empowers developers to create custom themes for their Hybrid UI applications with ease and flexibility. | ||
|
||
## Description | ||
|
||
Hybrid UI Theme Builder is a dedicated theme builder designed specifically for Hybrid UI. It provides developers with an intuitive and user-friendly interface to create, customize, and manage themes for their applications. With this tool, you can give your Hybrid UI applications a unique look and feel that aligns with your brand or personal preference. | ||
|
||
## Features | ||
|
||
- **Customization**: Tailor every aspect of your Hybrid UI application's theme, from colors and typography to layout and spacing. | ||
- **Ease of Use**: The Hybrid UI Theme Builder is designed with simplicity in mind, making it easy for developers of all skill levels to use. | ||
- **Theme Management**: Create, save, and manage multiple themes for different applications or use cases. | ||
- **Real-time Preview**: See your changes in real-time as you customize your theme, ensuring you get the perfect look. | ||
- **Export Themes**: Once you're satisfied with your theme, you can easily export it for use in your Hybrid UI applications. | ||
|
||
## Keywords | ||
|
||
- Hybrid-UI | ||
- Theme | ||
- Builder | ||
- Customization | ||
- Theming | ||
- UI-Components | ||
|
||
## Installation | ||
|
||
To get started with the Hybrid UI Theme Builder, follow the installation instructions provided in the [Installation Guide](link-to-installation-guide). | ||
|
||
## Usage | ||
|
||
For detailed instructions on how to use the Hybrid UI Theme Builder, please refer to the [Usage Guide](link-to-usage-guide). | ||
|
||
## Contributing | ||
|
||
We welcome contributions from the community. If you wish to contribute, please take a moment to review our [Contributing Guidelines](link-to-contributing-guidelines). | ||
|
||
## License | ||
|
||
The Hybrid UI Theme Builder is open-source software licensed under the [MIT License](LICENSE). | ||
|
||
## Support | ||
|
||
If you encounter any problems or have any questions, please open an issue on our [Issues](link-to-issues) page. | ||
|
||
## Acknowledgements | ||
|
||
We would like to thank the Hybrid UI community for their support and contributions to this project. | ||
|
||
Happy theming with the Hybrid UI Theme Builder! | ||
|
||
[Icon Kitchen](https://icon.kitchen/i/H4sIAAAAAAAAAx2PQWvDMAyF%2F0rQrhmsrIOR21IYgx2X2yhFiRXXRLFTOW4Jpf%2B9sk9Cn957ku5wRU4UobmDQZm6M80EzYgcqYbRHtgtKGseR9ICEpI3UIMbgtd2CBzkxOQjPGro7d8ZF%2FVDvCQnA5Mqe3vIIoUv5nO%2F270rW2JrM9gPOH68FfAdfFkz4ux40%2BHXhBtWv%2BjR4IQ5fomdWzWzgZ%2BuLaYOLTtfyNaLM1W5v2qTY0OSPXMwifN%2F%2F3CjXk3ojQRn1msOYNxe4xqE4Ph4Ah%2BcQuMLAQAA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import {mapObject} from '@gecut/lit-helper/utilities/map-object.js'; | ||
import {html} from 'lit/html.js'; | ||
|
||
const themeScheme: Record<'primary' | 'secondary' | 'tertiary' | 'neutral' | 'error' | 'neutral-variant', number[]> = { | ||
primary: [0, 10, 20, 25, 30, 35, 40, 50, 60, 70, 80, 90, 95, 98, 99, 100], | ||
secondary: [0, 10, 20, 25, 30, 35, 40, 50, 60, 70, 80, 90, 95, 98, 99, 100], | ||
tertiary: [0, 10, 20, 25, 30, 35, 40, 50, 60, 70, 80, 90, 95, 98, 99, 100], | ||
neutral: [0, 4, 6, 10, 12, 17, 20, 22, 25, 30, 35, 40, 50, 60, 70, 80, 87, 90, 92, 94, 95, 96, 98, 99, 100], | ||
'neutral-variant': [0, 10, 20, 25, 30, 35, 40, 50, 60, 70, 80, 90, 95, 98, 99, 100], | ||
error: [0, 10, 20, 25, 30, 35, 40, 50, 60, 70, 80, 90, 95, 98, 99, 100], | ||
}; | ||
|
||
export function paletteReferenceColors() { | ||
return html` | ||
<div class="flex flex-col gap-2 px-2"> | ||
${mapObject( | ||
null, | ||
themeScheme, | ||
(tones, key) => html` | ||
<h2 class="text-titleMedium text-onSurfaceVariant capitalize mt-4">${key}</h2> | ||
<div class="flex rounded-md overflow-hidden shadow"> | ||
${tones.map( | ||
(tone, index) => html` | ||
<div | ||
class="h-12 grow text-bodySmall flex items-center justify-center" | ||
style="background-color:rgb(var(--ref-palette-${key + tone}));" | ||
> | ||
<span class="hidden md:inline" style="color:rgb(var(--ref-palette-${key + tones[tones.length - 1 - index]}));"> | ||
${tone} | ||
</span> | ||
</div> | ||
`, | ||
)} | ||
</div> | ||
`, | ||
)} | ||
</div> | ||
`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import {gecutContext} from '@gecut/lit-helper/directives/context.js'; | ||
import {html} from 'lit/html.js'; | ||
|
||
import {paletteContext} from '../../signal/palette.context.js'; | ||
import {paletteReferenceColors} from '../components/palette-reference-colors.js'; | ||
import {paletteSystemColors} from '../components/palette-system-colors.js'; | ||
|
||
export function palettePage() { | ||
return html` | ||
<div class="flex flex-col gap-4 py-4"> | ||
<h1 class="text-headlineSmall text-onSurface">System Colors</h1> | ||
${gecutContext(paletteContext, (theme) => paletteSystemColors(theme))} | ||
<h1 class="text-headlineSmall text-onSurface">Reference Colors</h1> | ||
${paletteReferenceColors()} | ||
</div> | ||
`; | ||
} |
Oops, something went wrong.