Giter Site home page Giter Site logo

mainuldip / wordpress-custom-theme Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 374 KB

TailwindCSS with Webpack Bable Theme

License: GNU General Public License v2.0

PHP 57.66% JavaScript 12.49% CSS 29.28% SCSS 0.22% TypeScript 0.35%
tailwindcss wordpress-theme bable webpack5 optimized woocommerce typescript

wordpress-custom-theme's Introduction

Overview

This is a custom wordpress theme on top of the most popular underscores barebone theme. This uses typescript and tailwind css internally through custom webpack configuration. It utilizes the tree shaking feature of tailwind to keep the asset size minimum.

Instructions

First Install The Packages

npm install

Then Start The Node Server In Watch Mode By Running

npm run wp-dev

After finishing development run

npm run build

Folder Structure

Edit the src/scripts/customScript.ts file to customize the javascript or interactivity. pagespecific.css.ts and tailwind.css.ts files inject the frontend styles.

Notes (webpack):

From development to build this theme depends on 3 webpack configuration files. webpack.common.js, webpack.dev.js and webpack.production.js. Add or remove themes entry point and output from webpack.common.js and modify other functionality through other two configuration files.

There are also postcss.config.js, tailwind.config.js and tsconfig.json respectively.

Notes (WooCommerce Support):

Woocommerce Support is out of the box.

Happy Coding :)

wordpress-custom-theme's People

Contributors

mainuldip avatar

Watchers

 avatar  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.