Skip to content

Commit

Permalink
Add docs for autothemer-let-palette
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonm23 committed Sep 7, 2023
1 parent 6277b08 commit cb4d4b6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions function-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ assist with theme building, here are a few highlights...
- [autothemer-saturated-order](#autothemer-saturated-order--a-b)
- [autothemer-saturation-group](#autothemer-saturation-group--color--saturation-groups)
- [autothemer-sort-palette](#autothemer-sort-palette--theme-colors--sort-fn-group-fn-group-args)
- [autothemer-let-palette](#autothemer-let-palette)
### Internal Functions
- [autothemer--alist-to-reduced-spec](#autothemer--alist-to-reduced-spec--facename-alist)
- [autothemer--approximate-spec](#autothemer--approximate-spec--reduced-spec-theme)
Expand Down Expand Up @@ -487,6 +488,21 @@ See `autothemer-group-and-sort` for a full list.
(autothemer-sort-palette (theme-colors &optional sort-fn group-fn group-args))
```

- - -
### <a id="autothemer-let-palette"></a>autothemer-let-palette

Provide a let block for `body` from `autothemer-current-theme`.

Load/eval the required autothemer source (not byte-compiled) to set
`autothemer-current-theme', before using `autothemer-let-palette`

<sup>function signature</sup>
```lisp
;; assuming your theme has a palette color of juicy-watermelon
(autothemer-let-palette ;;
(message "%s" juicy-watermelon))
```

- - -

### <a id="autothemer--alist-to-reduced-spec--facename-alist" aria-hidden="true"></a>autothemer--alist-to-reduced-spec internal
Expand Down

0 comments on commit cb4d4b6

Please sign in to comment.