Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Favicons: distinctive colors for different parts of the Kirby sites #1492

Open
marcus-at-localhost opened this issue Sep 24, 2021 · 1 comment
Labels
type: design 🌈 Is styling-related

Comments

@marcus-at-localhost
Copy link

5000 Tabs open, constantly switching between my backend, docs, cookbook, feature upvoting and forum.
Constantly getting lost.
image

Forum and Kirby backend using the outlined Kirby logo, all other services the filled one.

I would appreciate some sort of color coding as you already are using here

image

What do you think?

@medienbaecker
Copy link
Contributor

I'd appreciate that too.

For a client project I recently added a route for favicon.svg so I can color code depending on the page. Simplified example:

'routes' => [
  [
    'pattern' => '(:any)/favicon.svg',
    'action'  => function ($page) {
      $color = $page->color()->value();
      return new Response('<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50" fill="' . $color . '"/></svg>', 'image/svg+xml');
    }
  ]
]

Something like that could be used to color code the pages in the docs.

@distantnative distantnative added the type: design 🌈 Is styling-related label May 25, 2024
@distantnative distantnative changed the title Distinctive Favicons for different Sections of the Kirby Website and Kirby Related Services Favicons: distinctive colors for different parts of the Kirby sites May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: design 🌈 Is styling-related
Projects
None yet
Development

No branches or pull requests

3 participants