Skip to content

Commit

Permalink
Merge pull request #91 from Haocen/patch-1
Browse files Browse the repository at this point in the history
Update dark-mode-toggle.d.ts to reflect new possible value for "apperance"
  • Loading branch information
tomayac authored Oct 7, 2024
2 parents c258ae4 + c63f722 commit f987ac4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dark-mode-toggle.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ export class DarkModeToggle extends HTMLElement {
/**
* The "switch" appearance conveys the idea of a theme switcher (light/dark),
* whereas "toggle" conveys the idea of a dark mode toggle (on/off).
* The "three-way" option will feature a central state that aligns with the user's system preferred color mode, while both the left and right states will consistently apply a fixed color scheme, irrespective of the system settings.
*/
appearance: 'toggle' | 'switch';
appearance: 'toggle' | 'switch' | 'three-way';

/**
* If true, remember the last selected mode ("dark" or "light"),
Expand Down

0 comments on commit f987ac4

Please sign in to comment.