Git Product home page Git Product logo

cartas-oscuras's Introduction

Next.js with Tailwind CSS starter

This is a Next.js example that you can use with create-next-app. You'll get a next starter with:

Get Started

npx create-next-app your-app-name --example https://github.com/aedificatorum/next-starters/tree/main/tailwind

What got added?

Tailwind CSS

Tailwind CSS configured with JIT mode.

The Tailwind stylesheet (tailwind\tailwind.css) is imported globally (in _app.js).

The Tailwind configuration has been extended to include Tailwind Forms.

The default font has been changed to Inter, and the font's stylesheet is added to the <head> in _app.js.

Finally, an example custom color has been added to the config, along with am example of it being used on the index page.

// tailwind.config.js
theme: {
  extend: {
    colors: {
    'palevioletred': '#DB7093'
    }
  },
},

// index.js
<h1 className="bg-palevioletred">...</h1>

TypeScript

Including examples of both pages (e.g. index.ts) and an API route (e.g. hello.ts).

The project's baseUrl has also been set so you can use absolute imports.

ESLint and Prettier

ESLint is configured with Next's strict ruleset, as well as a Prettier integration (make sure you update your code style in .prettierrc).

Three new scripts have been added to package.json that run eslint/prettier.

yarn format # run prettier and apply rules
yarn lint # run eslint in report mode
yarn lint:fix # or run it in fix mode

VS Code

The workspace has a few default settings (if you don't like them delete/change the settings.json file in the .vscode folder):

cartas-oscuras's People

Watchers

Alex Romo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.