Add new blog posts
This commit is contained in:
parent
b22428ebae
commit
6bcdd96af0
22 changed files with 977 additions and 0 deletions
31
source/_posts/renaming-gray-grey-tailwind-css.md
Normal file
31
source/_posts/renaming-gray-grey-tailwind-css.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: Renaming gray to grey in Tailwind CSS
|
||||
description: How to change the colour "gray" to "grey" in Tailwind CSS.
|
||||
tags: [Tailwind CSS]
|
||||
date: 2020-09-04
|
||||
---
|
||||
|
||||
In `tailwind.config.js`:
|
||||
|
||||
```
|
||||
const { colors } = require('tailwindcss/defaultTheme')
|
||||
|
||||
module.exports = {
|
||||
purge: ["./public/**/*.html"],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
// Remove the "gray" colours from the theme.
|
||||
gray: {},
|
||||
|
||||
// Create a new set of "grey" colours, using the original "gray" values.
|
||||
grey: colors['gray']
|
||||
}
|
||||
},
|
||||
},
|
||||
variants: {},
|
||||
plugins: [],
|
||||
};
|
||||
```
|
||||
|
||||
Based on a configuration file from https://github.com/tailwindlabs/tailwindcss-playground.
|
Loading…
Add table
Add a link
Reference in a new issue