The essential news about content management systems and mobile technology. Powered by Perfect Publisher and XT Search for Algolia.
The News Site publishes posts to the following channels: Facebook, Instagram, Twitter, Telegram, Web Push, Bluesky, and Blogger.
Tailwind CSS is written in JavaScript and distributed as an npm package, which means you’ve always had to have Node.js and npm installed to use it.
Today we’re announcing a new standalone CLI build that gives you the full power of Tailwind CLI in a self-contained executable — no Node.js or npm required.
Tailwind CSS is written in JavaScript and distributed as an npm package, which means you’ve always had to have Node.js and npm installed to use it.
This has made it harder to integrate into projects where using npm isn’t always common, and with tools like Rails and Phoenix both moving away from npm by default, we needed to find a way for people to use Tailwind in these projects without forcing them to adopt an entirely separate ecosystem of tooling.
Today we’re announcing a new standalone CLI build that gives you the full power of Tailwind CLI in a self-contained executable — no Node.js or npm required.
To install it, grab the executable for your platform from the latest release on GitHub, making sure to give it executable permissions:
# Example for macOS arm64
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
chmod +x tailwindcss-macos-arm64
mv tailwindcss-macos-arm64 tailwindcss
Now you can use it just like our npm-distributed CLI tool:
# Create a tailwind.config.js file
./tailwindcss init
# Start a watcher
./tailwindcss -i input.css -o output.css --watch
# Compile and minify your CSS for production
./tailwindcss -i input.css -o output.css --minify
We’ve even bundled the latest versions of all of our first-party
plugins, so if you want to use them in your project, just
require
them in your tailwind.config.js
file like you would in a Node-based project:
module.exports = {
// ...
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
]
}
You get all the power of our standard npm-distributed CLI in a convenient, portable package — no dependencies required.
We didn’t rewrite Tailwind in Rust or anything (yet…) — we’re actually using pkg, a really cool project by Vercel that lets you turn a Node.js project into an executable that can be run without installing Node.js by bundling all of the parts your project needs right into the executable itself.
This is what makes it possible for you to still use a
tailwind.config.js
file with the full power of
JavaScript, rather than a static format like JSON.
If you are already using npm in your project, use the npm-distributed version of our CLI that we’ve always provided. It’s simpler to update, the file size is smaller, and you’re already in the ecosystem anyways — there’s no benefit at all to using the standalone build.
If on the other hand you’re working on a project where you don’t
otherwise need Node.js or npm, the standalone build can be a great
choice. If Tailwind was the only reason you had a
package.json
file, this is probably going to feel like
a nicer solution.
(The post Standalone CLI: Use Tailwind CSS without Node.js appeared first on Tailwind CSS Blog.)
Read more https://tailwindcss.com/blog/standalone-cli
In a few short days, you’ll surely be asked: What are your New Year’s resolutions for 2022? If starting a blogging habit is one of them, we’re here to help! At WordPress.com, we’re trying something new for 2022. Instead of individual New Year’s resolutions, we’ll be focusing on a shared goal we can accomplish together.
We’re running a month-long blogging challenge in January and we invite you to join us! Each day, you’ll receive a new writing prompt to inspire you to publish a post on your blog. There is no right or wrong way to respond to the prompts. Take this opportunity to exercise your creativity and have fun. Maybe you’ll choose to respond with a story, a drawing, a poem, a photo, a comic strip, a recipe, or even a playlist. Anything goes!
By participating in Bloganuary, you’ll join bloggers around the world in the shared goal of creating and/or solidifying a strong blogging habit. You’ll get access to the Bloganuary community site where you can meet and get to know others working toward similar goals. You can share tips, learn from others, reach a new audience for your blog, and make some new blogging friends.
Here’s a badge you can add to your blog to show others what you’re doing and encourage them to join in the fun.
Join the Bloganuary challenge, stay motivated, and start the new year off on the write track!
Do you want to learn more before you join Bloganuary? Read about the challenge here.
Read more https://wordpress.com/blog/2021/12/16/new-year-new-success-with-bloganuary/
The post Laravel 8.76 Released appeared first on Laravel News.
Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/laravel-8-76-0
Yesterday saw the return to a live State of the Word annual address, broadcast to the world from our new NoHo event space in New York City! Suited up and re-energized by a recent trip to Antarctica, Matt delivered his thoughts on the state of WordPress in 2021 and made some big announcements for 2022 and beyond. Check out some highlights below or watch the entire address!
Originally slated for December 2021, the release of WordPress 5.9 was delayed until January 25 so that full site editing – which allows for greater customization and simpler site building – could be fully realized prior to the 5.9 reveal. In other exciting news, Matt shared that version 6.0 would be coming later in the year and that 2022 could very well see a total of four new releases instead of the usual three. Watch this space!
This year, WordPress.org saw the redesign of the News page, which was inspired aesthetically by the playfulness of jazz, as well as the launch of Openverse search engine (named before Facebook’s recent name shift, we swear!). The search engine allows users to easily find openly licensed photos for their sites. There are currently more than 600 million images available on the Openverse, and early 2022 will see the addition of audio files!
The Pattern Directory was also launched this year, where folks are able to copy and use any of its featured patterns to spice up their sites with little or no coding expertise. Starting with WordPress 5.9, users will also be able to add their own patterns to the directory, empowering them to help others create beautiful online content.
A sign of our ongoing commitment to global inclusivity, accessibility, and the democratization of the internet, 2021 saw a 76% increase in the language packs available as core WordPress plugins. We now have nearly 16,000 active translators in the community, which means that WordPress products can be translated into 71 different languages at release.
The company saw significant growth in 2021, and WordPress software now powers more than 43% of the internet. This year also saw nearly 12% growth in both the number of available themes and total downloads (fresh downloads, not including updates).
At the end of 2020, there were only two or three fully customizable block themes available in the world. As the end of 2021 approaches, we now have 28 – a 1,000% increase! WordPress 5.8 added the ability to manage widgets in the block editor as well as a new Query Block and duotone filters, and next year will see the release of the appropriately titled Twenty Twenty-Two default block theme.
The Five for the Future initiative, launched in 2014, continues to be a top priority. In exchange for all of the benefits that they’ve personally received through their work, Five for the Future asks members of the WordPress community to give 5% of their time back to the community however they see fit – reporting bugs, offering translations, developing plugins or themes, designing code, offering training, etc. – which, in effect, fertilizes the soil for continued future growth.
If you missed the event’s live stream, you can watch the full address below.
Read more https://wordpress.com/blog/2021/12/15/live-from-new-york-its-state-of-the-word/
The post Blade Component to Serve Images and Download Files appeared first on Laravel News.
Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/laravel-blade-component-to-serve-images-and-download-files