Viact

screenshot of Viact
react
vite
less
scss
unocss

Viact is a starter template for React TypeScript that uses Vitejs, which supports RTL for specific styles, proxy fetching API (to fix CORS errors) and a simple mock REST API server. Additionally, Is set up VScode, Storybook, ErrorBoundary, UnoCss (atomic CSS engine), Eslint, Prettier, and more.

Overview

The Viact theme is a Next.js template that combines various modern tools and libraries to create a powerful frontend development environment. It features React 18, React Router DOM, TypeScript, UnoCSS, EsLint, Prettier, PostCss, Conventional Commit, and more. The theme provides an intuitive folder structure and comes with several scripts for development, building, previewing, analyzing, and cleaning up files. It also includes support for Sass/Scss/Less and offers features like proxying API requests, mocking REST APIs, and minifying images automatically in production.

Features

  • Vite - Next Generation Frontend Tooling
  • React 18 - A JavaScript library for building user interfaces
  • React Router DOM - Routing library for React
  • TypeScript - Type checking for JavaScript
  • UnoCSS - Instant on-demand atomic CSS engine
  • Safety - HTTPS enabled by default in development
  • EsLint - Pluggable JavaScript linter
  • Prettier - Opinionated code formatter
  • PostCss - Supports RTL for specific styles & autoprefixer
  • Conventional Commit - Commit message conventions for Git
  • Absolute Import - Ability to use ~/... for absolute imports
  • Proxying API Requests - Proxying API requests in development
  • Mock REST APIs - Easiest way to mock REST APIs, based on json-server
  • Storybook - Documentation for UI components
  • Minify Images - Automatically minifies images in production
  • Support Sass/Scss/Less - Supports various CSS preprocessors

Summary

The Viact theme is a comprehensive Next.js template that combines popular frontend tools like Vite, React 18, and React Router DOM with additional features like TypeScript support, UnoCSS for atomic CSS, and convenient scripts for development, building, and previewing. It also provides options for proxying API requests, mocking REST APIs, and minifying images automatically. The theme supports various CSS preprocessors and follows conventional commit message conventions. With a well-defined folder structure and detailed installation instructions, the Viact theme offers a powerful and streamlined frontend development experience.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

less
LESS

Less CSS is a dynamic stylesheet language that extends the capabilities of CSS, allowing developers to write cleaner, more modular, and reusable stylesheets with features like variables, mixins, and nested rules.

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.

unocss
UnoCSS

UnoCSS is an instant, on-demand atomic CSS engine that generates utility classes at build time. It's highly customizable, extremely fast, and compatible with Tailwind CSS utilities while offering additional features like attributify mode and pure CSS icons.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

Stylelint

Stylelint is a modern linter for CSS that helps you avoid errors and enforce consistent styling conventions. It provides rules for detecting errors and warnings, and can be configured to match your specific project's requirements.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.