Skip to content

Commit

Permalink
Initial commit: AUEB theme for Docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
paraskevasleivadaros committed Jan 5, 2025
1 parent 5e5f32c commit d2c3a24
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 2 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# docusaurus-aueb-theme
A custom Docusaurus theme with AUEB's primary color palette
# Docusaurus AUEB Theme

A custom Docusaurus theme with AUEB's primary color palette.

## Installation
```bash
npm install docusaurus-aueb-theme
```

## Usage
Add the following to your `docusaurus.config.js` file
```js
module.exports = {
themeConfig: {
customCss: require.resolve('docusaurus-aueb-theme/theme.css'),
},
};
```
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "docusaurus-aueb-theme",
"version": "1.0.0",
"description": "Custom Docusaurus theme for AUEB with updated primary colors",
"main": "theme.css",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": ["docusaurus", "theme", "AUEB", "primary-colors"],
"author": "YParaskevas Leivadaros",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/theatrikiopa/docusaurus-aueb-theme.git"
},
"bugs": {
"url": "https://github.com/theatrikiopa/docusaurus-aueb-theme/issues"
},
"homepage": "https://github.com/theatrikiopa/docusaurus-aueb-theme#readme"
}
19 changes: 19 additions & 0 deletions theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
:root {
--ifm-color-primary: #804040;
--ifm-color-primary-dark: #662626;
--ifm-color-primary-darker: #4d1c1c;
--ifm-color-primary-darkest: #331212;
--ifm-color-primary-light: #a05252;
--ifm-color-primary-lighter: #b06868;
--ifm-color-primary-lightest: #c08080;
}

[data-theme='dark'] {
--ifm-color-primary: #804040;
--ifm-color-primary-dark: #662626;
--ifm-color-primary-darker: #4d1c1c;
--ifm-color-primary-darkest: #331212;
--ifm-color-primary-light: #a05252;
--ifm-color-primary-lighter: #b06868;
--ifm-color-primary-lightest: #c08080;
}

0 comments on commit d2c3a24

Please sign in to comment.