Skip to content

Commit 9476722

Browse files
committed
1 parent f9b015f commit 9476722

File tree

1 file changed

+8
-42
lines changed

1 file changed

+8
-42
lines changed

theme/static_src/tailwind.config.js

+8-42
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,21 @@
1-
/**
2-
* This is a minimal config.
3-
*
4-
* If you need the full config, get it from here:
5-
* https://unpkg.com/browse/tailwindcss@latest/stubs/defaultConfig.stub.js
6-
*/
1+
const colors = require('tailwindcss/colors');
72

83
module.exports = {
94
content: [
10-
/**
11-
* HTML. Paths to Django template files that will contain Tailwind CSS classes.
12-
*/
13-
14-
/* Templates within theme app (<tailwind_app_name>/templates), e.g. base.html. */
15-
'../templates/**/*.html',
16-
17-
/*
18-
* Main templates directory of the project (BASE_DIR/templates).
19-
* Adjust the following line to match your project structure.
20-
*/
5+
// (BASE_DIR/templates)
216
'../../templates/**/*.html',
227

23-
/*
24-
* Templates in other django apps (BASE_DIR/<any_app_name>/templates).
25-
* Adjust the following line to match your project structure.
26-
*/
8+
// (BASE_DIR/<any_app_name>/templates)
279
'../../**/templates/**/*.html',
28-
29-
/**
30-
* JS: If you use Tailwind CSS in JavaScript, uncomment the following lines and make sure
31-
* patterns match your project structure.
32-
*/
33-
/* JS 1: Ignore any JavaScript in node_modules folder. */
34-
// '!../../**/node_modules',
35-
/* JS 2: Process all JavaScript files in the project. */
36-
// '../../**/*.js',
37-
38-
/**
39-
* Python: If you use Tailwind CSS classes in Python, uncomment the following line
40-
* and make sure the pattern below matches your project structure.
41-
*/
42-
// '../../**/*.py'
4310
],
4411
theme: {
45-
extend: {},
12+
extend: {
13+
colors: {
14+
gray: colors.stone,
15+
}
16+
},
4617
},
4718
plugins: [
48-
/**
49-
* '@tailwindcss/forms' is the forms plugin that provides a minimal styling
50-
* for forms. If you don't like it or have own styling for forms,
51-
* comment the line below to disable '@tailwindcss/forms'.
52-
*/
5319
require('@tailwindcss/forms'),
5420
require('@tailwindcss/typography'),
5521
require('@tailwindcss/line-clamp'),

0 commit comments

Comments
 (0)