-
-
How to add generic styles in Vue Styleguidist
Vue Styleguidist is an awesome tool I used to build styleguides with Vue components. Here it is a way to add generic styles in all app components.
-
Find element in array and move it to the first position
How to find an element in JavaScript and move it to the first position.
-
How I set up my environment before I start every project
Configuration list to setup a project from scratch.
-
How to add Google Fonts in Vue Styleguidist
Styleguidist is an awesome tool to build a styleguide. In this post I'll show how to add a Google Font link in the HTML page.
-
Add a class in Nunjucks using a conditional statement
There are two syntax in Nunjucks to add a class to a DOM node
-
-
-
Fix developer path after upgrade to MacOS Catalina
My git commands did not work as expected after I upgraded to MacOS Catalina, here is how to fix the developer path error.
-
Add items to an array in Nunjucks
Using push() method, add items at the end of the array with Nunjucks template engine.
-
-
-
Remove duplicates in object arrays
Snippet to remove duplicates in JavaScript, when you have objects with multiple arrays inside it.
-
Add HTML classes to 11ty markdown content
Add HTML classes to style your markdown content in 11ty, using markdown-it-attrs plugin.
-
-
Force include classes in critical CSS
Using critical CSS library by Addy Osmani, force the inclusion of HTML selectors.
-
Nunjucks scoped variable declarations
We have to pay attention where we declare variables in Nunjucks, because they are scoped!
-
Nunjucks advanced loops
In Nunjucks we can loop through an array or an object, let's see how to do it.
-
-
Show console outputs based on environment
A project can be beautiful from the outside, but if the browser console is full of messy outputs it will immediately seem confusing and carelessly.
-
How to set up GitHub/GitLab issue and PR templates
GitHub and GitLab give the possibility to set default issue and PR templates.
-
Sass placeholder and its limits
Sass placeholder is a powerful way to write reusable code, but unfortunately it is not always applicable.
-
Create CSS classes dynamically
How to create CSS classes dinamically using SASS interpolation functions, SASS variables and SASS arrays.
-
-
-
-
-
How to remove all links in JavaScript
Remove all links occurrencies concatenating two replace functions.
-
-
UIengine project setup
Basic configuration to setup a styleguide project from scratch using UIengine as styleguide tool.