composer global require PackageName
Category: Raindrop
How to install Tailwind CSS to Vuetify
npm install --save-dev tailwindcss postcss autoprefixer && npx tailwindcss init -p
tailwind.config.js
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
prefix: "tw-",
};
src/styles/tailwind.css
@tailwind base;
@tailwind components;
@tailwind utilities;
src/plugins/vuetify.js
import "@/styles/tailwind.css";
class="tw-bg-black tw-text-white hover:-tw-skew-y-3"
How to change font family in Vuetify
For example, change default font-family Roboto to Nunito
vite.config.mjs
...
ViteFonts({
google: {
families: [{
name: 'Nunito',
styles: 'wght@200;300;400;500;600;700;800;900',
}],
},
}),
...
src/styles/main.scss
@use "vuetify" with (
...
$body-font-family: "Nunito"
...
);
src/plugins/vuetify.js
- import "vuetify/styles";
+ import "@/styles/main.scss";
How to scaffold a Vuetify project using Vite
npm create vuetify@latest
How to install Vue with Tailwind CSS
npm create vite@latest project -- --template vue && cd project
npm install --save-dev tailwindcss postcss autoprefixer &&
npx tailwindcss init --postcss
tailwind.config.js
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
src/style.css
@tailwind base;
@tailwind components;
@tailwind utilities;
npm run dev -- --open
How to search and replace strings in WordPress database
wp search-replace 'https://example.test' 'https://example.com'
How to generate wp-config.php in WordPress
wp config create --dbname=Database --dbuser=User --dbpass=Password
How to pick a database as the default database in MySQL
use DatabaseName;
How to list all databases in MySQL
show databases;
How to delete database in MySQL
drop database DatabaseName;