Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.yarn
.yarnrc.yml

# argos
/screenshots
2 changes: 2 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import tailwindPlugin from "./plugins/tailwind-config.cjs";

const { themes } = require('prism-react-renderer');
const lightTheme = themes.github;
Expand Down Expand Up @@ -109,6 +110,7 @@ const config = {
sidebarPath: './sidebarEnhancements.js',
},
],
tailwindPlugin,
],

themeConfig:
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
"@docusaurus/module-type-aliases": "^3.1.0",
"@docusaurus/types": "^3.1.0",
"@playwright/test": "^1.39.0",
"cheerio": "^1.0.0-rc.12"
"autoprefixer": "^10.4.17",
"cheerio": "^1.0.0-rc.12",
"postcss": "^8.4.33",
"tailwindcss": "^3.4.1"
},
"browserslist": {
"production": [
Expand Down
15 changes: 15 additions & 0 deletions plugins/tailwind-config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
function tailwindPlugin(context, options) {
return {
name: 'tailwind-plugin',
configurePostCss(postcssOptions) {
postcssOptions.plugins = [
require('postcss-import'),
require('tailwindcss'),
require('autoprefixer'),
];
return postcssOptions;
},
};
}

module.exports = tailwindPlugin;
4 changes: 4 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
* work well for content-centric websites.
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

/* You can override the default Infima variables here. */
@font-face {
font-family: 'Nunito';
Expand Down
18 changes: 18 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{jsx,tsx,html}"],
theme: {
extend: {
fontFamily: {
nunito: ['Nunito', 'sans'],
openSans: ['OpenSans', 'sans'],
},
screens: {
'max-sm': {'max': '489px'},
'max-md': {'max': '649px'},
},
},
},
plugins: [],
}

Loading