Skip to content

Commit

Permalink
[#72] Remove parts kit theme settings & references.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuapease committed Dec 22, 2023
1 parent bbdf001 commit 0803c60
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.
47 changes: 0 additions & 47 deletions docs/parts-kit.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ You can override the following values via the same config file used for all base
| `directory` | `parts-kit` | Directory of your parts kit |
| `layout` | `_layouts/app` | Your layout that should be extended from |
| `volume` | `partsKit` | Craft Asset volume for sample images |
| `theme` | `light` | Choose from provided light & dark themes or provide your own |

### Example

Expand All @@ -69,7 +68,6 @@ return [
'directory' => 'parts-kit',
'layout' => '_layouts/app',
'volume' => 'partsKit',
'theme' => 'light',
],
// other base module settings
'tailwind' => [
Expand Down Expand Up @@ -237,48 +235,3 @@ Example:
```
<!-- {% endraw %} -->

## Theming

By default, the **light** theme is applied.

### Dark Mode

You can easily switch to a provided **dark theme** by specifying `dark` in your config:

```php
// config/parts-kit.php

<?php

return [
'theme' => 'dark',
];
```

### Customize

Alternatively, you can pass an array with values corresponding to all of the CSS custom properties used to style the theme. For example, the following config contains all of the supported values and would generate a dark blue theme:

```php
// config/viget.php
<?php

return [
'partsKit' => [
'theme' => [
'background' => '#2c3e50',
'main-background' => '#34495e',
'text' => 'white',
'nav-icon' => '#2ecc71',
'nav-item-text-hover' => 'white',
'nav-item-background-hover' => 'rgba(255, 255, 255, 0.1)',
'nav-subitem-text-hover' => 'white',
'nav-subitem-background-hover' => 'rgba(255, 255, 255, 0.1)',
'nav-subitem-background-active' => '#2ecc71',
'nav-subitem-text-active' => '#fff',
'controls-text' => 'rgba(255, 255, 255, 0.3)',
'controls-border' => 'rgba(255, 255, 255, 0.1)',
],
],
];
```
1 change: 0 additions & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ private function _loadConfig()
'directory' => 'parts-kit',
'layout' => '_layouts/app',
'volume' => 'partsKit',
'theme' => 'light',
],
'tailwind' => [
'configPath' => Craft::getAlias('@config/tailwind/tailwind.json'),
Expand Down

0 comments on commit 0803c60

Please sign in to comment.