-
Notifications
You must be signed in to change notification settings - Fork 153
Named themes #60
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
Comments
Are themes css only, or does the concept also include “templates” for pages and navigation? |
Another possibility is that a theme is simply adding |
Our current theme might be written as
If we just need to add a <link rel="stylesheet" type="text/css" href="{{root}}_observablehq/base.css">
+ <link rel="stylesheet" type="text/css" href="{{root}}_observablehq/{{custom}}.css"> In the long run, I'd like the whole template to be customizable. Maybe my project will not want google fonts, or I'll want a different HTML structure altogether. Making the whole template editable (outside the src file) is easy (#253); however, it means that these {{xxx}} tags become part of the API, so I'm not sure it's wise at this stage. But it seems obvious that having to rely only on css to customize the page will quickly feel inadequate. |
Fixed in #442 etc. |
As an alternative to including a custom stylesheet such as
dashboard.css
, we should allow named themes to be applied via YAML frontmatter, and provide built-in stylesheets for these themes. The current theme could be moved todefault.css
.The text was updated successfully, but these errors were encountered: