Skip to content

efkann/aya-website

 
 

Repository files navigation

next-template

A Next.js 13 template for building apps with Radix UI and Tailwind CSS.

Features

  • Radix UI Primitives
  • Tailwind CSS
  • Icons from Lucide
  • Dark mode with next-themes

Tailwind CSS Features

  • Class merging with taiwind-merge
  • Animation with tailwindcss-animate
  • Conditional classes with clsx
  • Variants with class-variance-authority
  • Automatic class sorting with eslint-plugin-tailwindcss

Input

import * as React from "react";
import Link from "next/link";

import { siteConfig } from "@/shared/config/site.ts";
import { buttonVariants } from "@/shared/components/ui/button.tsx";
import { twMerge } from "tailwind-merge";

import { type NavItem } from "@/shared/config/nav.ts";
import { cn } from "@/shared/lib/cn.ts";

Output

import * as React from "react";
// React is always first.
import Link from "next/link";
// Followed by next modules.
import { twMerge } from "tailwind-merge";

// Followed by third-party modules
// Space
import { type NavItem } from "@/shared/config/nav.ts";
// types
import { siteConfig } from "@/shared/config/site.ts";
// config
import { cn } from "@/shared/lib/cn.ts";
// lib
import { buttonVariants } from "@/shared/components/ui/button.tsx";

// components

Class Merging

The cn util handles conditional classes and class merging.

Input

cn("px-2 bg-slate-100 py-2 bg-slate-200");
// Outputs `p-2 bg-slate-200`

License

Licensed under the MIT license.

About

açık yazılım ağı web sitesi kaynak kodları

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.9%
  • JavaScript 2.8%
  • CSS 1.3%