Skip to content

Commit

Permalink
fix dark mod colors and update docs to use themes
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Jan 17, 2024
1 parent 9a337de commit e57a4f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ Install @zeus Accordion by running the following commands in your Laravel projec
composer require lara-zeus/accordion
```

## theme

add this path to your tailwind config file in the `content` array

```js
'./vendor/lara-zeus/accordion/resources/views/**/*.blade.php',
```

## Usage:

### use it in your form:
Expand Down
4 changes: 2 additions & 2 deletions resources/views/components/accordion/item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class="fi-accordion-item group"
class="flex items-center justify-between w-full p-4 text-start select-none"
:class="{
'bg-gray-100 dark:bg-gray-800': activeAccordion == id,
'bg-white': activeAccordion != id,
'bg-white dark:bg-gray-800/50': activeAccordion != id,
}"
>
<span
:class="{
'text-primary-600': activeAccordion == id ,
'text-gray-500': activeAccordion != id
'text-white/70': activeAccordion != id
}"
class="flex gap-2 font-medium items-center justify-center text-gray-500 group-hover:text-primary-600"
>
Expand Down

0 comments on commit e57a4f6

Please sign in to comment.