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

added additional_css to workspace index #653

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

06chaynes
Copy link
Contributor

This checks for additional_css in the workspace config and if present will build the css asset and adds it to the workspace index page allowing for theme override. I've provided an example below with resulting screenshots from testing.

oranda-workspace.json

"styles": {
  "theme": "axodark",
  "additional_css": ["./.assets/styles/oranda.css"]
}

oranda.css:

html.axo {
    /* Our theme's own colors */
    --highlight-color: rgb(89, 75, 170) !important;
    --axo-orange-color: #594BAA !important;
    --axo-pink-color: #988ECC !important;
}

Before:
workspace-index-before

After:
workspace-index-after

Copy link
Contributor

@shadows-withal shadows-withal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you!

@shadows-withal shadows-withal merged commit b79c1f8 into axodotdev:main Oct 4, 2023
13 checks passed
@06chaynes 06chaynes deleted the workspace-index-css branch October 4, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants