A month ago, on May 13, 2019, Tailwind team released 1.0.0, the first stable release of the project. Tailwind has been growing exponentially, and the step of defining a stable API is the most important milestone achieved so far.
At its core, Tailwind offers:
- A clean and simple Utility-first set of tools and syntax to express any design
- A modern toolbox to quickly manage templates
- A consistent approach to achieve the objectives with a lean methodology
I have created a template for Joomla that implements Tailwind CSS. Now, it is the right time to publish the third version of the template that empowers this blog: anibalsanchez/XT-Tailwind-for-Joomla v2.0.3. The template comes with the latest Tailwind CSS version (1.0.3) that has been released after the v1 mark. It is powered by Tailwind, Webpack, PostCSS, PurgeCSS, and CSSNano. The final size of the stylesheet is minimal, 3KB.
To know more about this fantastic Utility-first CSS framework, there is a whole array of updated documentation, that showcases how the framework achieves its objectives:
- Tailwind documentation: https://tailwindcss.com/
- Get Started: https://tailwindcss.com/docs/installation/
- NEW Tailwind CSS Setup Examples: https://github.com/tailwindcss/setup-examples
- My Setup Example for Joomla, based on Laravel Mix: https://github.com/tailwindcss/setup-examples/pull/27
- Tailwind Cheat Sheet https://nerdcave.com/tailwind-cheat-sheet
- My Starter Project, based on Webpack, Tailwind, PostCSS, PurgeCSS, and CSSNano: https://github.com/anibalsanchez/XT-TailwindCSS-Starter
- Again, Tailwind for Joomla v2.0.3: anibalsanchez/XT-Tailwind-for-Joomla v2.0.3
- To collaborate with the Tailwind project on Discord: https://discordapp.com/channels/486935104384532500/572385218510716949
Good numbers, there is still room for future improvements.
To the moon!
In general, Akeeba backups are infallible. I'm used to moving backups between servers blindly, with the kickstart restore or the Unite command line. However, MySQL GEOMETRY fields are a hard case. It seems that MySQL 5.6 - MySQL 5.7 transitions are rough.
Restoring a backup on a MySQL failed due to a POINT field. After searching, it seems that there's no solution, and a POINT field can't be exported and imported between MySQL versions.
# Failed with error: 1416 -- Cannot get geometry object from data you send to the GEOMETRY field
In this particular case, I'm lucky. The extension (JCalPro) that uses the POINT field also stores the original Latitude and Longitude. So, the POINT field "latlng" can be reconstructed with:
UPDATE #__jcalpro_locations SET latlng = GeomFromText(CONCAT(
A tough nut cracked.
A couple of weeks ago, Tailwind team has released 1.0.0-beta.1. Tailwind has been growing exponentially, and the step of defining a stable API is an important milestone in the road.
I have created a template for Joomla that implements Tailwind CSS. Now, it is time to publish the second version of the template that empowers this blog: anibalsanchez/XT-Tailwind-for-Joomla v2.0.0
How to update to Tailwind CSS v1.0.0-beta.1
The update to v1.0.0-beta.1 is relatively straightforward. Most classes and the development workflow remain the same. The main change has been located in the configuration file that has been completely reorganized. The detailed procedure to upgrade can be found here: https://github.com/tailwindcss/tailwindcss/releases/tag/v1.0.0-beta.1
From my notes, these steps have been necessary to update:
Update the Tailwind framework
npm install tailwindcss@next --save-dev
Update the configuration file
In the recommended procedure to upgrade, there are detailed steps to transform the configuration file. I preferred to paste the whole default config file, and renamed it to the new recommended file name: tailwind.config.js. Then, I re-applied the colors and the spacing of this blog style.
- "@tailwind preflight;" has been replaced by "@tailwind base;".
- "list-reset" has been deprecated. So, it must be redefined as "list-none p-0" or "list-disc pl-4".
- Titles are no longer stylized. Just add "font-bold".
- opacity may also require attention.
After the upgrade
Tailwind has now a brand new API. We can preview that the final version will have the same level of flexibility and expressiveness that we enjoy today.
From the analytical point of view, the performance results are excellent, on the 90tish level.
To the moon!
Preparing the talk for Mastermind Podcast, these are my notes about Web Services quick testing 101:
- Step 1: Download and Install Joomla 4 Alpha 7
- Step 2: Notice that there two new plugin groups: api-authentication and webservices
- Step 3: Notice that there two new plugins: API Authentication - Basic Auth and Web Services - Content
- Step 4: J4 A7 has API Authentication based on Http Basic Authentication. So, yes, you have to configure .htpasswd to test the API. Ref: http://httpd.apache.org/docs/2.4/programs/htpasswd.html
- Step 5: Of course, if you are a little bit lazy, you can go straight to plugins/api-authentication/basic/basic.php, and change the authentication or create your own plugin.
- Step 6: Create an article and access the REST API for the Content component. For instance: http://mytest.com/api/index.php/v1/article/1
For more information:
To the moon!
- Extly Tech
- Team Leader / Senior Developer
- Empower your project with our web solutions
- Today, working on Laravel, Amazon AWS, and Ionic/ Angular
- A Joomla Volunteer