Giter VIP home page Giter VIP logo

html-tailwind-starter's Introduction

HTML Tailwind starter

This start was build for people not needing any framework. It's sometimes enough to just have a plain HTML file, but leverage the power of Tailwind CSS.

The project uses the Tailwind purge to make the files as clean as possible.

Installation

The installation is very easy run the install command.

npm install

Next up we can run the dev server:

npm run dev

And your website will start up.

Note - make sure to install live-server globally as a dependancy or it will not work

npm install -g live-server

Modifying the project

You can then modify the tailwind.config.js for your own custom colors if needed And modify the index.html inside the src directory.

Read more

If you're interested to read more about this project. Check out the article I wrote on HTML Tailwind starter

html-tailwind-starter's People

Contributors

rebelchris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

html-tailwind-starter's Issues

html tailwind jit starter doesn't work out of the box

Steps I followed

git clone https://github.com/rebelchris/HTML-Tailwind-Starter.git
cd HTML-Tailwind-Starter/
git switch JIT-compiler 
yarn
yarn dev

I get this error:

npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1636864349849-0.11926732229647574/node but npm is using /usr/local/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> [email protected] build /home/dd/projects/web/HTML-Tailwind-Starter
> postcss styles.css -o src/styles.css

TypeError: Cannot read property 'theme' of undefined
    at _default (/home/dd/projects/web/HTML-Tailwind-Starter/node_modules/tailwindcss/lib/lib/substituteScreenAtRules.js:16:5)
    at /home/dd/projects/web/HTML-Tailwind-Starter/node_modules/@tailwindcss/jit/src/index.js:50:11
    at LazyResult.runOnRoot (/home/dd/projects/web/HTML-Tailwind-Starter/node_modules/postcss/lib/lazy-result.js:339:16)
    at LazyResult.runAsync (/home/dd/projects/web/HTML-Tailwind-Starter/node_modules/postcss/lib/lazy-result.js:391:26)
    at LazyResult.async (/home/dd/projects/web/HTML-Tailwind-Starter/node_modules/postcss/lib/lazy-result.js:221:30)
    at LazyResult.then (/home/dd/projects/web/HTML-Tailwind-Starter/node_modules/postcss/lib/lazy-result.js:206:17)
    at /home/dd/projects/web/HTML-Tailwind-Starter/node_modules/postcss-cli/index.js:233:10
    at async Promise.all (index 0)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `postcss styles.css -o src/styles.css`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dd/.npm/_logs/2021-11-14T04_32_30_563Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Purging

Hello, nice wee repo, thank you. May I ask where the purge magic happens please?

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.