Skip to content

0x4k-helios/poinswap-dex

Repository files navigation

Poinswap

Primary website of Poinswap.

Features:

  • Remix as the React framework
  • Tailwind CSS using Vechai UI as primary components
  • Theme switcher and persist theme with a session cookie

Stacks

  • Core
    • React v17
    • Remix v1
    • TypeScript v4
  • Frontend
    • Tailwind CSS v3
    • PostCSS v8
    • Heroicons v1
    • Headless UI v1 — Unstyled accessible UI components
    • Radix UI v0 — Unstyled accessible UI components
    • Vechai UI v0 — React Tailwind CSS components
    • HyperUI — Collection of free Tailwind CSS components
    • LaLoka Layouts — Useful layouts for Tailwind CSS
    • Flowbite v1 — Tailwind CSS components
    • daisyUI v2 — Tailwind CSS components
    • NProgress
  • Config
    • ESLint v8
    • Prettier v2
  • Utility
    • clsx
  • Deployment
    • Vercel

Development

To run your Remix app locally, make sure your project's local dependencies are installed:

npm install

Copy the .env.example into .env:

cp .env.example .env

Setup the environment variables here and Vercel if want to deploy there:

SESSION_SECRET=type_the_secret_here
  • SESSION_SECRET is used to persist the themes on browser sessions.

Afterwards, start the Remix development server like so:

npm run dev

Open up http://localhost:3000 and you should be ready to go!

If you're used to using the vercel dev command provided by Vercel CLI instead, you can also use that, but it's not needed.

Build

Make sure that it can build just fine:

npm run build

Deployment

After having run the create-remix command and selected "Vercel" as a deployment target, you only need to import your Git repository into Vercel, and it will be deployed.

If you'd like to avoid using a Git repository, you can also deploy the directory by running Vercel CLI:

npm i -g vercel
vercel

It is generally recommended to use a Git repository, because future commits will then automatically be deployed by Vercel, through its Git Integration.

Notes

Vechai UI

Edit tailwind.config.js to remove custom colors to reduce the stylesheet build size. cssBase is still required to get the default Tailwind CSS colors into Vechai UI themes.

module.exports = {
  // ...
  theme: {
    extend: {
      colors: {
-       info: colors.blue,
-       success: colors.green,
-       warning: colors.yellow,
-       error: colors.red,
      },
    },
  },
  plugins: [
    // ...
   require('@vechaiui/core')({
     cssBase: true,
-    colors: ['info', 'success', 'warning', 'error'],
   }),
  ],
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published