Coder Social home page Coder Social logo

statamic / preset-tailwindcss Goto Github PK

View Code? Open in Web Editor NEW
22.0 7.0 3.0 22 KB

DEPRECATED: Statamic 3 starts with TailwindCSS out of the box.

Home Page: https://statamic.com

License: MIT License

PHP 55.30% CSS 1.71% HTML 31.03% JavaScript 11.96%
statamic front-end preset laravel tailwindcss statamic-v3

preset-tailwindcss's Introduction

Statamic Frontend Preset for Tailwind CSS

A Statamic front-end scaffolding preset for Tailwind CSS.

Statamic 3.0+ Tailwind 1.2+

Usage

In a fresh install of Statamic 3, run the following commands.

  1. Install this preset package
composer require statamic/preset-tailwindcss
  1. Run the preset artisan command
# For a clean install
php artisan preset tailwindcss-clean

# To add to your current resources
php artisan preset tailwindcss
  1. Install NPM dependencies and run webpack
npm install && npm run dev

preset-tailwindcss's People

Contributors

jackmcdade avatar

Stargazers

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

preset-tailwindcss's Issues

Unable to add to new Statamic install

I just set up a brand new local Statamic install and tried to add this preset, and got this error message:

[InvalidArgumentException]
Could not find a version of package statamic/preset-tailwindcss matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.

I'm confident I can work out how to resolve this (though I'm happy to hear a suggestion), but it's not a great first-run experience so I figured I'd report it ๐Ÿ˜„

Steps to reproduce:

  • composer global require statamic/cli
  • statamic new sitename
  • cd sitename
  • composer require statamic/preset-tailwindcss

not compatible with the latest beta?

I get the following when running

composer require statamic/preset-tailwindcss

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Can only install one of: laravel/framework[v7.15.0, 6.x-dev].
- Can only install one of: laravel/framework[6.x-dev, v7.15.0].
- Can only install one of: laravel/framework[6.x-dev, v7.15.0].
- statamic/preset-tailwindcss 0.1.3 requires laravel/framework 6.* -> satisfiable by laravel/framework[6.x-dev].
- Installation request for statamic/preset-tailwindcss ^0.1.3 -> satisfiable by statamic/preset-tailwindcss[0.1.3].
- Installation request for laravel/framework (locked at v7.15.0, required as ^7.0) -> satisfiable by laravel/framework[v7.15.0].

Installation failed, reverting ./composer.json to its original content.

I guess you just need to update this json to 7.x but not sure how to do that.

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.