Skip to content

Navigation Menu

Sign in
Appearance settings

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

Appearance settings

ui-layouts/ui-tools

Open more actions menu

Repository files navigation


uilayout

UI Tools is an open-source ui-tools for design engineers, developer. It's a creative toolbox featuring shadow, SVG, gradient, and background pattern generators, color. Open-source, fast, and made for builders.

UI-Tools - Design That Really Makes Sense

Installation

You must install tailwindcss. As most of our components use motion install it too.

npm install motion clsx tailwind-merge

Must Add it in the utils.ts:

import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}

use this hooks for mediaQueries:

import { useEffect, useState } from "react";

export function useMediaQuery(query: string) {
  const [value, setValue] = useState(false);

  useEffect(() => {
    function onChange(event: MediaQueryListEvent) {
      setValue(event.matches);
    }

    const result = matchMedia(query);
    result.addEventListener("change", onChange);
    setValue(result.matches);

    return () => result.removeEventListener("change", onChange);
  }, [query]);

  return value;
}

Tools

TODO List

  • Shadows
  • Svg Clip-Path
  • BG Snippets
  • Mesh-Gradients
  • Colors with Shadcn/themes

👤 Author (Naymur)

Be A Sponsor

naymur-uilayout

Morty Proxy This is a proxified and sanitized view of the page, visit original site.