Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/readme-sign-and-tagline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@variablelab/theme-toggle": patch
---

Put the Sign and the Tagline at the top of the README, and set the author to `rcrd <ricardo@variable.land>`.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# @variablelab/theme-toggle
<p align="center">
<img src="https://raw.githubusercontent.com/withvariablelab/theme-toggle/HEAD/brand/sign-readme.svg" width="64" height="64" alt="">
</p>

<h1 align="center">theme-toggle</h1>

<p align="center">The theme is set before first paint.</p>

Light/dark/system color-mode toggle for React apps, with a tiny inline script that
sets the theme **before first paint** to avoid the flash of the wrong theme (FOUC).
Expand Down
12 changes: 12 additions & 0 deletions brand/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# theme-toggle brand

The Sign of theme-toggle: an edge and a block, with a gap between them. It isn't a sun and a moon.

| File | Use |
| --- | --- |
| `sign.svg` | The Sign, 24×24, in `currentColor`. Sites and images use this file. |
| `sign-readme.svg` | The Sign on a `ground` square, for READMEs. |

How a Sign is drawn and used: [vlab-brand › Project brand](https://github.com/withvariablelab/brand/blob/main/skills/vlab-brand/project-brand.md).

These files aren't covered by this repository's license. Their use is set by [BRAND-USE.md](https://github.com/withvariablelab/brand/blob/main/BRAND-USE.md).
1 change: 1 addition & 0 deletions brand/sign-readme.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions brand/sign.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "git+https://github.com/withvariablelab/theme-toggle.git"
},
"license": "MIT",
"author": "rcrd <rcrd@variable.land>",
"author": "rcrd <ricardo@variable.land>",
"type": "module",
"exports": {
".": {
Expand Down
Loading