Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Elegant, Modern, and Customizable TailwindCSS components for ✨ Lustre ✨

License

NotificationsYou must be signed in to change notification settings

MAHcodes/gleez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gleez Logo

Elegant, Modern, and Customizable TailwindCSS components for ✨Lustre

✨ Introduction

Similar toshadcn

This is NOT a component library. It's a collection of re-usable components that you can copy and paste into your apps.

This website showcases a real-world application built with Lustre and Gleez. you can check the source code on GitHub, as it's open source under the MIT License.

🚀 Installation

As mentioned earlier, this isNOT a component library. Instead, it's a collection of reusable components that you can integrate into your apps.

You can either copy and paste the components directly, or install them usinggleez cli.

To install the gleez cli:

gleam add gleez --dev

🌈 Colors

GleezColors are basicallyTailwindCSS Custom Colors

Gleez requires 7 custom TailwindCSS colors:

  • Neutral
  • Primary
  • Secondary
  • Success
  • Info
  • Warning
  • Danger

Each component variant requires aColor type, which is defined within the component itself:

pubtypeColors{NeutralPrimarySecondarySuccessInfoWarningDanger}

You can extend the colors for each component and import them from the component.

To manually configure the colors:

// tailwind.config.jsmodule.exports={theme:{extend:{colors:{neutral:{DEFAULT:"hsl(var(--neutral) / <alpha-value>)",foreground:"hsl(var(--neutral-foreground) / <alpha-value>)",},primary:{DEFAULT:"hsl(var(--primary) / <alpha-value>)",foreground:"hsl(var(--primary-foreground) / <alpha-value>)",},secondary:{DEFAULT:"hsl(var(--secondary) / <alpha-value>)",foreground:"hsl(var(--secondary-foreground) / <alpha-value>)",},info:{DEFAULT:"hsl(var(--info) / <alpha-value>)",foreground:"hsl(var(--info-foreground) / <alpha-value>)",},success:{DEFAULT:"hsl(var(--success) / <alpha-value>)",foreground:"hsl(var(--success-foreground) / <alpha-value>)",},warning:{DEFAULT:"hsl(var(--warning) / <alpha-value>)",foreground:"hsl(var(--warning-foreground) / <alpha-value>)",},danger:{DEFAULT:"hsl(var(--danger) / <alpha-value>)",foreground:"hsl(var(--danger-foreground) / <alpha-value>)",},},},},};

Define CSS variables for light and dark theme:

/* global.css */@layer base {:root,  .light {--neutral:24010%40%;--neutral-foreground:22023%95%;--primary:33182%64%;--primary-foreground:22023%95%;--secondary:3081%63%;--secondary-foreground:22023%95%;--success:10958%40%;--success-foreground:22023%95%;--info:22091%54%;--info-foreground:22023%95%;--warning:3577%49%;--warning-foreground:22023%95%;--danger:34787%44%;--danger-foreground:22023%95%;  }  .dark {--neutral:24010%60%;--neutral-foreground:24021%15%;--primary:33182%64%;--primary-foreground:24021%15%;--secondary:3081%63%;--secondary-foreground:24021%15%;--success:11554%76%;--success-foreground:24021%15%;--info:21792%76%;--info-foreground:24021%15%;--warning:4186%83%;--warning-foreground:24021%15%;--danger:34381%75%;--danger-foreground:24021%15%;  }}

❓ FAQ

What is the origin of the name "Gleez"?Gleez is a mashup of Gleam and Deez, which raises the question, "What is Deez?"

🙏 Acknowledgments


[8]ページ先頭

©2009-2025 Movatter.jp